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.
7 # Copyright (C) 2019-2020 Advanced Micro Devices, Inc. All rights reserved.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
16 # Be more Bourne compatible
17 DUALCASE
=1; export DUALCASE
# for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in #(
38 # Printing a long string crashes Solaris 7 /usr/bin/printf.
39 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42 # Prefer a ksh shell builtin over an external printf program on Solaris,
43 # but without wasting forks for bash or zsh.
44 if test -z "$BASH_VERSION$ZSH_VERSION" \
45 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo_n='print
-rn --'
48 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
54 as_echo_n='/usr
/ucb
/echo -n'
56 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61 expr "X$arg" : "X\\(.*\\)$as_nl";
62 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
67 as_echo_n='sh
-c $as_echo_n_body as_echo
'
70 as_echo='sh
-c $as_echo_body as_echo
'
73 # The user is always right.
74 if test "${PATH_SEPARATOR+set}" != set; then
76 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
77 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
84 # We need space, tab and new line, in precisely that order. Quoting is
85 # there to prevent editors from complaining about space-tab.
86 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
87 # splitting by setting IFS to empty value.)
90 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 # Use a proper internal environment variable to ensure we don't fall
137 # into an infinite loop, continuously re-executing ourselves.
138 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
139 _as_can_reexec
=no
; export _as_can_reexec
;
140 # We cannot yet assume a decent shell, so we have to provide a
141 # neutralization value for shells without unset; and this also
142 # works around shells that cannot unset nonexistent variables.
143 # Preserve -v and -x to the replacement shell.
146 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
148 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
153 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
154 # Admittedly, this is quite paranoid, since all the known shells bail
155 # out after a failed `exec'.
156 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159 # We don't want this to propagate to other subprocesses.
160 { _as_can_reexec
=; unset _as_can_reexec
;}
161 if test "x$CONFIG_SHELL" = x
; then
162 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
166 # is contrary to our usage. Disable this feature.
167 alias -g '\${1+\"\$@\"}'='\"\$@\"'
170 case \`(set -o) 2>/dev/null\` in #(
178 as_required
="as_fn_return () { (exit \$1); }
179 as_fn_success () { as_fn_return 0; }
180 as_fn_failure () { as_fn_return 1; }
181 as_fn_ret_success () { return 0; }
182 as_fn_ret_failure () { return 1; }
185 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
186 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
187 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
188 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
189 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 exitcode=1; echo positional parameters were not saved.
194 test x\$exitcode = x0 || exit 1
196 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
197 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
198 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
199 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test \$(( 1 + 1 )) = 2 || exit 1"
201 if (eval "$as_required") 2>/dev
/null
; then :
206 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
209 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
211 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
214 test -z "$as_dir" && as_dir
=.
218 for as_base
in sh bash ksh sh5
; do
219 # Try only shells that exist, to save several forks.
220 as_shell
=$as_dir/$as_base
221 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
222 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
223 CONFIG_SHELL
=$as_shell as_have_required
=yes
224 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
232 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
233 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
234 CONFIG_SHELL
=$SHELL as_have_required
=yes
239 if test "x$CONFIG_SHELL" != x
; then :
241 # We cannot yet assume a decent shell, so we have to provide a
242 # neutralization value for shells without unset; and this also
243 # works around shells that cannot unset nonexistent variables.
244 # Preserve -v and -x to the replacement shell.
247 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
249 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
254 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255 # Admittedly, this is quite paranoid, since all the known shells bail
256 # out after a failed `exec'.
257 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
261 if test x
$as_have_required = xno
; then :
262 $as_echo "$0: This script requires a shell more modern than all"
263 $as_echo "$0: the shells that I found on your system."
264 if test x
${ZSH_VERSION+set} = xset
; then
265 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
269 $0: including any error possibly output before this
270 $0: message. Then install a modern shell, or manually run
271 $0: the script under such a shell if you do have one."
277 SHELL
=${CONFIG_SHELL-/bin/sh}
279 # Unset more variables known to interfere with behavior of common tools.
280 CLICOLOR_FORCE
= GREP_OPTIONS
=
281 unset CLICOLOR_FORCE GREP_OPTIONS
283 ## --------------------- ##
284 ## M4sh Shell Functions. ##
285 ## --------------------- ##
288 # Portably unset VAR.
291 { eval $1=; unset $1;}
295 # as_fn_set_status STATUS
296 # -----------------------
297 # Set $? to STATUS, without forking.
305 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 # Create "$as_dir" as a directory, including parents if necessary.
320 -*) as_dir
=.
/$as_dir;;
322 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
326 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 as_dirs
="'$as_qdir' $as_dirs"
330 as_dir
=`$as_dirname -- "$as_dir" ||
331 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
332 X"$as_dir" : 'X\(//\)[^/]' \| \
333 X"$as_dir" : 'X\(//\)$' \| \
334 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
335 $as_echo X"$as_dir" |
336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353 test -d "$as_dir" && break
355 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
356 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
361 # as_fn_executable_p FILE
362 # -----------------------
363 # Test if FILE is an executable regular file.
364 as_fn_executable_p
()
366 test -f "$1" && test -x "$1"
367 } # as_fn_executable_p
368 # as_fn_append VAR VALUE
369 # ----------------------
370 # Append the text in VALUE to the end of the definition contained in VAR. Take
371 # advantage of any shell optimizations that allow amortized linear growth over
372 # repeated appends, instead of the typical quadratic growth present in naive
374 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
375 eval 'as_fn_append ()
388 # Perform arithmetic evaluation on the ARGs, and store the result in the
389 # global $as_val. Take advantage of shells that can avoid forks. The arguments
390 # must be portable across $(()) and expr.
391 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
399 as_val
=`expr "$@" || test $? -eq 1`
404 # as_fn_error STATUS ERROR [LINENO LOG_FD]
405 # ----------------------------------------
406 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
407 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
408 # script with STATUS, using 1 if that was 0.
411 as_status
=$1; test $as_status -eq 0 && as_status
=1
413 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
414 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
416 $as_echo "$as_me: error: $2" >&2
417 as_fn_exit
$as_status
420 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
421 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
427 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
433 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
439 as_me
=`$as_basename -- "$0" ||
440 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
441 X"$0" : 'X\(//\)$' \| \
442 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
444 sed '/^.*\/\([^/][^/]*\)\/*$/{
458 # Avoid depending upon Character Ranges.
459 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
460 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
461 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
462 as_cr_digits
='0123456789'
463 as_cr_alnum
=$as_cr_Letters$as_cr_digits
466 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
467 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
468 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
469 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
470 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 chmod +x
"$as_me.lineno" ||
487 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
489 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
490 # already done that, so ensure we don't try to do so again and fall
491 # in an infinite loop. This has already happened in practice.
492 _as_can_reexec
=no
; export _as_can_reexec
493 # Don't try to exec as it changes $[0], causing all sort of problems
494 # (the dirname of $[0] is not the place where we might find the
495 # original and so on. Autoconf is especially sensitive to this).
497 # Exit status is that of the last command.
501 ECHO_C
= ECHO_N
= ECHO_T
=
502 case `echo -n x` in #(((((
504 case `echo 'xy\c'` in
505 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
507 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
514 rm -f conf$$ conf$$.exe conf$$.
file
515 if test -d conf$$.dir
; then
516 rm -f conf$$.dir
/conf$$.
file
519 mkdir conf$$.dir
2>/dev
/null
521 if (echo >conf$$.
file) 2>/dev
/null
; then
522 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
524 # ... but there are two gotchas:
525 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
526 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
527 # In both cases, we have to default to `cp -pR'.
528 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
530 elif ln conf$$.
file conf$$
2>/dev
/null
; then
538 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
539 rmdir conf$$.dir
2>/dev
/null
541 if mkdir
-p .
2>/dev
/null
; then
542 as_mkdir_p
='mkdir -p "$as_dir"'
544 test -d .
/-p && rmdir .
/-p
549 as_executable_p
=as_fn_executable_p
551 # Sed expression to map a string onto a valid CPP name.
552 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
554 # Sed expression to map a string onto a valid variable name.
555 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
562 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
563 # so uname gets run too.
564 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
569 ac_default_prefix
=/usr
/local
571 ac_config_libobj_dir
=.
578 # Identity of this package.
586 ac_unique_file
="main.c"
587 # Factoring default headers for most tests.
588 ac_includes_default
="\
590 #ifdef HAVE_SYS_TYPES_H
591 # include <sys/types.h>
593 #ifdef HAVE_SYS_STAT_H
594 # include <sys/stat.h>
600 # ifdef HAVE_STDLIB_H
605 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
610 #ifdef HAVE_STRINGS_H
611 # include <strings.h>
613 #ifdef HAVE_INTTYPES_H
614 # include <inttypes.h>
623 enable_option_checking
=no
625 ac_subst_vars
='LTLIBOBJS
638 HAVE_NATIVE_GCORE_HOST
738 READLINE_TEXI_INCFLAG
762 HAVE_NATIVE_GCORE_TARGET
789 INSTALL_STRIP_PROGRAM
818 MAINTAINER_MODE_FALSE
847 program_transform_name
858 ac_subst_files
='nat_makefile_frag'
860 enable_option_checking
861 enable_maintainer_mode
864 with_separate_debug_dir
866 with_relocated_sources
868 with_auto_load_safe_path
894 enable_source_highlight
900 with_system_gdbinit_dir
902 enable_build_warnings
903 enable_gdb_build_warnings
913 with_libbabeltrace_prefix
915 with_libxxhash_prefix
918 ac_precious_vars
='build_alias
935 ac_subdirs_all
='testsuite
939 # Initialize some variables set by options.
941 ac_init_version
=false
942 ac_unrecognized_opts
=
944 # The variables have the same names as the options, with
945 # dashes changed to underlines.
953 program_transform_name
=s
,x
,x
,
961 # Installation directory options.
962 # These are left unexpanded so users can "make install exec_prefix=/foo"
963 # and all the variables that are supposed to be based on exec_prefix
964 # by default will actually change.
965 # Use braces instead of parens because sh, perl, etc. also accept them.
966 # (The list follows the same order as the GNU Coding Standards.)
967 bindir
='${exec_prefix}/bin'
968 sbindir
='${exec_prefix}/sbin'
969 libexecdir
='${exec_prefix}/libexec'
970 datarootdir
='${prefix}/share'
971 datadir
='${datarootdir}'
972 sysconfdir
='${prefix}/etc'
973 sharedstatedir
='${prefix}/com'
974 localstatedir
='${prefix}/var'
975 includedir
='${prefix}/include'
976 oldincludedir
='/usr/include'
977 docdir
='${datarootdir}/doc/${PACKAGE}'
978 infodir
='${datarootdir}/info'
983 libdir
='${exec_prefix}/lib'
984 localedir
='${datarootdir}/locale'
985 mandir
='${datarootdir}/man'
991 # If the previous option needs an argument, assign it.
992 if test -n "$ac_prev"; then
993 eval $ac_prev=\
$ac_option
999 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1004 # Accept the important Cygnus configure options, so we can diagnose typos.
1006 case $ac_dashdash$ac_option in
1010 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1012 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1013 bindir
=$ac_optarg ;;
1015 -build |
--build |
--buil |
--bui |
--bu)
1016 ac_prev
=build_alias
;;
1017 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1018 build_alias
=$ac_optarg ;;
1020 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1021 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1022 ac_prev
=cache_file
;;
1023 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1024 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1025 cache_file
=$ac_optarg ;;
1027 --config-cache |
-C)
1028 cache_file
=config.cache
;;
1030 -datadir |
--datadir |
--datadi |
--datad)
1032 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1033 datadir
=$ac_optarg ;;
1035 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1036 |
--dataroo |
--dataro |
--datar)
1037 ac_prev
=datarootdir
;;
1038 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1039 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1040 datarootdir
=$ac_optarg ;;
1042 -disable-* |
--disable-*)
1043 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1044 # Reject names that are not valid shell variable names.
1045 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1046 as_fn_error $?
"invalid feature name: $ac_useropt"
1047 ac_useropt_orig
=$ac_useropt
1048 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1049 case $ac_user_opts in
1051 "enable_
$ac_useropt"
1053 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1054 ac_unrecognized_sep
=', ';;
1056 eval enable_
$ac_useropt=no
;;
1058 -docdir |
--docdir |
--docdi |
--doc |
--do)
1060 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1061 docdir
=$ac_optarg ;;
1063 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1065 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1066 dvidir
=$ac_optarg ;;
1068 -enable-* |
--enable-*)
1069 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1072 as_fn_error $?
"invalid feature name: $ac_useropt"
1073 ac_useropt_orig
=$ac_useropt
1074 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075 case $ac_user_opts in
1077 "enable_
$ac_useropt"
1079 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1080 ac_unrecognized_sep
=', ';;
1082 eval enable_
$ac_useropt=\
$ac_optarg ;;
1084 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1085 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1086 |
--exec |
--exe |
--ex)
1087 ac_prev
=exec_prefix
;;
1088 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1089 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1090 |
--exec=* |
--exe=* |
--ex=*)
1091 exec_prefix
=$ac_optarg ;;
1093 -gas |
--gas |
--ga |
--g)
1094 # Obsolete; use --with-gas.
1097 -help |
--help |
--hel |
--he |
-h)
1098 ac_init_help
=long
;;
1099 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1100 ac_init_help
=recursive
;;
1101 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1102 ac_init_help
=short
;;
1104 -host |
--host |
--hos |
--ho)
1105 ac_prev
=host_alias
;;
1106 -host=* |
--host=* |
--hos=* |
--ho=*)
1107 host_alias
=$ac_optarg ;;
1109 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1111 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1113 htmldir
=$ac_optarg ;;
1115 -includedir |
--includedir |
--includedi |
--included |
--include \
1116 |
--includ |
--inclu |
--incl |
--inc)
1117 ac_prev
=includedir
;;
1118 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1119 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1120 includedir
=$ac_optarg ;;
1122 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1124 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1125 infodir
=$ac_optarg ;;
1127 -libdir |
--libdir |
--libdi |
--libd)
1129 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1130 libdir
=$ac_optarg ;;
1132 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1133 |
--libexe |
--libex |
--libe)
1134 ac_prev
=libexecdir
;;
1135 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1136 |
--libexe=* |
--libex=* |
--libe=*)
1137 libexecdir
=$ac_optarg ;;
1139 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1140 ac_prev
=localedir
;;
1141 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1142 localedir
=$ac_optarg ;;
1144 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1145 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1146 ac_prev
=localstatedir
;;
1147 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1148 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1149 localstatedir
=$ac_optarg ;;
1151 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1153 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1154 mandir
=$ac_optarg ;;
1156 -nfp |
--nfp |
--nf)
1157 # Obsolete; use --without-fp.
1160 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1161 |
--no-cr |
--no-c |
-n)
1164 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1165 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1168 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1169 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1170 |
--oldin |
--oldi |
--old |
--ol |
--o)
1171 ac_prev
=oldincludedir
;;
1172 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1173 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1174 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1175 oldincludedir
=$ac_optarg ;;
1177 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1179 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1180 prefix
=$ac_optarg ;;
1182 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1183 |
--program-pre |
--program-pr |
--program-p)
1184 ac_prev
=program_prefix
;;
1185 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1186 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1187 program_prefix
=$ac_optarg ;;
1189 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1190 |
--program-suf |
--program-su |
--program-s)
1191 ac_prev
=program_suffix
;;
1192 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1193 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1194 program_suffix
=$ac_optarg ;;
1196 -program-transform-name |
--program-transform-name \
1197 |
--program-transform-nam |
--program-transform-na \
1198 |
--program-transform-n |
--program-transform- \
1199 |
--program-transform |
--program-transfor \
1200 |
--program-transfo |
--program-transf \
1201 |
--program-trans |
--program-tran \
1202 |
--progr-tra |
--program-tr |
--program-t)
1203 ac_prev
=program_transform_name
;;
1204 -program-transform-name=* |
--program-transform-name=* \
1205 |
--program-transform-nam=* |
--program-transform-na=* \
1206 |
--program-transform-n=* |
--program-transform-=* \
1207 |
--program-transform=* |
--program-transfor=* \
1208 |
--program-transfo=* |
--program-transf=* \
1209 |
--program-trans=* |
--program-tran=* \
1210 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1211 program_transform_name
=$ac_optarg ;;
1213 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1215 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1216 pdfdir
=$ac_optarg ;;
1218 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1220 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1223 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1224 |
-silent |
--silent |
--silen |
--sile |
--sil)
1227 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1229 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1231 sbindir
=$ac_optarg ;;
1233 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1234 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1235 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1237 ac_prev
=sharedstatedir
;;
1238 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1239 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1240 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1242 sharedstatedir
=$ac_optarg ;;
1244 -site |
--site |
--sit)
1246 -site=* |
--site=* |
--sit=*)
1249 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1251 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1252 srcdir
=$ac_optarg ;;
1254 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1255 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1256 ac_prev
=sysconfdir
;;
1257 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1258 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1259 sysconfdir
=$ac_optarg ;;
1261 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1262 ac_prev
=target_alias
;;
1263 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1264 target_alias
=$ac_optarg ;;
1266 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1269 -version |
--version |
--versio |
--versi |
--vers |
-V)
1270 ac_init_version
=: ;;
1273 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1274 # Reject names that are not valid shell variable names.
1275 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1276 as_fn_error $?
"invalid package name: $ac_useropt"
1277 ac_useropt_orig
=$ac_useropt
1278 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1279 case $ac_user_opts in
1283 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1284 ac_unrecognized_sep
=', ';;
1286 eval with_
$ac_useropt=\
$ac_optarg ;;
1288 -without-* |
--without-*)
1289 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1290 # Reject names that are not valid shell variable names.
1291 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1292 as_fn_error $?
"invalid package name: $ac_useropt"
1293 ac_useropt_orig
=$ac_useropt
1294 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1295 case $ac_user_opts in
1299 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1300 ac_unrecognized_sep
=', ';;
1302 eval with_
$ac_useropt=no
;;
1305 # Obsolete; use --with-x.
1308 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1309 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1310 ac_prev
=x_includes
;;
1311 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1312 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1313 x_includes
=$ac_optarg ;;
1315 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1316 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1317 ac_prev
=x_libraries
;;
1318 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1319 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1320 x_libraries
=$ac_optarg ;;
1322 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1323 Try \`$0 --help' for more information"
1327 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1328 # Reject names that are not valid shell variable names.
1329 case $ac_envvar in #(
1330 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1331 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1333 eval $ac_envvar=\
$ac_optarg
1334 export $ac_envvar ;;
1337 # FIXME: should be removed in autoconf 3.0.
1338 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1339 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1340 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1341 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1347 if test -n "$ac_prev"; then
1348 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1349 as_fn_error $?
"missing argument to $ac_option"
1352 if test -n "$ac_unrecognized_opts"; then
1353 case $enable_option_checking in
1355 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1356 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1360 # Check all directory arguments for consistency.
1361 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1362 datadir sysconfdir sharedstatedir localstatedir includedir \
1363 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1364 libdir localedir mandir
1366 eval ac_val
=\$
$ac_var
1367 # Remove trailing slashes.
1370 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1371 eval $ac_var=\
$ac_val;;
1373 # Be sure to have absolute directory names.
1375 [\\/$
]* | ?
:[\\/]* ) continue;;
1376 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1378 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1381 # There might be people who depend on the old broken behavior: `$host'
1382 # used to hold the argument of --host etc.
1383 # FIXME: To remove some day.
1386 target
=$target_alias
1388 # FIXME: To remove some day.
1389 if test "x$host_alias" != x
; then
1390 if test "x$build_alias" = x
; then
1391 cross_compiling
=maybe
1392 elif test "x$build_alias" != "x$host_alias"; then
1398 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1400 test "$silent" = yes && exec 6>/dev
/null
1403 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1404 ac_ls_di
=`ls -di .` &&
1405 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1406 as_fn_error $?
"working directory cannot be determined"
1407 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1408 as_fn_error $?
"pwd does not report name of working directory"
1411 # Find the source files, if location was not specified.
1412 if test -z "$srcdir"; then
1413 ac_srcdir_defaulted
=yes
1414 # Try the directory containing this script, then the parent directory.
1415 ac_confdir
=`$as_dirname -- "$as_myself" ||
1416 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1417 X"$as_myself" : 'X\(//\)[^/]' \| \
1418 X"$as_myself" : 'X\(//\)$' \| \
1419 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1420 $as_echo X"$as_myself" |
1421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1439 if test ! -r "$srcdir/$ac_unique_file"; then
1443 ac_srcdir_defaulted
=no
1445 if test ! -r "$srcdir/$ac_unique_file"; then
1446 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1447 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1449 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1451 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1453 # When building in place, set srcdir=.
1454 if test "$ac_abs_confdir" = "$ac_pwd"; then
1457 # Remove unnecessary trailing slashes from srcdir.
1458 # Double slashes in file names in object file debugging info
1459 # mess up M-x gdb in Emacs.
1461 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1463 for ac_var
in $ac_precious_vars; do
1464 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1465 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1466 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1467 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1471 # Report the --help message.
1473 if test "$ac_init_help" = "long"; then
1474 # Omit some internal or obsolete options to make the list less imposing.
1475 # This message is too long to be a string in the A/UX 3.1 sh.
1477 \`configure' configures this package to adapt to many kinds of systems.
1479 Usage: $0 [OPTION]... [VAR=VALUE]...
1481 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1482 VAR=VALUE. See below for descriptions of some of the useful variables.
1484 Defaults for the options are specified in brackets.
1487 -h, --help display this help and exit
1488 --help=short display options specific to this package
1489 --help=recursive display the short help of all the included packages
1490 -V, --version display version information and exit
1491 -q, --quiet, --silent do not print \`checking ...' messages
1492 --cache-file=FILE cache test results in FILE [disabled]
1493 -C, --config-cache alias for \`--cache-file=config.cache'
1494 -n, --no-create do not create output files
1495 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1497 Installation directories:
1498 --prefix=PREFIX install architecture-independent files in PREFIX
1499 [$ac_default_prefix]
1500 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1503 By default, \`make install' will install all the files in
1504 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1505 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1506 for instance \`--prefix=\$HOME'.
1508 For better control, use the options below.
1510 Fine tuning of the installation directories:
1511 --bindir=DIR user executables [EPREFIX/bin]
1512 --sbindir=DIR system admin executables [EPREFIX/sbin]
1513 --libexecdir=DIR program executables [EPREFIX/libexec]
1514 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1515 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1516 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1517 --libdir=DIR object code libraries [EPREFIX/lib]
1518 --includedir=DIR C header files [PREFIX/include]
1519 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1520 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1521 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1522 --infodir=DIR info documentation [DATAROOTDIR/info]
1523 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1524 --mandir=DIR man documentation [DATAROOTDIR/man]
1525 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1526 --htmldir=DIR html documentation [DOCDIR]
1527 --dvidir=DIR dvi documentation [DOCDIR]
1528 --pdfdir=DIR pdf documentation [DOCDIR]
1529 --psdir=DIR ps documentation [DOCDIR]
1535 --program-prefix=PREFIX prepend PREFIX to installed program names
1536 --program-suffix=SUFFIX append SUFFIX to installed program names
1537 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1540 --x-includes=DIR X include files are
in DIR
1541 --x-libraries=DIR X library files are
in DIR
1544 --build=BUILD configure
for building on BUILD
[guessed
]
1545 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1546 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1550 if test -n "$ac_init_help"; then
1555 --disable-option-checking ignore unrecognized
--enable/--with options
1556 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1557 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1558 --enable-maintainer-mode
1559 enable make rules and dependencies not useful
(and
1560 sometimes confusing
) to the casual installer
1561 --enable-plugins Enable support
for plugins
1562 --disable-largefile omit support
for large files
1563 --enable-targets=TARGETS
1564 alternative target configurations
1565 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1566 --disable-gdbmi disable machine-interface
(MI
)
1567 --enable-tui enable full-screen terminal user interface
(TUI
)
1568 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1569 --enable-profiling enable profiling of GDB
1570 --enable-codesign=CERT sign gdb with
'codesign -s CERT'
1571 --disable-rpath do not hardcode runtime library paths
1572 --enable-source-highlight
1573 enable source-highlight
for source listings
1574 --enable-werror treat compile warnings as errors
1575 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1576 --enable-gdb-build-warnings
1577 enable GDB specific build-time compiler warnings
if
1579 --enable-ubsan enable undefined behavior sanitizer
(auto
/yes
/no
)
1580 --enable-sim link gdb with simulator
1581 --enable-gdbserver automatically build gdbserver
(yes
/no
/auto
, default
1583 --enable-unit-tests Enable the inclusion of unit tests when compiling
1587 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1588 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1589 --with-separate-debug-dir=PATH
1590 look for global separate debug info
in this path
1592 --with-gdb-datadir=PATH
look for global separate data files
in this path
1594 --with-relocated-sources=PATH
1595 automatically relocate this path
for source files
1596 --with-auto-load-dir=PATH
1597 directories from
which to load auto-loaded scripts
1598 [$debugdir:$datadir/auto-load
]
1599 --with-auto-load-safe-path=PATH
1600 directories safe to hold auto-loaded files
1601 [--with-auto-load-dir]
1602 --without-auto-load-safe-path
1603 do not restrict auto-loaded files locations
1604 --with-rocm-dbgapi=PATH specify prefix directory
for installed ROCm-dbgapi
1606 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1607 --with-curses use the curses library instead of the termcap
1609 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1610 --with-bugurl=URL Direct users to URL to report a bug
1611 --with-system-zlib use installed libz
1612 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1613 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1614 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1615 --with-iconv-bin=PATH specify where to find the iconv program
1616 --with-system-readline use installed readline library
1617 --with-jit-reader-dir=PATH
1618 directory to load the JIT readers from
1619 --with-expat include expat support (auto/yes/no)
1620 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1621 --without-libexpat-prefix don't search
for libexpat
in includedir and libdir
1622 --with-mpfr include MPFR support
(auto
/yes
/no
)
1623 --with-libmpfr-prefix[=DIR
] search
for libmpfr
in DIR
/include and DIR
/lib
1624 --without-libmpfr-prefix don
't search for libmpfr in includedir and libdir
1625 --with-python[=PYTHON] include python support
1626 (auto/yes/no/<python-program>)
1627 --with-guile[=GUILE] include guile support
1628 (auto/yes/no/<guile-version>/<pkg-config-program>)
1629 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1630 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1631 --without-libipt-prefix don't search
for libipt
in includedir and libdir
1632 --without-included-regex
1633 don
't use included regex; this is the default on
1634 systems with version 2 of the GNU C library (use
1635 with caution on other system)
1636 --with-sysroot[=DIR] search for usr/lib et al within DIR
1637 --with-system-gdbinit=PATH
1638 automatically load a system-wide gdbinit file
1639 --with-system-gdbinit-dir=PATH
1640 automatically load system-wide gdbinit files from
1642 --with-lzma support lzma compression (auto/yes/no)
1643 --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib
1644 --without-liblzma-prefix don't search
for liblzma
in includedir and libdir
1645 --with-tcl directory containing tcl configuration
(tclConfig.sh
)
1646 --with-tk directory containing tk configuration
(tkConfig.sh
)
1647 --with-x use the X Window System
1648 --with-babeltrace include babeltrace support
(auto
/yes
/no
)
1649 --with-libbabeltrace-prefix[=DIR
] search
for libbabeltrace
in DIR
/include and DIR
/lib
1650 --without-libbabeltrace-prefix don
't search for libbabeltrace in includedir and libdir
1651 --with-xxhash use libxxhash for hashing (faster) (auto/yes/no)
1652 --with-libxxhash-prefix[=DIR] search for libxxhash in DIR/include and DIR/lib
1653 --without-libxxhash-prefix don't search
for libxxhash
in includedir and libdir
1655 Some influential environment variables
:
1656 CC C compiler
command
1657 CFLAGS C compiler flags
1658 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1659 nonstandard directory
<lib dir
>
1660 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1661 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1662 you have headers
in a nonstandard directory
<include dir
>
1663 CXX C
++ compiler
command
1664 CXXFLAGS C
++ compiler flags
1666 MAKEINFO Parent configure detects
if it is of sufficient version.
1668 Parameters
for MAKEINFO.
1669 YACC The
`Yet Another Compiler Compiler' implementation to use.
1670 Defaults to the first program found out of: `bison
-y', `byacc',
1672 YFLAGS The list of arguments that will be passed by default to $YACC.
1673 This script will default YFLAGS to the empty string to avoid a
1674 default value of `-d' given by some make applications.
1675 XMKMF Path to xmkmf, Makefile generator for X Window System
1677 Use these variables to override the choices made by `configure' or to
help
1678 it to
find libraries and programs with nonstandard names
/locations.
1680 Report bugs to the package provider.
1685 if test "$ac_init_help" = "recursive"; then
1686 # If there are subdirs, report their specific --help.
1687 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1688 test -d "$ac_dir" ||
1689 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1694 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1696 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1697 # A ".." for each directory in $ac_dir_suffix.
1698 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1699 case $ac_top_builddir_sub in
1700 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1701 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1704 ac_abs_top_builddir
=$ac_pwd
1705 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1706 # for backward compatibility:
1707 ac_top_builddir
=$ac_top_build_prefix
1710 .
) # We are building in place.
1712 ac_top_srcdir
=$ac_top_builddir_sub
1713 ac_abs_top_srcdir
=$ac_pwd ;;
1714 [\\/]* | ?
:[\\/]* ) # Absolute name.
1715 ac_srcdir
=$srcdir$ac_dir_suffix;
1716 ac_top_srcdir
=$srcdir
1717 ac_abs_top_srcdir
=$srcdir ;;
1719 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1720 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1721 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1723 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1725 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1726 # Check for guested configure.
1727 if test -f "$ac_srcdir/configure.gnu"; then
1729 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1730 elif test -f "$ac_srcdir/configure"; then
1732 $SHELL "$ac_srcdir/configure" --help=recursive
1734 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1736 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1740 test -n "$ac_init_help" && exit $ac_status
1741 if $ac_init_version; then
1744 generated by GNU Autoconf
2.69
1746 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1747 This configure
script is free software
; the Free Software Foundation
1748 gives unlimited permission to copy
, distribute and modify it.
1753 ## ------------------------ ##
1754 ## Autoconf initialization. ##
1755 ## ------------------------ ##
1757 # ac_fn_c_try_compile LINENO
1758 # --------------------------
1759 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1760 ac_fn_c_try_compile
()
1762 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1763 rm -f conftest.
$ac_objext
1764 if { { ac_try
="$ac_compile"
1766 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771 (eval "$ac_compile") 2>conftest.err
1773 if test -s conftest.err; then
1774 grep -v '^ *+' conftest.err >conftest.er1
1775 cat conftest.er1 >&5
1776 mv -f conftest.er1 conftest.err
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; } && {
1780 test -z "$ac_c_werror_flag" ||
1781 test ! -s conftest.err
1782 } && test -s conftest.$ac_objext; then :
1785 $as_echo "$as_me: failed program was:" >&5
1786 sed 's/^/| /' conftest.$ac_ext >&5
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791 as_fn_set_status $ac_retval
1793 } # ac_fn_c_try_compile
1795 # ac_fn_cxx_try_compile LINENO
1796 # ----------------------------
1797 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1798 ac_fn_cxx_try_compile ()
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 rm -f conftest.$ac_objext
1802 if { { ac_try="$ac_compile"
1804 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1805 *) ac_try_echo
=$ac_try;;
1807 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808 $as_echo "$ac_try_echo"; } >&5
1809 (eval "$ac_compile") 2>conftest.err
1811 if test -s conftest.err
; then
1812 grep -v '^ *+' conftest.err
>conftest.er1
1813 cat conftest.er1
>&5
1814 mv -f conftest.er1 conftest.err
1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817 test $ac_status = 0; } && {
1818 test -z "$ac_cxx_werror_flag" ||
1819 test ! -s conftest.err
1820 } && test -s conftest.
$ac_objext; then :
1823 $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.
$ac_ext >&5
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 as_fn_set_status
$ac_retval
1831 } # ac_fn_cxx_try_compile
1833 # ac_fn_c_try_cpp LINENO
1834 # ----------------------
1835 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1838 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1839 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1841 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } > conftest.i && {
1855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1856 test ! -s conftest.err
1860 $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866 as_fn_set_status $ac_retval
1870 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1871 # -------------------------------------------------------
1872 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1873 # the include files in INCLUDES and setting the cache variable VAR
1875 ac_fn_c_check_header_mongrel ()
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 if eval \${$3+:} false; then :
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1880 $as_echo_n "checking for $2... " >&6; }
1881 if eval \${$3+:} false; then :
1882 $as_echo_n "(cached) " >&6
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886 $as_echo "$ac_res" >&6; }
1888 # Is the header compilable?
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1890 $as_echo_n "checking $2 usability... " >&6; }
1891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892 /* end confdefs.h. */
1896 if ac_fn_c_try_compile "$LINENO"; then :
1897 ac_header_compiler=yes
1899 ac_header_compiler=no
1901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1903 $as_echo "$ac_header_compiler" >&6; }
1905 # Is the header present?
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1907 $as_echo_n "checking $2 presence... " >&6; }
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h. */
1912 if ac_fn_c_try_cpp "$LINENO"; then :
1913 ac_header_preproc=yes
1915 ac_header_preproc=no
1917 rm -f conftest.err conftest.i conftest.$ac_ext
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1919 $as_echo "$ac_header_preproc" >&6; }
1921 # So? What about this header?
1922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1925 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1927 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1931 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1933 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1935 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1937 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1939 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1943 $as_echo_n "checking for $2... " >&6; }
1944 if eval \${$3+:} false; then :
1945 $as_echo_n "(cached) " >&6
1947 eval "$3=\$ac_header_compiler"
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951 $as_echo "$ac_res" >&6; }
1953 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955 } # ac_fn_c_check_header_mongrel
1957 # ac_fn_c_try_run LINENO
1958 # ----------------------
1959 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1960 # that executables *can* be run.
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 if { { ac_try="$ac_link"
1966 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1967 *) ac_try_echo
=$ac_try;;
1969 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1970 $as_echo "$ac_try_echo"; } >&5
1971 (eval "$ac_link") 2>&5
1973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1974 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1975 { { case "(($ac_try" in
1976 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1977 *) ac_try_echo=$ac_try;;
1979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1980 $as_echo "$ac_try_echo"; } >&5
1981 (eval "$ac_try") 2>&5
1983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1984 test $ac_status = 0; }; }; then :
1987 $as_echo "$as_me: program exited with status $ac_status" >&5
1988 $as_echo "$as_me: failed program was:" >&5
1989 sed 's/^/| /' conftest.$ac_ext >&5
1991 ac_retval=$ac_status
1993 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995 as_fn_set_status $ac_retval
1999 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2000 # -------------------------------------------------------
2001 # Tests whether HEADER exists and can be compiled using the include files in
2002 # INCLUDES, setting the cache variable VAR accordingly.
2003 ac_fn_c_check_header_compile ()
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2007 $as_echo_n "checking for $2... " >&6; }
2008 if eval \${$3+:} false; then :
2009 $as_echo_n "(cached) " >&6
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2016 if ac_fn_c_try_compile "$LINENO"; then :
2021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2025 $as_echo "$ac_res" >&6; }
2026 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2028 } # ac_fn_c_check_header_compile
2030 # ac_fn_c_try_link LINENO
2031 # -----------------------
2032 # Try to link conftest.$ac_ext, and return whether this succeeded.
2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036 rm -f conftest.$ac_objext conftest$ac_exeext
2037 if { { ac_try="$ac_link"
2039 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2040 *) ac_try_echo
=$ac_try;;
2042 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2043 $as_echo "$ac_try_echo"; } >&5
2044 (eval "$ac_link") 2>conftest.err
2046 if test -s conftest.err
; then
2047 grep -v '^ *+' conftest.err
>conftest.er1
2048 cat conftest.er1
>&5
2049 mv -f conftest.er1 conftest.err
2051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2052 test $ac_status = 0; } && {
2053 test -z "$ac_c_werror_flag" ||
2054 test ! -s conftest.err
2055 } && test -s conftest
$ac_exeext && {
2056 test "$cross_compiling" = yes ||
2057 test -x conftest
$ac_exeext
2061 $as_echo "$as_me: failed program was:" >&5
2062 sed 's/^/| /' conftest.
$ac_ext >&5
2066 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2067 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2068 # interfere with the next link command; also delete a directory that is
2069 # left behind by Apple's compiler. We do this before executing the actions.
2070 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2071 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072 as_fn_set_status
$ac_retval
2074 } # ac_fn_c_try_link
2076 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2077 # --------------------------------------------
2078 # Tries to find the compile-time value of EXPR in a program that includes
2079 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2081 ac_fn_c_compute_int
()
2083 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2084 if test "$cross_compiling" = yes; then
2085 # Depending upon the size, compute the lo and hi bounds.
2086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2092 static int test_array [1 - 2 * !(($2) >= 0)];
2094 return test_array [0];
2100 if ac_fn_c_try_compile
"$LINENO"; then :
2103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2109 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2111 return test_array [0];
2117 if ac_fn_c_try_compile
"$LINENO"; then :
2118 ac_hi
=$ac_mid; break
2120 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2121 if test $ac_lo -le $ac_mid; then
2125 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2127 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h. */
2136 static int test_array [1 - 2 * !(($2) < 0)];
2138 return test_array [0];
2144 if ac_fn_c_try_compile
"$LINENO"; then :
2147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2153 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2155 return test_array [0];
2161 if ac_fn_c_try_compile
"$LINENO"; then :
2162 ac_lo
=$ac_mid; break
2164 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2165 if test $ac_mid -le $ac_hi; then
2169 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2176 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2178 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2179 # Binary search between lo and hi bounds.
2180 while test "x$ac_lo" != "x$ac_hi"; do
2181 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2188 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2190 return test_array [0];
2196 if ac_fn_c_try_compile
"$LINENO"; then :
2199 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2201 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2204 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h. */
2211 static long int longval () { return $2; }
2212 static unsigned long int ulongval () { return $2; }
2219 FILE *f = fopen ("conftest.val", "w");
2224 long int i = longval ();
2227 fprintf (f, "%ld", i);
2231 unsigned long int i = ulongval ();
2234 fprintf (f, "%lu", i);
2236 /* Do not output a trailing newline, as this causes \r\n confusion
2237 on some platforms. */
2238 return ferror (f) || fclose (f) != 0;
2244 if ac_fn_c_try_run
"$LINENO"; then :
2245 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2249 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2250 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2254 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2255 as_fn_set_status
$ac_retval
2257 } # ac_fn_c_compute_int
2259 # ac_fn_c_check_func LINENO FUNC VAR
2260 # ----------------------------------
2261 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2262 ac_fn_c_check_func
()
2264 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2266 $as_echo_n "checking for $2... " >&6; }
2267 if eval \
${$3+:} false
; then :
2268 $as_echo_n "(cached) " >&6
2270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2271 /* end confdefs.h. */
2272 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2274 #define $2 innocuous_$2
2276 /* System header to define __stub macros and hopefully few prototypes,
2277 which can conflict with char $2 (); below.
2278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2279 <limits.h> exists even on freestanding compilers. */
2282 # include <limits.h>
2284 # include <assert.h>
2289 /* Override any GCC internal prototype to avoid an error.
2290 Use char because int might match the return type of a GCC
2291 builtin and then its argument prototype would still apply. */
2296 /* The GNU C library defines this for functions which it implements
2297 to always fail with ENOSYS. Some functions are actually named
2298 something starting with __ and the normal name is an alias. */
2299 #if defined __stub_$2 || defined __stub___$2
2311 if ac_fn_c_try_link
"$LINENO"; then :
2316 rm -f core conftest.err conftest.
$ac_objext \
2317 conftest
$ac_exeext conftest.
$ac_ext
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2321 $as_echo "$ac_res" >&6; }
2322 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2324 } # ac_fn_c_check_func
2326 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2327 # ----------------------------------------------------
2328 # Tries to find if the field MEMBER exists in type AGGR, after including
2329 # INCLUDES, setting cache variable VAR accordingly.
2330 ac_fn_c_check_member
()
2332 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2334 $as_echo_n "checking for $2.$3... " >&6; }
2335 if eval \
${$4+:} false
; then :
2336 $as_echo_n "(cached) " >&6
2338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2339 /* end confdefs.h. */
2351 if ac_fn_c_try_compile
"$LINENO"; then :
2354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2355 /* end confdefs.h. */
2361 if (sizeof ac_aggr.$3)
2367 if ac_fn_c_try_compile
"$LINENO"; then :
2372 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2374 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2378 $as_echo "$ac_res" >&6; }
2379 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2381 } # ac_fn_c_check_member
2383 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2384 # -------------------------------------------
2385 # Tests whether TYPE exists after having included INCLUDES, setting cache
2386 # variable VAR accordingly.
2387 ac_fn_c_check_type
()
2389 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2391 $as_echo_n "checking for $2... " >&6; }
2392 if eval \
${$3+:} false
; then :
2393 $as_echo_n "(cached) " >&6
2396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2397 /* end confdefs.h. */
2408 if ac_fn_c_try_compile
"$LINENO"; then :
2409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2410 /* end confdefs.h. */
2421 if ac_fn_c_try_compile
"$LINENO"; then :
2426 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2428 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2432 $as_echo "$ac_res" >&6; }
2433 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2435 } # ac_fn_c_check_type
2437 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2438 # ---------------------------------------------
2439 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2441 ac_fn_c_check_decl
()
2443 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2444 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2445 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2447 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2448 if eval \
${$3+:} false
; then :
2449 $as_echo_n "(cached) " >&6
2451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2452 /* end confdefs.h. */
2457 #ifndef $as_decl_name
2459 (void) $as_decl_use;
2461 (void) $as_decl_name;
2469 if ac_fn_c_try_compile
"$LINENO"; then :
2474 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2478 $as_echo "$ac_res" >&6; }
2479 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2481 } # ac_fn_c_check_decl
2483 # ac_fn_cxx_try_link LINENO
2484 # -------------------------
2485 # Try to link conftest.$ac_ext, and return whether this succeeded.
2486 ac_fn_cxx_try_link
()
2488 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2489 rm -f conftest.
$ac_objext conftest
$ac_exeext
2490 if { { ac_try
="$ac_link"
2492 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2493 *) ac_try_echo=$ac_try;;
2495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2496 $as_echo "$ac_try_echo"; } >&5
2497 (eval "$ac_link") 2>conftest.err
2499 if test -s conftest.err; then
2500 grep -v '^ *+' conftest.err >conftest.er1
2501 cat conftest.er1 >&5
2502 mv -f conftest.er1 conftest.err
2504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2505 test $ac_status = 0; } && {
2506 test -z "$ac_cxx_werror_flag" ||
2507 test ! -s conftest.err
2508 } && test -s conftest$ac_exeext && {
2509 test "$cross_compiling" = yes ||
2510 test -x conftest$ac_exeext
2514 $as_echo "$as_me: failed program was:" >&5
2515 sed 's/^/| /' conftest.$ac_ext >&5
2519 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2520 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2521 # interfere with the next link command; also delete a directory that is
2522 # left behind by Apple's compiler. We do this before executing the actions.
2523 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2524 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2525 as_fn_set_status $ac_retval
2527 } # ac_fn_cxx_try_link
2529 # ac_fn_cxx_check_func LINENO FUNC VAR
2530 # ------------------------------------
2531 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2532 ac_fn_cxx_check_func ()
2534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2536 $as_echo_n "checking for $2... " >&6; }
2537 if eval \${$3+:} false; then :
2538 $as_echo_n "(cached) " >&6
2540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2541 /* end confdefs.h. */
2542 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2544 #define $2 innocuous_$2
2546 /* System header to define __stub macros and hopefully few prototypes,
2547 which can conflict with char $2 (); below.
2548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2549 <limits.h> exists even on freestanding compilers. */
2552 # include <limits.h>
2554 # include <assert.h>
2559 /* Override any GCC internal prototype to avoid an error.
2560 Use char because int might match the return type of a GCC
2561 builtin and then its argument prototype would still apply. */
2566 /* The GNU C library defines this for functions which it implements
2567 to always fail with ENOSYS. Some functions are actually named
2568 something starting with __ and the normal name is an alias. */
2569 #if defined __stub_$2 || defined __stub___$2
2581 if ac_fn_cxx_try_link "$LINENO"; then :
2586 rm -f core conftest.err conftest.$ac_objext \
2587 conftest$ac_exeext conftest.$ac_ext
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2591 $as_echo "$ac_res" >&6; }
2592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2594 } # ac_fn_cxx_check_func
2595 cat >config.log <<_ACEOF
2596 This file contains any messages produced by compilers while
2597 running configure, to aid debugging if configure makes a mistake.
2599 It was created by $as_me, which was
2600 generated by GNU Autoconf 2.69. Invocation command line was
2612 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2613 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2614 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2615 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2616 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2618 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2619 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2621 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2622 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2623 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2624 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2625 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2626 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2627 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 test -z "$as_dir" && as_dir=.
2636 $as_echo "PATH: $as_dir"
2652 # Keep a trace of the command line.
2653 # Strip out --no-create and --no-recursion so they do not pile up.
2654 # Strip out --silent because we don't want to record it for future runs.
2655 # Also quote any args containing shell meta-characters.
2656 # Make two passes to allow for proper duplicate-argument suppression.
2660 ac_must_keep_next=false
2666 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2667 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2668 | -silent | --silent | --silen | --sile | --sil)
2671 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2674 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2676 as_fn_append ac_configure_args1 " '$ac_arg'"
2677 if test $ac_must_keep_next = true; then
2678 ac_must_keep_next=false # Got value, back to normal.
2681 *=* | --config-cache | -C | -disable-* | --disable-* \
2682 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2683 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2684 | -with-* | --with-* | -without-* | --without-* | --x)
2685 case "$ac_configure_args0 " in
2686 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2689 -* ) ac_must_keep_next=true ;;
2692 as_fn_append ac_configure_args " '$ac_arg'"
2697 { ac_configure_args0=; unset ac_configure_args0;}
2698 { ac_configure_args1=; unset ac_configure_args1;}
2700 # When interrupted or exit'd, cleanup temporary files, and complete
2701 # config.log. We remove comments because anyway the quotes in there
2702 # would cause problems or look ugly.
2703 # WARNING: Use '\'' to represent an apostrophe within the trap.
2704 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2705 trap 'exit_status=$?
2706 # Save into config.log some information that might help in debugging.
2710 $as_echo "## ---------------- ##
2711 ## Cache variables. ##
2712 ## ---------------- ##"
2714 # The following way of writing the cache mishandles newlines in values,
2716 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2717 eval ac_val=\$$ac_var
2721 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2722 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2725 _ | IFS | as_nl) ;; #(
2726 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2727 *) { eval $ac_var=; unset $ac_var;} ;;
2732 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2733 *${as_nl}ac_space=\ *)
2735 "s/'\''/'\''\\\\'\'''\''/g;
2736 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2739 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2746 $as_echo "## ----------------- ##
2747 ## Output variables. ##
2748 ## ----------------- ##"
2750 for ac_var in $ac_subst_vars
2752 eval ac_val=\$$ac_var
2754 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2756 $as_echo "$ac_var='\''$ac_val'\''"
2760 if test -n "$ac_subst_files"; then
2761 $as_echo "## ------------------- ##
2762 ## File substitutions. ##
2763 ## ------------------- ##"
2765 for ac_var in $ac_subst_files
2767 eval ac_val=\$$ac_var
2769 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2771 $as_echo "$ac_var='\''$ac_val'\''"
2776 if test -s confdefs.h; then
2777 $as_echo "## ----------- ##
2784 test "$ac_signal" != 0 &&
2785 $as_echo "$as_me: caught signal $ac_signal"
2786 $as_echo "$as_me: exit $exit_status"
2788 rm -f core *.core core.conftest.* &&
2789 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2792 for ac_signal in 1 2 13 15; do
2793 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2797 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2798 rm -f -r conftest* confdefs.h
2800 $as_echo "/* confdefs.h */" > confdefs.h
2802 # Predefined preprocessor variables.
2804 cat >>confdefs.h <<_ACEOF
2805 #define PACKAGE_NAME "$PACKAGE_NAME"
2808 cat >>confdefs.h <<_ACEOF
2809 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2812 cat >>confdefs.h <<_ACEOF
2813 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2816 cat >>confdefs.h <<_ACEOF
2817 #define PACKAGE_STRING "$PACKAGE_STRING"
2820 cat >>confdefs.h <<_ACEOF
2821 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2824 cat >>confdefs.h <<_ACEOF
2825 #define PACKAGE_URL "$PACKAGE_URL"
2829 # Let the site file select an alternate cache file if it wants to.
2830 # Prefer an explicitly selected file to automatically selected ones.
2833 if test -n "$CONFIG_SITE"; then
2834 # We do not want a PATH search for config.site.
2835 case $CONFIG_SITE in #((
2836 -*) ac_site_file1=./$CONFIG_SITE;;
2837 */*) ac_site_file1=$CONFIG_SITE;;
2838 *) ac_site_file1=./$CONFIG_SITE;;
2840 elif test "x$prefix" != xNONE; then
2841 ac_site_file1=$prefix/share/config.site
2842 ac_site_file2=$prefix/etc/config.site
2844 ac_site_file1=$ac_default_prefix/share/config.site
2845 ac_site_file2=$ac_default_prefix/etc/config.site
2847 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2849 test "x$ac_site_file" = xNONE && continue
2850 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2852 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2853 sed 's/^/| /' "$ac_site_file" >&5
2855 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2857 as_fn_error $? "failed to load site
script $ac_site_file
2858 See \
`config.log' for more details" "$LINENO" 5; }
2862 if test -r "$cache_file"; then
2863 # Some versions of bash will fail to source /dev/null (special files
2864 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2865 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2867 $as_echo "$as_me: loading cache $cache_file" >&6;}
2869 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2870 *) . "./$cache_file";;
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2875 $as_echo "$as_me: creating cache $cache_file" >&6;}
2879 as_fn_append ac_header_list " stdlib.h"
2880 as_fn_append ac_header_list " unistd.h"
2881 as_fn_append ac_header_list " sys/param.h"
2882 # Check that the precious variables saved in the cache have kept the same
2884 ac_cache_corrupted=false
2885 for ac_var in $ac_precious_vars; do
2886 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2887 eval ac_new_set=\$ac_env_${ac_var}_set
2888 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2889 eval ac_new_val=\$ac_env_${ac_var}_value
2890 case $ac_old_set,$ac_new_set in
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2893 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2894 ac_cache_corrupted=: ;;
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2897 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2898 ac_cache_corrupted=: ;;
2901 if test "x$ac_old_val" != "x$ac_new_val"; then
2902 # differences in whitespace do not lead to failure.
2903 ac_old_val_w=`echo x
$ac_old_val`
2904 ac_new_val_w=`echo x
$ac_new_val`
2905 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2907 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2908 ac_cache_corrupted=:
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2911 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2912 eval $ac_var=\$ac_old_val
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2915 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2917 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2920 # Pass precious variables to config.status.
2921 if test "$ac_new_set" = set; then
2923 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2924 *) ac_arg=$ac_var=$ac_new_val ;;
2926 case " $ac_configure_args " in
2927 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2928 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2932 if $ac_cache_corrupted; then
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2936 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2937 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2939 ## -------------------- ##
2940 ## Main body of script. ##
2941 ## -------------------- ##
2944 ac_cpp='$CPP $CPPFLAGS'
2945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2953 ac_config_headers="$ac_config_headers config.h:config.in"
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2957 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2958 # Check whether --enable-maintainer-mode was given.
2959 if test "${enable_maintainer_mode+set}" = set; then :
2960 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2962 USE_MAINTAINER_MODE=no
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2966 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2967 if test $USE_MAINTAINER_MODE = yes; then
2968 MAINTAINER_MODE_TRUE=
2969 MAINTAINER_MODE_FALSE='#'
2971 MAINTAINER_MODE_TRUE='#'
2972 MAINTAINER_MODE_FALSE=
2975 MAINT=$MAINTAINER_MODE_TRUE
2979 # Set the 'development' global.
2980 . $srcdir/../bfd/development.sh
2983 ac_cpp='$CPP $CPPFLAGS'
2984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2987 if test -n "$ac_tool_prefix"; then
2988 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2989 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991 $as_echo_n "checking for $ac_word... " >&6; }
2992 if ${ac_cv_prog_CC+:} false; then :
2993 $as_echo_n "(cached) " >&6
2995 if test -n "$CC"; then
2996 ac_cv_prog_CC="$CC" # Let the user override the test.
2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002 test -z "$as_dir" && as_dir=.
3003 for ac_exec_ext in '' $ac_executable_extensions; do
3004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3005 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3016 if test -n "$CC"; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3018 $as_echo "$CC" >&6; }
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021 $as_echo "no" >&6; }
3026 if test -z "$ac_cv_prog_CC"; then
3028 # Extract the first word of "gcc", so it can be a program name with args.
3029 set dummy gcc; ac_word=$2
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3031 $as_echo_n "checking for $ac_word... " >&6; }
3032 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3033 $as_echo_n "(cached) " >&6
3035 if test -n "$ac_ct_CC"; then
3036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042 test -z "$as_dir" && as_dir=.
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3045 ac_cv_prog_ac_ct_CC="gcc"
3046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3055 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3056 if test -n "$ac_ct_CC"; then
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3058 $as_echo "$ac_ct_CC" >&6; }
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3061 $as_echo "no" >&6; }
3064 if test "x$ac_ct_CC" = x; then
3067 case $cross_compiling:$ac_tool_warned in
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3071 ac_tool_warned=yes ;;
3079 if test -z "$CC"; then
3080 if test -n "$ac_tool_prefix"; then
3081 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3082 set dummy ${ac_tool_prefix}cc; ac_word=$2
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084 $as_echo_n "checking for $ac_word... " >&6; }
3085 if ${ac_cv_prog_CC+:} false; then :
3086 $as_echo_n "(cached) " >&6
3088 if test -n "$CC"; then
3089 ac_cv_prog_CC="$CC" # Let the user override the test.
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 test -z "$as_dir" && as_dir=.
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3098 ac_cv_prog_CC="${ac_tool_prefix}cc"
3099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3109 if test -n "$CC"; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3111 $as_echo "$CC" >&6; }
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3120 if test -z "$CC"; then
3121 # Extract the first word of "cc", so it can be a program name with args.
3122 set dummy cc; ac_word=$2
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124 $as_echo_n "checking for $ac_word... " >&6; }
3125 if ${ac_cv_prog_CC+:} false; then :
3126 $as_echo_n "(cached) " >&6
3128 if test -n "$CC"; then
3129 ac_cv_prog_CC="$CC" # Let the user override the test.
3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136 test -z "$as_dir" && as_dir=.
3137 for ac_exec_ext in '' $ac_executable_extensions; do
3138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3139 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3140 ac_prog_rejected=yes
3144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3151 if test $ac_prog_rejected = yes; then
3152 # We found a bogon in the path, so make sure we never use it.
3153 set dummy $ac_cv_prog_CC
3155 if test $# != 0; then
3156 # We chose a different compiler from the bogus one.
3157 # However, it has the same basename, so the bogon will be chosen
3158 # first if we set CC to just the basename; use the full file name.
3160 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3166 if test -n "$CC"; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3168 $as_echo "$CC" >&6; }
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3176 if test -z "$CC"; then
3177 if test -n "$ac_tool_prefix"; then
3178 for ac_prog in cl.exe
3180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3181 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183 $as_echo_n "checking for $ac_word... " >&6; }
3184 if ${ac_cv_prog_CC+:} false; then :
3185 $as_echo_n "(cached) " >&6
3187 if test -n "$CC"; then
3188 ac_cv_prog_CC="$CC" # Let the user override the test.
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194 test -z "$as_dir" && as_dir=.
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3197 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3208 if test -n "$CC"; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3210 $as_echo "$CC" >&6; }
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 $as_echo "no" >&6; }
3217 test -n "$CC" && break
3220 if test -z "$CC"; then
3222 for ac_prog in cl.exe
3224 # Extract the first word of "$ac_prog", so it can be a program name with args.
3225 set dummy $ac_prog; ac_word=$2
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3227 $as_echo_n "checking for $ac_word... " >&6; }
3228 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3229 $as_echo_n "(cached) " >&6
3231 if test -n "$ac_ct_CC"; then
3232 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 test -z "$as_dir" && as_dir=.
3239 for ac_exec_ext in '' $ac_executable_extensions; do
3240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3241 ac_cv_prog_ac_ct_CC="$ac_prog"
3242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3251 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3252 if test -n "$ac_ct_CC"; then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3254 $as_echo "$ac_ct_CC" >&6; }
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 $as_echo "no" >&6; }
3261 test -n "$ac_ct_CC" && break
3264 if test "x$ac_ct_CC" = x; then
3267 case $cross_compiling:$ac_tool_warned in
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3271 ac_tool_warned=yes ;;
3280 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3282 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3283 See \
`config.log' for more details" "$LINENO" 5; }
3285 # Provide some information about the compiler.
3286 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3289 for ac_option in --version -v -V -qversion; do
3290 { { ac_try="$ac_compiler $ac_option >&5"
3292 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3293 *) ac_try_echo
=$ac_try;;
3295 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3296 $as_echo "$ac_try_echo"; } >&5
3297 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3299 if test -s conftest.err
; then
3301 ... rest of stderr output deleted ...
3302 10q' conftest.err
>conftest.er1
3303 cat conftest.er1
>&5
3305 rm -f conftest.er1 conftest.err
3306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3307 test $ac_status = 0; }
3310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3311 /* end confdefs.h. */
3321 ac_clean_files_save
=$ac_clean_files
3322 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3323 # Try to create an executable without -o first, disregard a.out.
3324 # It will help us diagnose broken compilers, and finding out an intuition
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3327 $as_echo_n "checking whether the C compiler works... " >&6; }
3328 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3330 # The possible output files:
3331 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3334 for ac_file
in $ac_files
3337 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3338 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3343 if { { ac_try
="$ac_link_default"
3345 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3348 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3349 $as_echo "$ac_try_echo"; } >&5
3350 (eval "$ac_link_default") 2>&5
3352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3353 test $ac_status = 0; }; then :
3354 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3355 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3356 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3357 # so that the user can short-circuit this test for compilers unknown to
3359 for ac_file in $ac_files ''
3361 test -f "$ac_file" || continue
3363 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3366 # We found the default executable, but exeext='' is most
3370 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3372 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3374 # We set ac_cv_exeext here because the later test for it is not
3375 # safe: cross compilers may not add the suffix if given an `-o'
3376 # argument, so we may need to know it at that point already.
3377 # Even if this section looks crufty: it has the advantage of
3384 test "$ac_cv_exeext" = no && ac_cv_exeext=
3389 if test -z "$ac_file"; then :
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3391 $as_echo "no" >&6; }
3392 $as_echo "$as_me: failed program was:" >&5
3393 sed 's
/^
/|
/' conftest.$ac_ext >&5
3395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3397 as_fn_error 77 "C compiler cannot create executables
3398 See \`config.log
' for more details" "$LINENO" 5; }
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3401 $as_echo "yes" >&6; }
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3404 $as_echo_n "checking for C compiler default output file name... " >&6; }
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3406 $as_echo "$ac_file" >&6; }
3407 ac_exeext=$ac_cv_exeext
3409 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3410 ac_clean_files=$ac_clean_files_save
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3412 $as_echo_n "checking for suffix of executables... " >&6; }
3413 if { { ac_try="$ac_link"
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3419 $as_echo "$ac_try_echo"; } >&5
3420 (eval "$ac_link") 2>&5
3422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3423 test $ac_status = 0; }; then :
3424 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3425 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3426 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3428 for ac_file
in conftest.exe conftest conftest.
*; do
3429 test -f "$ac_file" ||
continue
3431 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3432 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3440 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3441 See \`config.log' for more details" "$LINENO" 5; }
3443 rm -f conftest conftest
$ac_cv_exeext
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3445 $as_echo "$ac_cv_exeext" >&6; }
3447 rm -f conftest.
$ac_ext
3448 EXEEXT
=$ac_cv_exeext
3450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3451 /* end confdefs.h. */
3456 FILE *f = fopen ("conftest.out", "w");
3457 return ferror (f) || fclose (f) != 0;
3463 ac_clean_files
="$ac_clean_files conftest.out"
3464 # Check that the compiler produces executables we can run. If not, either
3465 # the compiler is broken, or we cross compile.
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3467 $as_echo_n "checking whether we are cross compiling... " >&6; }
3468 if test "$cross_compiling" != yes; then
3469 { { ac_try
="$ac_link"
3471 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3472 *) ac_try_echo=$ac_try;;
3474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3475 $as_echo "$ac_try_echo"; } >&5
3476 (eval "$ac_link") 2>&5
3478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3479 test $ac_status = 0; }
3480 if { ac_try='./conftest$ac_cv_exeext'
3481 { { case "(($ac_try" in
3482 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3483 *) ac_try_echo
=$ac_try;;
3485 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3486 $as_echo "$ac_try_echo"; } >&5
3487 (eval "$ac_try") 2>&5
3489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3490 test $ac_status = 0; }; }; then
3493 if test "$cross_compiling" = maybe
; then
3496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3498 as_fn_error $?
"cannot run C compiled programs.
3499 If you meant to cross compile, use \`--host'.
3500 See \`config.log' for more details" "$LINENO" 5; }
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3505 $as_echo "$cross_compiling" >&6; }
3507 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3508 ac_clean_files
=$ac_clean_files_save
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3510 $as_echo_n "checking for suffix of object files... " >&6; }
3511 if ${ac_cv_objext+:} false
; then :
3512 $as_echo_n "(cached) " >&6
3514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3515 /* end confdefs.h. */
3525 rm -f conftest.o conftest.obj
3526 if { { ac_try
="$ac_compile"
3528 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3532 $as_echo "$ac_try_echo"; } >&5
3533 (eval "$ac_compile") 2>&5
3535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3536 test $ac_status = 0; }; then :
3537 for ac_file in conftest.o conftest.obj conftest.*; do
3538 test -f "$ac_file" || continue;
3540 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3541 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3546 $as_echo "$as_me: failed program was:" >&5
3547 sed 's/^/| /' conftest.$ac_ext >&5
3549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3551 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3552 See \
`config.log' for more details" "$LINENO" 5; }
3554 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3557 $as_echo "$ac_cv_objext" >&6; }
3558 OBJEXT=$ac_cv_objext
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3561 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3562 if ${ac_cv_c_compiler_gnu+:} false; then :
3563 $as_echo_n "(cached) " >&6
3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566 /* end confdefs.h. */
3579 if ac_fn_c_try_compile "$LINENO"; then :
3584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3589 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3590 if test $ac_compiler_gnu = yes; then
3595 ac_test_CFLAGS=${CFLAGS+set}
3596 ac_save_CFLAGS=$CFLAGS
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3598 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3599 if ${ac_cv_prog_cc_g+:} false; then :
3600 $as_echo_n "(cached) " >&6
3602 ac_save_c_werror_flag=$ac_c_werror_flag
3603 ac_c_werror_flag=yes
3606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607 /* end confdefs.h. */
3617 if ac_fn_c_try_compile "$LINENO"; then :
3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622 /* end confdefs.h. */
3632 if ac_fn_c_try_compile "$LINENO"; then :
3635 ac_c_werror_flag=$ac_save_c_werror_flag
3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638 /* end confdefs.h. */
3648 if ac_fn_c_try_compile "$LINENO"; then :
3651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3656 ac_c_werror_flag=$ac_save_c_werror_flag
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3659 $as_echo "$ac_cv_prog_cc_g" >&6; }
3660 if test "$ac_test_CFLAGS" = set; then
3661 CFLAGS=$ac_save_CFLAGS
3662 elif test $ac_cv_prog_cc_g = yes; then
3663 if test "$GCC" = yes; then
3669 if test "$GCC" = yes; then
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3676 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3677 if ${ac_cv_prog_cc_c89+:} false; then :
3678 $as_echo_n "(cached) " >&6
3680 ac_cv_prog_cc_c89=no
3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683 /* end confdefs.h. */
3687 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3688 struct buf { int x; };
3689 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3690 static char *e (p, i)
3696 static char *f (char * (*g) (char **, int), char **p, ...)
3701 s = g (p, va_arg (v,int));
3706 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3707 function prototypes and stuff, but not '\xHH' hex character constants.
3708 These don't provoke an error unfortunately, instead are silently treated
3709 as 'x'. The following induces an error, until -std is added to get
3710 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3711 array size at least. It's necessary to write '\x00'==0 to get something
3712 that's true only with -std. */
3713 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3715 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3716 inside strings and character constants. */
3718 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3720 int test (int i, double x);
3721 struct s1 {int (*f) (int a);};
3722 struct s2 {int (*f) (double a);};
3723 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3729 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3734 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3735 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3737 CC="$ac_save_CC $ac_arg"
3738 if ac_fn_c_try_compile "$LINENO"; then :
3739 ac_cv_prog_cc_c89=$ac_arg
3741 rm -f core conftest.err conftest.$ac_objext
3742 test "x$ac_cv_prog_cc_c89" != "xno" && break
3744 rm -f conftest.$ac_ext
3749 case "x$ac_cv_prog_cc_c89" in
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3752 $as_echo "none needed" >&6; } ;;
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3755 $as_echo "unsupported" >&6; } ;;
3757 CC="$CC $ac_cv_prog_cc_c89"
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3759 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3761 if test "x$ac_cv_prog_cc_c89" != xno; then :
3766 ac_cpp='$CPP $CPPFLAGS'
3767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3772 ac_cpp='$CXXCPP $CPPFLAGS'
3773 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3774 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3775 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3776 if test -z "$CXX"; then
3777 if test -n "$CCC"; then
3780 if test -n "$ac_tool_prefix"; then
3781 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3783 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3784 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3786 $as_echo_n "checking for $ac_word... " >&6; }
3787 if ${ac_cv_prog_CXX+:} false; then :
3788 $as_echo_n "(cached) " >&6
3790 if test -n "$CXX"; then
3791 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3797 test -z "$as_dir" && as_dir=.
3798 for ac_exec_ext in '' $ac_executable_extensions; do
3799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3800 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3811 if test -n "$CXX"; then
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3813 $as_echo "$CXX" >&6; }
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816 $as_echo "no" >&6; }
3820 test -n "$CXX" && break
3823 if test -z "$CXX"; then
3825 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3827 # Extract the first word of "$ac_prog", so it can be a program name with args.
3828 set dummy $ac_prog; ac_word=$2
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3830 $as_echo_n "checking for $ac_word... " >&6; }
3831 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3832 $as_echo_n "(cached) " >&6
3834 if test -n "$ac_ct_CXX"; then
3835 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3841 test -z "$as_dir" && as_dir=.
3842 for ac_exec_ext in '' $ac_executable_extensions; do
3843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3844 ac_cv_prog_ac_ct_CXX="$ac_prog"
3845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3854 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3855 if test -n "$ac_ct_CXX"; then
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3857 $as_echo "$ac_ct_CXX" >&6; }
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3860 $as_echo "no" >&6; }
3864 test -n "$ac_ct_CXX" && break
3867 if test "x$ac_ct_CXX" = x; then
3870 case $cross_compiling:$ac_tool_warned in
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3874 ac_tool_warned=yes ;;
3882 # Provide some information about the compiler.
3883 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3886 for ac_option in --version -v -V -qversion; do
3887 { { ac_try="$ac_compiler $ac_option >&5"
3889 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3890 *) ac_try_echo
=$ac_try;;
3892 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3893 $as_echo "$ac_try_echo"; } >&5
3894 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3896 if test -s conftest.err
; then
3898 ... rest of stderr output deleted ...
3899 10q' conftest.err
>conftest.er1
3900 cat conftest.er1
>&5
3902 rm -f conftest.er1 conftest.err
3903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3904 test $ac_status = 0; }
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3908 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3909 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3910 $as_echo_n "(cached) " >&6
3912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3913 /* end confdefs.h. */
3926 if ac_fn_cxx_try_compile
"$LINENO"; then :
3931 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3932 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3936 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3937 if test $ac_compiler_gnu = yes; then
3942 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3943 ac_save_CXXFLAGS
=$CXXFLAGS
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3945 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3946 if ${ac_cv_prog_cxx_g+:} false
; then :
3947 $as_echo_n "(cached) " >&6
3949 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3950 ac_cxx_werror_flag
=yes
3953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3964 if ac_fn_cxx_try_compile
"$LINENO"; then :
3965 ac_cv_prog_cxx_g
=yes
3968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3969 /* end confdefs.h. */
3979 if ac_fn_cxx_try_compile
"$LINENO"; then :
3982 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3985 /* end confdefs.h. */
3995 if ac_fn_cxx_try_compile
"$LINENO"; then :
3996 ac_cv_prog_cxx_g
=yes
3998 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4000 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4002 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4003 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4006 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4007 if test "$ac_test_CXXFLAGS" = set; then
4008 CXXFLAGS
=$ac_save_CXXFLAGS
4009 elif test $ac_cv_prog_cxx_g = yes; then
4010 if test "$GXX" = yes; then
4016 if test "$GXX" = yes; then
4023 ac_cpp
='$CPP $CPPFLAGS'
4024 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4025 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4026 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4031 ac_cpp
='$CPP $CPPFLAGS'
4032 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4033 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4034 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4036 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4037 # On Suns, sometimes $CPP names a directory.
4038 if test -n "$CPP" && test -d "$CPP"; then
4041 if test -z "$CPP"; then
4042 if ${ac_cv_prog_CPP+:} false
; then :
4043 $as_echo_n "(cached) " >&6
4045 # Double quotes because CPP needs to be expanded
4046 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4049 for ac_c_preproc_warn_flag
in '' yes
4051 # Use a header file that comes with gcc, so configuring glibc
4052 # with a fresh cross-compiler works.
4053 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4054 # <limits.h> exists even on freestanding compilers.
4055 # On the NeXT, cc -E runs the code through the compiler's parser,
4056 # not just through cpp. "Syntax error" is here to catch this case.
4057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h. */
4060 # include <limits.h>
4062 # include <assert.h>
4066 if ac_fn_c_try_cpp
"$LINENO"; then :
4069 # Broken: fails on valid input.
4072 rm -f conftest.err conftest.i conftest.
$ac_ext
4074 # OK, works on sane cases. Now check whether nonexistent headers
4075 # can be detected and how.
4076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h. */
4078 #include <ac_nonexistent.h>
4080 if ac_fn_c_try_cpp
"$LINENO"; then :
4081 # Broken: success on invalid input.
4084 # Passes both tests.
4088 rm -f conftest.err conftest.i conftest.
$ac_ext
4091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4092 rm -f conftest.i conftest.err conftest.
$ac_ext
4093 if $ac_preproc_ok; then :
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4106 $as_echo "$CPP" >&6; }
4108 for ac_c_preproc_warn_flag
in '' yes
4110 # Use a header file that comes with gcc, so configuring glibc
4111 # with a fresh cross-compiler works.
4112 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4113 # <limits.h> exists even on freestanding compilers.
4114 # On the NeXT, cc -E runs the code through the compiler's parser,
4115 # not just through cpp. "Syntax error" is here to catch this case.
4116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4117 /* end confdefs.h. */
4119 # include <limits.h>
4121 # include <assert.h>
4125 if ac_fn_c_try_cpp
"$LINENO"; then :
4128 # Broken: fails on valid input.
4131 rm -f conftest.err conftest.i conftest.
$ac_ext
4133 # OK, works on sane cases. Now check whether nonexistent headers
4134 # can be detected and how.
4135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4136 /* end confdefs.h. */
4137 #include <ac_nonexistent.h>
4139 if ac_fn_c_try_cpp
"$LINENO"; then :
4140 # Broken: success on invalid input.
4143 # Passes both tests.
4147 rm -f conftest.err conftest.i conftest.
$ac_ext
4150 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4151 rm -f conftest.i conftest.err conftest.
$ac_ext
4152 if $ac_preproc_ok; then :
4155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4157 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4158 See \`config.log' for more details" "$LINENO" 5; }
4162 ac_cpp
='$CPP $CPPFLAGS'
4163 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4164 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4165 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4169 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4170 if ${ac_cv_path_GREP+:} false
; then :
4171 $as_echo_n "(cached) " >&6
4173 if test -z "$GREP"; then
4174 ac_path_GREP_found
=false
4175 # Loop through the user's path and test for each of PROGNAME-LIST
4176 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4177 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4180 test -z "$as_dir" && as_dir
=.
4181 for ac_prog
in grep ggrep
; do
4182 for ac_exec_ext
in '' $ac_executable_extensions; do
4183 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4184 as_fn_executable_p
"$ac_path_GREP" ||
continue
4185 # Check for GNU ac_path_GREP and select it if it is found.
4186 # Check for GNU $ac_path_GREP
4187 case `"$ac_path_GREP" --version 2>&1` in
4189 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4192 $as_echo_n 0123456789 >"conftest.in"
4195 cat "conftest.in" "conftest.in" >"conftest.tmp"
4196 mv "conftest.tmp" "conftest.in"
4197 cp "conftest.in" "conftest.nl"
4198 $as_echo 'GREP' >> "conftest.nl"
4199 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4200 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4201 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4202 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4203 # Best one so far, save it but keep looking for a better one
4204 ac_cv_path_GREP
="$ac_path_GREP"
4205 ac_path_GREP_max
=$ac_count
4207 # 10*(2^10) chars as input seems more than enough
4208 test $ac_count -gt 10 && break
4210 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4213 $ac_path_GREP_found && break 3
4218 if test -z "$ac_cv_path_GREP"; then
4219 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4222 ac_cv_path_GREP
=$GREP
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4227 $as_echo "$ac_cv_path_GREP" >&6; }
4228 GREP
="$ac_cv_path_GREP"
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4232 $as_echo_n "checking for egrep... " >&6; }
4233 if ${ac_cv_path_EGREP+:} false
; then :
4234 $as_echo_n "(cached) " >&6
4236 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4237 then ac_cv_path_EGREP
="$GREP -E"
4239 if test -z "$EGREP"; then
4240 ac_path_EGREP_found
=false
4241 # Loop through the user's path and test for each of PROGNAME-LIST
4242 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4243 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4246 test -z "$as_dir" && as_dir
=.
4247 for ac_prog
in egrep; do
4248 for ac_exec_ext
in '' $ac_executable_extensions; do
4249 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4250 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4251 # Check for GNU ac_path_EGREP and select it if it is found.
4252 # Check for GNU $ac_path_EGREP
4253 case `"$ac_path_EGREP" --version 2>&1` in
4255 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4258 $as_echo_n 0123456789 >"conftest.in"
4261 cat "conftest.in" "conftest.in" >"conftest.tmp"
4262 mv "conftest.tmp" "conftest.in"
4263 cp "conftest.in" "conftest.nl"
4264 $as_echo 'EGREP' >> "conftest.nl"
4265 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4266 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4267 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4268 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4269 # Best one so far, save it but keep looking for a better one
4270 ac_cv_path_EGREP
="$ac_path_EGREP"
4271 ac_path_EGREP_max
=$ac_count
4273 # 10*(2^10) chars as input seems more than enough
4274 test $ac_count -gt 10 && break
4276 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4279 $ac_path_EGREP_found && break 3
4284 if test -z "$ac_cv_path_EGREP"; then
4285 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4288 ac_cv_path_EGREP
=$EGREP
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4294 $as_echo "$ac_cv_path_EGREP" >&6; }
4295 EGREP
="$ac_cv_path_EGREP"
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4299 $as_echo_n "checking for ANSI C header files... " >&6; }
4300 if ${ac_cv_header_stdc+:} false
; then :
4301 $as_echo_n "(cached) " >&6
4303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4304 /* end confdefs.h. */
4318 if ac_fn_c_try_compile
"$LINENO"; then :
4319 ac_cv_header_stdc
=yes
4321 ac_cv_header_stdc
=no
4323 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4325 if test $ac_cv_header_stdc = yes; then
4326 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4328 /* end confdefs.h. */
4332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4333 $EGREP "memchr" >/dev
/null
2>&1; then :
4336 ac_cv_header_stdc
=no
4342 if test $ac_cv_header_stdc = yes; then
4343 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4345 /* end confdefs.h. */
4349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4350 $EGREP "free" >/dev
/null
2>&1; then :
4353 ac_cv_header_stdc
=no
4359 if test $ac_cv_header_stdc = yes; then
4360 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4361 if test "$cross_compiling" = yes; then :
4364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4365 /* end confdefs.h. */
4368 #if ((' ' & 0x0FF) == 0x020)
4369 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4370 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4372 # define ISLOWER(c) \
4373 (('a' <= (c) && (c) <= 'i') \
4374 || ('j' <= (c) && (c) <= 'r') \
4375 || ('s' <= (c) && (c) <= 'z'))
4376 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4379 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4384 for (i = 0; i < 256; i++)
4385 if (XOR (islower (i), ISLOWER (i))
4386 || toupper (i) != TOUPPER (i))
4391 if ac_fn_c_try_run
"$LINENO"; then :
4394 ac_cv_header_stdc
=no
4396 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4397 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4403 $as_echo "$ac_cv_header_stdc" >&6; }
4404 if test $ac_cv_header_stdc = yes; then
4406 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4410 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4411 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4412 inttypes.h stdint.h unistd.h
4414 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4415 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4417 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4418 cat >>confdefs.h
<<_ACEOF
4419 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4428 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4429 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4436 if test "$MINIX" = yes; then
4438 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4441 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4444 $as_echo "#define _MINIX 1" >>confdefs.h
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4450 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4451 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4452 $as_echo_n "(cached) " >&6
4454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h. */
4457 # define __EXTENSIONS__ 1
4458 $ac_includes_default
4467 if ac_fn_c_try_compile
"$LINENO"; then :
4468 ac_cv_safe_to_define___extensions__
=yes
4470 ac_cv_safe_to_define___extensions__
=no
4472 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4475 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4476 test $ac_cv_safe_to_define___extensions__ = yes &&
4477 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4479 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4481 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4483 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4485 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4489 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4490 if test -f "$ac_dir/install-sh"; then
4492 ac_install_sh
="$ac_aux_dir/install-sh -c"
4494 elif test -f "$ac_dir/install.sh"; then
4496 ac_install_sh
="$ac_aux_dir/install.sh -c"
4498 elif test -f "$ac_dir/shtool"; then
4500 ac_install_sh
="$ac_aux_dir/shtool install -c"
4504 if test -z "$ac_aux_dir"; then
4505 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4508 # These three variables are undocumented and unsupported,
4509 # and are intended to be withdrawn in a future Autoconf release.
4510 # They can cause serious problems if a builder's source tree is in a directory
4511 # whose full name contains unusual characters.
4512 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4513 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4514 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4517 # Make sure we can run config.sub.
4518 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4519 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4522 $as_echo_n "checking build system type... " >&6; }
4523 if ${ac_cv_build+:} false
; then :
4524 $as_echo_n "(cached) " >&6
4526 ac_build_alias
=$build_alias
4527 test "x$ac_build_alias" = x
&&
4528 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4529 test "x$ac_build_alias" = x
&&
4530 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4531 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4532 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4536 $as_echo "$ac_cv_build" >&6; }
4537 case $ac_cv_build in
4539 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4542 ac_save_IFS
=$IFS; IFS
='-'
4548 # Remember, the first character of IFS is used to create $*,
4549 # except with old shells:
4552 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4556 $as_echo_n "checking host system type... " >&6; }
4557 if ${ac_cv_host+:} false
; then :
4558 $as_echo_n "(cached) " >&6
4560 if test "x$host_alias" = x
; then
4561 ac_cv_host
=$ac_cv_build
4563 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4564 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4569 $as_echo "$ac_cv_host" >&6; }
4572 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4575 ac_save_IFS
=$IFS; IFS
='-'
4581 # Remember, the first character of IFS is used to create $*,
4582 # except with old shells:
4585 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4589 $as_echo_n "checking target system type... " >&6; }
4590 if ${ac_cv_target+:} false
; then :
4591 $as_echo_n "(cached) " >&6
4593 if test "x$target_alias" = x
; then
4594 ac_cv_target
=$ac_cv_host
4596 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4597 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4602 $as_echo "$ac_cv_target" >&6; }
4603 case $ac_cv_target in
4605 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4607 target
=$ac_cv_target
4608 ac_save_IFS
=$IFS; IFS
='-'
4614 # Remember, the first character of IFS is used to create $*,
4615 # except with old shells:
4618 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4621 # The aliases save the names the user supplied, while $host etc.
4622 # will get canonicalized.
4623 test -n "$target_alias" &&
4624 test "$program_prefix$program_suffix$program_transform_name" = \
4626 program_prefix
=${target_alias}-
4628 # The tests for host and target for $enable_largefile require
4633 # As the $enable_largefile decision depends on --enable-plugins we must set it
4634 # even in directories otherwise not depending on the $plugins option.
4638 for ac_header
in dlfcn.h
4640 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4642 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
4643 cat >>confdefs.h
<<_ACEOF
4644 #define HAVE_DLFCN_H 1
4651 for ac_header
in windows.h
4653 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4655 if test "x$ac_cv_header_windows_h" = xyes
; then :
4656 cat >>confdefs.h
<<_ACEOF
4657 #define HAVE_WINDOWS_H 1
4665 # Check whether --enable-plugins was given.
4666 if test "${enable_plugins+set}" = set; then :
4667 enableval
=$enable_plugins; case "${enableval}" in
4670 if test "$maybe_plugins" != "yes" ; then
4671 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4675 plugins
=$maybe_plugins
4679 if test "$plugins" = "yes"; then
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4681 $as_echo_n "checking for library containing dlsym... " >&6; }
4682 if ${ac_cv_search_dlsym+:} false
; then :
4683 $as_echo_n "(cached) " >&6
4685 ac_func_search_save_LIBS
=$LIBS
4686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4687 /* end confdefs.h. */
4689 /* Override any GCC internal prototype to avoid an error.
4690 Use char because int might match the return type of a GCC
4691 builtin and then its argument prototype would still apply. */
4704 for ac_lib
in '' dl
; do
4705 if test -z "$ac_lib"; then
4706 ac_res
="none required"
4709 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4711 if ac_fn_c_try_link
"$LINENO"; then :
4712 ac_cv_search_dlsym
=$ac_res
4714 rm -f core conftest.err conftest.
$ac_objext \
4716 if ${ac_cv_search_dlsym+:} false
; then :
4720 if ${ac_cv_search_dlsym+:} false
; then :
4723 ac_cv_search_dlsym
=no
4726 LIBS
=$ac_func_search_save_LIBS
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4729 $as_echo "$ac_cv_search_dlsym" >&6; }
4730 ac_res
=$ac_cv_search_dlsym
4731 if test "$ac_res" != no
; then :
4732 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4740 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4741 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4742 # are mutually exclusive; and without procfs support, the bfd/ elf module
4743 # cannot provide certain routines such as elfcore_write_prpsinfo
4744 # or elfcore_write_prstatus. So unless the user explicitly requested
4745 # large-file support through the --enable-largefile switch, disable
4746 # large-file support in favor of procfs support.
4747 test "${target}" = "${host}" -a "x$plugins" = xno \
4748 && : ${enable_largefile="no"}
4752 # Check whether --enable-largefile was given.
4753 if test "${enable_largefile+set}" = set; then :
4754 enableval
=$enable_largefile;
4757 if test "$enable_largefile" != no
; then
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4760 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4761 if ${ac_cv_sys_largefile_CC+:} false
; then :
4762 $as_echo_n "(cached) " >&6
4764 ac_cv_sys_largefile_CC
=no
4765 if test "$GCC" != yes; then
4768 # IRIX 6.2 and later do not support large files by default,
4769 # so use the C compiler's -n32 option if that helps.
4770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4771 /* end confdefs.h. */
4772 #include <sys/types.h>
4773 /* Check that off_t can represent 2**63 - 1 correctly.
4774 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4775 since some C++ compilers masquerading as C compilers
4776 incorrectly reject 9223372036854775807. */
4777 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4778 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4779 && LARGE_OFF_T % 2147483647 == 1)
4789 if ac_fn_c_try_compile
"$LINENO"; then :
4792 rm -f core conftest.err conftest.
$ac_objext
4794 if ac_fn_c_try_compile
"$LINENO"; then :
4795 ac_cv_sys_largefile_CC
=' -n32'; break
4797 rm -f core conftest.err conftest.
$ac_objext
4801 rm -f conftest.
$ac_ext
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4805 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4806 if test "$ac_cv_sys_largefile_CC" != no
; then
4807 CC
=$CC$ac_cv_sys_largefile_CC
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4811 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4812 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4813 $as_echo_n "(cached) " >&6
4816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4818 #include <sys/types.h>
4819 /* Check that off_t can represent 2**63 - 1 correctly.
4820 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4821 since some C++ compilers masquerading as C compilers
4822 incorrectly reject 9223372036854775807. */
4823 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4824 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4825 && LARGE_OFF_T % 2147483647 == 1)
4835 if ac_fn_c_try_compile
"$LINENO"; then :
4836 ac_cv_sys_file_offset_bits
=no
; break
4838 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4840 /* end confdefs.h. */
4841 #define _FILE_OFFSET_BITS 64
4842 #include <sys/types.h>
4843 /* Check that off_t can represent 2**63 - 1 correctly.
4844 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4845 since some C++ compilers masquerading as C compilers
4846 incorrectly reject 9223372036854775807. */
4847 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4848 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4849 && LARGE_OFF_T % 2147483647 == 1)
4859 if ac_fn_c_try_compile
"$LINENO"; then :
4860 ac_cv_sys_file_offset_bits
=64; break
4862 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4863 ac_cv_sys_file_offset_bits
=unknown
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4868 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4869 case $ac_cv_sys_file_offset_bits in #(
4872 cat >>confdefs.h
<<_ACEOF
4873 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4878 if test $ac_cv_sys_file_offset_bits = unknown
; then
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4880 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4881 if ${ac_cv_sys_large_files+:} false
; then :
4882 $as_echo_n "(cached) " >&6
4885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4886 /* end confdefs.h. */
4887 #include <sys/types.h>
4888 /* Check that off_t can represent 2**63 - 1 correctly.
4889 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4890 since some C++ compilers masquerading as C compilers
4891 incorrectly reject 9223372036854775807. */
4892 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4893 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4894 && LARGE_OFF_T % 2147483647 == 1)
4904 if ac_fn_c_try_compile
"$LINENO"; then :
4905 ac_cv_sys_large_files
=no
; break
4907 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4909 /* end confdefs.h. */
4910 #define _LARGE_FILES 1
4911 #include <sys/types.h>
4912 /* Check that off_t can represent 2**63 - 1 correctly.
4913 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4914 since some C++ compilers masquerading as C compilers
4915 incorrectly reject 9223372036854775807. */
4916 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4917 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4918 && LARGE_OFF_T % 2147483647 == 1)
4928 if ac_fn_c_try_compile
"$LINENO"; then :
4929 ac_cv_sys_large_files
=1; break
4931 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4932 ac_cv_sys_large_files
=unknown
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4937 $as_echo "$ac_cv_sys_large_files" >&6; }
4938 case $ac_cv_sys_large_files in #(
4941 cat >>confdefs.h
<<_ACEOF
4942 #define _LARGE_FILES $ac_cv_sys_large_files
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4957 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4958 if ${am_cv_prog_cc_stdc+:} false
; then :
4959 $as_echo_n "(cached) " >&6
4961 am_cv_prog_cc_stdc
=no
4963 # Don't try gcc -ansi; that turns off useful extensions and
4964 # breaks some systems' header files.
4965 # AIX -qlanglvl=ansi
4966 # Ultrix and OSF/1 -std1
4967 # HP-UX 10.20 and later -Ae
4968 # HP-UX older versions -Aa -D_HPUX_SOURCE
4969 # SVR4 -Xc -D__EXTENSIONS__
4970 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4972 CC
="$ac_save_CC $ac_arg"
4973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4974 /* end confdefs.h. */
4977 #include <sys/types.h>
4978 #include <sys/stat.h>
4979 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4980 struct buf { int x; };
4981 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4982 static char *e (p, i)
4988 static char *f (char * (*g) (char **, int), char **p, ...)
4993 s = g (p, va_arg (v,int));
4997 int test (int i, double x);
4998 struct s1 {int (*f) (int a);};
4999 struct s2 {int (*f) (double a);};
5000 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5008 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5014 if ac_fn_c_try_compile
"$LINENO"; then :
5015 am_cv_prog_cc_stdc
="$ac_arg"; break
5017 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5023 if test -z "$am_cv_prog_cc_stdc"; then
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5025 $as_echo "none needed" >&6; }
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
5028 $as_echo "$am_cv_prog_cc_stdc" >&6; }
5030 case "x$am_cv_prog_cc_stdc" in
5032 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
5035 # Expand $ac_aux_dir to an absolute path.
5036 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
5038 if test x
"${install_sh+set}" != xset
; then
5041 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
5043 install_sh
="\${SHELL} $am_aux_dir/install-sh"
5047 # Installed binaries are usually stripped using 'strip' when the user
5048 # run "make install-strip". However 'strip' might not be the right
5049 # tool to use in cross-compilation environments, therefore Automake
5050 # will honor the 'STRIP' environment variable to overrule this program.
5051 if test "$cross_compiling" != no
; then
5052 if test -n "$ac_tool_prefix"; then
5053 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5054 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5056 $as_echo_n "checking for $ac_word... " >&6; }
5057 if ${ac_cv_prog_STRIP+:} false
; then :
5058 $as_echo_n "(cached) " >&6
5060 if test -n "$STRIP"; then
5061 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5063 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5067 test -z "$as_dir" && as_dir
=.
5068 for ac_exec_ext
in '' $ac_executable_extensions; do
5069 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5070 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5080 STRIP
=$ac_cv_prog_STRIP
5081 if test -n "$STRIP"; then
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5083 $as_echo "$STRIP" >&6; }
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086 $as_echo "no" >&6; }
5091 if test -z "$ac_cv_prog_STRIP"; then
5093 # Extract the first word of "strip", so it can be a program name with args.
5094 set dummy strip
; ac_word
=$2
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5096 $as_echo_n "checking for $ac_word... " >&6; }
5097 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
5098 $as_echo_n "(cached) " >&6
5100 if test -n "$ac_ct_STRIP"; then
5101 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5103 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5107 test -z "$as_dir" && as_dir
=.
5108 for ac_exec_ext
in '' $ac_executable_extensions; do
5109 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5110 ac_cv_prog_ac_ct_STRIP
="strip"
5111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5120 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5121 if test -n "$ac_ct_STRIP"; then
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5123 $as_echo "$ac_ct_STRIP" >&6; }
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5126 $as_echo "no" >&6; }
5129 if test "x$ac_ct_STRIP" = x
; then
5132 case $cross_compiling:$ac_tool_warned in
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5136 ac_tool_warned
=yes ;;
5141 STRIP
="$ac_cv_prog_STRIP"
5145 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
5149 for ac_dir
in ..
"$srcdir"/..
; do
5150 if test -f "$ac_dir/install-sh"; then
5152 ac_install_sh
="$ac_aux_dir/install-sh -c"
5154 elif test -f "$ac_dir/install.sh"; then
5156 ac_install_sh
="$ac_aux_dir/install.sh -c"
5158 elif test -f "$ac_dir/shtool"; then
5160 ac_install_sh
="$ac_aux_dir/shtool install -c"
5164 if test -z "$ac_aux_dir"; then
5165 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
5168 # These three variables are undocumented and unsupported,
5169 # and are intended to be withdrawn in a future Autoconf release.
5170 # They can cause serious problems if a builder's source tree is in a directory
5171 # whose full name contains unusual characters.
5172 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5173 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5174 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5178 test "$program_prefix" != NONE
&&
5179 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
5180 # Use a double $ so make ignores it.
5181 test "$program_suffix" != NONE
&&
5182 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
5183 # Double any \ or $.
5184 # By default was `s,x,x', remove it if useless.
5185 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
5186 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
5189 # We require a C++11 compiler. Check if one is available, and if
5190 # necessary, set CXX_DIALECT to some -std=xxx switch.
5192 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5194 ac_cpp
='$CXXCPP $CPPFLAGS'
5195 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5196 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5197 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5201 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5202 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5203 $as_echo_n "(cached) " >&6
5205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5206 /* end confdefs.h. */
5209 // If the compiler admits that it is not ready for C++11, why torture it?
5210 // Hopefully, this will speed up the test.
5214 #error "This is not a C++ compiler"
5216 #elif __cplusplus < 201103L
5218 #error "This is not a C++11 compiler"
5225 namespace test_static_assert
5228 template <typename T>
5231 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5236 namespace test_final_override
5244 struct Derived : public Base
5246 virtual void f() override {}
5251 namespace test_double_right_angle_brackets
5254 template < typename T >
5257 typedef check<void> single_type;
5258 typedef check<check<void>> double_type;
5259 typedef check<check<check<void>>> triple_type;
5260 typedef check<check<check<check<void>>>> quadruple_type;
5264 namespace test_decltype
5277 namespace test_type_deduction
5280 template < typename T1, typename T2 >
5283 static const bool value = false;
5286 template < typename T >
5287 struct is_same<T, T>
5289 static const bool value = true;
5292 template < typename T1, typename T2 >
5294 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5300 test(const int c, volatile int v)
5302 static_assert(is_same<int, decltype(0)>::value == true, "");
5303 static_assert(is_same<int, decltype(c)>::value == false, "");
5304 static_assert(is_same<int, decltype(v)>::value == false, "");
5307 auto sumi = ac + av + 'x';
5308 auto sumf = ac + av + 1.0;
5309 static_assert(is_same<int, decltype(ac)>::value == true, "");
5310 static_assert(is_same<int, decltype(av)>::value == true, "");
5311 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5312 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5313 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5314 return (sumf > 0.0) ? sumi : add(c, v);
5319 namespace test_noexcept
5322 int f() { return 0; }
5323 int g() noexcept { return 0; }
5325 static_assert(noexcept(f()) == false, "");
5326 static_assert(noexcept(g()) == true, "");
5330 namespace test_constexpr
5333 template < typename CharT >
5334 unsigned long constexpr
5335 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5337 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5340 template < typename CharT >
5341 unsigned long constexpr
5342 strlen_c(const CharT *const s) noexcept
5344 return strlen_c_r(s, 0UL);
5347 static_assert(strlen_c("") == 0UL, "");
5348 static_assert(strlen_c("1") == 1UL, "");
5349 static_assert(strlen_c("example") == 7UL, "");
5350 static_assert(strlen_c("another\0example") == 7UL, "");
5354 namespace test_rvalue_references
5360 static constexpr int value = N;
5363 answer<1> f(int&) { return answer<1>(); }
5364 answer<2> f(const int&) { return answer<2>(); }
5365 answer<3> f(int&&) { return answer<3>(); }
5372 static_assert(decltype(f(i))::value == 1, "");
5373 static_assert(decltype(f(c))::value == 2, "");
5374 static_assert(decltype(f(0))::value == 3, "");
5379 namespace test_uniform_initialization
5384 static const int zero {};
5385 static const int one {1};
5388 static_assert(test::zero == 0, "");
5389 static_assert(test::one == 1, "");
5393 namespace test_lambdas
5399 auto lambda1 = [](){};
5400 auto lambda2 = lambda1;
5408 auto a = [](int i, int j){ return i + j; }(1, 2);
5409 auto b = []() -> int { return '0'; }();
5410 auto c = [=](){ return a + b; }();
5411 auto d = [&](){ return c; }();
5412 auto e = [a, &b](int x) mutable {
5413 const auto identity = [](int y){ return y; };
5414 for (auto i = 0; i < a; ++i)
5416 return x + identity(a + b);
5418 return a + b + c + d + e;
5424 const auto nullary = [](){ return 0; };
5425 const auto unary = [](int x){ return x; };
5426 using nullary_t = decltype(nullary);
5427 using unary_t = decltype(unary);
5428 const auto higher1st = [](nullary_t f){ return f(); };
5429 const auto higher2nd = [unary](nullary_t f1){
5430 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5432 return higher1st(nullary) + higher2nd(nullary)(unary);
5437 namespace test_variadic_templates
5443 template <int N0, int... N1toN>
5444 struct sum<N0, N1toN...>
5446 static constexpr auto value = N0 + sum<N1toN...>::value;
5452 static constexpr auto value = 0;
5455 static_assert(sum<>::value == 0, "");
5456 static_assert(sum<1>::value == 1, "");
5457 static_assert(sum<23>::value == 23, "");
5458 static_assert(sum<1, 2>::value == 3, "");
5459 static_assert(sum<5, 5, 11>::value == 21, "");
5460 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5464 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5465 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5467 namespace test_template_alias_sfinae
5472 template<typename T>
5473 using member = typename T::member_type;
5475 template<typename T>
5478 template<typename T>
5479 void func(member<T>*) {}
5483 void test() { func<foo>(0); }
5487 } // namespace cxx11
5489 #endif // __cplusplus >= 201103L
5494 if ac_fn_cxx_try_compile
"$LINENO"; then :
5495 ax_cv_cxx_compile_cxx11
=yes
5497 ax_cv_cxx_compile_cxx11
=no
5499 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5502 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5503 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
5507 if test x
$ac_success = xno
; then
5508 for alternative
in ${ax_cxx_compile_alternatives}; do
5509 switch
="-std=gnu++${alternative}"
5510 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5512 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5513 if eval \
${$cachevar+:} false
; then :
5514 $as_echo_n "(cached) " >&6
5518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5519 /* end confdefs.h. */
5522 // If the compiler admits that it is not ready for C++11, why torture it?
5523 // Hopefully, this will speed up the test.
5527 #error "This is not a C++ compiler"
5529 #elif __cplusplus < 201103L
5531 #error "This is not a C++11 compiler"
5538 namespace test_static_assert
5541 template <typename T>
5544 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5549 namespace test_final_override
5557 struct Derived : public Base
5559 virtual void f() override {}
5564 namespace test_double_right_angle_brackets
5567 template < typename T >
5570 typedef check<void> single_type;
5571 typedef check<check<void>> double_type;
5572 typedef check<check<check<void>>> triple_type;
5573 typedef check<check<check<check<void>>>> quadruple_type;
5577 namespace test_decltype
5590 namespace test_type_deduction
5593 template < typename T1, typename T2 >
5596 static const bool value = false;
5599 template < typename T >
5600 struct is_same<T, T>
5602 static const bool value = true;
5605 template < typename T1, typename T2 >
5607 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5613 test(const int c, volatile int v)
5615 static_assert(is_same<int, decltype(0)>::value == true, "");
5616 static_assert(is_same<int, decltype(c)>::value == false, "");
5617 static_assert(is_same<int, decltype(v)>::value == false, "");
5620 auto sumi = ac + av + 'x';
5621 auto sumf = ac + av + 1.0;
5622 static_assert(is_same<int, decltype(ac)>::value == true, "");
5623 static_assert(is_same<int, decltype(av)>::value == true, "");
5624 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5625 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5626 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5627 return (sumf > 0.0) ? sumi : add(c, v);
5632 namespace test_noexcept
5635 int f() { return 0; }
5636 int g() noexcept { return 0; }
5638 static_assert(noexcept(f()) == false, "");
5639 static_assert(noexcept(g()) == true, "");
5643 namespace test_constexpr
5646 template < typename CharT >
5647 unsigned long constexpr
5648 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5650 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5653 template < typename CharT >
5654 unsigned long constexpr
5655 strlen_c(const CharT *const s) noexcept
5657 return strlen_c_r(s, 0UL);
5660 static_assert(strlen_c("") == 0UL, "");
5661 static_assert(strlen_c("1") == 1UL, "");
5662 static_assert(strlen_c("example") == 7UL, "");
5663 static_assert(strlen_c("another\0example") == 7UL, "");
5667 namespace test_rvalue_references
5673 static constexpr int value = N;
5676 answer<1> f(int&) { return answer<1>(); }
5677 answer<2> f(const int&) { return answer<2>(); }
5678 answer<3> f(int&&) { return answer<3>(); }
5685 static_assert(decltype(f(i))::value == 1, "");
5686 static_assert(decltype(f(c))::value == 2, "");
5687 static_assert(decltype(f(0))::value == 3, "");
5692 namespace test_uniform_initialization
5697 static const int zero {};
5698 static const int one {1};
5701 static_assert(test::zero == 0, "");
5702 static_assert(test::one == 1, "");
5706 namespace test_lambdas
5712 auto lambda1 = [](){};
5713 auto lambda2 = lambda1;
5721 auto a = [](int i, int j){ return i + j; }(1, 2);
5722 auto b = []() -> int { return '0'; }();
5723 auto c = [=](){ return a + b; }();
5724 auto d = [&](){ return c; }();
5725 auto e = [a, &b](int x) mutable {
5726 const auto identity = [](int y){ return y; };
5727 for (auto i = 0; i < a; ++i)
5729 return x + identity(a + b);
5731 return a + b + c + d + e;
5737 const auto nullary = [](){ return 0; };
5738 const auto unary = [](int x){ return x; };
5739 using nullary_t = decltype(nullary);
5740 using unary_t = decltype(unary);
5741 const auto higher1st = [](nullary_t f){ return f(); };
5742 const auto higher2nd = [unary](nullary_t f1){
5743 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5745 return higher1st(nullary) + higher2nd(nullary)(unary);
5750 namespace test_variadic_templates
5756 template <int N0, int... N1toN>
5757 struct sum<N0, N1toN...>
5759 static constexpr auto value = N0 + sum<N1toN...>::value;
5765 static constexpr auto value = 0;
5768 static_assert(sum<>::value == 0, "");
5769 static_assert(sum<1>::value == 1, "");
5770 static_assert(sum<23>::value == 23, "");
5771 static_assert(sum<1, 2>::value == 3, "");
5772 static_assert(sum<5, 5, 11>::value == 21, "");
5773 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5777 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5778 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5780 namespace test_template_alias_sfinae
5785 template<typename T>
5786 using member = typename T::member_type;
5788 template<typename T>
5791 template<typename T>
5792 void func(member<T>*) {}
5796 void test() { func<foo>(0); }
5800 } // namespace cxx11
5802 #endif // __cplusplus >= 201103L
5807 if ac_fn_cxx_try_compile
"$LINENO"; then :
5812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5815 eval ac_res
=\$
$cachevar
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5817 $as_echo "$ac_res" >&6; }
5818 if eval test x\$
$cachevar = xyes
; then
5819 CXX_DIALECT
="$switch"
5826 if test x
$ac_success = xno
; then
5827 for alternative
in ${ax_cxx_compile_alternatives}; do
5828 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5829 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
5831 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
5832 if eval \${$cachevar+:} false; then :
5833 $as_echo_n "(cached
) " >&6
5837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838 /* end confdefs.h. */
5841 // If the compiler admits that it is not ready for C++11, why torture it?
5842 // Hopefully, this will speed up the test.
5846 #error "This is not a C
++ compiler
"
5848 #elif __cplusplus < 201103L
5850 #error "This is not a C
++11 compiler
"
5857 namespace test_static_assert
5860 template <typename T>
5863 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
5868 namespace test_final_override
5876 struct Derived : public Base
5878 virtual void f() override {}
5883 namespace test_double_right_angle_brackets
5886 template < typename T >
5889 typedef check<void> single_type;
5890 typedef check<check<void>> double_type;
5891 typedef check<check<check<void>>> triple_type;
5892 typedef check<check<check<check<void>>>> quadruple_type;
5896 namespace test_decltype
5909 namespace test_type_deduction
5912 template < typename T1, typename T2 >
5915 static const bool value = false;
5918 template < typename T >
5919 struct is_same<T, T>
5921 static const bool value = true;
5924 template < typename T1, typename T2 >
5926 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5932 test(const int c, volatile int v)
5934 static_assert(is_same<int, decltype(0)>::value == true, "");
5935 static_assert(is_same<int, decltype(c)>::value == false, "");
5936 static_assert(is_same<int, decltype(v)>::value == false, "");
5939 auto sumi = ac + av + 'x';
5940 auto sumf = ac + av + 1.0;
5941 static_assert(is_same<int, decltype(ac)>::value == true, "");
5942 static_assert(is_same<int, decltype(av)>::value == true, "");
5943 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5944 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5945 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5946 return (sumf > 0.0) ? sumi : add(c, v);
5951 namespace test_noexcept
5954 int f() { return 0; }
5955 int g() noexcept { return 0; }
5957 static_assert(noexcept(f()) == false, "");
5958 static_assert(noexcept(g()) == true, "");
5962 namespace test_constexpr
5965 template < typename CharT >
5966 unsigned long constexpr
5967 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5969 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5972 template < typename CharT >
5973 unsigned long constexpr
5974 strlen_c(const CharT *const s) noexcept
5976 return strlen_c_r(s, 0UL);
5979 static_assert(strlen_c("") == 0UL, "");
5980 static_assert(strlen_c("1") == 1UL, "");
5981 static_assert(strlen_c("example
") == 7UL, "");
5982 static_assert(strlen_c("another\
0example
") == 7UL, "");
5986 namespace test_rvalue_references
5992 static constexpr int value = N;
5995 answer<1> f(int&) { return answer<1>(); }
5996 answer<2> f(const int&) { return answer<2>(); }
5997 answer<3> f(int&&) { return answer<3>(); }
6004 static_assert(decltype(f(i))::value == 1, "");
6005 static_assert(decltype(f(c))::value == 2, "");
6006 static_assert(decltype(f(0))::value == 3, "");
6011 namespace test_uniform_initialization
6016 static const int zero {};
6017 static const int one {1};
6020 static_assert(test::zero == 0, "");
6021 static_assert(test::one == 1, "");
6025 namespace test_lambdas
6031 auto lambda1 = [](){};
6032 auto lambda2 = lambda1;
6040 auto a = [](int i, int j){ return i + j; }(1, 2);
6041 auto b = []() -> int { return '0'; }();
6042 auto c = [=](){ return a + b; }();
6043 auto d = [&](){ return c; }();
6044 auto e = [a, &b](int x) mutable {
6045 const auto identity = [](int y){ return y; };
6046 for (auto i = 0; i < a; ++i)
6048 return x + identity(a + b);
6050 return a + b + c + d + e;
6056 const auto nullary = [](){ return 0; };
6057 const auto unary = [](int x){ return x; };
6058 using nullary_t = decltype(nullary);
6059 using unary_t = decltype(unary);
6060 const auto higher1st = [](nullary_t f){ return f(); };
6061 const auto higher2nd = [unary](nullary_t f1){
6062 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6064 return higher1st(nullary) + higher2nd(nullary)(unary);
6069 namespace test_variadic_templates
6075 template <int N0, int... N1toN>
6076 struct sum<N0, N1toN...>
6078 static constexpr auto value = N0 + sum<N1toN...>::value;
6084 static constexpr auto value = 0;
6087 static_assert(sum<>::value == 0, "");
6088 static_assert(sum<1>::value == 1, "");
6089 static_assert(sum<23>::value == 23, "");
6090 static_assert(sum<1, 2>::value == 3, "");
6091 static_assert(sum<5, 5, 11>::value == 21, "");
6092 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6096 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6097 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6099 namespace test_template_alias_sfinae
6104 template<typename T>
6105 using member = typename T::member_type;
6107 template<typename T>
6110 template<typename T>
6111 void func(member<T>*) {}
6115 void test() { func<foo>(0); }
6119 } // namespace cxx11
6121 #endif // __cplusplus >= 201103L
6126 if ac_fn_cxx_try_compile "$LINENO"; then :
6131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6134 eval ac_res=\$$cachevar
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6136 $as_echo "$ac_res" >&6; }
6137 if eval test x\$$cachevar = xyes; then
6138 CXX_DIALECT="$switch"
6143 if test x$ac_success = xyes; then
6149 ac_cpp='$CPP $CPPFLAGS'
6150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6154 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6155 if test x$ac_success = xno; then
6156 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6159 if test x$ac_success = xno; then
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6162 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6166 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6173 # Dependency checking.
6174 rm -rf .tst
2>/dev
/null
6175 mkdir .tst
2>/dev
/null
6176 if test -d .tst
; then
6181 rmdir .tst
2>/dev
/null
6183 DEPDIR
="${am__leading_dot}deps"
6185 ac_config_commands
="$ac_config_commands depdir"
6188 depcc
="$CC" am_compiler_list
=
6190 am_depcomp
=$ac_aux_dir/depcomp
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6192 $as_echo_n "checking dependency style of $depcc... " >&6; }
6193 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
6194 $as_echo_n "(cached) " >&6
6196 if test -f "$am_depcomp"; then
6197 # We make a subdir and do the tests there. Otherwise we can end up
6198 # making bogus files that we don't know about and never remove. For
6199 # instance it was reported that on HP-UX the gcc test will end up
6200 # making a dummy file named `D' -- because `-MD' means `put the output
6203 # Copy depcomp to subdir because otherwise we won't find it if we're
6204 # using a relative directory.
6205 cp "$am_depcomp" conftest.dir
6207 # We will build objects and dependencies in a subdirectory because
6208 # it helps to detect inapplicable dependency modes. For instance
6209 # both Tru64's cc and ICC support -MD to output dependencies as a
6210 # side effect of compilation, but ICC will put the dependencies in
6211 # the current directory while Tru64 will put them in the object
6215 am_cv_CC_dependencies_compiler_type
=none
6216 if test "$am_compiler_list" = ""; then
6217 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6219 for depmode
in $am_compiler_list; do
6220 if test $depmode = none
; then break; fi
6222 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6223 # Setup a source with many dependencies, because some compilers
6224 # like to wrap large dependency lists on column 80 (with \), and
6225 # we should not choose a depcomp mode which is confused by this.
6227 # We need to recreate these files for each test, as the compiler may
6228 # overwrite some of them when testing with obscure command lines.
6229 # This happens at least with the AIX C compiler.
6231 for i
in 1 2 3 4 5 6; do
6232 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6233 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6234 # Solaris 8's {/usr,}/bin/sh.
6235 touch sub
/conftst
$i.h
6237 echo "include sub/conftest.Po" > confmf
6239 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6240 # mode. It turns out that the SunPro C++ compiler does not properly
6241 # handle `-M -o', and we need to detect this.
6242 depcmd
="depmode=$depmode \
6243 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6244 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6245 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6246 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
6247 if env
$depcmd > conftest.err
2>&1 &&
6248 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
6249 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
6250 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
6251 # icc doesn't choke on unknown options, it will just issue warnings
6252 # or remarks (even with -Werror). So we grep stderr for any message
6253 # that says an option was ignored or not supported.
6254 # When given -MP, icc 7.0 and 7.1 complain thusly:
6255 # icc: Command line warning: ignoring option '-M'; no argument required
6256 # The diagnosis changed in icc 8.0:
6257 # icc: Command line remark: option '-MP' not supported
6258 if (grep 'ignoring option' conftest.err ||
6259 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6260 am_cv_CC_dependencies_compiler_type
=$depmode
6261 $as_echo "$as_me:$LINENO: success" >&5
6265 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6266 sed -e 's/^/| /' < conftest.err
>&5
6272 am_cv_CC_dependencies_compiler_type
=none
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6277 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6278 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
6279 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
6280 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
6296 # If we haven't got the data from the intl directory,
6297 # assume NLS is disabled.
6306 if test -f ..
/intl
/config.intl
; then
6307 . ..
/intl
/config.intl
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6310 $as_echo_n "checking whether NLS is requested... " >&6; }
6311 if test x
"$USE_NLS" != xyes
; then
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6313 $as_echo "no" >&6; }
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6316 $as_echo "yes" >&6; }
6318 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6322 $as_echo_n "checking for catalogs to be installed... " >&6; }
6323 # Look for .po and .gmo files in the source directory.
6326 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
6327 # If there aren't any .gmo files the shell will give us the
6328 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6330 case "$cat" in *\
**)
6333 # The quadruple backslash is collapsed to a double backslash
6334 # by the backticks, then collapsed again by the double quotes,
6335 # leaving us with one backslash in the sed expression (right
6336 # before the dot that mustn't act as a wildcard).
6337 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6338 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
6339 # The user is allowed to set LINGUAS to a list of languages to
6340 # install catalogs for. If it's empty that means "all of them."
6341 if test "x$LINGUAS" = x
; then
6342 CATALOGS
="$CATALOGS $cat"
6343 XLINGUAS
="$XLINGUAS $lang"
6345 case "$LINGUAS" in *$lang*)
6346 CATALOGS
="$CATALOGS $cat"
6347 XLINGUAS
="$XLINGUAS $lang"
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6354 $as_echo "$LINGUAS" >&6; }
6367 localedir
='${datadir}/locale'
6370 if test x
"$USE_NLS" = xyes
; then
6371 CONFIG_ALL
="$CONFIG_ALL all-po"
6372 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
6373 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
6374 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
6379 cat >>confdefs.h
<<_ACEOF
6380 #define PACKAGE "$PACKAGE"
6385 # We never need to detect it in this sub-configure.
6386 # But preserve it for config.status --recheck.
6390 MAKEINFO_EXTRA_FLAGS
=""
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
6392 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
6393 if ${gdb_cv_have_makeinfo_click+:} false
; then :
6394 $as_echo_n "(cached) " >&6
6396 echo '@clicksequence{a @click{} b}' >conftest.texinfo
6397 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
6398 gdb_cv_have_makeinfo_click
=yes
6400 gdb_cv_have_makeinfo_click
=no
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
6404 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
6405 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
6406 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
6412 # Check whether --with-separate-debug-dir was given.
6413 if test "${with_separate_debug_dir+set}" = set; then :
6414 withval
=$with_separate_debug_dir;
6417 DEBUGDIR
=${libdir}/debug
6421 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6422 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6423 ac_define_dir
=`eval echo $DEBUGDIR`
6424 ac_define_dir
=`eval echo $ac_define_dir`
6426 cat >>confdefs.h
<<_ACEOF
6427 #define DEBUGDIR "$ac_define_dir"
6433 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6434 if test "x$prefix" = xNONE
; then
6435 test_prefix
=/usr
/local
6440 test_prefix
=$exec_prefix
6443 case ${ac_define_dir} in
6444 "${test_prefix}"|
"${test_prefix}/"*|\
6445 '${exec_prefix}'|
'${exec_prefix}/'*)
6450 cat >>confdefs.h
<<_ACEOF
6451 #define DEBUGDIR_RELOCATABLE $value
6457 # We can't pass paths as command line arguments.
6458 # Mingw32 tries to be clever and will convert the paths for us.
6459 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
6460 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
6461 # This breaks GDB's relocatable path conversions since paths passed in
6462 # config.h would not get so translated, the path prefixes no longer match.
6464 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6465 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6466 ac_define_dir
=`eval echo $bindir`
6467 ac_define_dir
=`eval echo $ac_define_dir`
6469 cat >>confdefs.h
<<_ACEOF
6470 #define BINDIR "$ac_define_dir"
6475 # GDB's datadir relocation
6479 # Check whether --with-gdb-datadir was given.
6480 if test "${with_gdb_datadir+set}" = set; then :
6481 withval
=$with_gdb_datadir;
6482 GDB_DATADIR
=$withval
6484 GDB_DATADIR
=${datadir}/gdb
6488 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6489 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6490 ac_define_dir
=`eval echo $GDB_DATADIR`
6491 ac_define_dir
=`eval echo $ac_define_dir`
6493 cat >>confdefs.h
<<_ACEOF
6494 #define GDB_DATADIR "$ac_define_dir"
6500 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6501 if test "x$prefix" = xNONE
; then
6502 test_prefix
=/usr
/local
6507 test_prefix
=$exec_prefix
6510 case ${ac_define_dir} in
6511 "${test_prefix}"|
"${test_prefix}/"*|\
6512 '${exec_prefix}'|
'${exec_prefix}/'*)
6517 cat >>confdefs.h
<<_ACEOF
6518 #define GDB_DATADIR_RELOCATABLE $value
6525 # Check whether --with-relocated-sources was given.
6526 if test "${with_relocated_sources+set}" = set; then :
6527 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
6529 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6530 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6531 ac_define_dir
=`eval echo $reloc_srcdir`
6532 ac_define_dir
=`eval echo $ac_define_dir`
6534 cat >>confdefs.h
<<_ACEOF
6535 #define RELOC_SRCDIR "$ac_define_dir"
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
6544 $as_echo_n "checking for default auto-load directory... " >&6; }
6546 # Check whether --with-auto-load-dir was given.
6547 if test "${with_auto_load_dir+set}" = set; then :
6548 withval
=$with_auto_load_dir;
6550 with_auto_load_dir
='$debugdir:$datadir/auto-load'
6553 escape_dir
=`echo $with_auto_load_dir | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6555 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6556 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6557 ac_define_dir
=`eval echo $escape_dir`
6558 ac_define_dir
=`eval echo $ac_define_dir`
6560 cat >>confdefs.h
<<_ACEOF
6561 #define AUTO_LOAD_DIR "$ac_define_dir"
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
6566 $as_echo "$with_auto_load_dir" >&6; }
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
6569 $as_echo_n "checking for default auto-load safe-path... " >&6; }
6571 # Check whether --with-auto-load-safe-path was given.
6572 if test "${with_auto_load_safe_path+set}" = set; then :
6573 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
6574 with_auto_load_safe_path
="/"
6577 with_auto_load_safe_path
="$with_auto_load_dir"
6580 escape_dir
=`echo $with_auto_load_safe_path | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6582 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6583 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6584 ac_define_dir
=`eval echo $escape_dir`
6585 ac_define_dir
=`eval echo $ac_define_dir`
6587 cat >>confdefs.h
<<_ACEOF
6588 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
6593 $as_echo "$with_auto_load_safe_path" >&6; }
6597 subdirs
="$subdirs testsuite"
6600 # Check whether to support alternative target configurations
6601 # Check whether --enable-targets was given.
6602 if test "${enable_targets+set}" = set; then :
6603 enableval
=$enable_targets; case "${enableval}" in
6604 yes |
"") as_fn_error $?
"enable-targets option must specify target names or 'all'" "$LINENO" 5
6606 no
) enable_targets
= ;;
6607 *) enable_targets
=$enableval ;;
6612 # Check whether to enable 64-bit support on 32-bit hosts
6613 # Check whether --enable-64-bit-bfd was given.
6614 if test "${enable_64_bit_bfd+set}" = set; then :
6615 enableval
=$enable_64_bit_bfd; case "${enableval}" in
6618 *) as_fn_error $?
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
6624 # Provide defaults for some variables set by the per-host and per-target
6626 gdb_host_obs
=posix-hdep.o
6628 if test "${target}" = "${host}"; then
6634 .
$srcdir/configure.
host
6636 # Accumulate some settings from configure.tgt over all enabled targets
6640 HAVE_NATIVE_GCORE_TARGET
=
6642 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6644 if test "$targ_alias" = "all"; then
6647 # Canonicalize the secondary target names.
6648 result
=`$ac_config_sub $targ_alias 2>/dev/null`
6649 if test -n "$result"; then
6655 .
${srcdir}/configure.tgt
6657 if test -z "${gdb_target_obs}"; then :
6658 as_fn_error $?
"configuration ${targ} is unsupported." "$LINENO" 5
6661 # Target-specific object files
6662 for i
in ${gdb_target_obs}; do
6663 case " $TARGET_OBS " in
6666 TARGET_OBS
="$TARGET_OBS ${i}"
6671 # Check whether this target needs 64-bit CORE_ADDR
6672 if test x
${want64} = xfalse
; then
6673 .
${srcdir}/..
/bfd
/config.bfd
6676 # Check whether this target is native and supports gcore.
6677 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
6678 && $gdb_have_gcore; then
6679 HAVE_NATIVE_GCORE_TARGET
=1
6684 if test x
${all_targets} = xtrue
; then
6686 # We want all 64-bit targets if we either:
6687 # - run on a 64-bit host or
6688 # - already require 64-bit support for some other target or
6689 # - the --enable-64-bit-bfd option was supplied
6690 # Otherwise we only support all 32-bit targets.
6692 # NOTE: This test must be in sync with the corresponding
6695 if test x
${want64} = xfalse
; then
6696 # The cast to long int works around a bug in the HP C Compiler
6697 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6698 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6699 # This bug is HP SR number 8606223364.
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6701 $as_echo_n "checking size of long... " >&6; }
6702 if ${ac_cv_sizeof_long+:} false
; then :
6703 $as_echo_n "(cached) " >&6
6705 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6708 if test "$ac_cv_type_long" = yes; then
6709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6711 as_fn_error
77 "cannot compute sizeof (long)
6712 See \`config.log' for more details" "$LINENO" 5; }
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6720 $as_echo "$ac_cv_sizeof_long" >&6; }
6724 cat >>confdefs.h
<<_ACEOF
6725 #define SIZEOF_LONG $ac_cv_sizeof_long
6729 if test "x${ac_cv_sizeof_long}" = "x8"; then
6733 if test x
${want64} = xtrue
; then
6734 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
6736 TARGET_OBS
='$(ALL_TARGET_OBS)'
6740 # ROCm dbgapi support.
6743 # Check whether --with-rocm-dbgapi was given.
6744 if test "${with_rocm_dbgapi+set}" = set; then :
6745 withval
=$with_rocm_dbgapi;
6747 with_rocm_dbgapi
=/opt
/rocm
6751 save_CPPFLAGS
=${CPPFLAGS}
6752 CPPFLAGS
="${CPPFLAGS} -I$with_rocm_dbgapi/include"
6753 for ac_header
in amd-dbgapi.h
6755 ac_fn_c_check_header_mongrel
"$LINENO" "amd-dbgapi.h" "ac_cv_header_amd_dbgapi_h" "$ac_includes_default"
6756 if test "x$ac_cv_header_amd_dbgapi_h" = xyes
; then :
6757 cat >>confdefs.h
<<_ACEOF
6758 #define HAVE_AMD_DBGAPI_H 1
6765 CPPFLAGS
=${save_CPPFLAGS}
6768 save_LDFLAGS
=${LDFLAGS}
6769 LDFLAGS
="${LDFLAGS} -L$with_rocm_dbgapi/lib"
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for amd_dbgapi_initialize in -lrocm-dbgapi" >&5
6771 $as_echo_n "checking for amd_dbgapi_initialize in -lrocm-dbgapi... " >&6; }
6772 if ${ac_cv_lib_rocm_dbgapi_amd_dbgapi_initialize+:} false
; then :
6773 $as_echo_n "(cached) " >&6
6775 ac_check_lib_save_LIBS
=$LIBS
6776 LIBS
="-lrocm-dbgapi $LIBS"
6777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h. */
6780 /* Override any GCC internal prototype to avoid an error.
6781 Use char because int might match the return type of a GCC
6782 builtin and then its argument prototype would still apply. */
6786 char amd_dbgapi_initialize ();
6790 return amd_dbgapi_initialize ();
6795 if ac_fn_c_try_link
"$LINENO"; then :
6796 ac_cv_lib_rocm_dbgapi_amd_dbgapi_initialize
=yes
6798 ac_cv_lib_rocm_dbgapi_amd_dbgapi_initialize
=no
6800 rm -f core conftest.err conftest.
$ac_objext \
6801 conftest
$ac_exeext conftest.
$ac_ext
6802 LIBS
=$ac_check_lib_save_LIBS
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rocm_dbgapi_amd_dbgapi_initialize" >&5
6805 $as_echo "$ac_cv_lib_rocm_dbgapi_amd_dbgapi_initialize" >&6; }
6806 if test "x$ac_cv_lib_rocm_dbgapi_amd_dbgapi_initialize" = xyes
; then :
6807 cat >>confdefs.h
<<_ACEOF
6808 #define HAVE_LIBROCM_DBGAPI 1
6811 LIBS
="-lrocm-dbgapi $LIBS"
6815 LDFLAGS
=${save_LDFLAGS}
6818 if test x
"$ac_cv_header_amd_dbgapi_h" = xyes \
6819 -a x
"$ac_cv_lib_rocm_dbgapi_amd_dbgapi_initialize" = xyes
; then
6821 if test x
"$require_rocm_dbgapi" = xyes
-o x
"$all_targets" = xtrue
; then
6822 TARGET_OBS
="$TARGET_OBS amdgcn-rocm-tdep.o rocm-tdep.o solib-rocm.o"
6825 CPPFLAGS
="${CPPFLAGS} -I$with_rocm_dbgapi/include"
6826 ROCM_DBGAPI_LIBS
="-L$with_rocm_dbgapi/lib -lrocm-dbgapi"
6829 if test x
"$require_rocm_dbgapi" = xyes
; then
6830 as_fn_error $?
"amdgcn*-*-* requires rocm-dbgapi to be installed, or use \
6831 --with-rocm-dbgapi=PATH" "$LINENO" 5
6838 # For other settings, only the main target counts.
6842 targ
=$target; .
${srcdir}/configure.tgt
6844 # Fetch the default architecture and default target vector from BFD.
6845 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
6847 # We only want the first architecture, so strip off the others if
6848 # there is more than one.
6849 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
6851 if test "x$targ_archs" != x
; then
6853 cat >>confdefs.h
<<_ACEOF
6854 #define DEFAULT_BFD_ARCH $targ_archs
6858 if test "x$targ_defvec" != x
; then
6860 cat >>confdefs.h
<<_ACEOF
6861 #define DEFAULT_BFD_VEC $targ_defvec
6867 # Check whether --enable-gdbmi was given.
6868 if test "${enable_gdbmi+set}" = set; then :
6869 enableval
=$enable_gdbmi; case $enableval in
6873 as_fn_error $?
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
6879 if test x
"$enable_gdbmi" = xyes
; then
6880 if test -d "$srcdir/mi"; then
6881 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6882 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6883 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6884 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6889 # Check whether --enable-tui was given.
6890 if test "${enable_tui+set}" = set; then :
6891 enableval
=$enable_tui; case $enableval in
6895 as_fn_error $?
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
6903 # Check whether --enable-gdbtk was given.
6904 if test "${enable_gdbtk+set}" = set; then :
6905 enableval
=$enable_gdbtk; case $enableval in
6909 as_fn_error $?
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
6912 if test -d "$srcdir/gdbtk"; then
6919 # We unconditionally disable gdbtk tests on selected platforms.
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
6923 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6927 # Libunwind support for ia64.
6930 # Check whether --with-libunwind-ia64 was given.
6931 if test "${with_libunwind_ia64+set}" = set; then :
6932 withval
=$with_libunwind_ia64;
6934 with_libunwind_ia64
=auto
6938 # Backward compatibility option.
6939 if test "${with_libunwind+set}" = set; then
6940 if test x
"$with_libunwind_ia64" != xauto
; then
6941 as_fn_error $?
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
6944 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
6945 with_libunwind_ia64
="$with_libunwind"
6948 case "$with_libunwind_ia64" in
6952 for ac_header
in libunwind-ia64.h
6954 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
6955 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
6956 cat >>confdefs.h
<<_ACEOF
6957 #define HAVE_LIBUNWIND_IA64_H 1
6964 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
6967 as_fn_error $?
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
6971 if test x
"$with_libunwind_ia64" = xyes
; then
6972 for ac_header
in libunwind-ia64.h
6974 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
6975 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
6976 cat >>confdefs.h
<<_ACEOF
6977 #define HAVE_LIBUNWIND_IA64_H 1
6984 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
6985 as_fn_error $?
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
6987 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
6988 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
6989 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
6994 # Check whether --with-curses was given.
6995 if test "${with_curses+set}" = set; then :
6996 withval
=$with_curses; opt_curses
=$withval
7001 if test "$opt_curses" = "yes"; then
7005 # Profiling support.
7006 # Check whether --enable-profiling was given.
7007 if test "${enable_profiling+set}" = set; then :
7008 enableval
=$enable_profiling; case $enableval in
7012 as_fn_error $?
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
7019 for ac_func
in monstartup _mcleanup
7021 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7022 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7023 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7024 cat >>confdefs.h
<<_ACEOF
7025 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
7032 $as_echo_n "checking for _etext... " >&6; }
7033 if ${ac_cv_var__etext+:} false
; then :
7034 $as_echo_n "(cached) " >&6
7036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7037 /* end confdefs.h. */
7049 if ac_fn_c_try_link
"$LINENO"; then :
7050 ac_cv_var__etext
=yes
7054 rm -f core conftest.err conftest.
$ac_objext \
7055 conftest
$ac_exeext conftest.
$ac_ext
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
7058 $as_echo "$ac_cv_var__etext" >&6; }
7059 if test "$ac_cv_var__etext" = yes; then
7061 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
7065 $as_echo_n "checking for etext... " >&6; }
7066 if ${ac_cv_var_etext+:} false
; then :
7067 $as_echo_n "(cached) " >&6
7069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7070 /* end confdefs.h. */
7082 if ac_fn_c_try_link
"$LINENO"; then :
7087 rm -f core conftest.err conftest.
$ac_objext \
7088 conftest
$ac_exeext conftest.
$ac_ext
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
7091 $as_echo "$ac_cv_var_etext" >&6; }
7092 if test "$ac_cv_var_etext" = yes; then
7094 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
7097 if test "$enable_profiling" = yes ; then
7098 if test "$ac_cv_func_monstartup" = no ||
test "$ac_cv_func__mcleanup" = no
; then
7099 as_fn_error $?
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
7102 OLD_CFLAGS
="$CFLAGS"
7103 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
7106 $as_echo_n "checking whether $CC supports -pg... " >&6; }
7107 if ${ac_cv_cc_supports_pg+:} false
; then :
7108 $as_echo_n "(cached) " >&6
7110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7111 /* end confdefs.h. */
7121 if ac_fn_c_try_compile
"$LINENO"; then :
7122 ac_cv_cc_supports_pg
=yes
7124 ac_cv_cc_supports_pg
=no
7126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
7129 $as_echo "$ac_cv_cc_supports_pg" >&6; }
7131 if test "$ac_cv_cc_supports_pg" = no
; then
7132 as_fn_error $?
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
7135 CFLAGS
="$OLD_CFLAGS"
7139 # Check whether --enable-codesign was given.
7140 if test "${enable_codesign+set}" = set; then :
7141 enableval
=$enable_codesign; CODESIGN_CERT
=$enableval
7148 # Check whether --with-pkgversion was given.
7149 if test "${with_pkgversion+set}" = set; then :
7150 withval
=$with_pkgversion; case "$withval" in
7151 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
7153 *) PKGVERSION
="($withval) " ;;
7164 # Check whether --with-bugurl was given.
7165 if test "${with_bugurl+set}" = set; then :
7166 withval
=$with_bugurl; case "$withval" in
7167 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
7170 *) BUGURL
="$withval"
7174 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
7184 REPORT_BUGS_TO
="<$BUGURL>"
7185 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7192 cat >>confdefs.h
<<_ACEOF
7193 #define PKGVERSION "$PKGVERSION"
7197 cat >>confdefs.h
<<_ACEOF
7198 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7202 # --------------------- #
7203 # Checks for programs. #
7204 # --------------------- #
7206 for ac_prog
in gawk mawk nawk
awk
7208 # Extract the first word of "$ac_prog", so it can be a program name with args.
7209 set dummy
$ac_prog; ac_word
=$2
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7211 $as_echo_n "checking for $ac_word... " >&6; }
7212 if ${ac_cv_prog_AWK+:} false
; then :
7213 $as_echo_n "(cached) " >&6
7215 if test -n "$AWK"; then
7216 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7218 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7222 test -z "$as_dir" && as_dir
=.
7223 for ac_exec_ext
in '' $ac_executable_extensions; do
7224 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7225 ac_cv_prog_AWK
="$ac_prog"
7226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7236 if test -n "$AWK"; then
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7238 $as_echo "$AWK" >&6; }
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7241 $as_echo "no" >&6; }
7245 test -n "$AWK" && break
7248 # Find a good install program. We prefer a C program (faster),
7249 # so one script is as good as another. But avoid the broken or
7250 # incompatible versions:
7251 # SysV /etc/install, /usr/sbin/install
7252 # SunOS /usr/etc/install
7253 # IRIX /sbin/install
7255 # AmigaOS /C/install, which installs bootblocks on floppy discs
7256 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7257 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7258 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7259 # OS/2's system install, which has a completely different semantic
7260 # ./install, which can be erroneously created by make from ./install.sh.
7261 # Reject install programs that cannot install multiple files.
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7263 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7264 if test -z "$INSTALL"; then
7265 if ${ac_cv_path_install+:} false
; then :
7266 $as_echo_n "(cached) " >&6
7268 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7272 test -z "$as_dir" && as_dir
=.
7273 # Account for people who put trailing slashes in PATH elements.
7274 case $as_dir/ in #((
7275 .
/ | .
// |
/[cC
]/* | \
7276 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7277 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
7280 # OSF1 and SCO ODT 3.0 have their own names for install.
7281 # Don't use installbsd from OSF since it installs stuff as root
7283 for ac_prog
in ginstall scoinst
install; do
7284 for ac_exec_ext
in '' $ac_executable_extensions; do
7285 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
7286 if test $ac_prog = install &&
7287 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7288 # AIX install. It has an incompatible calling convention.
7290 elif test $ac_prog = install &&
7291 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7292 # program-specific install script used by HP pwplus--don't use.
7295 rm -rf conftest.one conftest.two conftest.dir
7296 echo one
> conftest.one
7297 echo two
> conftest.two
7299 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
7300 test -s conftest.one
&& test -s conftest.two
&&
7301 test -s conftest.dir
/conftest.one
&&
7302 test -s conftest.dir
/conftest.two
7304 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7317 rm -rf conftest.one conftest.two conftest.dir
7320 if test "${ac_cv_path_install+set}" = set; then
7321 INSTALL
=$ac_cv_path_install
7323 # As a last resort, use the slow shell script. Don't cache a
7324 # value for INSTALL within a source directory, because that will
7325 # break other packages using the cache if that directory is
7326 # removed, or if the value is a relative name.
7327 INSTALL
=$ac_install_sh
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7331 $as_echo "$INSTALL" >&6; }
7333 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7334 # It thinks the first close brace ends the variable substitution.
7335 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7337 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7339 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7342 $as_echo_n "checking whether ln -s works... " >&6; }
7344 if test "$LN_S" = "ln -s"; then
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7346 $as_echo "yes" >&6; }
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7349 $as_echo "no, using $LN_S" >&6; }
7352 if test -n "$ac_tool_prefix"; then
7353 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7354 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7356 $as_echo_n "checking for $ac_word... " >&6; }
7357 if ${ac_cv_prog_RANLIB+:} false
; then :
7358 $as_echo_n "(cached) " >&6
7360 if test -n "$RANLIB"; then
7361 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7363 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7367 test -z "$as_dir" && as_dir
=.
7368 for ac_exec_ext
in '' $ac_executable_extensions; do
7369 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7370 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7380 RANLIB
=$ac_cv_prog_RANLIB
7381 if test -n "$RANLIB"; then
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7383 $as_echo "$RANLIB" >&6; }
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7386 $as_echo "no" >&6; }
7391 if test -z "$ac_cv_prog_RANLIB"; then
7392 ac_ct_RANLIB
=$RANLIB
7393 # Extract the first word of "ranlib", so it can be a program name with args.
7394 set dummy ranlib
; ac_word
=$2
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7396 $as_echo_n "checking for $ac_word... " >&6; }
7397 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
7398 $as_echo_n "(cached) " >&6
7400 if test -n "$ac_ct_RANLIB"; then
7401 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7403 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7407 test -z "$as_dir" && as_dir
=.
7408 for ac_exec_ext
in '' $ac_executable_extensions; do
7409 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7410 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7420 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7421 if test -n "$ac_ct_RANLIB"; then
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7423 $as_echo "$ac_ct_RANLIB" >&6; }
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7426 $as_echo "no" >&6; }
7429 if test "x$ac_ct_RANLIB" = x
; then
7432 case $cross_compiling:$ac_tool_warned in
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7436 ac_tool_warned
=yes ;;
7438 RANLIB
=$ac_ct_RANLIB
7441 RANLIB
="$ac_cv_prog_RANLIB"
7444 for ac_prog
in 'bison -y' byacc
7446 # Extract the first word of "$ac_prog", so it can be a program name with args.
7447 set dummy
$ac_prog; ac_word
=$2
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7449 $as_echo_n "checking for $ac_word... " >&6; }
7450 if ${ac_cv_prog_YACC+:} false
; then :
7451 $as_echo_n "(cached) " >&6
7453 if test -n "$YACC"; then
7454 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
7456 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7460 test -z "$as_dir" && as_dir
=.
7461 for ac_exec_ext
in '' $ac_executable_extensions; do
7462 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7463 ac_cv_prog_YACC
="$ac_prog"
7464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7473 YACC
=$ac_cv_prog_YACC
7474 if test -n "$YACC"; then
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7476 $as_echo "$YACC" >&6; }
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7479 $as_echo "no" >&6; }
7483 test -n "$YACC" && break
7485 test -n "$YACC" || YACC
="yacc"
7488 if test -n "$ac_tool_prefix"; then
7489 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7490 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7492 $as_echo_n "checking for $ac_word... " >&6; }
7493 if ${ac_cv_prog_AR+:} false
; then :
7494 $as_echo_n "(cached) " >&6
7496 if test -n "$AR"; then
7497 ac_cv_prog_AR
="$AR" # Let the user override the test.
7499 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7503 test -z "$as_dir" && as_dir
=.
7504 for ac_exec_ext
in '' $ac_executable_extensions; do
7505 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7506 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7517 if test -n "$AR"; then
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7519 $as_echo "$AR" >&6; }
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7522 $as_echo "no" >&6; }
7527 if test -z "$ac_cv_prog_AR"; then
7529 # Extract the first word of "ar", so it can be a program name with args.
7530 set dummy
ar; ac_word
=$2
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7532 $as_echo_n "checking for $ac_word... " >&6; }
7533 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
7534 $as_echo_n "(cached) " >&6
7536 if test -n "$ac_ct_AR"; then
7537 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7539 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7543 test -z "$as_dir" && as_dir
=.
7544 for ac_exec_ext
in '' $ac_executable_extensions; do
7545 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7546 ac_cv_prog_ac_ct_AR
="ar"
7547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7556 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7557 if test -n "$ac_ct_AR"; then
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7559 $as_echo "$ac_ct_AR" >&6; }
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7562 $as_echo "no" >&6; }
7565 if test "x$ac_ct_AR" = x
; then
7568 case $cross_compiling:$ac_tool_warned in
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7571 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7572 ac_tool_warned
=yes ;;
7580 if test -n "$ac_tool_prefix"; then
7581 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7582 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7584 $as_echo_n "checking for $ac_word... " >&6; }
7585 if ${ac_cv_prog_DLLTOOL+:} false
; then :
7586 $as_echo_n "(cached) " >&6
7588 if test -n "$DLLTOOL"; then
7589 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
7591 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7595 test -z "$as_dir" && as_dir
=.
7596 for ac_exec_ext
in '' $ac_executable_extensions; do
7597 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7598 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
7599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7608 DLLTOOL
=$ac_cv_prog_DLLTOOL
7609 if test -n "$DLLTOOL"; then
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7611 $as_echo "$DLLTOOL" >&6; }
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7614 $as_echo "no" >&6; }
7619 if test -z "$ac_cv_prog_DLLTOOL"; then
7620 ac_ct_DLLTOOL
=$DLLTOOL
7621 # Extract the first word of "dlltool", so it can be a program name with args.
7622 set dummy dlltool
; ac_word
=$2
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7624 $as_echo_n "checking for $ac_word... " >&6; }
7625 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
7626 $as_echo_n "(cached) " >&6
7628 if test -n "$ac_ct_DLLTOOL"; then
7629 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
7631 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7635 test -z "$as_dir" && as_dir
=.
7636 for ac_exec_ext
in '' $ac_executable_extensions; do
7637 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7638 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
7639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7648 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
7649 if test -n "$ac_ct_DLLTOOL"; then
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7651 $as_echo "$ac_ct_DLLTOOL" >&6; }
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7654 $as_echo "no" >&6; }
7657 if test "x$ac_ct_DLLTOOL" = x
; then
7660 case $cross_compiling:$ac_tool_warned in
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7664 ac_tool_warned
=yes ;;
7666 DLLTOOL
=$ac_ct_DLLTOOL
7669 DLLTOOL
="$ac_cv_prog_DLLTOOL"
7672 if test -n "$ac_tool_prefix"; then
7673 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7674 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7676 $as_echo_n "checking for $ac_word... " >&6; }
7677 if ${ac_cv_prog_WINDRES+:} false
; then :
7678 $as_echo_n "(cached) " >&6
7680 if test -n "$WINDRES"; then
7681 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
7683 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7687 test -z "$as_dir" && as_dir
=.
7688 for ac_exec_ext
in '' $ac_executable_extensions; do
7689 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7690 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
7691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7700 WINDRES
=$ac_cv_prog_WINDRES
7701 if test -n "$WINDRES"; then
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7703 $as_echo "$WINDRES" >&6; }
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7706 $as_echo "no" >&6; }
7711 if test -z "$ac_cv_prog_WINDRES"; then
7712 ac_ct_WINDRES
=$WINDRES
7713 # Extract the first word of "windres", so it can be a program name with args.
7714 set dummy windres
; ac_word
=$2
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7716 $as_echo_n "checking for $ac_word... " >&6; }
7717 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
7718 $as_echo_n "(cached) " >&6
7720 if test -n "$ac_ct_WINDRES"; then
7721 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
7723 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7727 test -z "$as_dir" && as_dir
=.
7728 for ac_exec_ext
in '' $ac_executable_extensions; do
7729 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7730 ac_cv_prog_ac_ct_WINDRES
="windres"
7731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7740 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
7741 if test -n "$ac_ct_WINDRES"; then
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7743 $as_echo "$ac_ct_WINDRES" >&6; }
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746 $as_echo "no" >&6; }
7749 if test "x$ac_ct_WINDRES" = x
; then
7752 case $cross_compiling:$ac_tool_warned in
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7756 ac_tool_warned
=yes ;;
7758 WINDRES
=$ac_ct_WINDRES
7761 WINDRES
="$ac_cv_prog_WINDRES"
7767 # Needed for GNU Hurd hosts.
7768 if test -n "$ac_tool_prefix"; then
7769 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7770 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7772 $as_echo_n "checking for $ac_word... " >&6; }
7773 if ${ac_cv_prog_MIG+:} false
; then :
7774 $as_echo_n "(cached) " >&6
7776 if test -n "$MIG"; then
7777 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
7779 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7783 test -z "$as_dir" && as_dir
=.
7784 for ac_exec_ext
in '' $ac_executable_extensions; do
7785 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7786 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
7787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7797 if test -n "$MIG"; then
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
7799 $as_echo "$MIG" >&6; }
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 $as_echo "no" >&6; }
7807 if test -z "$ac_cv_prog_MIG"; then
7809 # Extract the first word of "mig", so it can be a program name with args.
7810 set dummy mig
; ac_word
=$2
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812 $as_echo_n "checking for $ac_word... " >&6; }
7813 if ${ac_cv_prog_ac_ct_MIG+:} false
; then :
7814 $as_echo_n "(cached) " >&6
7816 if test -n "$ac_ct_MIG"; then
7817 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
7819 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7823 test -z "$as_dir" && as_dir
=.
7824 for ac_exec_ext
in '' $ac_executable_extensions; do
7825 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7826 ac_cv_prog_ac_ct_MIG
="mig"
7827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7836 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
7837 if test -n "$ac_ct_MIG"; then
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
7839 $as_echo "$ac_ct_MIG" >&6; }
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842 $as_echo "no" >&6; }
7845 if test "x$ac_ct_MIG" = x
; then
7848 case $cross_compiling:$ac_tool_warned in
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7852 ac_tool_warned
=yes ;;
7857 MIG
="$ac_cv_prog_MIG"
7860 if test x
"$MIG" = x
; then
7861 as_fn_error $?
"MIG not found but required for $host hosts" "$LINENO" 5
7866 # ---------------------- #
7867 # Checks for libraries. #
7868 # ---------------------- #
7870 # We might need to link with -lm; most simulators need it.
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7872 $as_echo_n "checking for main in -lm... " >&6; }
7873 if ${ac_cv_lib_m_main+:} false
; then :
7874 $as_echo_n "(cached) " >&6
7876 ac_check_lib_save_LIBS
=$LIBS
7878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7879 /* end confdefs.h. */
7890 if ac_fn_c_try_link
"$LINENO"; then :
7891 ac_cv_lib_m_main
=yes
7895 rm -f core conftest.err conftest.
$ac_objext \
7896 conftest
$ac_exeext conftest.
$ac_ext
7897 LIBS
=$ac_check_lib_save_LIBS
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7900 $as_echo "$ac_cv_lib_m_main" >&6; }
7901 if test "x$ac_cv_lib_m_main" = xyes
; then :
7902 cat >>confdefs.h
<<_ACEOF
7911 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
7913 $as_echo_n "checking for library containing gethostbyname... " >&6; }
7914 if ${ac_cv_search_gethostbyname+:} false
; then :
7915 $as_echo_n "(cached) " >&6
7917 ac_func_search_save_LIBS
=$LIBS
7918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7919 /* end confdefs.h. */
7921 /* Override any GCC internal prototype to avoid an error.
7922 Use char because int might match the return type of a GCC
7923 builtin and then its argument prototype would still apply. */
7927 char gethostbyname ();
7931 return gethostbyname ();
7936 for ac_lib
in '' nsl
; do
7937 if test -z "$ac_lib"; then
7938 ac_res
="none required"
7941 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7943 if ac_fn_c_try_link
"$LINENO"; then :
7944 ac_cv_search_gethostbyname
=$ac_res
7946 rm -f core conftest.err conftest.
$ac_objext \
7948 if ${ac_cv_search_gethostbyname+:} false
; then :
7952 if ${ac_cv_search_gethostbyname+:} false
; then :
7955 ac_cv_search_gethostbyname
=no
7958 LIBS
=$ac_func_search_save_LIBS
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
7961 $as_echo "$ac_cv_search_gethostbyname" >&6; }
7962 ac_res
=$ac_cv_search_gethostbyname
7963 if test "$ac_res" != no
; then :
7964 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7969 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
7971 $as_echo_n "checking for library containing socketpair... " >&6; }
7972 if ${ac_cv_search_socketpair+:} false
; then :
7973 $as_echo_n "(cached) " >&6
7975 ac_func_search_save_LIBS
=$LIBS
7976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7977 /* end confdefs.h. */
7979 /* Override any GCC internal prototype to avoid an error.
7980 Use char because int might match the return type of a GCC
7981 builtin and then its argument prototype would still apply. */
7989 return socketpair ();
7994 for ac_lib
in '' socket
; do
7995 if test -z "$ac_lib"; then
7996 ac_res
="none required"
7999 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8001 if ac_fn_c_try_link
"$LINENO"; then :
8002 ac_cv_search_socketpair
=$ac_res
8004 rm -f core conftest.err conftest.
$ac_objext \
8006 if ${ac_cv_search_socketpair+:} false
; then :
8010 if ${ac_cv_search_socketpair+:} false
; then :
8013 ac_cv_search_socketpair
=no
8016 LIBS
=$ac_func_search_save_LIBS
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
8019 $as_echo "$ac_cv_search_socketpair" >&6; }
8020 ac_res
=$ac_cv_search_socketpair
8021 if test "$ac_res" != no
; then :
8022 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8027 # Link in zlib if we can. This allows us to read compressed debug sections.
8029 # Use the system's zlib library.
8030 zlibdir
="-L\$(top_builddir)/../zlib"
8031 zlibinc
="-I\$(top_srcdir)/../zlib"
8033 # Check whether --with-system-zlib was given.
8034 if test "${with_system_zlib+set}" = set; then :
8035 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
8046 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
8047 # On GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
8049 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
8050 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
8051 $as_echo_n "(cached) " >&6
8053 ac_func_search_save_LIBS
=$LIBS
8054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8055 /* end confdefs.h. */
8057 /* Override any GCC internal prototype to avoid an error.
8058 Use char because int might match the return type of a GCC
8059 builtin and then its argument prototype would still apply. */
8063 char kinfo_getvmmap ();
8067 return kinfo_getvmmap ();
8072 for ac_lib
in '' util util-freebsd
; do
8073 if test -z "$ac_lib"; then
8074 ac_res
="none required"
8077 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8079 if ac_fn_c_try_link
"$LINENO"; then :
8080 ac_cv_search_kinfo_getvmmap
=$ac_res
8082 rm -f core conftest.err conftest.
$ac_objext \
8084 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
8088 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
8091 ac_cv_search_kinfo_getvmmap
=no
8094 LIBS
=$ac_func_search_save_LIBS
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
8097 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
8098 ac_res
=$ac_cv_search_kinfo_getvmmap
8099 if test "$ac_res" != no
; then :
8100 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8102 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
8107 # fbsd-nat.c can also use kinfo_getfile.
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
8109 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
8110 if ${ac_cv_search_kinfo_getfile+:} false
; then :
8111 $as_echo_n "(cached) " >&6
8113 ac_func_search_save_LIBS
=$LIBS
8114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8115 /* end confdefs.h. */
8117 /* Override any GCC internal prototype to avoid an error.
8118 Use char because int might match the return type of a GCC
8119 builtin and then its argument prototype would still apply. */
8123 char kinfo_getfile ();
8127 return kinfo_getfile ();
8132 for ac_lib
in '' util util-freebsd
; do
8133 if test -z "$ac_lib"; then
8134 ac_res
="none required"
8137 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8139 if ac_fn_c_try_link
"$LINENO"; then :
8140 ac_cv_search_kinfo_getfile
=$ac_res
8142 rm -f core conftest.err conftest.
$ac_objext \
8144 if ${ac_cv_search_kinfo_getfile+:} false
; then :
8148 if ${ac_cv_search_kinfo_getfile+:} false
; then :
8151 ac_cv_search_kinfo_getfile
=no
8154 LIBS
=$ac_func_search_save_LIBS
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
8157 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
8158 ac_res
=$ac_cv_search_kinfo_getfile
8159 if test "$ac_res" != no
; then :
8160 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8162 $as_echo "#define HAVE_KINFO_GETFILE 1" >>confdefs.h
8168 if test "X$prefix" = "XNONE"; then
8169 acl_final_prefix
="$ac_default_prefix"
8171 acl_final_prefix
="$prefix"
8173 if test "X$exec_prefix" = "XNONE"; then
8174 acl_final_exec_prefix
='${prefix}'
8176 acl_final_exec_prefix
="$exec_prefix"
8178 acl_save_prefix
="$prefix"
8179 prefix
="$acl_final_prefix"
8180 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8181 prefix
="$acl_save_prefix"
8184 # Check whether --with-gnu-ld was given.
8185 if test "${with_gnu_ld+set}" = set; then :
8186 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8191 # Prepare PATH_SEPARATOR.
8192 # The user is always right.
8193 if test "${PATH_SEPARATOR+set}" != set; then
8194 echo "#! /bin/sh" >conf$$.sh
8195 echo "exit 0" >>conf$$.sh
8197 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8205 if test "$GCC" = yes; then
8206 # Check if gcc -print-prog-name=ld gives a path.
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8208 $as_echo_n "checking for ld used by GCC... " >&6; }
8211 # gcc leaves a trailing carriage return which upsets mingw
8212 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8214 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8217 # Accept absolute paths.
8218 [\\/]* |
[A-Za-z
]:[\\/]*)
8219 re_direlt
='/[^/][^/]*/\.\./'
8220 # Canonicalize the path of ld
8221 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8222 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8223 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8225 test -z "$LD" && LD
="$ac_prog"
8228 # If it fails, then pretend we aren't using GCC.
8232 # If it is relative, then search for the first ld in PATH.
8236 elif test "$with_gnu_ld" = yes; then
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8238 $as_echo_n "checking for GNU ld... " >&6; }
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8241 $as_echo_n "checking for non-GNU ld... " >&6; }
8243 if ${acl_cv_path_LD+:} false
; then :
8244 $as_echo_n "(cached) " >&6
8246 if test -z "$LD"; then
8247 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8248 for ac_dir
in $PATH; do
8249 test -z "$ac_dir" && ac_dir
=.
8250 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8251 acl_cv_path_LD
="$ac_dir/$ac_prog"
8252 # Check to see if the program is GNU ld. I'd rather use --version,
8253 # but apparently some GNU ld's only accept -v.
8254 # Break only if it was the GNU/non-GNU ld that we prefer.
8255 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
8256 test "$with_gnu_ld" != no
&& break
8258 test "$with_gnu_ld" != yes && break
8264 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8268 LD
="$acl_cv_path_LD"
8269 if test -n "$LD"; then
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8271 $as_echo "$LD" >&6; }
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8274 $as_echo "no" >&6; }
8276 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8278 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8279 if ${acl_cv_prog_gnu_ld+:} false
; then :
8280 $as_echo_n "(cached) " >&6
8282 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8283 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8284 acl_cv_prog_gnu_ld
=yes
8286 acl_cv_prog_gnu_ld
=no
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8290 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8291 with_gnu_ld
=$acl_cv_prog_gnu_ld
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8296 $as_echo_n "checking for shared library run path origin... " >&6; }
8297 if ${acl_cv_rpath+:} false
; then :
8298 $as_echo_n "(cached) " >&6
8301 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8302 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8309 $as_echo "$acl_cv_rpath" >&6; }
8311 libext
="$acl_cv_libext"
8312 shlibext
="$acl_cv_shlibext"
8313 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8314 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8315 hardcode_direct
="$acl_cv_hardcode_direct"
8316 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8317 # Check whether --enable-rpath was given.
8318 if test "${enable_rpath+set}" = set; then :
8319 enableval
=$enable_rpath; :
8333 acl_save_prefix
="$prefix"
8334 prefix
="$acl_final_prefix"
8335 acl_save_exec_prefix
="$exec_prefix"
8336 exec_prefix
="$acl_final_exec_prefix"
8338 eval additional_includedir
=\"$includedir\"
8339 eval additional_libdir
=\"$libdir\"
8341 exec_prefix
="$acl_save_exec_prefix"
8342 prefix
="$acl_save_prefix"
8345 # Check whether --with-libiconv-prefix was given.
8346 if test "${with_libiconv_prefix+set}" = set; then :
8347 withval
=$with_libiconv_prefix;
8348 if test "X$withval" = "Xno"; then
8351 if test "X$withval" = "X"; then
8353 acl_save_prefix
="$prefix"
8354 prefix
="$acl_final_prefix"
8355 acl_save_exec_prefix
="$exec_prefix"
8356 exec_prefix
="$acl_final_exec_prefix"
8358 eval additional_includedir
=\"$includedir\"
8359 eval additional_libdir
=\"$libdir\"
8361 exec_prefix
="$acl_save_exec_prefix"
8362 prefix
="$acl_save_prefix"
8365 additional_includedir
="$withval/include"
8366 additional_libdir
="$withval/lib"
8377 names_already_handled
=
8378 names_next_round
='iconv '
8379 while test -n "$names_next_round"; do
8380 names_this_round
="$names_next_round"
8382 for name
in $names_this_round; do
8384 for n
in $names_already_handled; do
8385 if test "$n" = "$name"; then
8390 if test -z "$already_handled"; then
8391 names_already_handled
="$names_already_handled $name"
8392 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8393 eval value
=\"\
$HAVE_LIB$uppername\"
8394 if test -n "$value"; then
8395 if test "$value" = yes; then
8396 eval value
=\"\
$LIB$uppername\"
8397 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
8398 eval value
=\"\
$LTLIB$uppername\"
8399 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
8408 if test $use_additional = yes; then
8409 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8410 found_dir
="$additional_libdir"
8411 found_so
="$additional_libdir/lib$name.$shlibext"
8412 if test -f "$additional_libdir/lib$name.la"; then
8413 found_la
="$additional_libdir/lib$name.la"
8416 if test -f "$additional_libdir/lib$name.$libext"; then
8417 found_dir
="$additional_libdir"
8418 found_a
="$additional_libdir/lib$name.$libext"
8419 if test -f "$additional_libdir/lib$name.la"; then
8420 found_la
="$additional_libdir/lib$name.la"
8425 if test "X$found_dir" = "X"; then
8426 for x
in $LDFLAGS $LTLIBICONV; do
8428 acl_save_prefix
="$prefix"
8429 prefix
="$acl_final_prefix"
8430 acl_save_exec_prefix
="$exec_prefix"
8431 exec_prefix
="$acl_final_exec_prefix"
8433 exec_prefix
="$acl_save_exec_prefix"
8434 prefix
="$acl_save_prefix"
8438 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8439 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8441 found_so
="$dir/lib$name.$shlibext"
8442 if test -f "$dir/lib$name.la"; then
8443 found_la
="$dir/lib$name.la"
8446 if test -f "$dir/lib$name.$libext"; then
8448 found_a
="$dir/lib$name.$libext"
8449 if test -f "$dir/lib$name.la"; then
8450 found_la
="$dir/lib$name.la"
8456 if test "X$found_dir" != "X"; then
8461 if test "X$found_dir" != "X"; then
8462 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8463 if test "X$found_so" != "X"; then
8464 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8465 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8468 for x
in $ltrpathdirs; do
8469 if test "X$x" = "X$found_dir"; then
8474 if test -z "$haveit"; then
8475 ltrpathdirs
="$ltrpathdirs $found_dir"
8477 if test "$hardcode_direct" = yes; then
8478 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8480 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8481 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8483 for x
in $rpathdirs; do
8484 if test "X$x" = "X$found_dir"; then
8489 if test -z "$haveit"; then
8490 rpathdirs
="$rpathdirs $found_dir"
8494 for x
in $LDFLAGS $LIBICONV; do
8496 acl_save_prefix
="$prefix"
8497 prefix
="$acl_final_prefix"
8498 acl_save_exec_prefix
="$exec_prefix"
8499 exec_prefix
="$acl_final_exec_prefix"
8501 exec_prefix
="$acl_save_exec_prefix"
8502 prefix
="$acl_save_prefix"
8504 if test "X$x" = "X-L$found_dir"; then
8509 if test -z "$haveit"; then
8510 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8512 if test "$hardcode_minus_L" != no
; then
8513 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8515 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8521 if test "X$found_a" != "X"; then
8522 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
8524 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8527 additional_includedir
=
8528 case "$found_dir" in
8530 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8531 additional_includedir
="$basedir/include"
8534 if test "X$additional_includedir" != "X"; then
8535 if test "X$additional_includedir" != "X/usr/include"; then
8537 if test "X$additional_includedir" = "X/usr/local/include"; then
8538 if test -n "$GCC"; then
8540 linux
*) haveit
=yes;;
8544 if test -z "$haveit"; then
8545 for x
in $CPPFLAGS $INCICONV; do
8547 acl_save_prefix
="$prefix"
8548 prefix
="$acl_final_prefix"
8549 acl_save_exec_prefix
="$exec_prefix"
8550 exec_prefix
="$acl_final_exec_prefix"
8552 exec_prefix
="$acl_save_exec_prefix"
8553 prefix
="$acl_save_prefix"
8555 if test "X$x" = "X-I$additional_includedir"; then
8560 if test -z "$haveit"; then
8561 if test -d "$additional_includedir"; then
8562 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8568 if test -n "$found_la"; then
8569 save_libdir
="$libdir"
8571 */* |
*\\*) .
"$found_la" ;;
8572 *) .
"./$found_la" ;;
8574 libdir
="$save_libdir"
8575 for dep
in $dependency_libs; do
8578 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8579 if test "X$additional_libdir" != "X/usr/lib"; then
8581 if test "X$additional_libdir" = "X/usr/local/lib"; then
8582 if test -n "$GCC"; then
8584 linux
*) haveit
=yes;;
8588 if test -z "$haveit"; then
8590 for x
in $LDFLAGS $LIBICONV; do
8592 acl_save_prefix
="$prefix"
8593 prefix
="$acl_final_prefix"
8594 acl_save_exec_prefix
="$exec_prefix"
8595 exec_prefix
="$acl_final_exec_prefix"
8597 exec_prefix
="$acl_save_exec_prefix"
8598 prefix
="$acl_save_prefix"
8600 if test "X$x" = "X-L$additional_libdir"; then
8605 if test -z "$haveit"; then
8606 if test -d "$additional_libdir"; then
8607 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8611 for x
in $LDFLAGS $LTLIBICONV; do
8613 acl_save_prefix
="$prefix"
8614 prefix
="$acl_final_prefix"
8615 acl_save_exec_prefix
="$exec_prefix"
8616 exec_prefix
="$acl_final_exec_prefix"
8618 exec_prefix
="$acl_save_exec_prefix"
8619 prefix
="$acl_save_prefix"
8621 if test "X$x" = "X-L$additional_libdir"; then
8626 if test -z "$haveit"; then
8627 if test -d "$additional_libdir"; then
8628 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8635 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8636 if test "$enable_rpath" != no
; then
8638 for x
in $rpathdirs; do
8639 if test "X$x" = "X$dir"; then
8644 if test -z "$haveit"; then
8645 rpathdirs
="$rpathdirs $dir"
8648 for x
in $ltrpathdirs; do
8649 if test "X$x" = "X$dir"; then
8654 if test -z "$haveit"; then
8655 ltrpathdirs
="$ltrpathdirs $dir"
8660 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8663 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8666 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
8667 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8673 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8674 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8680 if test "X$rpathdirs" != "X"; then
8681 if test -n "$hardcode_libdir_separator"; then
8683 for found_dir
in $rpathdirs; do
8684 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8686 acl_save_libdir
="$libdir"
8688 eval flag
=\"$hardcode_libdir_flag_spec\"
8689 libdir
="$acl_save_libdir"
8690 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8692 for found_dir
in $rpathdirs; do
8693 acl_save_libdir
="$libdir"
8695 eval flag
=\"$hardcode_libdir_flag_spec\"
8696 libdir
="$acl_save_libdir"
8697 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8701 if test "X$ltrpathdirs" != "X"; then
8702 for found_dir
in $ltrpathdirs; do
8703 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8714 $as_echo_n "checking for iconv... " >&6; }
8715 if ${am_cv_func_iconv+:} false
; then :
8716 $as_echo_n "(cached) " >&6
8719 am_cv_func_iconv
="no, consider installing GNU libiconv"
8721 am_save_CPPFLAGS
="$CPPFLAGS"
8722 CPPFLAGS
="$CPPFLAGS $INCICONV"
8723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8724 /* end confdefs.h. */
8730 iconv_t cd = iconv_open("","");
8731 iconv(cd,NULL,NULL,NULL,NULL);
8737 if ac_fn_c_try_link
"$LINENO"; then :
8738 am_cv_func_iconv
=yes
8740 rm -f core conftest.err conftest.
$ac_objext \
8741 conftest
$ac_exeext conftest.
$ac_ext
8742 CPPFLAGS
="$am_save_CPPFLAGS"
8744 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
8745 for _libs
in .libs _libs
; do
8746 am_save_CPPFLAGS
="$CPPFLAGS"
8747 am_save_LIBS
="$LIBS"
8748 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
8749 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
8750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8751 /* end confdefs.h. */
8757 iconv_t cd = iconv_open("","");
8758 iconv(cd,NULL,NULL,NULL,NULL);
8764 if ac_fn_c_try_link
"$LINENO"; then :
8765 INCICONV
="-I../libiconv/include"
8766 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
8767 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
8769 am_cv_func_iconv
=yes
8771 rm -f core conftest.err conftest.
$ac_objext \
8772 conftest
$ac_exeext conftest.
$ac_ext
8773 CPPFLAGS
="$am_save_CPPFLAGS"
8774 LIBS
="$am_save_LIBS"
8775 if test "$am_cv_func_iconv" = "yes"; then
8781 if test "$am_cv_func_iconv" != yes; then
8782 am_save_CPPFLAGS
="$CPPFLAGS"
8783 am_save_LIBS
="$LIBS"
8784 CPPFLAGS
="$CPPFLAGS $INCICONV"
8785 LIBS
="$LIBS $LIBICONV"
8786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8787 /* end confdefs.h. */
8793 iconv_t cd = iconv_open("","");
8794 iconv(cd,NULL,NULL,NULL,NULL);
8800 if ac_fn_c_try_link
"$LINENO"; then :
8802 am_cv_func_iconv
=yes
8804 rm -f core conftest.err conftest.
$ac_objext \
8805 conftest
$ac_exeext conftest.
$ac_ext
8806 CPPFLAGS
="$am_save_CPPFLAGS"
8807 LIBS
="$am_save_LIBS"
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8812 $as_echo "$am_cv_func_iconv" >&6; }
8813 if test "$am_cv_func_iconv" = yes; then
8815 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8818 if test "$am_cv_lib_iconv" = yes; then
8820 for element
in $INCICONV; do
8822 for x
in $CPPFLAGS; do
8824 acl_save_prefix
="$prefix"
8825 prefix
="$acl_final_prefix"
8826 acl_save_exec_prefix
="$exec_prefix"
8827 exec_prefix
="$acl_final_exec_prefix"
8829 exec_prefix
="$acl_save_exec_prefix"
8830 prefix
="$acl_save_prefix"
8832 if test "X$x" = "X$element"; then
8837 if test -z "$haveit"; then
8838 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8843 $as_echo_n "checking how to link with libiconv... " >&6; }
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8845 $as_echo "$LIBICONV" >&6; }
8853 if test "$am_cv_func_iconv" = yes; then
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8855 $as_echo_n "checking for iconv declaration... " >&6; }
8856 if ${am_cv_proto_iconv+:} false
; then :
8857 $as_echo_n "(cached) " >&6
8860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8861 /* end confdefs.h. */
8869 #if defined(__STDC__) || defined(__cplusplus)
8870 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8883 if ac_fn_c_try_compile
"$LINENO"; then :
8884 am_cv_proto_iconv_arg1
=""
8886 am_cv_proto_iconv_arg1
="const"
8888 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8889 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);"
8892 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8894 }$am_cv_proto_iconv" >&5
8896 }$am_cv_proto_iconv" >&6; }
8898 cat >>confdefs.h
<<_ACEOF
8899 #define ICONV_CONST $am_cv_proto_iconv_arg1
8905 # GDB may fork/exec the iconv program to get the list of supported character
8906 # sets. Allow the user to specify where to find it.
8907 # There are several factors affecting the choice of option name:
8908 # - There is already --with-libiconv-prefix but we can't use it, it specifies
8909 # the build-time location of libiconv files.
8910 # - The program we need to find is iconv, which comes with glibc. The user
8911 # doesn't necessarily have libiconv installed. Therefore naming this
8912 # --with-libiconv-foo feels wrong.
8913 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
8914 # defined to work on directories not files (though it really doesn't know
8916 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
8917 # with --with-libiconv-prefix.
8918 # Putting these together is why the option name is --with-iconv-bin.
8921 # Check whether --with-iconv-bin was given.
8922 if test "${with_iconv_bin+set}" = set; then :
8923 withval
=$with_iconv_bin; iconv_bin
="${withval}"
8925 cat >>confdefs.h
<<_ACEOF
8926 #define ICONV_BIN "${iconv_bin}"
8930 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
8931 if test "x$prefix" = xNONE
; then
8932 test_prefix
=/usr
/local
8937 test_prefix
=$exec_prefix
8940 case ${iconv_bin} in
8941 "${test_prefix}"|
"${test_prefix}/"*|\
8942 '${exec_prefix}'|
'${exec_prefix}/'*)
8947 cat >>confdefs.h
<<_ACEOF
8948 #define ICONV_BIN_RELOCATABLE $value
8956 # For the TUI, we need enhanced curses functionality.
8957 if test x
"$enable_tui" != xno
; then
8962 if test x
"$prefer_curses" = xyes
; then
8963 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8964 # curses library because the latter might not provide all the
8965 # functionality we need. However, this leads to problems on systems
8966 # where the linker searches /usr/local/lib, but the compiler doesn't
8967 # search /usr/local/include, if ncurses is installed in /usr/local. A
8968 # default installation of ncurses on alpha*-dec-osf* will lead to such
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
8971 $as_echo_n "checking for library containing waddstr... " >&6; }
8972 if ${ac_cv_search_waddstr+:} false
; then :
8973 $as_echo_n "(cached) " >&6
8975 ac_func_search_save_LIBS
=$LIBS
8976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8977 /* end confdefs.h. */
8979 /* Override any GCC internal prototype to avoid an error.
8980 Use char because int might match the return type of a GCC
8981 builtin and then its argument prototype would still apply. */
8994 for ac_lib
in '' ncursesw ncurses cursesX curses
; do
8995 if test -z "$ac_lib"; then
8996 ac_res
="none required"
8999 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9001 if ac_fn_c_try_link
"$LINENO"; then :
9002 ac_cv_search_waddstr
=$ac_res
9004 rm -f core conftest.err conftest.
$ac_objext \
9006 if ${ac_cv_search_waddstr+:} false
; then :
9010 if ${ac_cv_search_waddstr+:} false
; then :
9013 ac_cv_search_waddstr
=no
9016 LIBS
=$ac_func_search_save_LIBS
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
9019 $as_echo "$ac_cv_search_waddstr" >&6; }
9020 ac_res
=$ac_cv_search_waddstr
9021 if test "$ac_res" != no
; then :
9022 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9027 if test "$ac_cv_search_waddstr" != no
; then
9032 # Check whether we should enable the TUI, but only do so if we really
9034 if test x
"$enable_tui" != xno
; then
9035 if test -d "$srcdir/tui"; then
9036 if test "$curses_found" != no
; then
9037 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
9038 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
9039 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9040 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
9042 if test x
"$enable_tui" = xyes
; then
9043 as_fn_error $?
"no enhanced curses library found; disable TUI" "$LINENO" 5
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
9046 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9052 # Since GDB uses Readline, we need termcap functionality. In many
9053 # cases this will be provided by the curses library, but some systems
9054 # have a separate termcap library, or no curses library at all.
9058 if test -d "$srcdir/libtermcap"; then
9059 LIBS
="../libtermcap/libtermcap.a $LIBS"
9060 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
9063 ac_cv_search_tgetent
="none required"
9067 # These are the libraries checked by Readline.
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9069 $as_echo_n "checking for library containing tgetent... " >&6; }
9070 if ${ac_cv_search_tgetent+:} false
; then :
9071 $as_echo_n "(cached) " >&6
9073 ac_func_search_save_LIBS
=$LIBS
9074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9075 /* end confdefs.h. */
9077 /* Override any GCC internal prototype to avoid an error.
9078 Use char because int might match the return type of a GCC
9079 builtin and then its argument prototype would still apply. */
9092 for ac_lib
in '' termcap tinfow tinfo curses ncursesw ncurses
; do
9093 if test -z "$ac_lib"; then
9094 ac_res
="none required"
9097 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9099 if ac_fn_c_try_link
"$LINENO"; then :
9100 ac_cv_search_tgetent
=$ac_res
9102 rm -f core conftest.err conftest.
$ac_objext \
9104 if ${ac_cv_search_tgetent+:} false
; then :
9108 if ${ac_cv_search_tgetent+:} false
; then :
9111 ac_cv_search_tgetent
=no
9114 LIBS
=$ac_func_search_save_LIBS
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9117 $as_echo "$ac_cv_search_tgetent" >&6; }
9118 ac_res
=$ac_cv_search_tgetent
9119 if test "$ac_res" != no
; then :
9120 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9125 if test "$ac_cv_search_tgetent" = no
; then
9126 CONFIG_OBS
="$CONFIG_OBS stub-termcap.o"
9130 # Check whether --with-system-readline was given.
9131 if test "${with_system_readline+set}" = set; then :
9132 withval
=$with_system_readline;
9136 if test "$with_system_readline" = yes; then
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system readline is new enough" >&5
9138 $as_echo_n "checking whether system readline is new enough... " >&6; }
9139 if ${gdb_cv_readline_ok+:} false
; then :
9140 $as_echo_n "(cached) " >&6
9142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9143 /* end confdefs.h. */
9145 #include <readline/readline.h>
9149 #if RL_VERSION_MAJOR < 7
9150 # error "readline version 7 required"
9156 if ac_fn_c_try_compile
"$LINENO"; then :
9157 gdb_cv_readline_ok
=yes
9159 gdb_cv_readline_ok
=no
9161 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_readline_ok" >&5
9164 $as_echo "$gdb_cv_readline_ok" >&6; }
9165 if test "$gdb_cv_readline_ok" != yes; then
9166 as_fn_error $?
"system readline is not new enough" "$LINENO" 5
9172 READLINE_TEXI_INCFLAG
=
9174 READLINE
='$(READLINE_DIR)/libreadline.a'
9175 READLINE_DEPS
='$(READLINE)'
9176 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
9177 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
9184 # Generate jit-reader.h
9186 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
9189 # The cast to long int works around a bug in the HP C Compiler
9190 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9191 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9192 # This bug is HP SR number 8606223364.
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
9194 $as_echo_n "checking size of unsigned long long... " >&6; }
9195 if ${ac_cv_sizeof_unsigned_long_long+:} false
; then :
9196 $as_echo_n "(cached) " >&6
9198 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
9201 if test "$ac_cv_type_unsigned_long_long" = yes; then
9202 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9204 as_fn_error
77 "cannot compute sizeof (unsigned long long)
9205 See \`config.log' for more details" "$LINENO" 5; }
9207 ac_cv_sizeof_unsigned_long_long
=0
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
9213 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
9217 cat >>confdefs.h
<<_ACEOF
9218 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
9222 # The cast to long int works around a bug in the HP C Compiler
9223 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9224 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9225 # This bug is HP SR number 8606223364.
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
9227 $as_echo_n "checking size of unsigned long... " >&6; }
9228 if ${ac_cv_sizeof_unsigned_long+:} false
; then :
9229 $as_echo_n "(cached) " >&6
9231 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
9234 if test "$ac_cv_type_unsigned_long" = yes; then
9235 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9237 as_fn_error
77 "cannot compute sizeof (unsigned long)
9238 See \`config.log' for more details" "$LINENO" 5; }
9240 ac_cv_sizeof_unsigned_long
=0
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
9246 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
9250 cat >>confdefs.h
<<_ACEOF
9251 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9255 # The cast to long int works around a bug in the HP C Compiler
9256 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9257 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9258 # This bug is HP SR number 8606223364.
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
9260 $as_echo_n "checking size of unsigned __int128... " >&6; }
9261 if ${ac_cv_sizeof_unsigned___int128+:} false
; then :
9262 $as_echo_n "(cached) " >&6
9264 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
9267 if test "$ac_cv_type_unsigned___int128" = yes; then
9268 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9270 as_fn_error
77 "cannot compute sizeof (unsigned __int128)
9271 See \`config.log' for more details" "$LINENO" 5; }
9273 ac_cv_sizeof_unsigned___int128
=0
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
9279 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
9283 cat >>confdefs.h
<<_ACEOF
9284 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
9289 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9290 TARGET_PTR
="unsigned long"
9291 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9292 TARGET_PTR
="unsigned long long"
9293 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
9294 TARGET_PTR
="unsigned __int128"
9296 TARGET_PTR
="unsigned long"
9300 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9304 $as_echo_n "checking for library containing dlopen... " >&6; }
9305 if ${ac_cv_search_dlopen+:} false
; then :
9306 $as_echo_n "(cached) " >&6
9308 ac_func_search_save_LIBS
=$LIBS
9309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9310 /* end confdefs.h. */
9312 /* Override any GCC internal prototype to avoid an error.
9313 Use char because int might match the return type of a GCC
9314 builtin and then its argument prototype would still apply. */
9327 for ac_lib
in '' dl
; do
9328 if test -z "$ac_lib"; then
9329 ac_res
="none required"
9332 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9334 if ac_fn_c_try_link
"$LINENO"; then :
9335 ac_cv_search_dlopen
=$ac_res
9337 rm -f core conftest.err conftest.
$ac_objext \
9339 if ${ac_cv_search_dlopen+:} false
; then :
9343 if ${ac_cv_search_dlopen+:} false
; then :
9346 ac_cv_search_dlopen
=no
9349 LIBS
=$ac_func_search_save_LIBS
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9352 $as_echo "$ac_cv_search_dlopen" >&6; }
9353 ac_res
=$ac_cv_search_dlopen
9354 if test "$ac_res" != no
; then :
9355 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9362 # Check whether --with-jit-reader-dir was given.
9363 if test "${with_jit_reader_dir+set}" = set; then :
9364 withval
=$with_jit_reader_dir;
9365 JIT_READER_DIR
=$withval
9367 JIT_READER_DIR
=${libdir}/gdb
9371 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9372 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9373 ac_define_dir
=`eval echo $JIT_READER_DIR`
9374 ac_define_dir
=`eval echo $ac_define_dir`
9376 cat >>confdefs.h
<<_ACEOF
9377 #define JIT_READER_DIR "$ac_define_dir"
9383 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9384 if test "x$prefix" = xNONE
; then
9385 test_prefix
=/usr
/local
9390 test_prefix
=$exec_prefix
9393 case ${ac_define_dir} in
9394 "${test_prefix}"|
"${test_prefix}/"*|\
9395 '${exec_prefix}'|
'${exec_prefix}/'*)
9400 cat >>confdefs.h
<<_ACEOF
9401 #define JIT_READER_DIR_RELOCATABLE $value
9408 # Check whether --with-expat was given.
9409 if test "${with_expat+set}" = set; then :
9410 withval
=$with_expat;
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9416 $as_echo_n "checking whether to use expat... " >&6; }
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9418 $as_echo "$with_expat" >&6; }
9420 if test "${with_expat}" = no
; then
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9422 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9435 acl_save_prefix
="$prefix"
9436 prefix
="$acl_final_prefix"
9437 acl_save_exec_prefix
="$exec_prefix"
9438 exec_prefix
="$acl_final_exec_prefix"
9440 eval additional_includedir
=\"$includedir\"
9441 eval additional_libdir
=\"$libdir\"
9443 exec_prefix
="$acl_save_exec_prefix"
9444 prefix
="$acl_save_prefix"
9447 # Check whether --with-libexpat-prefix was given.
9448 if test "${with_libexpat_prefix+set}" = set; then :
9449 withval
=$with_libexpat_prefix;
9450 if test "X$withval" = "Xno"; then
9453 if test "X$withval" = "X"; then
9455 acl_save_prefix
="$prefix"
9456 prefix
="$acl_final_prefix"
9457 acl_save_exec_prefix
="$exec_prefix"
9458 exec_prefix
="$acl_final_exec_prefix"
9460 eval additional_includedir
=\"$includedir\"
9461 eval additional_libdir
=\"$libdir\"
9463 exec_prefix
="$acl_save_exec_prefix"
9464 prefix
="$acl_save_prefix"
9467 additional_includedir
="$withval/include"
9468 additional_libdir
="$withval/lib"
9479 names_already_handled
=
9480 names_next_round
='expat '
9481 while test -n "$names_next_round"; do
9482 names_this_round
="$names_next_round"
9484 for name
in $names_this_round; do
9486 for n
in $names_already_handled; do
9487 if test "$n" = "$name"; then
9492 if test -z "$already_handled"; then
9493 names_already_handled
="$names_already_handled $name"
9494 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9495 eval value
=\"\
$HAVE_LIB$uppername\"
9496 if test -n "$value"; then
9497 if test "$value" = yes; then
9498 eval value
=\"\
$LIB$uppername\"
9499 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
9500 eval value
=\"\
$LTLIB$uppername\"
9501 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
9510 if test $use_additional = yes; then
9511 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9512 found_dir
="$additional_libdir"
9513 found_so
="$additional_libdir/lib$name.$shlibext"
9514 if test -f "$additional_libdir/lib$name.la"; then
9515 found_la
="$additional_libdir/lib$name.la"
9518 if test -f "$additional_libdir/lib$name.$libext"; then
9519 found_dir
="$additional_libdir"
9520 found_a
="$additional_libdir/lib$name.$libext"
9521 if test -f "$additional_libdir/lib$name.la"; then
9522 found_la
="$additional_libdir/lib$name.la"
9527 if test "X$found_dir" = "X"; then
9528 for x
in $LDFLAGS $LTLIBEXPAT; do
9530 acl_save_prefix
="$prefix"
9531 prefix
="$acl_final_prefix"
9532 acl_save_exec_prefix
="$exec_prefix"
9533 exec_prefix
="$acl_final_exec_prefix"
9535 exec_prefix
="$acl_save_exec_prefix"
9536 prefix
="$acl_save_prefix"
9540 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9541 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9543 found_so
="$dir/lib$name.$shlibext"
9544 if test -f "$dir/lib$name.la"; then
9545 found_la
="$dir/lib$name.la"
9548 if test -f "$dir/lib$name.$libext"; then
9550 found_a
="$dir/lib$name.$libext"
9551 if test -f "$dir/lib$name.la"; then
9552 found_la
="$dir/lib$name.la"
9558 if test "X$found_dir" != "X"; then
9563 if test "X$found_dir" != "X"; then
9564 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
9565 if test "X$found_so" != "X"; then
9566 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9567 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9570 for x
in $ltrpathdirs; do
9571 if test "X$x" = "X$found_dir"; then
9576 if test -z "$haveit"; then
9577 ltrpathdirs
="$ltrpathdirs $found_dir"
9579 if test "$hardcode_direct" = yes; then
9580 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9582 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9583 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9585 for x
in $rpathdirs; do
9586 if test "X$x" = "X$found_dir"; then
9591 if test -z "$haveit"; then
9592 rpathdirs
="$rpathdirs $found_dir"
9596 for x
in $LDFLAGS $LIBEXPAT; do
9598 acl_save_prefix
="$prefix"
9599 prefix
="$acl_final_prefix"
9600 acl_save_exec_prefix
="$exec_prefix"
9601 exec_prefix
="$acl_final_exec_prefix"
9603 exec_prefix
="$acl_save_exec_prefix"
9604 prefix
="$acl_save_prefix"
9606 if test "X$x" = "X-L$found_dir"; then
9611 if test -z "$haveit"; then
9612 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
9614 if test "$hardcode_minus_L" != no
; then
9615 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9617 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9623 if test "X$found_a" != "X"; then
9624 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
9626 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
9629 additional_includedir
=
9630 case "$found_dir" in
9632 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9633 additional_includedir
="$basedir/include"
9636 if test "X$additional_includedir" != "X"; then
9637 if test "X$additional_includedir" != "X/usr/include"; then
9639 if test "X$additional_includedir" = "X/usr/local/include"; then
9640 if test -n "$GCC"; then
9642 linux
*) haveit
=yes;;
9646 if test -z "$haveit"; then
9647 for x
in $CPPFLAGS $INCEXPAT; do
9649 acl_save_prefix
="$prefix"
9650 prefix
="$acl_final_prefix"
9651 acl_save_exec_prefix
="$exec_prefix"
9652 exec_prefix
="$acl_final_exec_prefix"
9654 exec_prefix
="$acl_save_exec_prefix"
9655 prefix
="$acl_save_prefix"
9657 if test "X$x" = "X-I$additional_includedir"; then
9662 if test -z "$haveit"; then
9663 if test -d "$additional_includedir"; then
9664 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
9670 if test -n "$found_la"; then
9671 save_libdir
="$libdir"
9673 */* |
*\\*) .
"$found_la" ;;
9674 *) .
"./$found_la" ;;
9676 libdir
="$save_libdir"
9677 for dep
in $dependency_libs; do
9680 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9681 if test "X$additional_libdir" != "X/usr/lib"; then
9683 if test "X$additional_libdir" = "X/usr/local/lib"; then
9684 if test -n "$GCC"; then
9686 linux
*) haveit
=yes;;
9690 if test -z "$haveit"; then
9692 for x
in $LDFLAGS $LIBEXPAT; do
9694 acl_save_prefix
="$prefix"
9695 prefix
="$acl_final_prefix"
9696 acl_save_exec_prefix
="$exec_prefix"
9697 exec_prefix
="$acl_final_exec_prefix"
9699 exec_prefix
="$acl_save_exec_prefix"
9700 prefix
="$acl_save_prefix"
9702 if test "X$x" = "X-L$additional_libdir"; then
9707 if test -z "$haveit"; then
9708 if test -d "$additional_libdir"; then
9709 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
9713 for x
in $LDFLAGS $LTLIBEXPAT; do
9715 acl_save_prefix
="$prefix"
9716 prefix
="$acl_final_prefix"
9717 acl_save_exec_prefix
="$exec_prefix"
9718 exec_prefix
="$acl_final_exec_prefix"
9720 exec_prefix
="$acl_save_exec_prefix"
9721 prefix
="$acl_save_prefix"
9723 if test "X$x" = "X-L$additional_libdir"; then
9728 if test -z "$haveit"; then
9729 if test -d "$additional_libdir"; then
9730 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
9737 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9738 if test "$enable_rpath" != no
; then
9740 for x
in $rpathdirs; do
9741 if test "X$x" = "X$dir"; then
9746 if test -z "$haveit"; then
9747 rpathdirs
="$rpathdirs $dir"
9750 for x
in $ltrpathdirs; do
9751 if test "X$x" = "X$dir"; then
9756 if test -z "$haveit"; then
9757 ltrpathdirs
="$ltrpathdirs $dir"
9762 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9765 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9768 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
9769 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
9775 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9776 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
9782 if test "X$rpathdirs" != "X"; then
9783 if test -n "$hardcode_libdir_separator"; then
9785 for found_dir
in $rpathdirs; do
9786 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9788 acl_save_libdir
="$libdir"
9790 eval flag
=\"$hardcode_libdir_flag_spec\"
9791 libdir
="$acl_save_libdir"
9792 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9794 for found_dir
in $rpathdirs; do
9795 acl_save_libdir
="$libdir"
9797 eval flag
=\"$hardcode_libdir_flag_spec\"
9798 libdir
="$acl_save_libdir"
9799 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9803 if test "X$ltrpathdirs" != "X"; then
9804 for found_dir
in $ltrpathdirs; do
9805 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9810 ac_save_CPPFLAGS
="$CPPFLAGS"
9812 for element
in $INCEXPAT; do
9814 for x
in $CPPFLAGS; do
9816 acl_save_prefix
="$prefix"
9817 prefix
="$acl_final_prefix"
9818 acl_save_exec_prefix
="$exec_prefix"
9819 exec_prefix
="$acl_final_exec_prefix"
9821 exec_prefix
="$acl_save_exec_prefix"
9822 prefix
="$acl_save_prefix"
9824 if test "X$x" = "X$element"; then
9829 if test -z "$haveit"; then
9830 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9836 $as_echo_n "checking for libexpat... " >&6; }
9837 if ${ac_cv_libexpat+:} false
; then :
9838 $as_echo_n "(cached) " >&6
9841 ac_save_LIBS
="$LIBS"
9842 LIBS
="$LIBS $LIBEXPAT"
9843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9844 /* end confdefs.h. */
9849 XML_Parser p = XML_ParserCreate (0);
9854 if ac_fn_c_try_link
"$LINENO"; then :
9859 rm -f core conftest.err conftest.
$ac_objext \
9860 conftest
$ac_exeext conftest.
$ac_ext
9861 LIBS
="$ac_save_LIBS"
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
9865 $as_echo "$ac_cv_libexpat" >&6; }
9866 if test "$ac_cv_libexpat" = yes; then
9869 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
9872 $as_echo_n "checking how to link with libexpat... " >&6; }
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
9874 $as_echo "$LIBEXPAT" >&6; }
9877 CPPFLAGS
="$ac_save_CPPFLAGS"
9887 if test "$HAVE_LIBEXPAT" != yes; then
9888 if test "$with_expat" = yes; then
9889 as_fn_error $?
"expat is missing or unusable" "$LINENO" 5
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
9892 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
9896 LIBS
="$LIBS $LIBEXPAT"
9897 for ac_func
in XML_StopParser
9899 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
9900 if test "x$ac_cv_func_XML_StopParser" = xyes
; then :
9901 cat >>confdefs.h
<<_ACEOF
9902 #define HAVE_XML_STOPPARSER 1
9913 # Check whether --with-mpfr was given.
9914 if test "${with_mpfr+set}" = set; then :
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5
9921 $as_echo_n "checking whether to use MPFR... " >&6; }
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5
9923 $as_echo "$with_mpfr" >&6; }
9925 if test "${with_mpfr}" = no
; then
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5
9927 $as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;}
9940 acl_save_prefix
="$prefix"
9941 prefix
="$acl_final_prefix"
9942 acl_save_exec_prefix
="$exec_prefix"
9943 exec_prefix
="$acl_final_exec_prefix"
9945 eval additional_includedir
=\"$includedir\"
9946 eval additional_libdir
=\"$libdir\"
9948 exec_prefix
="$acl_save_exec_prefix"
9949 prefix
="$acl_save_prefix"
9952 # Check whether --with-libmpfr-prefix was given.
9953 if test "${with_libmpfr_prefix+set}" = set; then :
9954 withval
=$with_libmpfr_prefix;
9955 if test "X$withval" = "Xno"; then
9958 if test "X$withval" = "X"; then
9960 acl_save_prefix
="$prefix"
9961 prefix
="$acl_final_prefix"
9962 acl_save_exec_prefix
="$exec_prefix"
9963 exec_prefix
="$acl_final_exec_prefix"
9965 eval additional_includedir
=\"$includedir\"
9966 eval additional_libdir
=\"$libdir\"
9968 exec_prefix
="$acl_save_exec_prefix"
9969 prefix
="$acl_save_prefix"
9972 additional_includedir
="$withval/include"
9973 additional_libdir
="$withval/lib"
9984 names_already_handled
=
9985 names_next_round
='mpfr gmp'
9986 while test -n "$names_next_round"; do
9987 names_this_round
="$names_next_round"
9989 for name
in $names_this_round; do
9991 for n
in $names_already_handled; do
9992 if test "$n" = "$name"; then
9997 if test -z "$already_handled"; then
9998 names_already_handled
="$names_already_handled $name"
9999 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10000 eval value
=\"\
$HAVE_LIB$uppername\"
10001 if test -n "$value"; then
10002 if test "$value" = yes; then
10003 eval value
=\"\
$LIB$uppername\"
10004 test -z "$value" || LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$value"
10005 eval value
=\"\
$LTLIB$uppername\"
10006 test -z "$value" || LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$value"
10015 if test $use_additional = yes; then
10016 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10017 found_dir
="$additional_libdir"
10018 found_so
="$additional_libdir/lib$name.$shlibext"
10019 if test -f "$additional_libdir/lib$name.la"; then
10020 found_la
="$additional_libdir/lib$name.la"
10023 if test -f "$additional_libdir/lib$name.$libext"; then
10024 found_dir
="$additional_libdir"
10025 found_a
="$additional_libdir/lib$name.$libext"
10026 if test -f "$additional_libdir/lib$name.la"; then
10027 found_la
="$additional_libdir/lib$name.la"
10032 if test "X$found_dir" = "X"; then
10033 for x
in $LDFLAGS $LTLIBMPFR; do
10035 acl_save_prefix
="$prefix"
10036 prefix
="$acl_final_prefix"
10037 acl_save_exec_prefix
="$exec_prefix"
10038 exec_prefix
="$acl_final_exec_prefix"
10040 exec_prefix
="$acl_save_exec_prefix"
10041 prefix
="$acl_save_prefix"
10045 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10046 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10048 found_so
="$dir/lib$name.$shlibext"
10049 if test -f "$dir/lib$name.la"; then
10050 found_la
="$dir/lib$name.la"
10053 if test -f "$dir/lib$name.$libext"; then
10055 found_a
="$dir/lib$name.$libext"
10056 if test -f "$dir/lib$name.la"; then
10057 found_la
="$dir/lib$name.la"
10063 if test "X$found_dir" != "X"; then
10068 if test "X$found_dir" != "X"; then
10069 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$found_dir -l$name"
10070 if test "X$found_so" != "X"; then
10071 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10072 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10075 for x
in $ltrpathdirs; do
10076 if test "X$x" = "X$found_dir"; then
10081 if test -z "$haveit"; then
10082 ltrpathdirs
="$ltrpathdirs $found_dir"
10084 if test "$hardcode_direct" = yes; then
10085 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10087 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10088 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10090 for x
in $rpathdirs; do
10091 if test "X$x" = "X$found_dir"; then
10096 if test -z "$haveit"; then
10097 rpathdirs
="$rpathdirs $found_dir"
10101 for x
in $LDFLAGS $LIBMPFR; do
10103 acl_save_prefix
="$prefix"
10104 prefix
="$acl_final_prefix"
10105 acl_save_exec_prefix
="$exec_prefix"
10106 exec_prefix
="$acl_final_exec_prefix"
10108 exec_prefix
="$acl_save_exec_prefix"
10109 prefix
="$acl_save_prefix"
10111 if test "X$x" = "X-L$found_dir"; then
10116 if test -z "$haveit"; then
10117 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir"
10119 if test "$hardcode_minus_L" != no
; then
10120 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10122 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10128 if test "X$found_a" != "X"; then
10129 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_a"
10131 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir -l$name"
10134 additional_includedir
=
10135 case "$found_dir" in
10137 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10138 additional_includedir
="$basedir/include"
10141 if test "X$additional_includedir" != "X"; then
10142 if test "X$additional_includedir" != "X/usr/include"; then
10144 if test "X$additional_includedir" = "X/usr/local/include"; then
10145 if test -n "$GCC"; then
10147 linux
*) haveit
=yes;;
10151 if test -z "$haveit"; then
10152 for x
in $CPPFLAGS $INCMPFR; do
10154 acl_save_prefix
="$prefix"
10155 prefix
="$acl_final_prefix"
10156 acl_save_exec_prefix
="$exec_prefix"
10157 exec_prefix
="$acl_final_exec_prefix"
10159 exec_prefix
="$acl_save_exec_prefix"
10160 prefix
="$acl_save_prefix"
10162 if test "X$x" = "X-I$additional_includedir"; then
10167 if test -z "$haveit"; then
10168 if test -d "$additional_includedir"; then
10169 INCMPFR
="${INCMPFR}${INCMPFR:+ }-I$additional_includedir"
10175 if test -n "$found_la"; then
10176 save_libdir
="$libdir"
10177 case "$found_la" in
10178 */* |
*\\*) .
"$found_la" ;;
10179 *) .
"./$found_la" ;;
10181 libdir
="$save_libdir"
10182 for dep
in $dependency_libs; do
10185 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10186 if test "X$additional_libdir" != "X/usr/lib"; then
10188 if test "X$additional_libdir" = "X/usr/local/lib"; then
10189 if test -n "$GCC"; then
10191 linux
*) haveit
=yes;;
10195 if test -z "$haveit"; then
10197 for x
in $LDFLAGS $LIBMPFR; do
10199 acl_save_prefix
="$prefix"
10200 prefix
="$acl_final_prefix"
10201 acl_save_exec_prefix
="$exec_prefix"
10202 exec_prefix
="$acl_final_exec_prefix"
10204 exec_prefix
="$acl_save_exec_prefix"
10205 prefix
="$acl_save_prefix"
10207 if test "X$x" = "X-L$additional_libdir"; then
10212 if test -z "$haveit"; then
10213 if test -d "$additional_libdir"; then
10214 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$additional_libdir"
10218 for x
in $LDFLAGS $LTLIBMPFR; do
10220 acl_save_prefix
="$prefix"
10221 prefix
="$acl_final_prefix"
10222 acl_save_exec_prefix
="$exec_prefix"
10223 exec_prefix
="$acl_final_exec_prefix"
10225 exec_prefix
="$acl_save_exec_prefix"
10226 prefix
="$acl_save_prefix"
10228 if test "X$x" = "X-L$additional_libdir"; then
10233 if test -z "$haveit"; then
10234 if test -d "$additional_libdir"; then
10235 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$additional_libdir"
10242 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10243 if test "$enable_rpath" != no
; then
10245 for x
in $rpathdirs; do
10246 if test "X$x" = "X$dir"; then
10251 if test -z "$haveit"; then
10252 rpathdirs
="$rpathdirs $dir"
10255 for x
in $ltrpathdirs; do
10256 if test "X$x" = "X$dir"; then
10261 if test -z "$haveit"; then
10262 ltrpathdirs
="$ltrpathdirs $dir"
10267 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10270 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10273 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$dep"
10274 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$dep"
10280 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10281 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l$name"
10287 if test "X$rpathdirs" != "X"; then
10288 if test -n "$hardcode_libdir_separator"; then
10290 for found_dir
in $rpathdirs; do
10291 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10293 acl_save_libdir
="$libdir"
10295 eval flag
=\"$hardcode_libdir_flag_spec\"
10296 libdir
="$acl_save_libdir"
10297 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10299 for found_dir
in $rpathdirs; do
10300 acl_save_libdir
="$libdir"
10301 libdir
="$found_dir"
10302 eval flag
=\"$hardcode_libdir_flag_spec\"
10303 libdir
="$acl_save_libdir"
10304 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10308 if test "X$ltrpathdirs" != "X"; then
10309 for found_dir
in $ltrpathdirs; do
10310 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-R$found_dir"
10315 ac_save_CPPFLAGS
="$CPPFLAGS"
10317 for element
in $INCMPFR; do
10319 for x
in $CPPFLAGS; do
10321 acl_save_prefix
="$prefix"
10322 prefix
="$acl_final_prefix"
10323 acl_save_exec_prefix
="$exec_prefix"
10324 exec_prefix
="$acl_final_exec_prefix"
10326 exec_prefix
="$acl_save_exec_prefix"
10327 prefix
="$acl_save_prefix"
10329 if test "X$x" = "X$element"; then
10334 if test -z "$haveit"; then
10335 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpfr" >&5
10341 $as_echo_n "checking for libmpfr... " >&6; }
10342 if ${ac_cv_libmpfr+:} false
; then :
10343 $as_echo_n "(cached) " >&6
10346 ac_save_LIBS
="$LIBS"
10347 LIBS
="$LIBS $LIBMPFR"
10348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10349 /* end confdefs.h. */
10354 mpfr_exp_t exp; mpfr_t x;
10355 mpfr_frexp (&exp, x, x, MPFR_RNDN);
10360 if ac_fn_c_try_link
"$LINENO"; then :
10365 rm -f core conftest.err conftest.
$ac_objext \
10366 conftest
$ac_exeext conftest.
$ac_ext
10367 LIBS
="$ac_save_LIBS"
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmpfr" >&5
10371 $as_echo "$ac_cv_libmpfr" >&6; }
10372 if test "$ac_cv_libmpfr" = yes; then
10375 $as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libmpfr" >&5
10378 $as_echo_n "checking how to link with libmpfr... " >&6; }
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPFR" >&5
10380 $as_echo "$LIBMPFR" >&6; }
10383 CPPFLAGS
="$ac_save_CPPFLAGS"
10393 if test "$HAVE_LIBMPFR" != yes; then
10394 if test "$with_mpfr" = yes; then
10395 as_fn_error $?
"MPFR is missing or unusable" "$LINENO" 5
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR is missing or unusable; some features may be unavailable." >&5
10398 $as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;}
10403 # --------------------- #
10404 # Check for libpython. #
10405 # --------------------- #
10412 # Check whether --with-python was given.
10413 if test "${with_python+set}" = set; then :
10414 withval
=$with_python;
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10420 $as_echo_n "checking whether to use python... " >&6; }
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10422 $as_echo "$with_python" >&6; }
10424 if test "${with_python}" = no
; then
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10426 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10429 case "${with_python}" in
10431 if test -d "${with_python}"; then
10432 # Assume the python binary is ${with_python}/bin/python.
10433 python_prog
="${with_python}/bin/python"
10435 # If python does not exit ${with_python}/bin, then try in
10436 # ${with_python}. On Windows/MinGW, this is where the Python
10438 if test ! -x "${python_prog}"; then
10439 python_prog
="${with_python}/python"
10442 if test ! -x "${python_prog}"; then
10443 # Fall back to gdb 7.0/7.1 behaviour.
10444 python_prog
=missing
10445 python_prefix
=${with_python}
10447 elif test -x "${with_python}"; then
10448 # While we can't run python compiled for $host (unless host == build),
10449 # the user could write a script that provides the needed information,
10450 # so we support that.
10451 python_prog
=${with_python}
10454 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
10458 # Disallow --with-python=foo/bar.
10459 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
10462 # The user has either specified auto, yes, or the name of the python
10463 # program assumed to be in $PATH.
10465 case "${with_python}" in
10467 if test "${build}" = "${host}"; then
10468 # Extract the first word of "python", so it can be a program name with args.
10469 set dummy python
; ac_word
=$2
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10471 $as_echo_n "checking for $ac_word... " >&6; }
10472 if ${ac_cv_path_python_prog_path+:} false
; then :
10473 $as_echo_n "(cached) " >&6
10475 case $python_prog_path in
10477 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10480 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10481 for as_dir
in $PATH
10484 test -z "$as_dir" && as_dir
=.
10485 for ac_exec_ext
in '' $ac_executable_extensions; do
10486 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10487 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10495 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10499 python_prog_path
=$ac_cv_path_python_prog_path
10500 if test -n "$python_prog_path"; then
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10502 $as_echo "$python_prog_path" >&6; }
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10505 $as_echo "no" >&6; }
10509 if test "${python_prog_path}" = missing
; then
10510 python_prog
=missing
10512 python_prog
=${python_prog_path}
10515 # Not much we can do except assume the cross-compiler will find the
10517 python_prog
=missing
10521 # While we can't run python compiled for $host (unless host == build),
10522 # the user could write a script that provides the needed information,
10523 # so we support that.
10524 python_prog
="${with_python}"
10525 # Extract the first word of "${python_prog}", so it can be a program name with args.
10526 set dummy
${python_prog}; ac_word
=$2
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10528 $as_echo_n "checking for $ac_word... " >&6; }
10529 if ${ac_cv_path_python_prog_path+:} false
; then :
10530 $as_echo_n "(cached) " >&6
10532 case $python_prog_path in
10534 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10537 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10538 for as_dir
in $PATH
10541 test -z "$as_dir" && as_dir
=.
10542 for ac_exec_ext
in '' $ac_executable_extensions; do
10543 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10544 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10552 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10556 python_prog_path
=$ac_cv_path_python_prog_path
10557 if test -n "$python_prog_path"; then
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10559 $as_echo "$python_prog_path" >&6; }
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10562 $as_echo "no" >&6; }
10566 if test "${python_prog_path}" = missing
; then
10567 as_fn_error $?
"unable to find python program ${python_prog}" "$LINENO" 5
10573 if test "${python_prog}" != missing
; then
10574 # We have a python program to use, but it may be too old.
10575 # Don't flag an error for --with-python=auto (the default).
10576 have_python_config
=yes
10577 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
10578 if test $?
!= 0; then
10579 have_python_config
=failed
10580 if test "${with_python}" != auto
; then
10581 as_fn_error $?
"failure running python-config --includes" "$LINENO" 5
10584 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10585 if test $?
!= 0; then
10586 have_python_config
=failed
10587 if test "${with_python}" != auto
; then
10588 as_fn_error $?
"failure running python-config --ldflags" "$LINENO" 5
10591 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10592 if test $?
!= 0; then
10593 have_python_config
=failed
10594 if test "${with_python}" != auto
; then
10595 as_fn_error $?
"failure running python-config --exec-prefix" "$LINENO" 5
10599 # We do not have a python executable we can use to determine where
10600 # to find the Python headers and libs. We cannot guess the include
10601 # path from the python_prefix either, because that include path
10602 # depends on the Python version. So, there is nothing much we can
10603 # do except assume that the compiler will be able to find those files.
10606 have_python_config
=no
10609 # If we have python-config, only try the configuration it provides.
10610 # Otherwise fallback on the old way of trying different versions of
10614 if test "${have_python_config}" = yes; then
10617 new_CPPFLAGS
=${python_includes}
10618 new_LIBS
=${python_libs}
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
10620 $as_echo_n "checking for python... " >&6; }
10621 save_CPPFLAGS
=$CPPFLAGS
10623 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10624 LIBS
="$new_LIBS $LIBS"
10625 found_usable_python
=no
10626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10627 /* end confdefs.h. */
10628 #include "Python.h"
10637 if ac_fn_c_try_link
"$LINENO"; then :
10639 found_usable_python
=yes
10640 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10641 PYTHON_LIBS
=$new_LIBS
10643 rm -f core conftest.err conftest.
$ac_objext \
10644 conftest
$ac_exeext conftest.
$ac_ext
10645 CPPFLAGS
=$save_CPPFLAGS
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10648 $as_echo "${found_usable_python}" >&6; }
10650 elif test "${have_python_config}" != failed
; then
10651 if test "${have_libpython}" = no
; then
10654 new_CPPFLAGS
=${python_includes}
10655 new_LIBS
="-lpython2.7 ${python_libs}"
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
10657 $as_echo_n "checking for python... " >&6; }
10658 save_CPPFLAGS
=$CPPFLAGS
10660 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10661 LIBS
="$new_LIBS $LIBS"
10662 found_usable_python
=no
10663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10664 /* end confdefs.h. */
10665 #include "Python.h"
10674 if ac_fn_c_try_link
"$LINENO"; then :
10676 found_usable_python
=yes
10677 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10678 PYTHON_LIBS
=$new_LIBS
10680 rm -f core conftest.err conftest.
$ac_objext \
10681 conftest
$ac_exeext conftest.
$ac_ext
10682 CPPFLAGS
=$save_CPPFLAGS
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10685 $as_echo "${found_usable_python}" >&6; }
10688 if test "${have_libpython}" = no
; then
10691 new_CPPFLAGS
=${python_includes}
10692 new_LIBS
="-lpython2.6 ${python_libs}"
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
10694 $as_echo_n "checking for python... " >&6; }
10695 save_CPPFLAGS
=$CPPFLAGS
10697 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10698 LIBS
="$new_LIBS $LIBS"
10699 found_usable_python
=no
10700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10701 /* end confdefs.h. */
10702 #include "Python.h"
10711 if ac_fn_c_try_link
"$LINENO"; then :
10713 found_usable_python
=yes
10714 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10715 PYTHON_LIBS
=$new_LIBS
10717 rm -f core conftest.err conftest.
$ac_objext \
10718 conftest
$ac_exeext conftest.
$ac_ext
10719 CPPFLAGS
=$save_CPPFLAGS
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10722 $as_echo "${found_usable_python}" >&6; }
10727 if test "${have_libpython}" = no
; then
10728 case "${with_python}" in
10730 as_fn_error $?
"python is missing or unusable" "$LINENO" 5
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10734 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10737 as_fn_error $?
"no usable python found at ${with_python}" "$LINENO" 5
10741 if test -n "${python_prefix}"; then
10743 cat >>confdefs.h
<<_ACEOF
10744 #define WITH_PYTHON_PATH "${python_prefix}"
10748 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
10749 if test "x$prefix" = xNONE
; then
10750 test_prefix
=/usr
/local
10752 test_prefix
=$prefix
10755 test_prefix
=$exec_prefix
10758 case ${python_prefix} in
10759 "${test_prefix}"|
"${test_prefix}/"*|\
10760 '${exec_prefix}'|
'${exec_prefix}/'*)
10765 cat >>confdefs.h
<<_ACEOF
10766 #define PYTHON_PATH_RELOCATABLE $value
10774 if test "${have_libpython}" != no
; then
10776 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10778 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10779 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10780 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
10781 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
10782 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
10784 # Flags needed to compile Python code (taken from python-config --cflags).
10785 # We cannot call python-config directly because it will output whatever was
10786 # used when compiling the Python interpreter itself, including flags which
10787 # would make the python-related objects be compiled differently from the
10788 # rest of GDB (e.g., -O2 and -fPIC).
10789 if test "${GCC}" = yes; then
10790 tentative_python_cflags
="-fno-strict-aliasing -fwrapv"
10791 # Python headers recommend -DNDEBUG, but it's unclear if that just
10792 # refers to building Python itself. In release mode, though, it
10793 # doesn't hurt for the Python code in gdb to follow.
10794 $development || tentative_python_cflags
="$tentative_python_cflags -DNDEBUG"
10797 if test "x${tentative_python_cflags}" != x
; then
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10799 $as_echo_n "checking compiler flags for python code... " >&6; }
10800 for flag
in ${tentative_python_cflags}; do
10801 # Check that the compiler accepts it
10802 saved_CFLAGS
="$CFLAGS"
10803 CFLAGS
="$CFLAGS $flag"
10804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10805 /* end confdefs.h. */
10815 if ac_fn_c_try_compile
"$LINENO"; then :
10816 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
10818 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10819 CFLAGS
="$saved_CFLAGS"
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
10822 $as_echo "${PYTHON_CFLAGS}" >&6; }
10825 # On x64 Windows, Python's include headers, and pyconfig.h in
10826 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
10827 # version of Windows. Unfortunately, MS_WIN64 is only defined if
10828 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
10829 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
10830 # The issue was reported to the Python community, but still isn't
10831 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
10833 case "$gdb_host" in
10835 if test "${GCC}" = yes; then
10836 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
10841 # Even if Python support is not compiled in, we need to have this file
10842 # included so that the "python" command, et.al., still exists.
10843 CONFIG_OBS
="$CONFIG_OBS python/python.o"
10844 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
10847 # Work around Python http://bugs.python.org/issue10112. See also
10848 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
10849 # no effect. Note that the only test after this that uses Python is
10850 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
10851 # run without -export-dynamic too.
10852 PYTHON_LIBS
=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
10857 if test "${have_libpython}" != no
; then
10859 HAVE_PYTHON_FALSE
='#'
10861 HAVE_PYTHON_TRUE
='#'
10866 # -------------------- #
10867 # Check for libguile. #
10868 # -------------------- #
10875 # Check whether --with-guile was given.
10876 if test "${with_guile+set}" = set; then :
10877 withval
=$with_guile;
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
10883 $as_echo_n "checking whether to use guile... " >&6; }
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
10885 $as_echo "$with_guile" >&6; }
10887 # Extract the first word of "pkg-config", so it can be a program name with args.
10888 set dummy pkg-config
; ac_word
=$2
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10890 $as_echo_n "checking for $ac_word... " >&6; }
10891 if ${ac_cv_path_pkg_config_prog_path+:} false
; then :
10892 $as_echo_n "(cached) " >&6
10894 case $pkg_config_prog_path in
10896 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
10899 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10900 for as_dir
in $PATH
10903 test -z "$as_dir" && as_dir
=.
10904 for ac_exec_ext
in '' $ac_executable_extensions; do
10905 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10906 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10914 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
10918 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
10919 if test -n "$pkg_config_prog_path"; then
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
10921 $as_echo "$pkg_config_prog_path" >&6; }
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10924 $as_echo "no" >&6; }
10929 try_guile_versions
="guile-2.0"
10931 case "${with_guile}" in
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
10934 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
10937 if test "${pkg_config_prog_path}" = "missing"; then
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
10939 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
10942 pkg_config
=${pkg_config_prog_path}
10943 guile_version_list
=${try_guile_versions}
10946 found_usable_guile
=checking
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
10948 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
10949 for guile_version
in ${guile_version_list}; do
10950 ${pkg_config} --exists ${guile_version} 2>/dev
/null
10951 if test $?
!= 0; then
10954 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
10955 if test $?
!= 0; then
10956 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
10958 new_LIBS
=`${pkg_config} --libs ${guile_version}`
10959 if test $?
!= 0; then
10960 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
10962 found_usable_guile
=${guile_version}
10965 if test "${found_usable_guile}" = "checking"; then
10966 if test "${flag_errors}" = "yes"; then
10967 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
10969 found_usable_guile
=no
10972 if test "${found_usable_guile}" != no
; then
10973 save_CPPFLAGS
=$CPPFLAGS
10975 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10976 LIBS
="$LIBS $new_LIBS"
10977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10978 /* end confdefs.h. */
10979 #include "libguile.h"
10988 if ac_fn_c_try_link
"$LINENO"; then :
10990 GUILE_CPPFLAGS
=$new_CPPFLAGS
10991 GUILE_LIBS
=$new_LIBS
10993 found_usable_guile
=no
10995 rm -f core conftest.err conftest.
$ac_objext \
10996 conftest
$ac_exeext conftest.
$ac_ext
10997 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
10998 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11000 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11005 CPPFLAGS
=$save_CPPFLAGS
11007 if test "${found_usable_guile}" = no
; then
11008 if test "${flag_errors}" = yes; then
11009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11011 as_fn_error $?
"linking guile version ${guile_version} test program failed
11012 See \`config.log' for more details" "$LINENO" 5; }
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11017 $as_echo "${found_usable_guile}" >&6; }
11022 if test "${pkg_config_prog_path}" = "missing"; then
11023 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11026 pkg_config
=${pkg_config_prog_path}
11027 guile_version_list
=${try_guile_versions}
11030 found_usable_guile
=checking
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11032 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11033 for guile_version
in ${guile_version_list}; do
11034 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11035 if test $?
!= 0; then
11038 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11039 if test $?
!= 0; then
11040 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11042 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11043 if test $?
!= 0; then
11044 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11046 found_usable_guile
=${guile_version}
11049 if test "${found_usable_guile}" = "checking"; then
11050 if test "${flag_errors}" = "yes"; then
11051 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11053 found_usable_guile
=no
11056 if test "${found_usable_guile}" != no
; then
11057 save_CPPFLAGS
=$CPPFLAGS
11059 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11060 LIBS
="$LIBS $new_LIBS"
11061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11062 /* end confdefs.h. */
11063 #include "libguile.h"
11072 if ac_fn_c_try_link
"$LINENO"; then :
11074 GUILE_CPPFLAGS
=$new_CPPFLAGS
11075 GUILE_LIBS
=$new_LIBS
11077 found_usable_guile
=no
11079 rm -f core conftest.err conftest.
$ac_objext \
11080 conftest
$ac_exeext conftest.
$ac_ext
11081 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11082 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11084 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11089 CPPFLAGS
=$save_CPPFLAGS
11091 if test "${found_usable_guile}" = no
; then
11092 if test "${flag_errors}" = yes; then
11093 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11095 as_fn_error $?
"linking guile version ${guile_version} test program failed
11096 See \`config.log' for more details" "$LINENO" 5; }
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11101 $as_echo "${found_usable_guile}" >&6; }
11105 if test -x "${with_guile}"; then
11107 pkg_config
=${with_guile}
11108 guile_version_list
=${try_guile_versions}
11111 found_usable_guile
=checking
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11113 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11114 for guile_version
in ${guile_version_list}; do
11115 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11116 if test $?
!= 0; then
11119 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11120 if test $?
!= 0; then
11121 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11123 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11124 if test $?
!= 0; then
11125 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11127 found_usable_guile
=${guile_version}
11130 if test "${found_usable_guile}" = "checking"; then
11131 if test "${flag_errors}" = "yes"; then
11132 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11134 found_usable_guile
=no
11137 if test "${found_usable_guile}" != no
; then
11138 save_CPPFLAGS
=$CPPFLAGS
11140 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11141 LIBS
="$LIBS $new_LIBS"
11142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11143 /* end confdefs.h. */
11144 #include "libguile.h"
11153 if ac_fn_c_try_link
"$LINENO"; then :
11155 GUILE_CPPFLAGS
=$new_CPPFLAGS
11156 GUILE_LIBS
=$new_LIBS
11158 found_usable_guile
=no
11160 rm -f core conftest.err conftest.
$ac_objext \
11161 conftest
$ac_exeext conftest.
$ac_ext
11162 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11163 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11165 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11170 CPPFLAGS
=$save_CPPFLAGS
11172 if test "${found_usable_guile}" = no
; then
11173 if test "${flag_errors}" = yes; then
11174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11176 as_fn_error $?
"linking guile version ${guile_version} test program failed
11177 See \`config.log' for more details" "$LINENO" 5; }
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11182 $as_echo "${found_usable_guile}" >&6; }
11185 as_fn_error $?
"Guile config program not executable: ${with_guile}" "$LINENO" 5
11189 # Disallow --with=guile="" and --with-guile=foo/bar.
11190 as_fn_error $?
"invalid value for --with-guile" "$LINENO" 5
11193 # A space separate list of guile versions to try, in order.
11194 if test "${pkg_config_prog_path}" = "missing"; then
11195 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11198 pkg_config
=${pkg_config_prog_path}
11199 guile_version_list
=${with_guile}
11202 found_usable_guile
=checking
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11204 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11205 for guile_version
in ${guile_version_list}; do
11206 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11207 if test $?
!= 0; then
11210 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11211 if test $?
!= 0; then
11212 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11214 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11215 if test $?
!= 0; then
11216 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11218 found_usable_guile
=${guile_version}
11221 if test "${found_usable_guile}" = "checking"; then
11222 if test "${flag_errors}" = "yes"; then
11223 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11225 found_usable_guile
=no
11228 if test "${found_usable_guile}" != no
; then
11229 save_CPPFLAGS
=$CPPFLAGS
11231 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11232 LIBS
="$LIBS $new_LIBS"
11233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11234 /* end confdefs.h. */
11235 #include "libguile.h"
11244 if ac_fn_c_try_link
"$LINENO"; then :
11246 GUILE_CPPFLAGS
=$new_CPPFLAGS
11247 GUILE_LIBS
=$new_LIBS
11249 found_usable_guile
=no
11251 rm -f core conftest.err conftest.
$ac_objext \
11252 conftest
$ac_exeext conftest.
$ac_ext
11253 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11254 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11256 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11261 CPPFLAGS
=$save_CPPFLAGS
11263 if test "${found_usable_guile}" = no
; then
11264 if test "${flag_errors}" = yes; then
11265 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11267 as_fn_error $?
"linking guile version ${guile_version} test program failed
11268 See \`config.log' for more details" "$LINENO" 5; }
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11273 $as_echo "${found_usable_guile}" >&6; }
11278 if test "${have_libguile}" != no
; then
11279 case "${with_guile}" in
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11283 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11284 if ${ac_cv_guild_program_name+:} false
; then :
11285 $as_echo_n "(cached) " >&6
11287 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
11289 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11290 # the 'guild' and 'bindir' variables. In that case, try to guess
11291 # what the program name is, at the risk of getting it wrong if
11292 # Guile was configured with '--program-suffix' or similar.
11293 if test "x$ac_cv_guild_program_name" = "x"; then
11294 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
11295 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11300 $as_echo "$ac_cv_guild_program_name" >&6; }
11302 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11303 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11306 GUILD
="$ac_cv_guild_program_name"
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11313 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11314 if ${ac_cv_guild_program_name+:} false
; then :
11315 $as_echo_n "(cached) " >&6
11317 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
11319 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11320 # the 'guild' and 'bindir' variables. In that case, try to guess
11321 # what the program name is, at the risk of getting it wrong if
11322 # Guile was configured with '--program-suffix' or similar.
11323 if test "x$ac_cv_guild_program_name" = "x"; then
11324 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
11325 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11330 $as_echo "$ac_cv_guild_program_name" >&6; }
11332 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11333 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11336 GUILD
="$ac_cv_guild_program_name"
11343 if test "$cross_compiling" = no
; then
11346 GUILD_TARGET_FLAG
="--target=$host"
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
11353 $as_echo_n "checking whether guild supports this host... " >&6; }
11354 if ${ac_cv_guild_ok+:} false
; then :
11355 $as_echo_n "(cached) " >&6
11357 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
11358 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
11365 $as_echo "$ac_cv_guild_ok" >&6; }
11367 if test "$ac_cv_guild_ok" = no
; then
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
11370 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
11374 if test "${have_libguile}" != no
; then
11376 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
11378 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
11379 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
11380 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
11381 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
11382 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
11385 save_CPPFLAGS
="$CPPFLAGS"
11387 CPPFLAGS
="$GUILE_CPPFLAGS"
11388 for ac_func
in scm_new_smob
11390 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
11391 if test "x$ac_cv_func_scm_new_smob" = xyes
; then :
11392 cat >>confdefs.h
<<_ACEOF
11393 #define HAVE_SCM_NEW_SMOB 1
11400 CPPFLAGS
="$save_CPPFLAGS"
11402 # Even if Guile support is not compiled in, we need to have these files
11404 CONFIG_OBS
="$CONFIG_OBS guile/guile.o"
11405 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
11409 if test "${have_libguile}" != no
; then
11411 HAVE_GUILE_FALSE
='#'
11413 HAVE_GUILE_TRUE
='#'
11418 # ---------------------------- #
11419 # Check for source highlight. #
11420 # ---------------------------- #
11425 # Check whether --enable-source-highlight was given.
11426 if test "${enable_source_highlight+set}" = set; then :
11427 enableval
=$enable_source_highlight; case "${enableval}" in
11428 yes) enable_source_highlight
=yes ;;
11429 no
) enable_source_highlight
=no
;;
11430 *) as_fn_error $?
"bad value ${enableval} for source-highlight option" "$LINENO" 5 ;;
11433 enable_source_highlight
=auto
11437 if test "${enable_source_highlight}" != "no"; then
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
11439 $as_echo_n "checking for the source-highlight library... " >&6; }
11440 if test "${pkg_config_prog_path}" = "missing"; then
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
11442 $as_echo "no - pkg-config not found" >&6; }
11443 if test "${enable_source_highlight}" = "yes"; then
11444 as_fn_error $?
"pkg-config was not found in your system" "$LINENO" 5
11449 as_fn_error $?
"source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
11453 if ${pkg_config_prog_path} --exists source-highlight
; then
11454 SRCHIGH_CFLAGS
=`${pkg_config_prog_path} --cflags source-highlight`
11455 SRCHIGH_LIBS
=`${pkg_config_prog_path} --libs source-highlight`
11457 $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11460 $as_echo "yes" >&6; }
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11463 $as_echo "no" >&6; }
11464 if test "${enable_source_highlight}" = "yes"; then
11465 as_fn_error $?
"source-highlight was not found in your system" "$LINENO" 5
11474 # Check whether --with-intel_pt was given.
11475 if test "${with_intel_pt+set}" = set; then :
11476 withval
=$with_intel_pt;
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
11482 $as_echo_n "checking whether to use intel pt... " >&6; }
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
11484 $as_echo "$with_intel_pt" >&6; }
11486 if test "${with_intel_pt}" = no
; then
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
11488 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
11491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11492 /* end confdefs.h. */
11494 #include <linux/perf_event.h>
11495 #ifndef PERF_ATTR_SIZE_VER5
11500 if ac_fn_c_try_cpp
"$LINENO"; then :
11505 rm -f conftest.err conftest.i conftest.
$ac_ext
11506 if test "$perf_event" != yes; then
11507 if test "$with_intel_pt" = yes; then
11508 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
11511 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
11525 acl_save_prefix
="$prefix"
11526 prefix
="$acl_final_prefix"
11527 acl_save_exec_prefix
="$exec_prefix"
11528 exec_prefix
="$acl_final_exec_prefix"
11530 eval additional_includedir
=\"$includedir\"
11531 eval additional_libdir
=\"$libdir\"
11533 exec_prefix
="$acl_save_exec_prefix"
11534 prefix
="$acl_save_prefix"
11537 # Check whether --with-libipt-prefix was given.
11538 if test "${with_libipt_prefix+set}" = set; then :
11539 withval
=$with_libipt_prefix;
11540 if test "X$withval" = "Xno"; then
11543 if test "X$withval" = "X"; then
11545 acl_save_prefix
="$prefix"
11546 prefix
="$acl_final_prefix"
11547 acl_save_exec_prefix
="$exec_prefix"
11548 exec_prefix
="$acl_final_exec_prefix"
11550 eval additional_includedir
=\"$includedir\"
11551 eval additional_libdir
=\"$libdir\"
11553 exec_prefix
="$acl_save_exec_prefix"
11554 prefix
="$acl_save_prefix"
11557 additional_includedir
="$withval/include"
11558 additional_libdir
="$withval/lib"
11569 names_already_handled
=
11570 names_next_round
='ipt '
11571 while test -n "$names_next_round"; do
11572 names_this_round
="$names_next_round"
11574 for name
in $names_this_round; do
11576 for n
in $names_already_handled; do
11577 if test "$n" = "$name"; then
11578 already_handled
=yes
11582 if test -z "$already_handled"; then
11583 names_already_handled
="$names_already_handled $name"
11584 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11585 eval value
=\"\
$HAVE_LIB$uppername\"
11586 if test -n "$value"; then
11587 if test "$value" = yes; then
11588 eval value
=\"\
$LIB$uppername\"
11589 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
11590 eval value
=\"\
$LTLIB$uppername\"
11591 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
11600 if test $use_additional = yes; then
11601 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11602 found_dir
="$additional_libdir"
11603 found_so
="$additional_libdir/lib$name.$shlibext"
11604 if test -f "$additional_libdir/lib$name.la"; then
11605 found_la
="$additional_libdir/lib$name.la"
11608 if test -f "$additional_libdir/lib$name.$libext"; then
11609 found_dir
="$additional_libdir"
11610 found_a
="$additional_libdir/lib$name.$libext"
11611 if test -f "$additional_libdir/lib$name.la"; then
11612 found_la
="$additional_libdir/lib$name.la"
11617 if test "X$found_dir" = "X"; then
11618 for x
in $LDFLAGS $LTLIBIPT; do
11620 acl_save_prefix
="$prefix"
11621 prefix
="$acl_final_prefix"
11622 acl_save_exec_prefix
="$exec_prefix"
11623 exec_prefix
="$acl_final_exec_prefix"
11625 exec_prefix
="$acl_save_exec_prefix"
11626 prefix
="$acl_save_prefix"
11630 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11631 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11633 found_so
="$dir/lib$name.$shlibext"
11634 if test -f "$dir/lib$name.la"; then
11635 found_la
="$dir/lib$name.la"
11638 if test -f "$dir/lib$name.$libext"; then
11640 found_a
="$dir/lib$name.$libext"
11641 if test -f "$dir/lib$name.la"; then
11642 found_la
="$dir/lib$name.la"
11648 if test "X$found_dir" != "X"; then
11653 if test "X$found_dir" != "X"; then
11654 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
11655 if test "X$found_so" != "X"; then
11656 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11657 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11660 for x
in $ltrpathdirs; do
11661 if test "X$x" = "X$found_dir"; then
11666 if test -z "$haveit"; then
11667 ltrpathdirs
="$ltrpathdirs $found_dir"
11669 if test "$hardcode_direct" = yes; then
11670 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11672 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11673 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11675 for x
in $rpathdirs; do
11676 if test "X$x" = "X$found_dir"; then
11681 if test -z "$haveit"; then
11682 rpathdirs
="$rpathdirs $found_dir"
11686 for x
in $LDFLAGS $LIBIPT; do
11688 acl_save_prefix
="$prefix"
11689 prefix
="$acl_final_prefix"
11690 acl_save_exec_prefix
="$exec_prefix"
11691 exec_prefix
="$acl_final_exec_prefix"
11693 exec_prefix
="$acl_save_exec_prefix"
11694 prefix
="$acl_save_prefix"
11696 if test "X$x" = "X-L$found_dir"; then
11701 if test -z "$haveit"; then
11702 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
11704 if test "$hardcode_minus_L" != no
; then
11705 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11707 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
11713 if test "X$found_a" != "X"; then
11714 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
11716 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
11719 additional_includedir
=
11720 case "$found_dir" in
11722 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11723 additional_includedir
="$basedir/include"
11726 if test "X$additional_includedir" != "X"; then
11727 if test "X$additional_includedir" != "X/usr/include"; then
11729 if test "X$additional_includedir" = "X/usr/local/include"; then
11730 if test -n "$GCC"; then
11732 linux
*) haveit
=yes;;
11736 if test -z "$haveit"; then
11737 for x
in $CPPFLAGS $INCIPT; do
11739 acl_save_prefix
="$prefix"
11740 prefix
="$acl_final_prefix"
11741 acl_save_exec_prefix
="$exec_prefix"
11742 exec_prefix
="$acl_final_exec_prefix"
11744 exec_prefix
="$acl_save_exec_prefix"
11745 prefix
="$acl_save_prefix"
11747 if test "X$x" = "X-I$additional_includedir"; then
11752 if test -z "$haveit"; then
11753 if test -d "$additional_includedir"; then
11754 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
11760 if test -n "$found_la"; then
11761 save_libdir
="$libdir"
11762 case "$found_la" in
11763 */* |
*\\*) .
"$found_la" ;;
11764 *) .
"./$found_la" ;;
11766 libdir
="$save_libdir"
11767 for dep
in $dependency_libs; do
11770 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11771 if test "X$additional_libdir" != "X/usr/lib"; then
11773 if test "X$additional_libdir" = "X/usr/local/lib"; then
11774 if test -n "$GCC"; then
11776 linux
*) haveit
=yes;;
11780 if test -z "$haveit"; then
11782 for x
in $LDFLAGS $LIBIPT; do
11784 acl_save_prefix
="$prefix"
11785 prefix
="$acl_final_prefix"
11786 acl_save_exec_prefix
="$exec_prefix"
11787 exec_prefix
="$acl_final_exec_prefix"
11789 exec_prefix
="$acl_save_exec_prefix"
11790 prefix
="$acl_save_prefix"
11792 if test "X$x" = "X-L$additional_libdir"; then
11797 if test -z "$haveit"; then
11798 if test -d "$additional_libdir"; then
11799 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
11803 for x
in $LDFLAGS $LTLIBIPT; do
11805 acl_save_prefix
="$prefix"
11806 prefix
="$acl_final_prefix"
11807 acl_save_exec_prefix
="$exec_prefix"
11808 exec_prefix
="$acl_final_exec_prefix"
11810 exec_prefix
="$acl_save_exec_prefix"
11811 prefix
="$acl_save_prefix"
11813 if test "X$x" = "X-L$additional_libdir"; then
11818 if test -z "$haveit"; then
11819 if test -d "$additional_libdir"; then
11820 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
11827 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11828 if test "$enable_rpath" != no
; then
11830 for x
in $rpathdirs; do
11831 if test "X$x" = "X$dir"; then
11836 if test -z "$haveit"; then
11837 rpathdirs
="$rpathdirs $dir"
11840 for x
in $ltrpathdirs; do
11841 if test "X$x" = "X$dir"; then
11846 if test -z "$haveit"; then
11847 ltrpathdirs
="$ltrpathdirs $dir"
11852 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11855 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11858 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
11859 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
11865 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
11866 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
11872 if test "X$rpathdirs" != "X"; then
11873 if test -n "$hardcode_libdir_separator"; then
11875 for found_dir
in $rpathdirs; do
11876 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11878 acl_save_libdir
="$libdir"
11880 eval flag
=\"$hardcode_libdir_flag_spec\"
11881 libdir
="$acl_save_libdir"
11882 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
11884 for found_dir
in $rpathdirs; do
11885 acl_save_libdir
="$libdir"
11886 libdir
="$found_dir"
11887 eval flag
=\"$hardcode_libdir_flag_spec\"
11888 libdir
="$acl_save_libdir"
11889 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
11893 if test "X$ltrpathdirs" != "X"; then
11894 for found_dir
in $ltrpathdirs; do
11895 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
11900 ac_save_CPPFLAGS
="$CPPFLAGS"
11902 for element
in $INCIPT; do
11904 for x
in $CPPFLAGS; do
11906 acl_save_prefix
="$prefix"
11907 prefix
="$acl_final_prefix"
11908 acl_save_exec_prefix
="$exec_prefix"
11909 exec_prefix
="$acl_final_exec_prefix"
11911 exec_prefix
="$acl_save_exec_prefix"
11912 prefix
="$acl_save_prefix"
11914 if test "X$x" = "X$element"; then
11919 if test -z "$haveit"; then
11920 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
11926 $as_echo_n "checking for libipt... " >&6; }
11927 if ${ac_cv_libipt+:} false
; then :
11928 $as_echo_n "(cached) " >&6
11931 ac_save_LIBS
="$LIBS"
11932 LIBS
="$LIBS $LIBIPT"
11933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11934 /* end confdefs.h. */
11935 #include "intel-pt.h"
11939 pt_insn_alloc_decoder (0);
11944 if ac_fn_c_try_link
"$LINENO"; then :
11949 rm -f core conftest.err conftest.
$ac_objext \
11950 conftest
$ac_exeext conftest.
$ac_ext
11951 LIBS
="$ac_save_LIBS"
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
11955 $as_echo "$ac_cv_libipt" >&6; }
11956 if test "$ac_cv_libipt" = yes; then
11959 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
11962 $as_echo_n "checking how to link with libipt... " >&6; }
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
11964 $as_echo "$LIBIPT" >&6; }
11967 CPPFLAGS
="$ac_save_CPPFLAGS"
11977 if test "$HAVE_LIBIPT" != yes; then
11978 if test "$with_intel_pt" = yes; then
11979 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
11982 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
11986 LIBS
="$LIBS $LIBIPT"
11987 for ac_func
in pt_insn_event
11989 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
11990 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
11991 cat >>confdefs.h
<<_ACEOF
11992 #define HAVE_PT_INSN_EVENT 1
11998 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
12000 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
12002 cat >>confdefs.h
<<_ACEOF
12003 #define HAVE_STRUCT_PT_INSN_ENABLED 1
12008 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
12010 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
12012 cat >>confdefs.h
<<_ACEOF
12013 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
12023 # ------------------------- #
12024 # Checks for header files. #
12025 # ------------------------- #
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12028 $as_echo_n "checking for ANSI C header files... " >&6; }
12029 if ${ac_cv_header_stdc+:} false
; then :
12030 $as_echo_n "(cached) " >&6
12032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12033 /* end confdefs.h. */
12034 #include <stdlib.h>
12035 #include <stdarg.h>
12036 #include <string.h>
12047 if ac_fn_c_try_compile
"$LINENO"; then :
12048 ac_cv_header_stdc
=yes
12050 ac_cv_header_stdc
=no
12052 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12054 if test $ac_cv_header_stdc = yes; then
12055 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12057 /* end confdefs.h. */
12058 #include <string.h>
12061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12062 $EGREP "memchr" >/dev
/null
2>&1; then :
12065 ac_cv_header_stdc
=no
12071 if test $ac_cv_header_stdc = yes; then
12072 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12074 /* end confdefs.h. */
12075 #include <stdlib.h>
12078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12079 $EGREP "free" >/dev
/null
2>&1; then :
12082 ac_cv_header_stdc
=no
12088 if test $ac_cv_header_stdc = yes; then
12089 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12090 if test "$cross_compiling" = yes; then :
12093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12094 /* end confdefs.h. */
12096 #include <stdlib.h>
12097 #if ((' ' & 0x0FF) == 0x020)
12098 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12099 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12101 # define ISLOWER(c) \
12102 (('a' <= (c) && (c) <= 'i') \
12103 || ('j' <= (c) && (c) <= 'r') \
12104 || ('s' <= (c) && (c) <= 'z'))
12105 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12108 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12113 for (i = 0; i < 256; i++)
12114 if (XOR (islower (i), ISLOWER (i))
12115 || toupper (i) != TOUPPER (i))
12120 if ac_fn_c_try_run
"$LINENO"; then :
12123 ac_cv_header_stdc
=no
12125 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12126 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12132 $as_echo "$ac_cv_header_stdc" >&6; }
12133 if test $ac_cv_header_stdc = yes; then
12135 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12139 # elf_hp.h is for HP/UX 64-bit shared library support.
12140 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
12141 thread_db.h linux
/elf.h \
12142 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
12143 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
12144 sys
/reg.h sys
/debugreg.h sys
/select.h \
12147 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12148 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12149 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12150 cat >>confdefs.h
<<_ACEOF
12151 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12158 for ac_header
in sys
/user.h
12160 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
12161 # include <sys/param.h>
12165 if test "x$ac_cv_header_sys_user_h" = xyes
; then :
12166 cat >>confdefs.h
<<_ACEOF
12167 #define HAVE_SYS_USER_H 1
12175 for ac_header
in curses.h cursesX.h ncurses.h ncursesw
/ncurses.h ncurses
/ncurses.h ncurses
/term.h
12177 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12178 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12179 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12180 cat >>confdefs.h
<<_ACEOF
12181 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12188 for ac_header
in term.h
12190 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
12191 # include <curses.h>
12195 if test "x$ac_cv_header_term_h" = xyes
; then :
12196 cat >>confdefs.h
<<_ACEOF
12197 #define HAVE_TERM_H 1
12205 # ------------------------- #
12206 # Checks for declarations. #
12207 # ------------------------- #
12210 # Check for presence and size of long long.
12211 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12212 if test "x$ac_cv_type_long_long" = xyes
; then :
12214 cat >>confdefs.h
<<_ACEOF
12215 #define HAVE_LONG_LONG 1
12218 # The cast to long int works around a bug in the HP C Compiler
12219 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12220 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12221 # This bug is HP SR number 8606223364.
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12223 $as_echo_n "checking size of long long... " >&6; }
12224 if ${ac_cv_sizeof_long_long+:} false
; then :
12225 $as_echo_n "(cached) " >&6
12227 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12230 if test "$ac_cv_type_long_long" = yes; then
12231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12233 as_fn_error
77 "cannot compute sizeof (long long)
12234 See \`config.log' for more details" "$LINENO" 5; }
12236 ac_cv_sizeof_long_long
=0
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12242 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12246 cat >>confdefs.h
<<_ACEOF
12247 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12254 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
12255 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
12256 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
12262 cat >>confdefs.h
<<_ACEOF
12263 #define HAVE_DECL_BASENAME $ac_have_decl
12265 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
12266 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
12272 cat >>confdefs.h
<<_ACEOF
12273 #define HAVE_DECL_FFS $ac_have_decl
12275 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12276 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
12282 cat >>confdefs.h
<<_ACEOF
12283 #define HAVE_DECL_ASPRINTF $ac_have_decl
12285 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12286 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
12292 cat >>confdefs.h
<<_ACEOF
12293 #define HAVE_DECL_VASPRINTF $ac_have_decl
12295 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12296 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12302 cat >>confdefs.h
<<_ACEOF
12303 #define HAVE_DECL_SNPRINTF $ac_have_decl
12305 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12306 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
12312 cat >>confdefs.h
<<_ACEOF
12313 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12316 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
12317 if test "x$ac_cv_have_decl_strtol" = xyes
; then :
12323 cat >>confdefs.h
<<_ACEOF
12324 #define HAVE_DECL_STRTOL $ac_have_decl
12326 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
12327 if test "x$ac_cv_have_decl_strtoul" = xyes
; then :
12333 cat >>confdefs.h
<<_ACEOF
12334 #define HAVE_DECL_STRTOUL $ac_have_decl
12336 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
12337 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
12343 cat >>confdefs.h
<<_ACEOF
12344 #define HAVE_DECL_STRTOLL $ac_have_decl
12346 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
12347 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
12353 cat >>confdefs.h
<<_ACEOF
12354 #define HAVE_DECL_STRTOULL $ac_have_decl
12357 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12358 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
12364 cat >>confdefs.h
<<_ACEOF
12365 #define HAVE_DECL_STRVERSCMP $ac_have_decl
12370 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12371 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12377 cat >>confdefs.h
<<_ACEOF
12378 #define HAVE_DECL_SNPRINTF $ac_have_decl
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12383 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12384 if ${am_cv_val_LC_MESSAGES+:} false
; then :
12385 $as_echo_n "(cached) " >&6
12387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12388 /* end confdefs.h. */
12389 #include <locale.h>
12398 if ac_fn_c_try_link
"$LINENO"; then :
12399 am_cv_val_LC_MESSAGES
=yes
12401 am_cv_val_LC_MESSAGES
=no
12403 rm -f core conftest.err conftest.
$ac_objext \
12404 conftest
$ac_exeext conftest.
$ac_ext
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12407 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12408 if test $am_cv_val_LC_MESSAGES = yes; then
12410 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12415 # ----------------------- #
12416 # Checks for structures. #
12417 # ----------------------- #
12419 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
12420 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
12422 cat >>confdefs.h
<<_ACEOF
12423 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12428 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
12429 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
12431 cat >>confdefs.h
<<_ACEOF
12432 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12439 # ------------------ #
12440 # Checks for types. #
12441 # ------------------ #
12443 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12444 #include <sys/socket.h>
12447 if test "x$ac_cv_type_socklen_t" = xyes
; then :
12449 cat >>confdefs.h
<<_ACEOF
12450 #define HAVE_SOCKLEN_T 1
12457 # ------------------------------------- #
12458 # Checks for compiler characteristics. #
12459 # ------------------------------------- #
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12462 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12463 if ${ac_cv_c_const+:} false
; then :
12464 $as_echo_n "(cached) " >&6
12466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12467 /* end confdefs.h. */
12473 #ifndef __cplusplus
12474 /* Ultrix mips cc rejects this sort of thing. */
12475 typedef int charset[2];
12476 const charset cs = { 0, 0 };
12477 /* SunOS 4.1.1 cc rejects this. */
12478 char const *const *pcpcc;
12480 /* NEC SVR4.0.2 mips cc rejects this. */
12481 struct point {int x, y;};
12482 static struct point const zero = {0,0};
12483 /* AIX XL C 1.02.0.0 rejects this.
12484 It does not let you subtract one const X* pointer from another in
12485 an arm of an if-expression whose if-part is not a constant
12487 const char *g = "string";
12488 pcpcc = &g + (g ? g-g : 0);
12489 /* HPUX 7.0 cc rejects these. */
12491 ppc = (char**) pcpcc;
12492 pcpcc = (char const *const *) ppc;
12493 { /* SCO 3.2v4 cc rejects this sort of thing. */
12496 char const *s = 0 ? (char *) 0 : (char const *) 0;
12501 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12502 int x[] = {25, 17};
12503 const int *foo = &x[0];
12506 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12507 typedef const int *iptr;
12511 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12512 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12513 struct s { int j; const int *ap[3]; } bx;
12514 struct s *b = &bx; b->j = 5;
12516 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12517 const int foo = 10;
12518 if (!foo) return 0;
12520 return !cs[0] && !zero.x;
12527 if ac_fn_c_try_compile
"$LINENO"; then :
12532 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12535 $as_echo "$ac_cv_c_const" >&6; }
12536 if test $ac_cv_c_const = no
; then
12538 $as_echo "#define const /**/" >>confdefs.h
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12543 $as_echo_n "checking for inline... " >&6; }
12544 if ${ac_cv_c_inline+:} false
; then :
12545 $as_echo_n "(cached) " >&6
12548 for ac_kw
in inline __inline__ __inline
; do
12549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12550 /* end confdefs.h. */
12551 #ifndef __cplusplus
12553 static $ac_kw foo_t static_foo () {return 0; }
12554 $ac_kw foo_t foo () {return 0; }
12558 if ac_fn_c_try_compile
"$LINENO"; then :
12559 ac_cv_c_inline
=$ac_kw
12561 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12562 test "$ac_cv_c_inline" != no
&& break
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12567 $as_echo "$ac_cv_c_inline" >&6; }
12569 case $ac_cv_c_inline in
12572 case $ac_cv_c_inline in
12574 *) ac_val
=$ac_cv_c_inline;;
12576 cat >>confdefs.h
<<_ACEOF
12577 #ifndef __cplusplus
12578 #define inline $ac_val
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12585 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12586 if ${ac_cv_c_bigendian+:} false
; then :
12587 $as_echo_n "(cached) " >&6
12589 ac_cv_c_bigendian
=unknown
12590 # See if we're dealing with a universal compiler.
12591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12592 /* end confdefs.h. */
12593 #ifndef __APPLE_CC__
12594 not a universal capable compiler
12599 if ac_fn_c_try_compile
"$LINENO"; then :
12601 # Check for potential -arch flags. It is not universal unless
12602 # there are at least two -arch flags with different values.
12605 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12606 if test -n "$ac_prev"; then
12608 i?
86 | x86_64 | ppc | ppc64
)
12609 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12612 ac_cv_c_bigendian
=universal
12618 elif test "x$ac_word" = "x-arch"; then
12623 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12624 if test $ac_cv_c_bigendian = unknown
; then
12625 # See if sys/param.h defines the BYTE_ORDER macro.
12626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12627 /* end confdefs.h. */
12628 #include <sys/types.h>
12629 #include <sys/param.h>
12634 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12635 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12637 bogus endian macros
12644 if ac_fn_c_try_compile
"$LINENO"; then :
12645 # It does; now see whether it defined to BIG_ENDIAN or not.
12646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12647 /* end confdefs.h. */
12648 #include <sys/types.h>
12649 #include <sys/param.h>
12654 #if BYTE_ORDER != BIG_ENDIAN
12662 if ac_fn_c_try_compile
"$LINENO"; then :
12663 ac_cv_c_bigendian
=yes
12665 ac_cv_c_bigendian
=no
12667 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12669 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12671 if test $ac_cv_c_bigendian = unknown
; then
12672 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12674 /* end confdefs.h. */
12675 #include <limits.h>
12680 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12681 bogus endian macros
12688 if ac_fn_c_try_compile
"$LINENO"; then :
12689 # It does; now see whether it defined to _BIG_ENDIAN or not.
12690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12691 /* end confdefs.h. */
12692 #include <limits.h>
12697 #ifndef _BIG_ENDIAN
12705 if ac_fn_c_try_compile
"$LINENO"; then :
12706 ac_cv_c_bigendian
=yes
12708 ac_cv_c_bigendian
=no
12710 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12712 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12714 if test $ac_cv_c_bigendian = unknown
; then
12715 # Compile a test program.
12716 if test "$cross_compiling" = yes; then :
12717 # Try to guess by grepping values from an object file.
12718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12719 /* end confdefs.h. */
12720 short int ascii_mm[] =
12721 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12722 short int ascii_ii[] =
12723 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12724 int use_ascii (int i) {
12725 return ascii_mm[i] + ascii_ii[i];
12727 short int ebcdic_ii[] =
12728 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12729 short int ebcdic_mm[] =
12730 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12731 int use_ebcdic (int i) {
12732 return ebcdic_mm[i] + ebcdic_ii[i];
12739 return use_ascii (foo) == use_ebcdic (foo);
12744 if ac_fn_c_try_compile
"$LINENO"; then :
12745 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12746 ac_cv_c_bigendian
=yes
12748 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12749 if test "$ac_cv_c_bigendian" = unknown
; then
12750 ac_cv_c_bigendian
=no
12752 # finding both strings is unlikely to happen, but who knows?
12753 ac_cv_c_bigendian
=unknown
12757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12760 /* end confdefs.h. */
12761 $ac_includes_default
12766 /* Are we little or big endian? From Harbison&Steele. */
12770 char c[sizeof (long int)];
12773 return u.c[sizeof (long int) - 1] == 1;
12779 if ac_fn_c_try_run
"$LINENO"; then :
12780 ac_cv_c_bigendian
=no
12782 ac_cv_c_bigendian
=yes
12784 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12785 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12791 $as_echo "$ac_cv_c_bigendian" >&6; }
12792 case $ac_cv_c_bigendian in #(
12794 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12800 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12804 as_fn_error $?
"unknown endianness
12805 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12809 # ------------------------------ #
12810 # Checks for library functions. #
12811 # ------------------------------ #
12816 for ac_header
in $ac_header_list
12818 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12819 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12821 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12822 cat >>confdefs.h
<<_ACEOF
12823 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12837 for ac_func
in getpagesize
12839 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12840 if test "x$ac_cv_func_getpagesize" = xyes
; then :
12841 cat >>confdefs.h
<<_ACEOF
12842 #define HAVE_GETPAGESIZE 1
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12849 $as_echo_n "checking for working mmap... " >&6; }
12850 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
12851 $as_echo_n "(cached) " >&6
12853 if test "$cross_compiling" = yes; then :
12854 ac_cv_func_mmap_fixed_mapped
=no
12856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12857 /* end confdefs.h. */
12858 $ac_includes_default
12859 /* malloc might have been renamed as rpl_malloc. */
12862 /* Thanks to Mike Haertel and Jim Avera for this test.
12863 Here is a matrix of mmap possibilities:
12864 mmap private not fixed
12865 mmap private fixed at somewhere currently unmapped
12866 mmap private fixed at somewhere already mapped
12867 mmap shared not fixed
12868 mmap shared fixed at somewhere currently unmapped
12869 mmap shared fixed at somewhere already mapped
12870 For private mappings, we should verify that changes cannot be read()
12871 back from the file, nor mmap's back from the file at a different
12872 address. (There have been systems where private was not correctly
12873 implemented like the infamous i386 svr4.0, and systems where the
12874 VM page cache was not coherent with the file system buffer cache
12875 like early versions of FreeBSD and possibly contemporary NetBSD.)
12876 For shared mappings, we should conversely verify that changes get
12877 propagated back to all the places they're supposed to be.
12879 Grep wants private fixed already mapped.
12880 The main things grep needs to know about mmap are:
12881 * does it exist and is it safe to write into the mmap'd area
12882 * how to use it (BSD variants) */
12885 #include <sys/mman.h>
12887 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12891 /* This mess was copied from the GNU getpagesize.h. */
12892 #ifndef HAVE_GETPAGESIZE
12893 # ifdef _SC_PAGESIZE
12894 # define getpagesize() sysconf(_SC_PAGESIZE)
12895 # else /* no _SC_PAGESIZE */
12896 # ifdef HAVE_SYS_PARAM_H
12897 # include <sys/param.h>
12898 # ifdef EXEC_PAGESIZE
12899 # define getpagesize() EXEC_PAGESIZE
12900 # else /* no EXEC_PAGESIZE */
12902 # define getpagesize() NBPG * CLSIZE
12905 # endif /* no CLSIZE */
12906 # else /* no NBPG */
12908 # define getpagesize() NBPC
12909 # else /* no NBPC */
12911 # define getpagesize() PAGESIZE
12912 # endif /* PAGESIZE */
12913 # endif /* no NBPC */
12914 # endif /* no NBPG */
12915 # endif /* no EXEC_PAGESIZE */
12916 # else /* no HAVE_SYS_PARAM_H */
12917 # define getpagesize() 8192 /* punt totally */
12918 # endif /* no HAVE_SYS_PARAM_H */
12919 # endif /* no _SC_PAGESIZE */
12921 #endif /* no HAVE_GETPAGESIZE */
12926 char *data, *data2, *data3;
12927 const char *cdata2;
12931 pagesize = getpagesize ();
12933 /* First, make a file with some known garbage in it. */
12934 data = (char *) malloc (pagesize);
12937 for (i = 0; i < pagesize; ++i)
12938 *(data + i) = rand ();
12940 fd = creat ("conftest.mmap", 0600);
12943 if (write (fd, data, pagesize) != pagesize)
12947 /* Next, check that the tail of a page is zero-filled. File must have
12948 non-zero length, otherwise we risk SIGBUS for entire page. */
12949 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12953 if (write (fd2, cdata2, 1) != 1)
12955 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12956 if (data2 == MAP_FAILED)
12958 for (i = 0; i < pagesize; ++i)
12962 if (munmap (data2, pagesize))
12965 /* Next, try to mmap the file at a fixed address which already has
12966 something else allocated at it. If we can, also make sure that
12967 we see the same garbage. */
12968 fd = open ("conftest.mmap", O_RDWR);
12971 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12972 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12974 for (i = 0; i < pagesize; ++i)
12975 if (*(data + i) != *(data2 + i))
12978 /* Finally, make sure that changes to the mapped area do not
12979 percolate back to the file as seen by read(). (This is a bug on
12980 some variants of i386 svr4.0.) */
12981 for (i = 0; i < pagesize; ++i)
12982 *(data2 + i) = *(data2 + i) + 1;
12983 data3 = (char *) malloc (pagesize);
12986 if (read (fd, data3, pagesize) != pagesize)
12988 for (i = 0; i < pagesize; ++i)
12989 if (*(data + i) != *(data3 + i))
12995 if ac_fn_c_try_run
"$LINENO"; then :
12996 ac_cv_func_mmap_fixed_mapped
=yes
12998 ac_cv_func_mmap_fixed_mapped
=no
13000 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13001 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13006 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13007 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13009 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13012 rm -f conftest.mmap conftest.txt
13014 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13015 if test "x$ac_cv_type_pid_t" = xyes
; then :
13019 cat >>confdefs.h
<<_ACEOF
13025 for ac_header
in vfork.h
13027 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13028 if test "x$ac_cv_header_vfork_h" = xyes
; then :
13029 cat >>confdefs.h
<<_ACEOF
13030 #define HAVE_VFORK_H 1
13037 for ac_func
in fork vfork
13039 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13040 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13041 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13042 cat >>confdefs.h
<<_ACEOF
13043 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13049 if test "x$ac_cv_func_fork" = xyes
; then
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13051 $as_echo_n "checking for working fork... " >&6; }
13052 if ${ac_cv_func_fork_works+:} false
; then :
13053 $as_echo_n "(cached) " >&6
13055 if test "$cross_compiling" = yes; then :
13056 ac_cv_func_fork_works
=cross
13058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13059 /* end confdefs.h. */
13060 $ac_includes_default
13065 /* By Ruediger Kuhlmann. */
13066 return fork () < 0;
13072 if ac_fn_c_try_run
"$LINENO"; then :
13073 ac_cv_func_fork_works
=yes
13075 ac_cv_func_fork_works
=no
13077 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13078 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13083 $as_echo "$ac_cv_func_fork_works" >&6; }
13086 ac_cv_func_fork_works
=$ac_cv_func_fork
13088 if test "x$ac_cv_func_fork_works" = xcross
; then
13090 *-*-amigaos* |
*-*-msdosdjgpp*)
13091 # Override, as these systems have only a dummy fork() stub
13092 ac_cv_func_fork_works
=no
13095 ac_cv_func_fork_works
=yes
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13099 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13101 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13102 if test "x$ac_cv_func_vfork" = xyes
; then
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13104 $as_echo_n "checking for working vfork... " >&6; }
13105 if ${ac_cv_func_vfork_works+:} false
; then :
13106 $as_echo_n "(cached) " >&6
13108 if test "$cross_compiling" = yes; then :
13109 ac_cv_func_vfork_works
=cross
13111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13112 /* end confdefs.h. */
13113 /* Thanks to Paul Eggert for this test. */
13114 $ac_includes_default
13115 #include <sys/wait.h>
13116 #ifdef HAVE_VFORK_H
13117 # include <vfork.h>
13119 /* On some sparc systems, changes by the child to local and incoming
13120 argument registers are propagated back to the parent. The compiler
13121 is told about this with #include <vfork.h>, but some compilers
13122 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13123 static variable whose address is put into a register that is
13124 clobbered by the vfork. */
13127 sparc_address_test (int arg)
13129 sparc_address_test (arg) int arg;
13132 static pid_t child;
13150 pid_t parent = getpid ();
13153 sparc_address_test (0);
13158 /* Here is another test for sparc vfork register problems. This
13159 test uses lots of local variables, at least as many local
13160 variables as main has allocated so far including compiler
13161 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13162 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13163 reuse the register of parent for one of the local variables,
13164 since it will think that parent can't possibly be used any more
13165 in this routine. Assigning to the local variable will thus
13166 munge parent in the parent process. */
13168 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13169 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13170 /* Convince the compiler that p..p7 are live; otherwise, it might
13171 use the same hardware register for all 8 local variables. */
13172 if (p != p1 || p != p2 || p != p3 || p != p4
13173 || p != p5 || p != p6 || p != p7)
13176 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13177 from child file descriptors. If the child closes a descriptor
13178 before it execs or exits, this munges the parent's descriptor
13179 as well. Test for this by closing stdout in the child. */
13180 _exit(close(fileno(stdout)) != 0);
13185 while (wait(&status) != child)
13188 /* Was there some problem with vforking? */
13191 /* Did the child fail? (This shouldn't happen.) */
13194 /* Did the vfork/compiler bug occur? */
13195 || parent != getpid()
13197 /* Did the file descriptor bug occur? */
13198 || fstat(fileno(stdout), &st) != 0
13203 if ac_fn_c_try_run
"$LINENO"; then :
13204 ac_cv_func_vfork_works
=yes
13206 ac_cv_func_vfork_works
=no
13208 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13209 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13214 $as_echo "$ac_cv_func_vfork_works" >&6; }
13217 if test "x$ac_cv_func_fork_works" = xcross
; then
13218 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13220 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13223 if test "x$ac_cv_func_vfork_works" = xyes
; then
13225 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13229 $as_echo "#define vfork fork" >>confdefs.h
13232 if test "x$ac_cv_func_fork_works" = xyes
; then
13234 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13238 for ac_func
in getauxval getrusage getuid getgid \
13239 pipe poll pread pread64 pwrite resize_term \
13240 sbrk getpgid setpgid setpgrp setsid \
13241 sigaction sigsetmask socketpair \
13242 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
13243 setrlimit getrlimit posix_madvise waitpid \
13244 ptrace64 sigaltstack setns use_default_colors
13246 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13247 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13248 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13249 cat >>confdefs.h
<<_ACEOF
13250 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13258 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13259 if ${am_cv_langinfo_codeset+:} false
; then :
13260 $as_echo_n "(cached) " >&6
13262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13263 /* end confdefs.h. */
13264 #include <langinfo.h>
13268 char* cs = nl_langinfo(CODESET);
13273 if ac_fn_c_try_link
"$LINENO"; then :
13274 am_cv_langinfo_codeset
=yes
13276 am_cv_langinfo_codeset
=no
13278 rm -f core conftest.err conftest.
$ac_objext \
13279 conftest
$ac_exeext conftest.
$ac_ext
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13283 $as_echo "$am_cv_langinfo_codeset" >&6; }
13284 if test $am_cv_langinfo_codeset = yes; then
13286 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13290 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13291 if test "x$ac_cv_type_size_t" = xyes
; then :
13295 cat >>confdefs.h
<<_ACEOF
13296 #define size_t unsigned int
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13302 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13303 if ${ac_cv_path_SED+:} false
; then :
13304 $as_echo_n "(cached) " >&6
13306 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
13307 for ac_i
in 1 2 3 4 5 6 7; do
13308 ac_script
="$ac_script$as_nl$ac_script"
13310 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
13311 { ac_script
=; unset ac_script
;}
13312 if test -z "$SED"; then
13313 ac_path_SED_found
=false
13314 # Loop through the user's path and test for each of PROGNAME-LIST
13315 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13316 for as_dir
in $PATH
13319 test -z "$as_dir" && as_dir
=.
13320 for ac_prog
in sed gsed
; do
13321 for ac_exec_ext
in '' $ac_executable_extensions; do
13322 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
13323 as_fn_executable_p
"$ac_path_SED" ||
continue
13324 # Check for GNU ac_path_SED and select it if it is found.
13325 # Check for GNU $ac_path_SED
13326 case `"$ac_path_SED" --version 2>&1` in
13328 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
13331 $as_echo_n 0123456789 >"conftest.in"
13334 cat "conftest.in" "conftest.in" >"conftest.tmp"
13335 mv "conftest.tmp" "conftest.in"
13336 cp "conftest.in" "conftest.nl"
13337 $as_echo '' >> "conftest.nl"
13338 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13339 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13340 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13341 if test $ac_count -gt ${ac_path_SED_max-0}; then
13342 # Best one so far, save it but keep looking for a better one
13343 ac_cv_path_SED
="$ac_path_SED"
13344 ac_path_SED_max
=$ac_count
13346 # 10*(2^10) chars as input seems more than enough
13347 test $ac_count -gt 10 && break
13349 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13352 $ac_path_SED_found && break 3
13357 if test -z "$ac_cv_path_SED"; then
13358 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
13361 ac_cv_path_SED
=$SED
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13366 $as_echo "$ac_cv_path_SED" >&6; }
13367 SED
="$ac_cv_path_SED"
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13372 $as_echo_n "checking for ANSI C header files... " >&6; }
13373 if ${ac_cv_header_stdc+:} false
; then :
13374 $as_echo_n "(cached) " >&6
13376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13377 /* end confdefs.h. */
13378 #include <stdlib.h>
13379 #include <stdarg.h>
13380 #include <string.h>
13391 if ac_fn_c_try_compile
"$LINENO"; then :
13392 ac_cv_header_stdc
=yes
13394 ac_cv_header_stdc
=no
13396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13398 if test $ac_cv_header_stdc = yes; then
13399 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13401 /* end confdefs.h. */
13402 #include <string.h>
13405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13406 $EGREP "memchr" >/dev
/null
2>&1; then :
13409 ac_cv_header_stdc
=no
13415 if test $ac_cv_header_stdc = yes; then
13416 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13418 /* end confdefs.h. */
13419 #include <stdlib.h>
13422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13423 $EGREP "free" >/dev
/null
2>&1; then :
13426 ac_cv_header_stdc
=no
13432 if test $ac_cv_header_stdc = yes; then
13433 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13434 if test "$cross_compiling" = yes; then :
13437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13438 /* end confdefs.h. */
13440 #include <stdlib.h>
13441 #if ((' ' & 0x0FF) == 0x020)
13442 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13443 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13445 # define ISLOWER(c) \
13446 (('a' <= (c) && (c) <= 'i') \
13447 || ('j' <= (c) && (c) <= 'r') \
13448 || ('s' <= (c) && (c) <= 'z'))
13449 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13452 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13457 for (i = 0; i < 256; i++)
13458 if (XOR (islower (i), ISLOWER (i))
13459 || toupper (i) != TOUPPER (i))
13464 if ac_fn_c_try_run
"$LINENO"; then :
13467 ac_cv_header_stdc
=no
13469 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13470 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13476 $as_echo "$ac_cv_header_stdc" >&6; }
13477 if test $ac_cv_header_stdc = yes; then
13479 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13483 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13484 # for constant arguments. Useless!
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13486 $as_echo_n "checking for working alloca.h... " >&6; }
13487 if ${ac_cv_working_alloca_h+:} false
; then :
13488 $as_echo_n "(cached) " >&6
13490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13491 /* end confdefs.h. */
13492 #include <alloca.h>
13496 char *p = (char *) alloca (2 * sizeof (int));
13502 if ac_fn_c_try_link
"$LINENO"; then :
13503 ac_cv_working_alloca_h
=yes
13505 ac_cv_working_alloca_h
=no
13507 rm -f core conftest.err conftest.
$ac_objext \
13508 conftest
$ac_exeext conftest.
$ac_ext
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13511 $as_echo "$ac_cv_working_alloca_h" >&6; }
13512 if test $ac_cv_working_alloca_h = yes; then
13514 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13519 $as_echo_n "checking for alloca... " >&6; }
13520 if ${ac_cv_func_alloca_works+:} false
; then :
13521 $as_echo_n "(cached) " >&6
13523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13524 /* end confdefs.h. */
13526 # define alloca __builtin_alloca
13529 # include <malloc.h>
13530 # define alloca _alloca
13532 # ifdef HAVE_ALLOCA_H
13533 # include <alloca.h>
13538 # ifndef alloca /* predefined by HP cc +Olibcalls */
13539 void *alloca (size_t);
13549 char *p = (char *) alloca (1);
13555 if ac_fn_c_try_link
"$LINENO"; then :
13556 ac_cv_func_alloca_works
=yes
13558 ac_cv_func_alloca_works
=no
13560 rm -f core conftest.err conftest.
$ac_objext \
13561 conftest
$ac_exeext conftest.
$ac_ext
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13564 $as_echo "$ac_cv_func_alloca_works" >&6; }
13566 if test $ac_cv_func_alloca_works = yes; then
13568 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13571 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13572 # that cause trouble. Some versions do not even contain alloca or
13573 # contain a buggy version. If you still want to use their alloca,
13574 # use ar to extract alloca.o from them instead of compiling alloca.c.
13576 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
13578 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13582 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13583 if ${ac_cv_os_cray+:} false
; then :
13584 $as_echo_n "(cached) " >&6
13586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13587 /* end confdefs.h. */
13588 #if defined CRAY && ! defined CRAY2
13595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13596 $EGREP "webecray" >/dev
/null
2>&1; then :
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13605 $as_echo "$ac_cv_os_cray" >&6; }
13606 if test $ac_cv_os_cray = yes; then
13607 for ac_func
in _getb67 GETB67 getb67
; do
13608 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13609 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13610 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13612 cat >>confdefs.h
<<_ACEOF
13613 #define CRAY_STACKSEG_END $ac_func
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13623 $as_echo_n "checking stack direction for C alloca... " >&6; }
13624 if ${ac_cv_c_stack_direction+:} false
; then :
13625 $as_echo_n "(cached) " >&6
13627 if test "$cross_compiling" = yes; then :
13628 ac_cv_c_stack_direction
=0
13630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13631 /* end confdefs.h. */
13632 $ac_includes_default
13634 find_stack_direction (int *addr, int depth)
13636 int dir, dummy = 0;
13639 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13640 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13641 return dir + dummy;
13645 main (int argc, char **argv)
13647 return find_stack_direction (0, argc + !argv + 20) < 0;
13650 if ac_fn_c_try_run
"$LINENO"; then :
13651 ac_cv_c_stack_direction
=1
13653 ac_cv_c_stack_direction
=-1
13655 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13656 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13661 $as_echo "$ac_cv_c_stack_direction" >&6; }
13662 cat >>confdefs.h
<<_ACEOF
13663 #define STACK_DIRECTION $ac_cv_c_stack_direction
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13672 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13673 if ${am_cv_langinfo_codeset+:} false
; then :
13674 $as_echo_n "(cached) " >&6
13676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13677 /* end confdefs.h. */
13678 #include <langinfo.h>
13682 char* cs = nl_langinfo(CODESET);
13687 if ac_fn_c_try_link
"$LINENO"; then :
13688 am_cv_langinfo_codeset
=yes
13690 am_cv_langinfo_codeset
=no
13692 rm -f core conftest.err conftest.
$ac_objext \
13693 conftest
$ac_exeext conftest.
$ac_ext
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13697 $as_echo "$am_cv_langinfo_codeset" >&6; }
13698 if test $am_cv_langinfo_codeset = yes; then
13700 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13705 for ac_header
in linux
/perf_event.h locale.h memory.h signal.h sys
/resource.h sys
/socket.h sys
/un.h sys
/wait.h thread_db.h
wait.h termios.h dlfcn.h
13707 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13708 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13709 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13710 cat >>confdefs.h
<<_ACEOF
13711 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13719 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair sigaction \
13722 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13723 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13724 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13725 cat >>confdefs.h
<<_ACEOF
13726 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13733 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13734 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
13740 cat >>confdefs.h
<<_ACEOF
13741 #define HAVE_DECL_STRSTR $ac_have_decl
13745 # Check for std::thread. This does not work on some platforms, like
13748 ac_cpp
='$CXXCPP $CPPFLAGS'
13749 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13750 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13751 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
13758 ac_cpp
='$CPP $CPPFLAGS'
13759 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13760 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13761 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13765 # We used to check for pthread.h first, but this fails if pthread.h
13766 # requires special compiler flags (e.g. on Tru64 or Sequent).
13767 # It gets checked for in the link test anyway.
13769 # First of all, check if the user has set any of the PTHREAD_LIBS,
13770 # etcetera environment variables, and if threads linking works using
13772 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
13773 ax_pthread_save_CC
="$CC"
13774 ax_pthread_save_CFLAGS
="$CFLAGS"
13775 ax_pthread_save_LIBS
="$LIBS"
13776 if test "x$PTHREAD_CC" != "x"; then :
13779 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
13780 LIBS
="$PTHREAD_LIBS $LIBS"
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
13782 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
13783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13784 /* end confdefs.h. */
13786 /* Override any GCC internal prototype to avoid an error.
13787 Use char because int might match the return type of a GCC
13788 builtin and then its argument prototype would still apply. */
13792 char pthread_join ();
13796 return pthread_join ();
13801 if ac_fn_c_try_link
"$LINENO"; then :
13804 rm -f core conftest.err conftest.
$ac_objext \
13805 conftest
$ac_exeext conftest.
$ac_ext
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
13807 $as_echo "$ax_pthread_ok" >&6; }
13808 if test "x$ax_pthread_ok" = "xno"; then
13812 CC
="$ax_pthread_save_CC"
13813 CFLAGS
="$ax_pthread_save_CFLAGS"
13814 LIBS
="$ax_pthread_save_LIBS"
13817 # We must check for the threads library under a number of different
13818 # names; the ordering is very important because some systems
13819 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
13820 # libraries is broken (non-POSIX).
13822 # Create a list of thread flags to try. Items starting with a "-" are
13823 # C compiler flags, and other items are library names, except for "none"
13824 # which indicates that we try without any flags at all, and "pthread-config"
13825 # which is a program returning the flags for the Pth emulation library.
13827 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
13829 # The ordering *is* (sometimes) important. Some notes on the
13830 # individual items follow:
13832 # pthreads: AIX (must check this before -lpthread)
13833 # none: in case threads are in libc; should be tried before -Kthread and
13834 # other compiler flags to prevent continual compiler warnings
13835 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
13836 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
13837 # (Note: HP C rejects this with "bad form for `-t' option")
13838 # -pthreads: Solaris/gcc (Note: HP C also rejects)
13839 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
13840 # doesn't hurt to check since this sometimes defines pthreads and
13841 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
13842 # is present but should not be used directly; and before -mthreads,
13843 # because the compiler interprets this as "-mt" + "-hreads")
13844 # -mthreads: Mingw32/gcc, Lynx/gcc
13845 # pthread: Linux, etcetera
13846 # --thread-safe: KAI C++
13847 # pthread-config: use pthread-config program (for GNU Pth library)
13853 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
13854 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
13856 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
13861 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
13862 # multi-threading and also sets -lpthread."
13864 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
13869 # IBM z/OS requires a feature-test macro to be defined in order to
13870 # enable POSIX threads at all, so give the user a hint if this is
13871 # not set. (We don't define these ourselves, as they can affect
13872 # other portions of the system API in unpredictable ways.)
13874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13875 /* end confdefs.h. */
13877 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
13878 AX_PTHREAD_ZOS_MISSING
13882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13883 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
13885 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
13893 # On Solaris (at least, for some versions), libc contains stubbed
13894 # (non-functional) versions of the pthreads routines, so link-based
13895 # tests will erroneously succeed. (N.B.: The stubs are missing
13896 # pthread_cleanup_push, or rather a function called by this macro,
13897 # so we could check for that, but who knows whether they'll stub
13898 # that too in a future libc.) So we'll check first for the
13899 # standard Solaris way of linking pthreads (-mt -lpthread).
13901 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
13905 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
13907 if test "x$GCC" = "xyes"; then :
13908 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
13911 # The presence of a feature test macro requesting re-entrant function
13912 # definitions is, on some systems, a strong hint that pthreads support is
13913 # correctly enabled
13916 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
13917 ax_pthread_check_macro
="_REENTRANT"
13921 ax_pthread_check_macro
="_THREAD_SAFE"
13925 ax_pthread_check_macro
="--"
13928 if test "x$ax_pthread_check_macro" = "x--"; then :
13929 ax_pthread_check_cond
=0
13931 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
13934 # Are we compiling with Clang?
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
13937 $as_echo_n "checking whether $CC is Clang... " >&6; }
13938 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
13939 $as_echo_n "(cached) " >&6
13941 ax_cv_PTHREAD_CLANG
=no
13942 # Note that Autoconf sets GCC=yes for Clang as well as GCC
13943 if test "x$GCC" = "xyes"; then
13944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13945 /* end confdefs.h. */
13946 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
13947 # if defined(__clang__) && defined(__llvm__)
13948 AX_PTHREAD_CC_IS_CLANG
13952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13953 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
13954 ax_cv_PTHREAD_CLANG
=yes
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
13962 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
13963 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
13965 ax_pthread_clang_warning
=no
13967 # Clang needs special handling, because older versions handle the -pthread
13968 # option in a rather... idiosyncratic way
13970 if test "x$ax_pthread_clang" = "xyes"; then
13972 # Clang takes -pthread; it has never supported any other flag
13974 # (Note 1: This will need to be revisited if a system that Clang
13975 # supports has POSIX threads in a separate library. This tends not
13976 # to be the way of modern systems, but it's conceivable.)
13978 # (Note 2: On some systems, notably Darwin, -pthread is not needed
13979 # to get POSIX threads support; the API is always present and
13980 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
13981 # -pthread does define _REENTRANT, and while the Darwin headers
13982 # ignore this macro, third-party headers might not.)
13984 PTHREAD_CFLAGS
="-pthread"
13989 # However, older versions of Clang make a point of warning the user
13990 # that, in an invocation where only linking and no compilation is
13991 # taking place, the -pthread option has no effect ("argument unused
13992 # during compilation"). They expect -pthread to be passed in only
13993 # when source code is being compiled.
13995 # Problem is, this is at odds with the way Automake and most other
13996 # C build frameworks function, which is that the same flags used in
13997 # compilation (CFLAGS) are also used in linking. Many systems
13998 # supported by AX_PTHREAD require exactly this for POSIX threads
13999 # support, and in fact it is often not straightforward to specify a
14000 # flag that is used only in the compilation phase and not in
14001 # linking. Such a scenario is extremely rare in practice.
14003 # Even though use of the -pthread flag in linking would only print
14004 # a warning, this can be a nuisance for well-run software projects
14005 # that build with -Werror. So if the active version of Clang has
14006 # this misfeature, we search for an option to squash it.
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
14009 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
14010 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
14011 $as_echo_n "(cached) " >&6
14013 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
14014 # Create an alternate version of $ac_link that compiles and
14015 # links in two steps (.c -> .o, .o -> exe) instead of one
14016 # (.c -> exe), because the warning occurs only in the second
14018 ax_pthread_save_ac_link
="$ac_link"
14019 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
14020 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
14021 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
14022 ax_pthread_save_CFLAGS
="$CFLAGS"
14023 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
14024 if test "x$ax_pthread_try" = "xunknown"; then :
14027 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
14028 ac_link
="$ax_pthread_save_ac_link"
14029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14030 /* end confdefs.h. */
14031 int main(void){return 0;}
14033 if ac_fn_c_try_link
"$LINENO"; then :
14034 ac_link
="$ax_pthread_2step_ac_link"
14035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14036 /* end confdefs.h. */
14037 int main(void){return 0;}
14039 if ac_fn_c_try_link
"$LINENO"; then :
14042 rm -f core conftest.err conftest.
$ac_objext \
14043 conftest
$ac_exeext conftest.
$ac_ext
14046 rm -f core conftest.err conftest.
$ac_objext \
14047 conftest
$ac_exeext conftest.
$ac_ext
14049 ac_link
="$ax_pthread_save_ac_link"
14050 CFLAGS
="$ax_pthread_save_CFLAGS"
14051 if test "x$ax_pthread_try" = "x"; then :
14054 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
14058 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
14060 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
14062 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
14065 fi # $ax_pthread_clang = yes
14067 if test "x$ax_pthread_ok" = "xno"; then
14068 for ax_pthread_try_flag
in $ax_pthread_flags; do
14070 case $ax_pthread_try_flag in
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14073 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
14078 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
14079 PTHREAD_CFLAGS
="-mt"
14080 PTHREAD_LIBS
="-lpthread"
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
14085 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
14086 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
14090 # Extract the first word of "pthread-config", so it can be a program name with args.
14091 set dummy pthread-config
; ac_word
=$2
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14093 $as_echo_n "checking for $ac_word... " >&6; }
14094 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
14095 $as_echo_n "(cached) " >&6
14097 if test -n "$ax_pthread_config"; then
14098 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
14100 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14101 for as_dir
in $PATH
14104 test -z "$as_dir" && as_dir
=.
14105 for ac_exec_ext
in '' $ac_executable_extensions; do
14106 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14107 ac_cv_prog_ax_pthread_config
="yes"
14108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14115 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
14118 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
14119 if test -n "$ax_pthread_config"; then
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
14121 $as_echo "$ax_pthread_config" >&6; }
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14124 $as_echo "no" >&6; }
14128 if test "x$ax_pthread_config" = "xno"; then :
14131 PTHREAD_CFLAGS
="`pthread-config --cflags`"
14132 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
14137 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
14138 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
14142 ax_pthread_save_CFLAGS
="$CFLAGS"
14143 ax_pthread_save_LIBS
="$LIBS"
14144 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
14145 LIBS
="$PTHREAD_LIBS $LIBS"
14147 # Check for various functions. We must include pthread.h,
14148 # since some functions may be macros. (On the Sequent, we
14149 # need a special flag -Kthread to make this header compile.)
14150 # We check for pthread_join because it is in -lpthread on IRIX
14151 # while pthread_create is in libc. We check for pthread_attr_init
14152 # due to DEC craziness with -lpthreads. We check for
14153 # pthread_cleanup_push because it is one of the few pthread
14154 # functions on Solaris that doesn't have a non-functional libc stub.
14155 # We try pthread_create on general principles.
14157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14158 /* end confdefs.h. */
14159 #include <pthread.h>
14160 # if $ax_pthread_check_cond
14161 # error "$ax_pthread_check_macro must be defined"
14163 static void routine(void *a) { a = 0; }
14164 static void *start_routine(void *a) { return a; }
14168 pthread_t th; pthread_attr_t attr;
14169 pthread_create(&th, 0, start_routine, 0);
14170 pthread_join(th, 0);
14171 pthread_attr_init(&attr);
14172 pthread_cleanup_push(routine, 0);
14173 pthread_cleanup_pop(0) /* ; */
14178 if ac_fn_c_try_link
"$LINENO"; then :
14181 rm -f core conftest.err conftest.
$ac_objext \
14182 conftest
$ac_exeext conftest.
$ac_ext
14184 CFLAGS
="$ax_pthread_save_CFLAGS"
14185 LIBS
="$ax_pthread_save_LIBS"
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14188 $as_echo "$ax_pthread_ok" >&6; }
14189 if test "x$ax_pthread_ok" = "xyes"; then :
14198 # Various other checks:
14199 if test "x$ax_pthread_ok" = "xyes"; then
14200 ax_pthread_save_CFLAGS
="$CFLAGS"
14201 ax_pthread_save_LIBS
="$LIBS"
14202 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
14203 LIBS
="$PTHREAD_LIBS $LIBS"
14205 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14207 $as_echo_n "checking for joinable pthread attribute... " >&6; }
14208 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
14209 $as_echo_n "(cached) " >&6
14211 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
14212 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
14213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14214 /* end confdefs.h. */
14215 #include <pthread.h>
14219 int attr = $ax_pthread_attr; return attr /* ; */
14224 if ac_fn_c_try_link
"$LINENO"; then :
14225 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
14227 rm -f core conftest.err conftest.
$ac_objext \
14228 conftest
$ac_exeext conftest.
$ac_ext
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
14233 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
14234 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
14235 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
14236 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
14238 cat >>confdefs.h
<<_ACEOF
14239 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
14242 ax_pthread_joinable_attr_defined
=yes
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
14247 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
14248 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
14249 $as_echo_n "(cached) " >&6
14251 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
14254 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
14260 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
14261 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
14262 test "x$ax_pthread_special_flags_added" != "xyes"; then :
14263 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
14264 ax_pthread_special_flags_added
=yes
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
14268 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
14269 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
14270 $as_echo_n "(cached) " >&6
14272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14273 /* end confdefs.h. */
14274 #include <pthread.h>
14278 int i = PTHREAD_PRIO_INHERIT;
14283 if ac_fn_c_try_link
"$LINENO"; then :
14284 ax_cv_PTHREAD_PRIO_INHERIT
=yes
14286 ax_cv_PTHREAD_PRIO_INHERIT
=no
14288 rm -f core conftest.err conftest.
$ac_objext \
14289 conftest
$ac_exeext conftest.
$ac_ext
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
14293 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
14294 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
14295 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
14297 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
14299 ax_pthread_prio_inherit_defined
=yes
14303 CFLAGS
="$ax_pthread_save_CFLAGS"
14304 LIBS
="$ax_pthread_save_LIBS"
14306 # More AIX lossage: compile with *_r variant
14307 if test "x$GCC" != "xyes"; then
14311 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
14312 #handle absolute path differently from PATH based program lookup
14315 if as_fn_executable_p
${CC}_r
; then :
14316 PTHREAD_CC
="${CC}_r"
14319 for ac_prog
in ${CC}_r
14321 # Extract the first word of "$ac_prog", so it can be a program name with args.
14322 set dummy
$ac_prog; ac_word
=$2
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14324 $as_echo_n "checking for $ac_word... " >&6; }
14325 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
14326 $as_echo_n "(cached) " >&6
14328 if test -n "$PTHREAD_CC"; then
14329 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
14331 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14332 for as_dir
in $PATH
14335 test -z "$as_dir" && as_dir
=.
14336 for ac_exec_ext
in '' $ac_executable_extensions; do
14337 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14338 ac_cv_prog_PTHREAD_CC
="$ac_prog"
14339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14348 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
14349 if test -n "$PTHREAD_CC"; then
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14351 $as_echo "$PTHREAD_CC" >&6; }
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14354 $as_echo "no" >&6; }
14358 test -n "$PTHREAD_CC" && break
14360 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
14371 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
14377 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14378 if test "x$ax_pthread_ok" = "xyes"; then
14386 ac_cpp
='$CXXCPP $CPPFLAGS'
14387 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14388 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14389 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
14392 if test "$threads" = "yes"; then
14394 LIBS
="$PTHREAD_LIBS $LIBS"
14395 save_CXXFLAGS
="$CXXFLAGS"
14396 CXXFLAGS
="$PTHREAD_CFLAGS $save_CXXFLAGS"
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
14398 $as_echo_n "checking for std::thread... " >&6; }
14399 if ${gdb_cv_cxx_std_thread+:} false
; then :
14400 $as_echo_n "(cached) " >&6
14402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14403 /* end confdefs.h. */
14405 void callback() { }
14409 std::thread t(callback);
14414 if ac_fn_cxx_try_compile
"$LINENO"; then :
14415 gdb_cv_cxx_std_thread
=yes
14417 gdb_cv_cxx_std_thread
=no
14419 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
14422 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
14424 # This check must be here, while LIBS includes any necessary
14425 # threading library.
14426 for ac_func
in pthread_sigmask pthread_setname_np
14428 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14429 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14430 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14431 cat >>confdefs.h
<<_ACEOF
14432 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14440 CXXFLAGS
="$save_CXXFLAGS"
14442 if test "$gdb_cv_cxx_std_thread" = "yes"; then
14444 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
14448 ac_cpp
='$CPP $CPPFLAGS'
14449 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14450 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14451 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
14455 $as_echo_n "checking for sigsetjmp... " >&6; }
14456 if ${gdb_cv_func_sigsetjmp+:} false
; then :
14457 $as_echo_n "(cached) " >&6
14459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14460 /* end confdefs.h. */
14462 #include <setjmp.h>
14467 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
14472 if ac_fn_c_try_compile
"$LINENO"; then :
14473 gdb_cv_func_sigsetjmp
=yes
14475 gdb_cv_func_sigsetjmp
=no
14477 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
14480 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
14481 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
14483 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
14488 # Check the return and argument types of ptrace.
14491 for ac_header
in sys
/ptrace.h ptrace.h
14493 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14494 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14495 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
14496 cat >>confdefs.h
<<_ACEOF
14497 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14505 gdb_ptrace_headers
='
14506 #include <sys/types.h>
14507 #if HAVE_SYS_PTRACE_H
14508 # include <sys/ptrace.h>
14511 # include <unistd.h>
14514 # There is no point in checking if we don't have a prototype.
14515 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
14517 if test "x$ac_cv_have_decl_ptrace" = xyes
; then :
14523 cat >>confdefs.h
<<_ACEOF
14524 #define HAVE_DECL_PTRACE $ac_have_decl
14526 if test $ac_have_decl = 1; then :
14530 : ${gdb_cv_func_ptrace_ret='int'}
14531 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
14535 # Check return type. Varargs (used on GNU/Linux) conflict with the
14536 # empty argument list, so check for that explicitly.
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
14538 $as_echo_n "checking return type of ptrace... " >&6; }
14539 if ${gdb_cv_func_ptrace_ret+:} false
; then :
14540 $as_echo_n "(cached) " >&6
14542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14543 /* end confdefs.h. */
14544 $gdb_ptrace_headers
14548 extern long ptrace (enum __ptrace_request, ...);
14553 if ac_fn_c_try_compile
"$LINENO"; then :
14554 gdb_cv_func_ptrace_ret
='long'
14556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14557 /* end confdefs.h. */
14558 $gdb_ptrace_headers
14562 extern int ptrace ();
14567 if ac_fn_c_try_compile
"$LINENO"; then :
14568 gdb_cv_func_ptrace_ret
='int'
14570 gdb_cv_func_ptrace_ret
='long'
14572 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14574 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
14577 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
14579 cat >>confdefs.h
<<_ACEOF
14580 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
14583 # Check argument types.
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
14585 $as_echo_n "checking types of arguments for ptrace... " >&6; }
14586 if ${gdb_cv_func_ptrace_args+:} false
; then :
14587 $as_echo_n "(cached) " >&6
14590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14591 /* end confdefs.h. */
14592 $gdb_ptrace_headers
14596 extern long ptrace (enum __ptrace_request, ...);
14601 if ac_fn_c_try_compile
"$LINENO"; then :
14602 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
14605 for gdb_arg1
in 'int' 'long'; do
14606 for gdb_arg2
in 'pid_t' 'int' 'long'; do
14607 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
14608 for gdb_arg4
in 'int' 'long' 'void *'; do
14609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14610 /* end confdefs.h. */
14611 $gdb_ptrace_headers
14616 extern $gdb_cv_func_ptrace_ret
14617 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
14623 if ac_fn_c_try_compile
"$LINENO"; then :
14624 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
14627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14628 for gdb_arg5
in 'int *' 'int' 'long'; do
14629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14630 /* end confdefs.h. */
14631 $gdb_ptrace_headers
14636 extern $gdb_cv_func_ptrace_ret
14637 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
14643 if ac_fn_c_try_compile
"$LINENO"; then :
14645 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
14648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14654 # Provide a safe default value.
14655 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
14658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
14661 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
14662 ac_save_IFS
=$IFS; IFS
=','
14663 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
14667 cat >>confdefs.h
<<_ACEOF
14668 #define PTRACE_TYPE_ARG1 $1
14672 cat >>confdefs.h
<<_ACEOF
14673 #define PTRACE_TYPE_ARG3 $3
14677 cat >>confdefs.h
<<_ACEOF
14678 #define PTRACE_TYPE_ARG4 $4
14681 if test -n "$5"; then
14683 cat >>confdefs.h
<<_ACEOF
14684 #define PTRACE_TYPE_ARG5 $5
14690 if test "$cross_compiling" = no
; then
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
14692 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
14693 if ${ac_cv_func_setpgrp_void+:} false
; then :
14694 $as_echo_n "(cached) " >&6
14696 if test "$cross_compiling" = yes; then :
14697 as_fn_error $?
"cannot check setpgrp when cross compiling" "$LINENO" 5
14699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14700 /* end confdefs.h. */
14701 $ac_includes_default
14705 /* If this system has a BSD-style setpgrp which takes arguments,
14706 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
14707 exit successfully. */
14708 return setpgrp (1,1) != -1;
14713 if ac_fn_c_try_run
"$LINENO"; then :
14714 ac_cv_func_setpgrp_void
=no
14716 ac_cv_func_setpgrp_void
=yes
14718 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14719 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
14724 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
14725 if test $ac_cv_func_setpgrp_void = yes; then
14727 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
14733 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
14734 if ${ac_cv_func_setpgrp_void+:} false
; then :
14735 $as_echo_n "(cached) " >&6
14737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14738 /* end confdefs.h. */
14740 #include <unistd.h>
14746 if (setpgrp(1,1) == -1)
14755 if ac_fn_c_try_compile
"$LINENO"; then :
14756 ac_cv_func_setpgrp_void
=no
14758 ac_cv_func_setpgrp_void
=yes
14760 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
14763 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
14764 if test "$ac_cv_func_setpgrp_void" = yes; then
14765 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
14770 # Assume we'll default to using the included libiberty regex.
14771 gdb_use_included_regex
=yes
14773 # However, if the system regex is GNU regex, then default to *not*
14774 # using the included regex.
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
14776 $as_echo_n "checking for GNU regex... " >&6; }
14777 if ${gdb_cv_have_gnu_regex+:} false
; then :
14778 $as_echo_n "(cached) " >&6
14780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14781 /* end confdefs.h. */
14782 #include <gnu-versions.h>
14786 #define REGEX_INTERFACE_VERSION 1
14787 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
14788 # error "Version mismatch"
14794 if ac_fn_c_try_compile
"$LINENO"; then :
14795 gdb_cv_have_gnu_regex
=yes
14797 gdb_cv_have_gnu_regex
=no
14799 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
14802 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
14803 if test "$gdb_cv_have_gnu_regex" = yes; then
14804 gdb_use_included_regex
=no
14808 # Check whether --with-included-regex was given.
14809 if test "${with_included_regex+set}" = set; then :
14810 withval
=$with_included_regex; gdb_with_regex
=$withval
14812 gdb_with_regex
=$gdb_use_included_regex
14815 if test "$gdb_with_regex" = yes; then
14817 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
14821 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
14822 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
14823 #include <sys/proc.h>
14826 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes
; then :
14828 cat >>confdefs.h
<<_ACEOF
14829 #define HAVE_STRUCT_THREAD_TD_PCB 1
14836 # See if <sys/lwp.h> defines `struct lwp`.
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
14838 $as_echo_n "checking for struct lwp... " >&6; }
14839 if ${gdb_cv_struct_lwp+:} false
; then :
14840 $as_echo_n "(cached) " >&6
14842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14843 /* end confdefs.h. */
14844 #include <sys/param.h>
14846 #include <sys/lwp.h>
14855 if ac_fn_c_try_compile
"$LINENO"; then :
14856 gdb_cv_struct_lwp
=yes
14858 gdb_cv_struct_lwp
=no
14860 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
14863 $as_echo "$gdb_cv_struct_lwp" >&6; }
14864 if test "$gdb_cv_struct_lwp" = yes; then
14866 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
14870 # See if <machine/reg.h> degines `struct reg'.
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
14872 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
14873 if ${gdb_cv_struct_reg+:} false
; then :
14874 $as_echo_n "(cached) " >&6
14876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14877 /* end confdefs.h. */
14878 #include <sys/types.h>
14879 #include <machine/reg.h>
14888 if ac_fn_c_try_compile
"$LINENO"; then :
14889 gdb_cv_struct_reg
=yes
14891 gdb_cv_struct_reg
=no
14893 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
14896 $as_echo "$gdb_cv_struct_reg" >&6; }
14897 if test "$gdb_cv_struct_reg" = yes; then
14899 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
14903 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
14904 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
14905 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
14906 #include <machine/reg.h>
14908 if test "x$ac_cv_member_struct_reg_r_fs" = xyes
; then :
14910 cat >>confdefs.h
<<_ACEOF
14911 #define HAVE_STRUCT_REG_R_FS 1
14916 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
14917 #include <machine/reg.h>
14919 if test "x$ac_cv_member_struct_reg_r_gs" = xyes
; then :
14921 cat >>confdefs.h
<<_ACEOF
14922 #define HAVE_STRUCT_REG_R_GS 1
14929 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
14930 # Older amd64 Linux's don't have the fs_base and gs_base members of
14931 # `struct user_regs_struct'.
14932 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>
14933 #include <sys/user.h>
14935 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = xyes
; then :
14937 cat >>confdefs.h
<<_ACEOF
14938 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
14943 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>
14944 #include <sys/user.h>
14946 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = xyes
; then :
14948 cat >>confdefs.h
<<_ACEOF
14949 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
14956 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
14958 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
14959 if ${gdb_cv_have_ptrace_getregs+:} false
; then :
14960 $as_echo_n "(cached) " >&6
14962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14963 /* end confdefs.h. */
14964 #include <sys/ptrace.h>
14973 if ac_fn_c_try_compile
"$LINENO"; then :
14974 gdb_cv_have_ptrace_getregs
=yes
14976 gdb_cv_have_ptrace_getregs
=no
14978 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
14982 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
14983 if test "$gdb_cv_have_ptrace_getregs" = yes; then
14985 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
14989 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
14991 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
14992 if ${gdb_cv_have_ptrace_getfpxregs+:} false
; then :
14993 $as_echo_n "(cached) " >&6
14995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14996 /* end confdefs.h. */
14997 #include <sys/ptrace.h>
15006 if ac_fn_c_try_compile
"$LINENO"; then :
15007 gdb_cv_have_ptrace_getfpxregs
=yes
15009 gdb_cv_have_ptrace_getfpxregs
=no
15011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
15015 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
15016 if test "$gdb_cv_have_ptrace_getfpxregs" = yes; then
15018 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
15022 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
15024 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
15025 if ${gdb_cv_have_pt_getdbregs+:} false
; then :
15026 $as_echo_n "(cached) " >&6
15028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15029 /* end confdefs.h. */
15030 #include <sys/types.h>
15031 #include <sys/ptrace.h>
15040 if ac_fn_c_try_compile
"$LINENO"; then :
15041 gdb_cv_have_pt_getdbregs
=yes
15043 gdb_cv_have_pt_getdbregs
=no
15045 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
15049 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
15050 if test "$gdb_cv_have_pt_getdbregs" = yes; then
15052 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
15056 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
15058 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
15059 if ${gdb_cv_have_pt_getxmmregs+:} false
; then :
15060 $as_echo_n "(cached) " >&6
15062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15063 /* end confdefs.h. */
15064 #include <sys/types.h>
15065 #include <sys/ptrace.h>
15074 if ac_fn_c_try_compile
"$LINENO"; then :
15075 gdb_cv_have_pt_getxmmregs
=yes
15077 gdb_cv_have_pt_getxmmregs
=no
15079 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
15083 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
15084 if test "$gdb_cv_have_pt_getxmmregs" = yes; then
15086 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
15090 # See if <sys/ptrace.h> supports LWP names on FreeBSD
15091 # Older FreeBSD versions don't have the pl_tdname member of
15092 # `struct ptrace_lwpinfo'.
15093 ac_fn_c_check_member
"$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
15095 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes
; then :
15097 cat >>confdefs.h
<<_ACEOF
15098 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
15105 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
15106 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
15108 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>
15110 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes
; then :
15112 cat >>confdefs.h
<<_ACEOF
15113 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
15120 if test "$ac_cv_header_sys_procfs_h" = yes; then
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
15122 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
15123 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
15124 $as_echo_n "(cached) " >&6
15126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15127 /* end confdefs.h. */
15130 /* Needed for new procfs interface on sparc-solaris. */
15131 #define _STRUCTURED_PROC 1
15132 #include <sys/procfs.h>
15141 if ac_fn_c_try_compile
"$LINENO"; then :
15142 bfd_cv_have_sys_procfs_type_gregset_t
=yes
15144 bfd_cv_have_sys_procfs_type_gregset_t
=no
15147 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15150 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
15152 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
15156 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
15159 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
15160 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
15161 $as_echo_n "(cached) " >&6
15163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15164 /* end confdefs.h. */
15167 /* Needed for new procfs interface on sparc-solaris. */
15168 #define _STRUCTURED_PROC 1
15169 #include <sys/procfs.h>
15178 if ac_fn_c_try_compile
"$LINENO"; then :
15179 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
15181 bfd_cv_have_sys_procfs_type_fpregset_t
=no
15184 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15187 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
15189 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
15193 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
15196 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
15197 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
15198 $as_echo_n "(cached) " >&6
15200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15201 /* end confdefs.h. */
15204 /* Needed for new procfs interface on sparc-solaris. */
15205 #define _STRUCTURED_PROC 1
15206 #include <sys/procfs.h>
15215 if ac_fn_c_try_compile
"$LINENO"; then :
15216 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
15218 bfd_cv_have_sys_procfs_type_prgregset_t
=no
15221 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15224 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
15226 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
15230 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
15233 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
15234 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
15235 $as_echo_n "(cached) " >&6
15237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15238 /* end confdefs.h. */
15241 /* Needed for new procfs interface on sparc-solaris. */
15242 #define _STRUCTURED_PROC 1
15243 #include <sys/procfs.h>
15252 if ac_fn_c_try_compile
"$LINENO"; then :
15253 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
15255 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
15258 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15261 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
15263 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
15267 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
15270 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
15271 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
15272 $as_echo_n "(cached) " >&6
15274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15275 /* end confdefs.h. */
15278 /* Needed for new procfs interface on sparc-solaris. */
15279 #define _STRUCTURED_PROC 1
15280 #include <sys/procfs.h>
15289 if ac_fn_c_try_compile
"$LINENO"; then :
15290 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
15292 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
15295 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15298 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
15300 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
15304 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
15307 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
15308 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
15309 $as_echo_n "(cached) " >&6
15311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15312 /* end confdefs.h. */
15315 /* Needed for new procfs interface on sparc-solaris. */
15316 #define _STRUCTURED_PROC 1
15317 #include <sys/procfs.h>
15326 if ac_fn_c_try_compile
"$LINENO"; then :
15327 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
15329 bfd_cv_have_sys_procfs_type_lwpid_t
=no
15332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15335 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
15337 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
15341 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
15344 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
15345 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
15346 $as_echo_n "(cached) " >&6
15348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15349 /* end confdefs.h. */
15352 /* Needed for new procfs interface on sparc-solaris. */
15353 #define _STRUCTURED_PROC 1
15354 #include <sys/procfs.h>
15363 if ac_fn_c_try_compile
"$LINENO"; then :
15364 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
15366 bfd_cv_have_sys_procfs_type_psaddr_t
=no
15369 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15372 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
15374 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
15378 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
15381 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
15382 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
15383 $as_echo_n "(cached) " >&6
15385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15386 /* end confdefs.h. */
15389 /* Needed for new procfs interface on sparc-solaris. */
15390 #define _STRUCTURED_PROC 1
15391 #include <sys/procfs.h>
15395 elf_fpregset_t avar
15400 if ac_fn_c_try_compile
"$LINENO"; then :
15401 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
15403 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
15406 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15409 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
15411 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
15415 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
15419 # Check if the compiler supports the `long long' type.
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
15422 $as_echo_n "checking for long long support in compiler... " >&6; }
15423 if ${gdb_cv_c_long_long+:} false
; then :
15424 $as_echo_n "(cached) " >&6
15426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15427 /* end confdefs.h. */
15428 extern long long foo;
15432 switch (foo & 2) { case 0: return 1; }
15437 if ac_fn_c_try_compile
"$LINENO"; then :
15438 gdb_cv_c_long_long
=yes
15440 gdb_cv_c_long_long
=no
15442 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
15445 $as_echo "$gdb_cv_c_long_long" >&6; }
15446 if test "$gdb_cv_c_long_long" != yes; then
15447 # libdecnumber requires long long.
15448 as_fn_error $?
"Compiler must support long long for GDB." "$LINENO" 5
15451 # Check if the compiler and runtime support printing long longs.
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
15454 $as_echo_n "checking for long long support in printf... " >&6; }
15455 if ${gdb_cv_printf_has_long_long+:} false
; then :
15456 $as_echo_n "(cached) " >&6
15458 if test "$cross_compiling" = yes; then :
15459 gdb_cv_printf_has_long_long
=no
15461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15462 /* end confdefs.h. */
15463 $ac_includes_default
15469 l = (l << 16) + 0x0123;
15470 l = (l << 16) + 0x4567;
15471 l = (l << 16) + 0x89ab;
15472 l = (l << 16) + 0xcdef;
15473 sprintf (buf, "0x%016llx", l);
15474 return (strcmp ("0x0123456789abcdef", buf));
15479 if ac_fn_c_try_run
"$LINENO"; then :
15480 gdb_cv_printf_has_long_long
=yes
15482 gdb_cv_printf_has_long_long
=no
15484 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15485 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
15490 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
15491 if test "$gdb_cv_printf_has_long_long" = yes; then
15493 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
15497 # Check if the compiler and runtime support printing decfloats.
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
15500 $as_echo_n "checking for decfloat support in printf... " >&6; }
15501 if ${gdb_cv_printf_has_decfloat+:} false
; then :
15502 $as_echo_n "(cached) " >&6
15504 if test "$cross_compiling" = yes; then :
15505 gdb_cv_printf_has_decfloat
=no
15507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15508 /* end confdefs.h. */
15509 $ac_includes_default
15514 _Decimal32 d32 = 1.2345df;
15515 _Decimal64 d64 = 1.2345dd;
15516 _Decimal128 d128 = 1.2345dl;
15517 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
15518 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
15523 if ac_fn_c_try_run
"$LINENO"; then :
15524 gdb_cv_printf_has_decfloat
=yes
15526 gdb_cv_printf_has_decfloat
=no
15528 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15529 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
15534 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
15535 if test "$gdb_cv_printf_has_decfloat" = yes; then
15537 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
15541 # Check if the compiler supports the `long double' type. We can't use
15542 # AC_C_LONG_DOUBLE because that one does additional checks on the
15543 # constants defined in <float.h> that fail on some systems,
15544 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
15547 $as_echo_n "checking for long double support in compiler... " >&6; }
15548 if ${gdb_cv_c_long_double+:} false
; then :
15549 $as_echo_n "(cached) " >&6
15551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15552 /* end confdefs.h. */
15555 if ac_fn_c_try_compile
"$LINENO"; then :
15556 gdb_cv_c_long_double
=yes
15558 gdb_cv_c_long_double
=no
15560 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
15563 $as_echo "$gdb_cv_c_long_double" >&6; }
15564 if test "$gdb_cv_c_long_double" = yes; then
15566 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
15570 # Check if the compiler and runtime support printing long doubles.
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
15573 $as_echo_n "checking for long double support in printf... " >&6; }
15574 if ${gdb_cv_printf_has_long_double+:} false
; then :
15575 $as_echo_n "(cached) " >&6
15577 if test "$cross_compiling" = yes; then :
15578 gdb_cv_printf_has_long_double
=no
15580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15581 /* end confdefs.h. */
15582 $ac_includes_default
15587 long double f = 3.141592653;
15588 sprintf (buf, "%Lg", f);
15589 return (strncmp ("3.14159", buf, 7));
15594 if ac_fn_c_try_run
"$LINENO"; then :
15595 gdb_cv_printf_has_long_double
=yes
15597 gdb_cv_printf_has_long_double
=no
15599 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15600 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
15605 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
15606 if test "$gdb_cv_printf_has_long_double" = yes; then
15608 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
15612 # Check if the compiler and runtime support scanning long doubles.
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
15615 $as_echo_n "checking for long double support in scanf... " >&6; }
15616 if ${gdb_cv_scanf_has_long_double+:} false
; then :
15617 $as_echo_n "(cached) " >&6
15619 if test "$cross_compiling" = yes; then :
15620 gdb_cv_scanf_has_long_double
=no
15622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15623 /* end confdefs.h. */
15628 char *buf = "3.141592653";
15630 sscanf (buf, "%Lg", &f);
15631 return !(f > 3.14159 && f < 3.14160);
15636 if ac_fn_c_try_run
"$LINENO"; then :
15637 gdb_cv_scanf_has_long_double
=yes
15639 gdb_cv_scanf_has_long_double
=no
15641 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15642 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
15647 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
15648 if test "$gdb_cv_scanf_has_long_double" = yes; then
15650 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
15657 $as_echo_n "checking for -bbigtoc option... " >&6; }
15658 if ${gdb_cv_bigtoc+:} false
; then :
15659 $as_echo_n "(cached) " >&6
15662 SAVE_LDFLAGS
=$LDFLAGS
15665 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
15666 *) gdb_cv_bigtoc
=-bbigtoc ;;
15669 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
15670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15671 /* end confdefs.h. */
15681 if ac_fn_c_try_link
"$LINENO"; then :
15686 rm -f core conftest.err conftest.
$ac_objext \
15687 conftest
$ac_exeext conftest.
$ac_ext
15688 LDFLAGS
="${SAVE_LDFLAGS}"
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
15692 $as_echo "$gdb_cv_bigtoc" >&6; }
15693 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
15698 $as_echo_n "checking for the dynamic export flag... " >&6; }
15700 if test "${gdb_native}" = yes; then
15701 # The dynamically loaded libthread_db needs access to symbols in the gdb
15702 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
15703 # may not be supported there.
15704 old_LDFLAGS
="$LDFLAGS"
15705 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
15706 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
15707 LDFLAGS
="$LDFLAGS $RDYNAMIC"
15708 if test "${have_libpython}" = no
; then
15709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15710 /* end confdefs.h. */
15720 if ac_fn_c_try_link
"$LINENO"; then :
15723 rm -f core conftest.err conftest.
$ac_objext \
15724 conftest
$ac_exeext conftest.
$ac_ext
15726 # Workaround http://bugs.python.org/issue4434 where static
15727 # libpythonX.Y.a would get its symbols required for
15728 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
15729 # Problem does not happen for the recommended libpythonX.Y.so linkage.
15731 # Note the workaround for Python
15732 # http://bugs.python.org/issue10112 earlier has removed
15733 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
15734 # here too, as otherwise it'd make this -Wl,--dynamic-list test
15736 old_CFLAGS
="$CFLAGS"
15737 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
15739 LIBS
="$LIBS $PYTHON_LIBS"
15740 old_CPPFLAGS
="$CPPFLAGS"
15741 CPPFLAGS
="$CPPFLAGS $PYTHON_CPPFLAGS"
15742 if test "$cross_compiling" = yes; then :
15745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15746 /* end confdefs.h. */
15747 #include "Python.h"
15753 err = PyRun_SimpleString ("import itertools\n");
15755 return err == 0 ? 0 : 1;
15760 if ac_fn_c_try_run
"$LINENO"; then :
15763 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15764 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15768 CFLAGS
="$old_CFLAGS"
15769 CPPFLAGS
="$old_CPPFLAGS"
15771 LDFLAGS
="$old_LDFLAGS"
15773 if $dynamic_list; then
15774 found
="-Wl,--dynamic-list"
15775 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
15778 RDYNAMIC
="-rdynamic"
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
15782 $as_echo "$found" >&6; }
15785 if test "${build}" = "${host}" -a "${host}" = "${target}" ; then
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
15789 $as_echo_n "checking for AiX thread debugging library... " >&6; }
15790 if ${gdb_cv_have_aix_thread_debug+:} false
; then :
15791 $as_echo_n "(cached) " >&6
15793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15794 /* end confdefs.h. */
15795 #include <sys/pthdebug.h>
15799 #ifndef PTHDB_VERSION_3
15806 if ac_fn_c_try_compile
"$LINENO"; then :
15807 gdb_cv_have_aix_thread_debug
=yes
15809 gdb_cv_have_aix_thread_debug
=no
15811 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
15815 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
15816 if test "$gdb_cv_have_aix_thread_debug" = yes; then
15817 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
15818 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
15819 LIBS
="$LIBS -lpthdebug"
15821 # Older versions of AIX do not provide the declaration for
15822 # the getthrds function (it appears that it was introduced
15824 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
15826 if test "x$ac_cv_have_decl_getthrds" = xyes
; then :
15832 cat >>confdefs.h
<<_ACEOF
15833 #define HAVE_DECL_GETTHRDS $ac_have_decl
15842 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
15844 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
15845 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false
; then :
15846 $as_echo_n "(cached) " >&6
15848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15849 /* end confdefs.h. */
15850 #include <thread_db.h>
15854 int i = TD_NOTALLOC;
15859 if ac_fn_c_try_compile
"$LINENO"; then :
15860 gdb_cv_thread_db_h_has_td_notalloc
=yes
15862 gdb_cv_thread_db_h_has_td_notalloc
=no
15865 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
15869 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
15871 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
15872 if ${gdb_cv_thread_db_h_has_td_version+:} false
; then :
15873 $as_echo_n "(cached) " >&6
15875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15876 /* end confdefs.h. */
15877 #include <thread_db.h>
15881 int i = TD_VERSION;
15886 if ac_fn_c_try_compile
"$LINENO"; then :
15887 gdb_cv_thread_db_h_has_td_version
=yes
15889 gdb_cv_thread_db_h_has_td_version
=no
15892 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
15896 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
15898 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
15899 if ${gdb_cv_thread_db_h_has_td_notls+:} false
; then :
15900 $as_echo_n "(cached) " >&6
15902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15903 /* end confdefs.h. */
15904 #include <thread_db.h>
15913 if ac_fn_c_try_compile
"$LINENO"; then :
15914 gdb_cv_thread_db_h_has_td_notls
=yes
15916 gdb_cv_thread_db_h_has_td_notls
=no
15919 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
15923 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
15925 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
15927 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
15930 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
15932 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
15935 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
15937 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
15941 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
15943 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
15949 cat >>confdefs.h
<<_ACEOF
15950 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
15954 if test "$cross_compiling" = yes; then :
15955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15956 /* end confdefs.h. */
15957 #include <sys/personality.h>
15962 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
15963 # define ADDR_NO_RANDOMIZE 0x0040000
15965 /* Test the flag could be set and stays set. */
15966 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
15967 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
15973 if ac_fn_c_try_link
"$LINENO"; then :
15974 have_personality
=true
15976 have_personality
=false
15978 rm -f core conftest.err conftest.
$ac_objext \
15979 conftest
$ac_exeext conftest.
$ac_ext
15981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15982 /* end confdefs.h. */
15983 #include <sys/personality.h>
15988 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
15989 # define ADDR_NO_RANDOMIZE 0x0040000
15991 /* Test the flag could be set and stays set. */
15992 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
15993 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
15999 if ac_fn_c_try_run
"$LINENO"; then :
16000 have_personality
=true
16002 have_personality
=false
16004 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16005 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16008 if $have_personality
16011 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
16024 cat >>confdefs.h
<<_ACEOF
16025 #define GDBINIT "$gdbinit"
16030 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
16031 # except that the argument to --with-sysroot is optional.
16032 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
16033 if test "x$with_sysroot" = xyes
; then
16034 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
16037 # Check whether --with-sysroot was given.
16038 if test "${with_sysroot+set}" = set; then :
16039 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
16041 TARGET_SYSTEM_ROOT
=
16045 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16046 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16047 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
16048 ac_define_dir
=`eval echo $ac_define_dir`
16050 cat >>confdefs.h
<<_ACEOF
16051 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
16057 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16058 if test "x$prefix" = xNONE
; then
16059 test_prefix
=/usr
/local
16061 test_prefix
=$prefix
16064 test_prefix
=$exec_prefix
16067 case ${ac_define_dir} in
16068 "${test_prefix}"|
"${test_prefix}/"*|\
16069 '${exec_prefix}'|
'${exec_prefix}/'*)
16074 cat >>confdefs.h
<<_ACEOF
16075 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
16082 # Check whether --with-system-gdbinit was given.
16083 if test "${with_system_gdbinit+set}" = set; then :
16084 withval
=$with_system_gdbinit;
16085 SYSTEM_GDBINIT
=$withval
16091 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16092 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16093 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
16094 ac_define_dir
=`eval echo $ac_define_dir`
16096 cat >>confdefs.h
<<_ACEOF
16097 #define SYSTEM_GDBINIT "$ac_define_dir"
16103 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16104 if test "x$prefix" = xNONE
; then
16105 test_prefix
=/usr
/local
16107 test_prefix
=$prefix
16110 test_prefix
=$exec_prefix
16113 case ${ac_define_dir} in
16114 "${test_prefix}"|
"${test_prefix}/"*|\
16115 '${exec_prefix}'|
'${exec_prefix}/'*)
16120 cat >>confdefs.h
<<_ACEOF
16121 #define SYSTEM_GDBINIT_RELOCATABLE $value
16128 # Check whether --with-system-gdbinit-dir was given.
16129 if test "${with_system_gdbinit_dir+set}" = set; then :
16130 withval
=$with_system_gdbinit_dir;
16131 SYSTEM_GDBINIT_DIR
=$withval
16133 SYSTEM_GDBINIT_DIR
=
16137 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16138 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16139 ac_define_dir
=`eval echo $SYSTEM_GDBINIT_DIR`
16140 ac_define_dir
=`eval echo $ac_define_dir`
16142 cat >>confdefs.h
<<_ACEOF
16143 #define SYSTEM_GDBINIT_DIR "$ac_define_dir"
16149 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16150 if test "x$prefix" = xNONE
; then
16151 test_prefix
=/usr
/local
16153 test_prefix
=$prefix
16156 test_prefix
=$exec_prefix
16159 case ${ac_define_dir} in
16160 "${test_prefix}"|
"${test_prefix}/"*|\
16161 '${exec_prefix}'|
'${exec_prefix}/'*)
16166 cat >>confdefs.h
<<_ACEOF
16167 #define SYSTEM_GDBINIT_DIR_RELOCATABLE $value
16174 # Check whether --enable-werror was given.
16175 if test "${enable_werror+set}" = set; then :
16176 enableval
=$enable_werror; case "${enableval}" in
16177 yes | y
) ERROR_ON_WARNING
="yes" ;;
16178 no | n
) ERROR_ON_WARNING
="no" ;;
16179 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16184 # Enable -Werror by default when using gcc. Turn it off for releases.
16185 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
16186 ERROR_ON_WARNING
=yes
16190 if test "${ERROR_ON_WARNING}" = yes ; then
16191 WERROR_CFLAGS
="-Werror"
16194 # The options we'll try to enable.
16195 build_warnings
="-Wall -Wpointer-arith \
16196 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
16197 -Wno-switch -Wno-char-subscripts \
16198 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
16199 -Wno-sign-compare -Wno-error=maybe-uninitialized \
16200 -Wno-mismatched-tags \
16201 -Wno-error=deprecated-register \
16202 -Wsuggest-override \
16203 -Wimplicit-fallthrough=3 \
16204 -Wduplicated-cond \
16206 -Wdeprecated-copy \
16207 -Wdeprecated-copy-dtor \
16212 # Enable -Wno-format by default when using gcc on mingw since many
16213 # GCC versions complain about %I64.
16214 build_warnings
="$build_warnings -Wno-format" ;;
16216 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
16217 # doesn't understand.
16218 build_warnings
="$build_warnings -Wno-unknown-pragmas"
16219 # Solaris 11 <unistd.h> marks vfork deprecated.
16220 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
16222 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
16223 # but there's a special case for this below.
16224 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
16227 # Check whether --enable-build-warnings was given.
16228 if test "${enable_build_warnings+set}" = set; then :
16229 enableval
=$enable_build_warnings; case "${enableval}" in
16231 no
) build_warnings
="-w";;
16232 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16233 build_warnings
="${build_warnings} ${t}";;
16234 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16235 build_warnings
="${t} ${build_warnings}";;
16236 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16238 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
16239 echo "Setting compiler warning flags = $build_warnings" 6>&1
16242 # Check whether --enable-gdb-build-warnings was given.
16243 if test "${enable_gdb_build_warnings+set}" = set; then :
16244 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
16246 no
) build_warnings
="-w";;
16247 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16248 build_warnings
="${build_warnings} ${t}";;
16249 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16250 build_warnings
="${t} ${build_warnings}";;
16251 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16253 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
16254 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
16258 # The set of warnings supported by a C++ compiler is not the same as
16259 # of the C compiler.
16261 ac_cpp
='$CXXCPP $CPPFLAGS'
16262 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16263 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16264 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
16268 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
16271 $as_echo_n "checking compiler warning flags... " >&6; }
16272 # Separate out the -Werror flag as some files just cannot be
16273 # compiled with it enabled.
16274 for w
in ${build_warnings}; do
16275 # GCC does not complain about -Wno-unknown-warning. Invert
16276 # and test -Wunknown-warning instead.
16279 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
16280 -Wformat-nonliteral)
16281 # gcc requires -Wformat before -Wformat-nonliteral
16282 # will work, so stick them together.
16291 -Werr*) WERROR_CFLAGS
=-Werror ;;
16293 # Check whether GCC accepts it.
16294 saved_CFLAGS
="$CFLAGS"
16295 CFLAGS
="$CFLAGS -Werror $wtest"
16296 saved_CXXFLAGS
="$CXXFLAGS"
16297 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
16298 if test "x$w" = "x-Wunused-variable"; then
16299 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
16300 # fixed in GCC 4.9. This test is derived from the gdb
16301 # source code that triggered this bug in GCC.
16302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16303 /* end confdefs.h. */
16304 struct scoped_restore_base {};
16305 struct scoped_restore_tmpl : public scoped_restore_base {
16306 ~scoped_restore_tmpl() {}
16311 const scoped_restore_base &b = scoped_restore_tmpl();
16316 if ac_fn_cxx_try_compile
"$LINENO"; then :
16317 WARN_CFLAGS
="${WARN_CFLAGS} $w"
16319 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16322 /* end confdefs.h. */
16332 if ac_fn_cxx_try_compile
"$LINENO"; then :
16333 WARN_CFLAGS
="${WARN_CFLAGS} $w"
16335 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16337 CFLAGS
="$saved_CFLAGS"
16338 CXXFLAGS
="$saved_CXXFLAGS"
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
16342 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
16348 ac_cpp='$CPP $CPPFLAGS'
16349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16355 # Check whether --enable-ubsan was given.
16356 if test "${enable_ubsan+set}" = set; then :
16357 enableval=$enable_ubsan;
16362 if test "x
$enable_ubsan" = xauto; then
16363 if $development; then
16368 ac_cpp='$CXXCPP $CPPFLAGS'
16369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16373 if test "x
$enable_ubsan" = xyes; then
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
-fsanitize=undefined is accepted
" >&5
16375 $as_echo_n "checking whether
-fsanitize=undefined is accepted...
" >&6; }
16376 saved_CXXFLAGS="$CXXFLAGS"
16377 CXXFLAGS="$CXXFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
16378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16379 /* end confdefs.h. */
16389 if ac_fn_cxx_try_link "$LINENO"; then :
16394 rm -f core conftest.err conftest.$ac_objext \
16395 conftest$ac_exeext conftest.$ac_ext
16396 CXXFLAGS="$saved_CXXFLAGS"
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $enable_ubsan" >&5
16398 $as_echo "$enable_ubsan" >&6; }
16399 if test "x
$enable_ubsan" = xyes; then
16400 WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
16401 CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined
"
16405 ac_cpp='$CPP $CPPFLAGS'
16406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16412 # In the Cygwin environment, we need some additional flags.
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
16414 $as_echo_n "checking
for cygwin...
" >&6; }
16415 if ${gdb_cv_os_cygwin+:} false; then :
16416 $as_echo_n "(cached
) " >&6
16418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16419 /* end confdefs.h. */
16421 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
16425 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
16426 $EGREP "^lose$
" >/dev/null 2>&1; then :
16427 gdb_cv_os_cygwin=yes
16429 gdb_cv_os_cygwin=no
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
16435 $as_echo "$gdb_cv_os_cygwin" >&6; }
16438 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
16440 *go32* ) SER_HARDWIRE=ser-go32.o ;;
16441 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
16442 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
16443 *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o
" ;;
16447 # libreadline needs libuser32.a in a cygwin environment
16449 if test x"$gdb_cv_os_cygwin" = xyes; then
16450 WIN32LIBS="-luser32"
16451 case "${target}" in
16452 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
16457 # The ser-tcp.c module requires sockets.
16461 $as_echo "#define USE_WIN32API 1" >>confdefs.h
16463 WIN32LIBS
="$WIN32LIBS -lws2_32"
16468 # Add ELF support to GDB, but only if BFD includes ELF support.
16471 OLD_LDFLAGS
=$LDFLAGS
16473 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
16474 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
16475 # always want our bfd.
16476 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
16477 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
16478 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
16479 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
16480 LIBS
="-lbfd -liberty -lz $intl $LIBS"
16481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
16482 $as_echo_n "checking for ELF support in BFD... " >&6; }
16483 if ${gdb_cv_var_elf+:} false
; then :
16484 $as_echo_n "(cached) " >&6
16486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16487 /* end confdefs.h. */
16488 #include <stdlib.h>
16490 #include "elf-bfd.h"
16495 return bfd_get_elf_phdr_upper_bound (NULL);
16500 if ac_fn_c_try_link
"$LINENO"; then :
16505 rm -f core conftest.err conftest.
$ac_objext \
16506 conftest
$ac_exeext conftest.
$ac_ext
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
16509 $as_echo "$gdb_cv_var_elf" >&6; }
16511 LDFLAGS
=$OLD_LDFLAGS
16513 if test "$gdb_cv_var_elf" = yes; then
16514 CONFIG_OBS
="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o"
16516 $as_echo "#define HAVE_ELF 1" >>confdefs.h
16518 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
16519 if test "$plugins" = "yes"; then
16520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16521 $as_echo_n "checking for library containing dlopen... " >&6; }
16522 if ${ac_cv_search_dlopen+:} false
; then :
16523 $as_echo_n "(cached) " >&6
16525 ac_func_search_save_LIBS
=$LIBS
16526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16527 /* end confdefs.h. */
16529 /* Override any GCC internal prototype to avoid an error.
16530 Use char because int might match the return type of a GCC
16531 builtin and then its argument prototype would still apply. */
16544 for ac_lib
in '' dl
; do
16545 if test -z "$ac_lib"; then
16546 ac_res
="none required"
16549 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
16551 if ac_fn_c_try_link
"$LINENO"; then :
16552 ac_cv_search_dlopen
=$ac_res
16554 rm -f core conftest.err conftest.
$ac_objext \
16556 if ${ac_cv_search_dlopen+:} false
; then :
16560 if ${ac_cv_search_dlopen+:} false
; then :
16563 ac_cv_search_dlopen
=no
16565 rm conftest.
$ac_ext
16566 LIBS
=$ac_func_search_save_LIBS
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16569 $as_echo "$ac_cv_search_dlopen" >&6; }
16570 ac_res
=$ac_cv_search_dlopen
16571 if test "$ac_res" != no
; then :
16572 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
16579 # Add macho support to GDB, but only if BFD includes it.
16582 OLD_LDFLAGS
=$LDFLAGS
16584 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
16585 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
16586 # always want our bfd.
16587 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
16588 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
16589 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
16590 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
16591 LIBS
="-lbfd -liberty -lz $intl $LIBS"
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
16593 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
16594 if ${gdb_cv_var_macho+:} false
; then :
16595 $as_echo_n "(cached) " >&6
16597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16598 /* end confdefs.h. */
16599 #include <stdlib.h>
16601 #include "mach-o.h"
16606 return bfd_mach_o_lookup_command (NULL, 0, NULL);
16611 if ac_fn_c_try_link
"$LINENO"; then :
16612 gdb_cv_var_macho
=yes
16614 gdb_cv_var_macho
=no
16616 rm -f core conftest.err conftest.
$ac_objext \
16617 conftest
$ac_exeext conftest.
$ac_ext
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
16620 $as_echo "$gdb_cv_var_macho" >&6; }
16622 LDFLAGS
=$OLD_LDFLAGS
16624 if test "$gdb_cv_var_macho" = yes; then
16625 CONFIG_OBS
="$CONFIG_OBS machoread.o"
16628 # Add any host-specific objects to GDB.
16629 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
16631 # If building on ELF, look for lzma support for embedded compressed debug info.
16632 if test "$gdb_cv_var_elf" = yes; then
16634 # Check whether --with-lzma was given.
16635 if test "${with_lzma+set}" = set; then :
16636 withval
=$with_lzma;
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
16642 $as_echo_n "checking whether to use lzma... " >&6; }
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
16644 $as_echo "$with_lzma" >&6; }
16646 if test "${with_lzma}" != no
; then
16657 acl_save_prefix
="$prefix"
16658 prefix
="$acl_final_prefix"
16659 acl_save_exec_prefix
="$exec_prefix"
16660 exec_prefix
="$acl_final_exec_prefix"
16662 eval additional_includedir
=\"$includedir\"
16663 eval additional_libdir
=\"$libdir\"
16665 exec_prefix
="$acl_save_exec_prefix"
16666 prefix
="$acl_save_prefix"
16669 # Check whether --with-liblzma-prefix was given.
16670 if test "${with_liblzma_prefix+set}" = set; then :
16671 withval
=$with_liblzma_prefix;
16672 if test "X$withval" = "Xno"; then
16675 if test "X$withval" = "X"; then
16677 acl_save_prefix
="$prefix"
16678 prefix
="$acl_final_prefix"
16679 acl_save_exec_prefix
="$exec_prefix"
16680 exec_prefix
="$acl_final_exec_prefix"
16682 eval additional_includedir
=\"$includedir\"
16683 eval additional_libdir
=\"$libdir\"
16685 exec_prefix
="$acl_save_exec_prefix"
16686 prefix
="$acl_save_prefix"
16689 additional_includedir
="$withval/include"
16690 additional_libdir
="$withval/lib"
16701 names_already_handled
=
16702 names_next_round
='lzma '
16703 while test -n "$names_next_round"; do
16704 names_this_round
="$names_next_round"
16706 for name
in $names_this_round; do
16708 for n
in $names_already_handled; do
16709 if test "$n" = "$name"; then
16710 already_handled
=yes
16714 if test -z "$already_handled"; then
16715 names_already_handled
="$names_already_handled $name"
16716 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16717 eval value
=\"\
$HAVE_LIB$uppername\"
16718 if test -n "$value"; then
16719 if test "$value" = yes; then
16720 eval value
=\"\
$LIB$uppername\"
16721 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
16722 eval value
=\"\
$LTLIB$uppername\"
16723 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
16732 if test $use_additional = yes; then
16733 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16734 found_dir
="$additional_libdir"
16735 found_so
="$additional_libdir/lib$name.$shlibext"
16736 if test -f "$additional_libdir/lib$name.la"; then
16737 found_la
="$additional_libdir/lib$name.la"
16740 if test -f "$additional_libdir/lib$name.$libext"; then
16741 found_dir
="$additional_libdir"
16742 found_a
="$additional_libdir/lib$name.$libext"
16743 if test -f "$additional_libdir/lib$name.la"; then
16744 found_la
="$additional_libdir/lib$name.la"
16749 if test "X$found_dir" = "X"; then
16750 for x
in $LDFLAGS $LTLIBLZMA; do
16752 acl_save_prefix
="$prefix"
16753 prefix
="$acl_final_prefix"
16754 acl_save_exec_prefix
="$exec_prefix"
16755 exec_prefix
="$acl_final_exec_prefix"
16757 exec_prefix
="$acl_save_exec_prefix"
16758 prefix
="$acl_save_prefix"
16762 dir
=`echo "X$x" | sed -e 's/^X-L//'`
16763 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16765 found_so
="$dir/lib$name.$shlibext"
16766 if test -f "$dir/lib$name.la"; then
16767 found_la
="$dir/lib$name.la"
16770 if test -f "$dir/lib$name.$libext"; then
16772 found_a
="$dir/lib$name.$libext"
16773 if test -f "$dir/lib$name.la"; then
16774 found_la
="$dir/lib$name.la"
16780 if test "X$found_dir" != "X"; then
16785 if test "X$found_dir" != "X"; then
16786 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
16787 if test "X$found_so" != "X"; then
16788 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
16789 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
16792 for x
in $ltrpathdirs; do
16793 if test "X$x" = "X$found_dir"; then
16798 if test -z "$haveit"; then
16799 ltrpathdirs
="$ltrpathdirs $found_dir"
16801 if test "$hardcode_direct" = yes; then
16802 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
16804 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
16805 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
16807 for x
in $rpathdirs; do
16808 if test "X$x" = "X$found_dir"; then
16813 if test -z "$haveit"; then
16814 rpathdirs
="$rpathdirs $found_dir"
16818 for x
in $LDFLAGS $LIBLZMA; do
16820 acl_save_prefix
="$prefix"
16821 prefix
="$acl_final_prefix"
16822 acl_save_exec_prefix
="$exec_prefix"
16823 exec_prefix
="$acl_final_exec_prefix"
16825 exec_prefix
="$acl_save_exec_prefix"
16826 prefix
="$acl_save_prefix"
16828 if test "X$x" = "X-L$found_dir"; then
16833 if test -z "$haveit"; then
16834 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
16836 if test "$hardcode_minus_L" != no
; then
16837 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
16839 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
16845 if test "X$found_a" != "X"; then
16846 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
16848 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
16851 additional_includedir
=
16852 case "$found_dir" in
16854 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16855 additional_includedir
="$basedir/include"
16858 if test "X$additional_includedir" != "X"; then
16859 if test "X$additional_includedir" != "X/usr/include"; then
16861 if test "X$additional_includedir" = "X/usr/local/include"; then
16862 if test -n "$GCC"; then
16864 linux
*) haveit
=yes;;
16868 if test -z "$haveit"; then
16869 for x
in $CPPFLAGS $INCLZMA; do
16871 acl_save_prefix
="$prefix"
16872 prefix
="$acl_final_prefix"
16873 acl_save_exec_prefix
="$exec_prefix"
16874 exec_prefix
="$acl_final_exec_prefix"
16876 exec_prefix
="$acl_save_exec_prefix"
16877 prefix
="$acl_save_prefix"
16879 if test "X$x" = "X-I$additional_includedir"; then
16884 if test -z "$haveit"; then
16885 if test -d "$additional_includedir"; then
16886 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
16892 if test -n "$found_la"; then
16893 save_libdir
="$libdir"
16894 case "$found_la" in
16895 */* |
*\\*) .
"$found_la" ;;
16896 *) .
"./$found_la" ;;
16898 libdir
="$save_libdir"
16899 for dep
in $dependency_libs; do
16902 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
16903 if test "X$additional_libdir" != "X/usr/lib"; then
16905 if test "X$additional_libdir" = "X/usr/local/lib"; then
16906 if test -n "$GCC"; then
16908 linux
*) haveit
=yes;;
16912 if test -z "$haveit"; then
16914 for x
in $LDFLAGS $LIBLZMA; do
16916 acl_save_prefix
="$prefix"
16917 prefix
="$acl_final_prefix"
16918 acl_save_exec_prefix
="$exec_prefix"
16919 exec_prefix
="$acl_final_exec_prefix"
16921 exec_prefix
="$acl_save_exec_prefix"
16922 prefix
="$acl_save_prefix"
16924 if test "X$x" = "X-L$additional_libdir"; then
16929 if test -z "$haveit"; then
16930 if test -d "$additional_libdir"; then
16931 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
16935 for x
in $LDFLAGS $LTLIBLZMA; do
16937 acl_save_prefix
="$prefix"
16938 prefix
="$acl_final_prefix"
16939 acl_save_exec_prefix
="$exec_prefix"
16940 exec_prefix
="$acl_final_exec_prefix"
16942 exec_prefix
="$acl_save_exec_prefix"
16943 prefix
="$acl_save_prefix"
16945 if test "X$x" = "X-L$additional_libdir"; then
16950 if test -z "$haveit"; then
16951 if test -d "$additional_libdir"; then
16952 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
16959 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
16960 if test "$enable_rpath" != no
; then
16962 for x
in $rpathdirs; do
16963 if test "X$x" = "X$dir"; then
16968 if test -z "$haveit"; then
16969 rpathdirs
="$rpathdirs $dir"
16972 for x
in $ltrpathdirs; do
16973 if test "X$x" = "X$dir"; then
16978 if test -z "$haveit"; then
16979 ltrpathdirs
="$ltrpathdirs $dir"
16984 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16987 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16990 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
16991 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
16997 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
16998 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
17004 if test "X$rpathdirs" != "X"; then
17005 if test -n "$hardcode_libdir_separator"; then
17007 for found_dir
in $rpathdirs; do
17008 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17010 acl_save_libdir
="$libdir"
17012 eval flag
=\"$hardcode_libdir_flag_spec\"
17013 libdir
="$acl_save_libdir"
17014 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
17016 for found_dir
in $rpathdirs; do
17017 acl_save_libdir
="$libdir"
17018 libdir
="$found_dir"
17019 eval flag
=\"$hardcode_libdir_flag_spec\"
17020 libdir
="$acl_save_libdir"
17021 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
17025 if test "X$ltrpathdirs" != "X"; then
17026 for found_dir
in $ltrpathdirs; do
17027 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
17032 ac_save_CPPFLAGS
="$CPPFLAGS"
17034 for element
in $INCLZMA; do
17036 for x
in $CPPFLAGS; do
17038 acl_save_prefix
="$prefix"
17039 prefix
="$acl_final_prefix"
17040 acl_save_exec_prefix
="$exec_prefix"
17041 exec_prefix
="$acl_final_exec_prefix"
17043 exec_prefix
="$acl_save_exec_prefix"
17044 prefix
="$acl_save_prefix"
17046 if test "X$x" = "X$element"; then
17051 if test -z "$haveit"; then
17052 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
17058 $as_echo_n "checking for liblzma... " >&6; }
17059 if ${ac_cv_liblzma+:} false
; then :
17060 $as_echo_n "(cached) " >&6
17063 ac_save_LIBS
="$LIBS"
17064 LIBS
="$LIBS $LIBLZMA"
17065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17066 /* end confdefs.h. */
17071 lzma_index_iter iter;
17072 lzma_index_iter_init (&iter, 0);
17073 lzma_mf_is_supported (LZMA_MF_HC3);
17078 if ac_fn_c_try_link
"$LINENO"; then :
17083 rm -f core conftest.err conftest.
$ac_objext \
17084 conftest
$ac_exeext conftest.
$ac_ext
17085 LIBS
="$ac_save_LIBS"
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
17089 $as_echo "$ac_cv_liblzma" >&6; }
17090 if test "$ac_cv_liblzma" = yes; then
17093 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
17096 $as_echo_n "checking how to link with liblzma... " >&6; }
17097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
17098 $as_echo "$LIBLZMA" >&6; }
17101 CPPFLAGS
="$ac_save_CPPFLAGS"
17111 if test "$HAVE_LIBLZMA" != yes; then
17112 if test "$with_lzma" = yes; then
17113 as_fn_error $?
"missing liblzma for --with-lzma" "$LINENO" 5
17119 LIBGUI
="../libgui/src/libgui.a"
17120 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
17129 *-*-cygwin* |
*-*-mingw* )
17138 if test "${enable_gdbtk}" = "yes"; then
17140 # Gdbtk must have an absolute path to srcdir in order to run
17141 # properly when not installed.
17144 GDBTK_SRC_DIR
=`pwd`
17149 # Ok, lets find the tcl configuration
17150 # First, look for one uninstalled.
17151 # the alternative search directory is invoked by --with-tcl
17154 if test x
"${no_tcl}" = x
; then
17155 # we reset no_tcl in case something fails here
17158 # Check whether --with-tcl was given.
17159 if test "${with_tcl+set}" = set; then :
17160 withval
=$with_tcl; with_tclconfig
=${withval}
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
17164 $as_echo_n "checking for Tcl configuration... " >&6; }
17165 if ${ac_cv_c_tclconfig+:} false
; then :
17166 $as_echo_n "(cached) " >&6
17170 # First check to see if --with-tcl was specified.
17172 *-*-cygwin*) platDir
="win" ;;
17173 *) platDir
="unix" ;;
17175 if test x
"${with_tclconfig}" != x
; then
17176 if test -f "${with_tclconfig}/tclConfig.sh" ; then
17177 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
17179 as_fn_error $?
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
17183 # then check for a private Tcl installation
17184 if test x
"${ac_cv_c_tclconfig}" = x
; then
17187 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17188 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
17189 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
17191 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17192 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
17193 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
17195 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17196 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
17197 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
17198 if test -f "$i/$platDir/tclConfig.sh" ; then
17199 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
17205 # on Darwin, check in Framework installation locations
17206 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
17207 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
17208 `ls -d /Library/Frameworks 2>/dev/null` \
17209 `ls -d /Network/Library/Frameworks 2>/dev/null` \
17210 `ls -d /System/Library/Frameworks 2>/dev/null` \
17212 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
17213 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
17219 # check in a few common install locations
17220 if test x
"${ac_cv_c_tclconfig}" = x
; then
17221 for i
in `ls -d ${libdir} 2>/dev/null` \
17222 `ls -d ${exec_prefix}/lib 2>/dev/null` \
17223 `ls -d ${prefix}/lib 2>/dev/null` \
17224 `ls -d /usr/local/lib 2>/dev/null` \
17225 `ls -d /usr/contrib/lib 2>/dev/null` \
17226 `ls -d /usr/lib 2>/dev/null` \
17228 if test -f "$i/tclConfig.sh" ; then
17229 ac_cv_c_tclconfig
=`(cd $i; pwd)`
17235 # check in a few other private locations
17236 if test x
"${ac_cv_c_tclconfig}" = x
; then
17239 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17240 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
17241 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
17242 if test -f "$i/$platDir/tclConfig.sh" ; then
17243 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
17252 if test x
"${ac_cv_c_tclconfig}" = x
; then
17253 TCL_BIN_DIR
="# no Tcl configs found"
17254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
17255 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
17258 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
17260 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
17265 # If $no_tk is nonempty, then we can't do Tk, and there is no
17266 # point to doing Tcl.
17269 # Ok, lets find the tk configuration
17270 # First, look for one uninstalled.
17271 # the alternative search directory is invoked by --with-tk
17274 if test x
"${no_tk}" = x
; then
17275 # we reset no_tk in case something fails here
17278 # Check whether --with-tk was given.
17279 if test "${with_tk+set}" = set; then :
17280 withval
=$with_tk; with_tkconfig
=${withval}
17283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
17284 $as_echo_n "checking for Tk configuration... " >&6; }
17285 if ${ac_cv_c_tkconfig+:} false
; then :
17286 $as_echo_n "(cached) " >&6
17290 # First check to see if --with-tkconfig was specified.
17291 if test x
"${with_tkconfig}" != x
; then
17292 if test -f "${with_tkconfig}/tkConfig.sh" ; then
17293 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
17295 as_fn_error $?
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
17299 # then check for a private Tk library
17301 *-*-cygwin*) platDir
="win" ;;
17302 *) platDir
="unix" ;;
17304 if test x
"${ac_cv_c_tkconfig}" = x
; then
17307 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17308 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
17309 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
17311 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17312 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
17313 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
17315 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17316 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
17317 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
17318 if test -f "$i/$platDir/tkConfig.sh" ; then
17319 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
17325 # on Darwin, check in Framework installation locations
17326 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
17327 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
17328 `ls -d /Library/Frameworks 2>/dev/null` \
17329 `ls -d /Network/Library/Frameworks 2>/dev/null` \
17330 `ls -d /System/Library/Frameworks 2>/dev/null` \
17332 if test -f "$i/Tk.framework/tkConfig.sh" ; then
17333 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
17339 # check in a few common install locations
17340 if test x
"${ac_cv_c_tkconfig}" = x
; then
17341 for i
in `ls -d ${libdir} 2>/dev/null` \
17342 `ls -d ${exec_prefix}/lib 2>/dev/null` \
17343 `ls -d ${prefix}/lib 2>/dev/null` \
17344 `ls -d /usr/local/lib 2>/dev/null` \
17345 `ls -d /usr/contrib/lib 2>/dev/null` \
17346 `ls -d /usr/lib 2>/dev/null` \
17348 if test -f "$i/tkConfig.sh" ; then
17349 ac_cv_c_tkconfig
=`(cd $i; pwd)`
17354 # check in a few other private locations
17355 if test x
"${ac_cv_c_tkconfig}" = x
; then
17358 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17359 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
17360 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
17361 if test -f "$i/$platDir/tkConfig.sh" ; then
17362 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
17371 if test x
"${ac_cv_c_tkconfig}" = x
; then
17372 TK_BIN_DIR
="# no Tk configs found"
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
17374 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
17377 TK_BIN_DIR
=${ac_cv_c_tkconfig}
17378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
17379 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
17384 if test -z "${no_tcl}" -a -z "${no_tk}"; then
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
17387 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
17389 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
17390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
17391 $as_echo "loading" >&6; }
17392 .
${TCL_BIN_DIR}/tclConfig.sh
17394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
17395 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
17398 # eval is required to do the TCL_DBGX substitution
17399 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
17400 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
17402 # If the TCL_BIN_DIR is the build directory (not the install directory),
17403 # then set the common variable name to the value of the build variables.
17404 # For example, the variable TCL_LIB_SPEC will be set to the value
17405 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
17406 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
17407 # installed and uninstalled version of Tcl.
17408 if test -f "${TCL_BIN_DIR}/Makefile" ; then
17409 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
17410 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
17411 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
17412 elif test "`uname -s`" = "Darwin"; then
17413 # If Tcl was built as a framework, attempt to use the libraries
17414 # from the framework at the given location so that linking works
17415 # against Tcl.framework installed in an arbitrary location.
17416 case ${TCL_DEFS} in
17418 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
17419 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
17420 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
17421 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
17422 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
17427 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
17428 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
17429 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
17435 # eval is required to do the TCL_DBGX substitution
17436 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
17437 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
17438 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
17439 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
17455 # Check for in-tree tcl
17462 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
17466 # Find Tcl private headers
17467 if test x
"${intree}" = xno
; then
17469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
17470 $as_echo_n "checking for Tcl private headers... " >&6; }
17472 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
17473 if test -f ${dir}/tclInt.h
; then
17477 if test x
"${private_dir}" = x
; then
17478 as_fn_error $?
"could not find private Tcl headers" "$LINENO" 5
17480 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
17481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
17482 $as_echo "${private_dir}" >&6; }
17485 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
17486 TCL_LIBRARY
="${TCL_LIB_SPEC}"
17489 # If building tcl in the same src tree, private headers
17490 # are not needed, but we need to be sure to use the right
17492 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
17493 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
17494 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
17501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
17502 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
17504 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
17505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
17506 $as_echo "loading" >&6; }
17507 .
${TK_BIN_DIR}/tkConfig.sh
17509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
17510 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
17513 # eval is required to do the TK_DBGX substitution
17514 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
17515 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
17517 # If the TK_BIN_DIR is the build directory (not the install directory),
17518 # then set the common variable name to the value of the build variables.
17519 # For example, the variable TK_LIB_SPEC will be set to the value
17520 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
17521 # instead of TK_BUILD_LIB_SPEC since it will work with both an
17522 # installed and uninstalled version of Tcl.
17523 if test -f "${TK_BIN_DIR}/Makefile" ; then
17524 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
17525 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
17526 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
17527 elif test "`uname -s`" = "Darwin"; then
17528 # If Tk was built as a framework, attempt to use the libraries
17529 # from the framework at the given location so that linking works
17530 # against Tk.framework installed in an arbitrary location.
17533 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
17534 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
17535 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
17536 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
17537 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
17542 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
17543 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
17544 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
17550 # eval is required to do the TK_DBGX substitution
17551 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
17552 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
17553 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
17554 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
17569 # Check for in-tree Tk
17571 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
17575 # Find Tk private headers
17576 if test x
"${intree}" = xno
; then
17578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
17579 $as_echo_n "checking for Tk private headers... " >&6; }
17581 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
17582 if test -f ${dir}/tkInt.h
; then
17586 if test x
"${private_dir}" = x
; then
17587 as_fn_error $?
"could not find Tk private headers" "$LINENO" 5
17589 TK_PRIVATE_INCLUDE
="-I${private_dir}"
17590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
17591 $as_echo "${private_dir}" >&6; }
17594 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
17595 TK_LIBRARY
=${TK_LIB_SPEC}
17598 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
17599 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
17600 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
17607 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
17609 # Include some libraries that Tcl and Tk want.
17610 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
17611 # Yes, the ordering seems wrong here. But it isn't.
17612 # TK_LIBS is the list of libraries that need to be linked
17613 # after Tcl/Tk. Note that this isn't put into LIBS. If it
17614 # were in LIBS then any link tests after this point would
17615 # try to include things like `$(LIBGUI)', which wouldn't work.
17616 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
17618 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
17619 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
17620 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
17621 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
17622 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
17623 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
17624 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
17626 if test x
"$gdb_cv_os_cygwin" = xyes
; then
17627 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
17628 WIN32LDAPP
="-Wl,--subsystem,console"
17629 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
17632 subdirs
="$subdirs gdbtk"
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
17645 $as_echo_n "checking for X... " >&6; }
17648 # Check whether --with-x was given.
17649 if test "${with_x+set}" = set; then :
17653 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17654 if test "x$with_x" = xno
; then
17655 # The user explicitly disabled X.
17658 case $x_includes,$x_libraries in #(
17659 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
17660 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
17661 $as_echo_n "(cached) " >&6
17663 # One or both of the vars are not set, and there is no cached value.
17664 ac_x_includes
=no ac_x_libraries
=no
17665 rm -f -r conftest.dir
17666 if mkdir conftest.dir
; then
17668 cat >Imakefile
<<'_ACEOF'
17670 @echo incroot='${INCROOT}'
17672 @echo usrlibdir='${USRLIBDIR}'
17674 @echo libdir='${LIBDIR}'
17676 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
17677 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17678 for ac_var
in incroot usrlibdir libdir
; do
17679 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
17681 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17682 for ac_extension
in a so sl dylib la dll
; do
17683 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
17684 test -f "$ac_im_libdir/libX11.$ac_extension"; then
17685 ac_im_usrlibdir
=$ac_im_libdir; break
17688 # Screen out bogus values from the imake configuration. They are
17689 # bogus both because they are the default anyway, and because
17690 # using them would break gcc on systems where it needs fixed includes.
17691 case $ac_im_incroot in
17692 /usr
/include
) ac_x_includes
= ;;
17693 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
17695 case $ac_im_usrlibdir in
17696 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
17697 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
17701 rm -f -r conftest.dir
17704 # Standard set of common directories for X headers.
17705 # Check X11 before X11Rn because it is often a symlink to the current release.
17719 /usr/local/X11/include
17720 /usr/local/X11R7/include
17721 /usr/local/X11R6/include
17722 /usr/local/X11R5/include
17723 /usr/local/X11R4/include
17725 /usr/local/include/X11
17726 /usr/local/include/X11R7
17727 /usr/local/include/X11R6
17728 /usr/local/include/X11R5
17729 /usr/local/include/X11R4
17733 /usr/XFree86/include/X11
17737 /usr/unsupported/include
17738 /usr/athena/include
17739 /usr/local/x11r5/include
17740 /usr/lpp/Xamples/include
17742 /usr/openwin/include
17743 /usr/openwin/share/include'
17745 if test "$ac_x_includes" = no
; then
17746 # Guess where to find include files, by looking for Xlib.h.
17747 # First, try using that file with no special directory specified.
17748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17749 /* end confdefs.h. */
17750 #include <X11/Xlib.h>
17752 if ac_fn_c_try_cpp
"$LINENO"; then :
17753 # We can compile using X headers with no special include directory.
17756 for ac_dir
in $ac_x_header_dirs; do
17757 if test -r "$ac_dir/X11/Xlib.h"; then
17758 ac_x_includes
=$ac_dir
17763 rm -f conftest.err conftest.i conftest.
$ac_ext
17764 fi # $ac_x_includes = no
17766 if test "$ac_x_libraries" = no
; then
17767 # Check for the libraries.
17768 # See if we find them without any special options.
17769 # Don't add to $LIBS permanently.
17772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17773 /* end confdefs.h. */
17774 #include <X11/Xlib.h>
17783 if ac_fn_c_try_link
"$LINENO"; then :
17785 # We can link X programs with no special library path.
17789 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17791 # Don't even attempt the hair of trying to link an X program!
17792 for ac_extension
in a so sl dylib la dll
; do
17793 if test -r "$ac_dir/libX11.$ac_extension"; then
17794 ac_x_libraries
=$ac_dir
17800 rm -f core conftest.err conftest.
$ac_objext \
17801 conftest
$ac_exeext conftest.
$ac_ext
17802 fi # $ac_x_libraries = no
17804 case $ac_x_includes,$ac_x_libraries in #(
17805 no
,* |
*,no |
*\'*)
17806 # Didn't find X, or a directory has "'" in its name.
17807 ac_cv_have_x
="have_x=no";; #(
17809 # Record where we found X for the cache.
17810 ac_cv_have_x
="have_x=yes\
17811 ac_x_includes='$ac_x_includes'\
17812 ac_x_libraries='$ac_x_libraries'"
17818 eval "$ac_cv_have_x"
17821 if test "$have_x" != yes; then
17822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
17823 $as_echo "$have_x" >&6; }
17826 # If each of the values was on the command line, it overrides each guess.
17827 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
17828 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
17829 # Update the cache value to reflect the command line values.
17830 ac_cv_have_x
="have_x=yes\
17831 ac_x_includes='$x_includes'\
17832 ac_x_libraries='$x_libraries'"
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
17834 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
17838 # Unlike the sim directory, whether a simulator is linked is controlled by
17839 # presence of a gdb_sim definition in the target configure.tgt entry.
17840 # This code just checks for a few cases where we'd like to ignore those
17841 # definitions, even when they're present in the '.mt' file. These cases
17842 # are when --disable-sim is specified, or if the simulator directory is
17843 # not part of the source tree.
17845 # Check whether --enable-sim was given.
17846 if test "${enable_sim+set}" = set; then :
17847 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
17848 echo "enableval = ${enableval}";
17849 case "${enableval}" in
17850 yes) ignore_sim
=false
;;
17851 no
) ignore_sim
=true
;;
17852 *) ignore_sim
=false
;;
17859 if test ! -d "${srcdir}/../sim"; then
17865 if test "${ignore_sim}" = "false"; then
17866 if test x
"${gdb_sim}" != x
; then
17868 SIM_OBS
="remote-sim.o"
17870 $as_echo "#define WITH_SIM 1" >>confdefs.h
17873 # Some tdep code should only be compiled in when the ppc sim is
17874 # built. PR sim/13418.
17878 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
17898 # List of host floatformats.
17900 cat >>confdefs.h
<<_ACEOF
17901 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
17905 cat >>confdefs.h
<<_ACEOF
17906 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
17910 cat >>confdefs.h
<<_ACEOF
17911 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
17915 # target_subdir is used by the testsuite to find the target libraries.
17917 if test "${host}" != "${target}"; then
17918 target_subdir
="${target_alias}/"
17922 # Import nat definitions.
17923 nat_makefile_frag
=/dev
/null
17924 if test "${gdb_native}" = "yes"; then
17925 .
${srcdir}/configure.nat
17926 nativefile
=$NAT_FILE
17939 if test x
"${gdb_osabi}" != x
; then
17941 cat >>confdefs.h
<<_ACEOF
17942 #define GDB_OSABI_DEFAULT $gdb_osabi
17947 # Check whether --enable-gdbserver was given.
17948 if test "${enable_gdbserver+set}" = set; then :
17949 enableval
=$enable_gdbserver; case "${enableval}" in
17951 *) as_fn_error $?
"bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
17954 enable_gdbserver
=auto
17958 # We only build gdbserver automatically in a native configuration, and
17959 # only if the user did not explicitly disable its build.
17960 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
17962 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
17963 if test "x$build_gdbserver" = xyes
; then
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17965 $as_echo "yes" >&6; }
17966 subdirs
="$subdirs gdbserver"
17968 gdbserver_build_enabled
=yes
17970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17971 $as_echo "no" >&6; }
17975 # If the user explicitly request the gdbserver to be built, verify that
17976 # we were in fact able to enable it.
17977 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
17978 as_fn_error $?
"Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
17981 # Check for babeltrace and babeltrace-ctf
17983 # Check whether --with-babeltrace was given.
17984 if test "${with_babeltrace+set}" = set; then :
17985 withval
=$with_babeltrace;
17987 with_babeltrace
=auto
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
17991 $as_echo_n "checking whether to use babeltrace... " >&6; }
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
17993 $as_echo "$with_babeltrace" >&6; }
17995 if test "x$with_babeltrace" = "xno"; then
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
17997 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
17999 # Append -Werror to CFLAGS so that configure can catch the warning
18000 # "assignment from incompatible pointer type", which is related to
18001 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
18002 # in GDB, while babeltrace 1.0.3 is broken.
18003 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
18004 # safe to save and restore CFLAGS here.
18005 saved_CFLAGS
=$CFLAGS
18006 CFLAGS
="$CFLAGS -Werror"
18017 acl_save_prefix
="$prefix"
18018 prefix
="$acl_final_prefix"
18019 acl_save_exec_prefix
="$exec_prefix"
18020 exec_prefix
="$acl_final_exec_prefix"
18022 eval additional_includedir
=\"$includedir\"
18023 eval additional_libdir
=\"$libdir\"
18025 exec_prefix
="$acl_save_exec_prefix"
18026 prefix
="$acl_save_prefix"
18029 # Check whether --with-libbabeltrace-prefix was given.
18030 if test "${with_libbabeltrace_prefix+set}" = set; then :
18031 withval
=$with_libbabeltrace_prefix;
18032 if test "X$withval" = "Xno"; then
18035 if test "X$withval" = "X"; then
18037 acl_save_prefix
="$prefix"
18038 prefix
="$acl_final_prefix"
18039 acl_save_exec_prefix
="$exec_prefix"
18040 exec_prefix
="$acl_final_exec_prefix"
18042 eval additional_includedir
=\"$includedir\"
18043 eval additional_libdir
=\"$libdir\"
18045 exec_prefix
="$acl_save_exec_prefix"
18046 prefix
="$acl_save_prefix"
18049 additional_includedir
="$withval/include"
18050 additional_libdir
="$withval/lib"
18061 names_already_handled
=
18062 names_next_round
='babeltrace babeltrace-ctf'
18063 while test -n "$names_next_round"; do
18064 names_this_round
="$names_next_round"
18066 for name
in $names_this_round; do
18068 for n
in $names_already_handled; do
18069 if test "$n" = "$name"; then
18070 already_handled
=yes
18074 if test -z "$already_handled"; then
18075 names_already_handled
="$names_already_handled $name"
18076 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18077 eval value
=\"\
$HAVE_LIB$uppername\"
18078 if test -n "$value"; then
18079 if test "$value" = yes; then
18080 eval value
=\"\
$LIB$uppername\"
18081 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
18082 eval value
=\"\
$LTLIB$uppername\"
18083 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
18092 if test $use_additional = yes; then
18093 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18094 found_dir
="$additional_libdir"
18095 found_so
="$additional_libdir/lib$name.$shlibext"
18096 if test -f "$additional_libdir/lib$name.la"; then
18097 found_la
="$additional_libdir/lib$name.la"
18100 if test -f "$additional_libdir/lib$name.$libext"; then
18101 found_dir
="$additional_libdir"
18102 found_a
="$additional_libdir/lib$name.$libext"
18103 if test -f "$additional_libdir/lib$name.la"; then
18104 found_la
="$additional_libdir/lib$name.la"
18109 if test "X$found_dir" = "X"; then
18110 for x
in $LDFLAGS $LTLIBBABELTRACE; do
18112 acl_save_prefix
="$prefix"
18113 prefix
="$acl_final_prefix"
18114 acl_save_exec_prefix
="$exec_prefix"
18115 exec_prefix
="$acl_final_exec_prefix"
18117 exec_prefix
="$acl_save_exec_prefix"
18118 prefix
="$acl_save_prefix"
18122 dir
=`echo "X$x" | sed -e 's/^X-L//'`
18123 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18125 found_so
="$dir/lib$name.$shlibext"
18126 if test -f "$dir/lib$name.la"; then
18127 found_la
="$dir/lib$name.la"
18130 if test -f "$dir/lib$name.$libext"; then
18132 found_a
="$dir/lib$name.$libext"
18133 if test -f "$dir/lib$name.la"; then
18134 found_la
="$dir/lib$name.la"
18140 if test "X$found_dir" != "X"; then
18145 if test "X$found_dir" != "X"; then
18146 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
18147 if test "X$found_so" != "X"; then
18148 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
18149 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18152 for x
in $ltrpathdirs; do
18153 if test "X$x" = "X$found_dir"; then
18158 if test -z "$haveit"; then
18159 ltrpathdirs
="$ltrpathdirs $found_dir"
18161 if test "$hardcode_direct" = yes; then
18162 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18164 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
18165 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18167 for x
in $rpathdirs; do
18168 if test "X$x" = "X$found_dir"; then
18173 if test -z "$haveit"; then
18174 rpathdirs
="$rpathdirs $found_dir"
18178 for x
in $LDFLAGS $LIBBABELTRACE; do
18180 acl_save_prefix
="$prefix"
18181 prefix
="$acl_final_prefix"
18182 acl_save_exec_prefix
="$exec_prefix"
18183 exec_prefix
="$acl_final_exec_prefix"
18185 exec_prefix
="$acl_save_exec_prefix"
18186 prefix
="$acl_save_prefix"
18188 if test "X$x" = "X-L$found_dir"; then
18193 if test -z "$haveit"; then
18194 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
18196 if test "$hardcode_minus_L" != no
; then
18197 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18199 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
18205 if test "X$found_a" != "X"; then
18206 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
18208 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
18211 additional_includedir
=
18212 case "$found_dir" in
18214 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18215 additional_includedir
="$basedir/include"
18218 if test "X$additional_includedir" != "X"; then
18219 if test "X$additional_includedir" != "X/usr/include"; then
18221 if test "X$additional_includedir" = "X/usr/local/include"; then
18222 if test -n "$GCC"; then
18224 linux
*) haveit
=yes;;
18228 if test -z "$haveit"; then
18229 for x
in $CPPFLAGS $INCBABELTRACE; do
18231 acl_save_prefix
="$prefix"
18232 prefix
="$acl_final_prefix"
18233 acl_save_exec_prefix
="$exec_prefix"
18234 exec_prefix
="$acl_final_exec_prefix"
18236 exec_prefix
="$acl_save_exec_prefix"
18237 prefix
="$acl_save_prefix"
18239 if test "X$x" = "X-I$additional_includedir"; then
18244 if test -z "$haveit"; then
18245 if test -d "$additional_includedir"; then
18246 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
18252 if test -n "$found_la"; then
18253 save_libdir
="$libdir"
18254 case "$found_la" in
18255 */* |
*\\*) .
"$found_la" ;;
18256 *) .
"./$found_la" ;;
18258 libdir
="$save_libdir"
18259 for dep
in $dependency_libs; do
18262 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
18263 if test "X$additional_libdir" != "X/usr/lib"; then
18265 if test "X$additional_libdir" = "X/usr/local/lib"; then
18266 if test -n "$GCC"; then
18268 linux
*) haveit
=yes;;
18272 if test -z "$haveit"; then
18274 for x
in $LDFLAGS $LIBBABELTRACE; do
18276 acl_save_prefix
="$prefix"
18277 prefix
="$acl_final_prefix"
18278 acl_save_exec_prefix
="$exec_prefix"
18279 exec_prefix
="$acl_final_exec_prefix"
18281 exec_prefix
="$acl_save_exec_prefix"
18282 prefix
="$acl_save_prefix"
18284 if test "X$x" = "X-L$additional_libdir"; then
18289 if test -z "$haveit"; then
18290 if test -d "$additional_libdir"; then
18291 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
18295 for x
in $LDFLAGS $LTLIBBABELTRACE; do
18297 acl_save_prefix
="$prefix"
18298 prefix
="$acl_final_prefix"
18299 acl_save_exec_prefix
="$exec_prefix"
18300 exec_prefix
="$acl_final_exec_prefix"
18302 exec_prefix
="$acl_save_exec_prefix"
18303 prefix
="$acl_save_prefix"
18305 if test "X$x" = "X-L$additional_libdir"; then
18310 if test -z "$haveit"; then
18311 if test -d "$additional_libdir"; then
18312 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
18319 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
18320 if test "$enable_rpath" != no
; then
18322 for x
in $rpathdirs; do
18323 if test "X$x" = "X$dir"; then
18328 if test -z "$haveit"; then
18329 rpathdirs
="$rpathdirs $dir"
18332 for x
in $ltrpathdirs; do
18333 if test "X$x" = "X$dir"; then
18338 if test -z "$haveit"; then
18339 ltrpathdirs
="$ltrpathdirs $dir"
18344 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18347 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18350 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
18351 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
18357 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
18358 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
18364 if test "X$rpathdirs" != "X"; then
18365 if test -n "$hardcode_libdir_separator"; then
18367 for found_dir
in $rpathdirs; do
18368 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18370 acl_save_libdir
="$libdir"
18372 eval flag
=\"$hardcode_libdir_flag_spec\"
18373 libdir
="$acl_save_libdir"
18374 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
18376 for found_dir
in $rpathdirs; do
18377 acl_save_libdir
="$libdir"
18378 libdir
="$found_dir"
18379 eval flag
=\"$hardcode_libdir_flag_spec\"
18380 libdir
="$acl_save_libdir"
18381 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
18385 if test "X$ltrpathdirs" != "X"; then
18386 for found_dir
in $ltrpathdirs; do
18387 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
18392 ac_save_CPPFLAGS
="$CPPFLAGS"
18394 for element
in $INCBABELTRACE; do
18396 for x
in $CPPFLAGS; do
18398 acl_save_prefix
="$prefix"
18399 prefix
="$acl_final_prefix"
18400 acl_save_exec_prefix
="$exec_prefix"
18401 exec_prefix
="$acl_final_exec_prefix"
18403 exec_prefix
="$acl_save_exec_prefix"
18404 prefix
="$acl_save_prefix"
18406 if test "X$x" = "X$element"; then
18411 if test -z "$haveit"; then
18412 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
18417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
18418 $as_echo_n "checking for libbabeltrace... " >&6; }
18419 if ${ac_cv_libbabeltrace+:} false
; then :
18420 $as_echo_n "(cached) " >&6
18423 ac_save_LIBS
="$LIBS"
18424 LIBS
="$LIBS $LIBBABELTRACE"
18425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18426 /* end confdefs.h. */
18427 #include <babeltrace/babeltrace.h>
18428 #include <babeltrace/ctf/events.h>
18429 #include <babeltrace/ctf/iterator.h>
18433 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
18434 struct bt_ctf_event *event = NULL;
18435 const struct bt_definition *scope;
18437 pos->type = BT_SEEK_BEGIN;
18438 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
18439 scope = bt_ctf_get_top_level_scope (event,
18440 BT_STREAM_EVENT_HEADER);
18441 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
18447 if ac_fn_c_try_link
"$LINENO"; then :
18448 ac_cv_libbabeltrace
=yes
18450 ac_cv_libbabeltrace
=no
18452 rm -f core conftest.err conftest.
$ac_objext \
18453 conftest
$ac_exeext conftest.
$ac_ext
18454 LIBS
="$ac_save_LIBS"
18457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
18458 $as_echo "$ac_cv_libbabeltrace" >&6; }
18459 if test "$ac_cv_libbabeltrace" = yes; then
18460 HAVE_LIBBABELTRACE
=yes
18462 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
18464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
18465 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
18467 $as_echo "$LIBBABELTRACE" >&6; }
18469 HAVE_LIBBABELTRACE
=no
18470 CPPFLAGS
="$ac_save_CPPFLAGS"
18480 CFLAGS
=$saved_CFLAGS
18482 if test "$HAVE_LIBBABELTRACE" != yes; then
18483 if test "$with_babeltrace" = yes; then
18484 as_fn_error $?
"babeltrace is missing or unusable" "$LINENO" 5
18486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
18487 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
18494 # Check whether --with-xxhash was given.
18495 if test "${with_xxhash+set}" = set; then :
18496 withval
=$with_xxhash;
18502 if test "x$with_xxhash" != "xno"; then
18513 acl_save_prefix
="$prefix"
18514 prefix
="$acl_final_prefix"
18515 acl_save_exec_prefix
="$exec_prefix"
18516 exec_prefix
="$acl_final_exec_prefix"
18518 eval additional_includedir
=\"$includedir\"
18519 eval additional_libdir
=\"$libdir\"
18521 exec_prefix
="$acl_save_exec_prefix"
18522 prefix
="$acl_save_prefix"
18525 # Check whether --with-libxxhash-prefix was given.
18526 if test "${with_libxxhash_prefix+set}" = set; then :
18527 withval
=$with_libxxhash_prefix;
18528 if test "X$withval" = "Xno"; then
18531 if test "X$withval" = "X"; then
18533 acl_save_prefix
="$prefix"
18534 prefix
="$acl_final_prefix"
18535 acl_save_exec_prefix
="$exec_prefix"
18536 exec_prefix
="$acl_final_exec_prefix"
18538 eval additional_includedir
=\"$includedir\"
18539 eval additional_libdir
=\"$libdir\"
18541 exec_prefix
="$acl_save_exec_prefix"
18542 prefix
="$acl_save_prefix"
18545 additional_includedir
="$withval/include"
18546 additional_libdir
="$withval/lib"
18557 names_already_handled
=
18558 names_next_round
='xxhash '
18559 while test -n "$names_next_round"; do
18560 names_this_round
="$names_next_round"
18562 for name
in $names_this_round; do
18564 for n
in $names_already_handled; do
18565 if test "$n" = "$name"; then
18566 already_handled
=yes
18570 if test -z "$already_handled"; then
18571 names_already_handled
="$names_already_handled $name"
18572 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18573 eval value
=\"\
$HAVE_LIB$uppername\"
18574 if test -n "$value"; then
18575 if test "$value" = yes; then
18576 eval value
=\"\
$LIB$uppername\"
18577 test -z "$value" || LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$value"
18578 eval value
=\"\
$LTLIB$uppername\"
18579 test -z "$value" || LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$value"
18588 if test $use_additional = yes; then
18589 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18590 found_dir
="$additional_libdir"
18591 found_so
="$additional_libdir/lib$name.$shlibext"
18592 if test -f "$additional_libdir/lib$name.la"; then
18593 found_la
="$additional_libdir/lib$name.la"
18596 if test -f "$additional_libdir/lib$name.$libext"; then
18597 found_dir
="$additional_libdir"
18598 found_a
="$additional_libdir/lib$name.$libext"
18599 if test -f "$additional_libdir/lib$name.la"; then
18600 found_la
="$additional_libdir/lib$name.la"
18605 if test "X$found_dir" = "X"; then
18606 for x
in $LDFLAGS $LTLIBXXHASH; do
18608 acl_save_prefix
="$prefix"
18609 prefix
="$acl_final_prefix"
18610 acl_save_exec_prefix
="$exec_prefix"
18611 exec_prefix
="$acl_final_exec_prefix"
18613 exec_prefix
="$acl_save_exec_prefix"
18614 prefix
="$acl_save_prefix"
18618 dir
=`echo "X$x" | sed -e 's/^X-L//'`
18619 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18621 found_so
="$dir/lib$name.$shlibext"
18622 if test -f "$dir/lib$name.la"; then
18623 found_la
="$dir/lib$name.la"
18626 if test -f "$dir/lib$name.$libext"; then
18628 found_a
="$dir/lib$name.$libext"
18629 if test -f "$dir/lib$name.la"; then
18630 found_la
="$dir/lib$name.la"
18636 if test "X$found_dir" != "X"; then
18641 if test "X$found_dir" != "X"; then
18642 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$found_dir -l$name"
18643 if test "X$found_so" != "X"; then
18644 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
18645 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
18648 for x
in $ltrpathdirs; do
18649 if test "X$x" = "X$found_dir"; then
18654 if test -z "$haveit"; then
18655 ltrpathdirs
="$ltrpathdirs $found_dir"
18657 if test "$hardcode_direct" = yes; then
18658 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
18660 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
18661 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
18663 for x
in $rpathdirs; do
18664 if test "X$x" = "X$found_dir"; then
18669 if test -z "$haveit"; then
18670 rpathdirs
="$rpathdirs $found_dir"
18674 for x
in $LDFLAGS $LIBXXHASH; do
18676 acl_save_prefix
="$prefix"
18677 prefix
="$acl_final_prefix"
18678 acl_save_exec_prefix
="$exec_prefix"
18679 exec_prefix
="$acl_final_exec_prefix"
18681 exec_prefix
="$acl_save_exec_prefix"
18682 prefix
="$acl_save_prefix"
18684 if test "X$x" = "X-L$found_dir"; then
18689 if test -z "$haveit"; then
18690 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir"
18692 if test "$hardcode_minus_L" != no
; then
18693 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
18695 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
18701 if test "X$found_a" != "X"; then
18702 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_a"
18704 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir -l$name"
18707 additional_includedir
=
18708 case "$found_dir" in
18710 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18711 additional_includedir
="$basedir/include"
18714 if test "X$additional_includedir" != "X"; then
18715 if test "X$additional_includedir" != "X/usr/include"; then
18717 if test "X$additional_includedir" = "X/usr/local/include"; then
18718 if test -n "$GCC"; then
18720 linux
*) haveit
=yes;;
18724 if test -z "$haveit"; then
18725 for x
in $CPPFLAGS $INCXXHASH; do
18727 acl_save_prefix
="$prefix"
18728 prefix
="$acl_final_prefix"
18729 acl_save_exec_prefix
="$exec_prefix"
18730 exec_prefix
="$acl_final_exec_prefix"
18732 exec_prefix
="$acl_save_exec_prefix"
18733 prefix
="$acl_save_prefix"
18735 if test "X$x" = "X-I$additional_includedir"; then
18740 if test -z "$haveit"; then
18741 if test -d "$additional_includedir"; then
18742 INCXXHASH
="${INCXXHASH}${INCXXHASH:+ }-I$additional_includedir"
18748 if test -n "$found_la"; then
18749 save_libdir
="$libdir"
18750 case "$found_la" in
18751 */* |
*\\*) .
"$found_la" ;;
18752 *) .
"./$found_la" ;;
18754 libdir
="$save_libdir"
18755 for dep
in $dependency_libs; do
18758 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
18759 if test "X$additional_libdir" != "X/usr/lib"; then
18761 if test "X$additional_libdir" = "X/usr/local/lib"; then
18762 if test -n "$GCC"; then
18764 linux
*) haveit
=yes;;
18768 if test -z "$haveit"; then
18770 for x
in $LDFLAGS $LIBXXHASH; do
18772 acl_save_prefix
="$prefix"
18773 prefix
="$acl_final_prefix"
18774 acl_save_exec_prefix
="$exec_prefix"
18775 exec_prefix
="$acl_final_exec_prefix"
18777 exec_prefix
="$acl_save_exec_prefix"
18778 prefix
="$acl_save_prefix"
18780 if test "X$x" = "X-L$additional_libdir"; then
18785 if test -z "$haveit"; then
18786 if test -d "$additional_libdir"; then
18787 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$additional_libdir"
18791 for x
in $LDFLAGS $LTLIBXXHASH; do
18793 acl_save_prefix
="$prefix"
18794 prefix
="$acl_final_prefix"
18795 acl_save_exec_prefix
="$exec_prefix"
18796 exec_prefix
="$acl_final_exec_prefix"
18798 exec_prefix
="$acl_save_exec_prefix"
18799 prefix
="$acl_save_prefix"
18801 if test "X$x" = "X-L$additional_libdir"; then
18806 if test -z "$haveit"; then
18807 if test -d "$additional_libdir"; then
18808 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$additional_libdir"
18815 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
18816 if test "$enable_rpath" != no
; then
18818 for x
in $rpathdirs; do
18819 if test "X$x" = "X$dir"; then
18824 if test -z "$haveit"; then
18825 rpathdirs
="$rpathdirs $dir"
18828 for x
in $ltrpathdirs; do
18829 if test "X$x" = "X$dir"; then
18834 if test -z "$haveit"; then
18835 ltrpathdirs
="$ltrpathdirs $dir"
18840 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18843 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18846 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$dep"
18847 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$dep"
18853 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
18854 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l$name"
18860 if test "X$rpathdirs" != "X"; then
18861 if test -n "$hardcode_libdir_separator"; then
18863 for found_dir
in $rpathdirs; do
18864 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18866 acl_save_libdir
="$libdir"
18868 eval flag
=\"$hardcode_libdir_flag_spec\"
18869 libdir
="$acl_save_libdir"
18870 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
18872 for found_dir
in $rpathdirs; do
18873 acl_save_libdir
="$libdir"
18874 libdir
="$found_dir"
18875 eval flag
=\"$hardcode_libdir_flag_spec\"
18876 libdir
="$acl_save_libdir"
18877 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
18881 if test "X$ltrpathdirs" != "X"; then
18882 for found_dir
in $ltrpathdirs; do
18883 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-R$found_dir"
18888 ac_save_CPPFLAGS
="$CPPFLAGS"
18890 for element
in $INCXXHASH; do
18892 for x
in $CPPFLAGS; do
18894 acl_save_prefix
="$prefix"
18895 prefix
="$acl_final_prefix"
18896 acl_save_exec_prefix
="$exec_prefix"
18897 exec_prefix
="$acl_final_exec_prefix"
18899 exec_prefix
="$acl_save_exec_prefix"
18900 prefix
="$acl_save_prefix"
18902 if test "X$x" = "X$element"; then
18907 if test -z "$haveit"; then
18908 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5
18914 $as_echo_n "checking for libxxhash... " >&6; }
18915 if ${ac_cv_libxxhash+:} false
; then :
18916 $as_echo_n "(cached) " >&6
18919 ac_save_LIBS
="$LIBS"
18920 LIBS
="$LIBS $LIBXXHASH"
18921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18922 /* end confdefs.h. */
18923 #include <xxhash.h>
18927 XXH32("foo", 3, 0);
18933 if ac_fn_c_try_link
"$LINENO"; then :
18934 ac_cv_libxxhash
=yes
18938 rm -f core conftest.err conftest.
$ac_objext \
18939 conftest
$ac_exeext conftest.
$ac_ext
18940 LIBS
="$ac_save_LIBS"
18943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxxhash" >&5
18944 $as_echo "$ac_cv_libxxhash" >&6; }
18945 if test "$ac_cv_libxxhash" = yes; then
18948 $as_echo "#define HAVE_LIBXXHASH 1" >>confdefs.h
18950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libxxhash" >&5
18951 $as_echo_n "checking how to link with libxxhash... " >&6; }
18952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXXHASH" >&5
18953 $as_echo "$LIBXXHASH" >&6; }
18956 CPPFLAGS
="$ac_save_CPPFLAGS"
18966 if test "$HAVE_LIBXXHASH" != yes; then
18967 if test "$with_xxhash" = yes; then
18968 as_fn_error $?
"xxhash is missing or unusable" "$LINENO" 5
18971 if test "x$with_xxhash" = "xauto"; then
18972 with_xxhash
="$HAVE_LIBXXHASH"
18976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
18977 $as_echo_n "checking whether to use xxhash... " >&6; }
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
18979 $as_echo "$with_xxhash" >&6; }
18983 if test "${nativefile}" != ""; then
18984 case "${nativefile}" in
18985 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
18986 * ) GDB_NM_FILE
="${nativefile}"
18988 ac_config_links
="$ac_config_links nm.h:$GDB_NM_FILE"
18991 cat >>confdefs.h
<<_ACEOF
18992 #define GDB_NM_FILE "${GDB_NM_FILE}"
19000 for ac_prog
in xsltproc
19002 # Extract the first word of "$ac_prog", so it can be a program name with args.
19003 set dummy
$ac_prog; ac_word
=$2
19004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19005 $as_echo_n "checking for $ac_word... " >&6; }
19006 if ${ac_cv_path_XSLTPROC+:} false
; then :
19007 $as_echo_n "(cached) " >&6
19011 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
19014 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19015 for as_dir
in $PATH
19018 test -z "$as_dir" && as_dir
=.
19019 for ac_exec_ext
in '' $ac_executable_extensions; do
19020 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19021 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
19022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19032 XSLTPROC
=$ac_cv_path_XSLTPROC
19033 if test -n "$XSLTPROC"; then
19034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19035 $as_echo "$XSLTPROC" >&6; }
19037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19038 $as_echo "no" >&6; }
19042 test -n "$XSLTPROC" && break
19044 test -n "$XSLTPROC" || XSLTPROC
="missing"
19046 if test "x$USE_MAINTAINER_MODE" = xyes
; then
19047 if test "${XSLTPROC}" = missing
; then
19048 as_fn_error $?
"unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
19056 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
19060 # Check whether we will enable the inclusion of unit tests when
19063 # The default value of this option changes depending whether we're on
19064 # development mode (in which case it's "true") or not (in which case
19066 # Check whether --enable-unit-tests was given.
19067 if test "${enable_unit_tests+set}" = set; then :
19068 enableval
=$enable_unit_tests; case "${enableval}" in
19069 yes) enable_unittests
=true
;;
19070 no
) enable_unittests
=false
;;
19071 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
19074 enable_unittests
=$development
19078 if $enable_unittests; then
19080 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
19083 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_UNITTESTS_OBS) gdbsupport/selftest.o selftest-arch.o"
19084 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_UNITTESTS_SRCS) gdbsupport/selftest.c selftest-arch.c"
19090 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19091 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
19092 if test "x$GDB_TRANSFORM_NAME" = x
; then
19093 GDB_TRANSFORM_NAME
=gdb
19098 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19099 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
19100 if test "x$GCORE_TRANSFORM_NAME" = x
; then
19101 GCORE_TRANSFORM_NAME
=gcore
19105 ac_config_files
="$ac_config_files gcore"
19107 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
19110 cat >confcache
<<\_ACEOF
19111 # This file is a shell script that caches the results of configure
19112 # tests run on this system so they can be shared between configure
19113 # scripts and configure runs, see configure's option --config-cache.
19114 # It is not useful on other systems. If it contains results you don't
19115 # want to keep, you may remove or edit it.
19117 # config.status only pays attention to the cache file if you give it
19118 # the --recheck option to rerun configure.
19120 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19121 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19122 # following values.
19126 # The following way of writing the cache mishandles newlines in values,
19127 # but we know of no workaround that is simple, portable, and efficient.
19128 # So, we kill variables containing newlines.
19129 # Ultrix sh set writes to stderr and can't be redirected directly,
19130 # and sets the high bit in the cache file unless we assign to the vars.
19132 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19133 eval ac_val
=\$
$ac_var
19137 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19138 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19141 _ | IFS | as_nl
) ;; #(
19142 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
19143 *) { eval $ac_var=; unset $ac_var;} ;;
19149 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19150 *${as_nl}ac_space
=\
*)
19151 # `set' does not quote correctly, so add quotes: double-quote
19152 # substitution turns \\\\ into \\, and sed turns \\ into \.
19155 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19158 # `set' quotes correctly as required by POSIX, so do not add quotes.
19159 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19168 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19170 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19172 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
19173 if test -w "$cache_file"; then
19174 if test "x$cache_file" != "x/dev/null"; then
19175 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19176 $as_echo "$as_me: updating cache $cache_file" >&6;}
19177 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
19178 cat confcache
>"$cache_file"
19180 case $cache_file in #(
19182 mv -f confcache
"$cache_file"$$
&&
19183 mv -f "$cache_file"$$
"$cache_file" ;; #(
19185 mv -f confcache
"$cache_file" ;;
19190 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19191 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19196 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19197 # Let make expand exec_prefix.
19198 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19200 DEFS
=-DHAVE_CONFIG_H
19205 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19206 # 1. Remove the extension, and $U if already installed.
19207 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
19208 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
19209 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19210 # will be set to the directory where LIBOBJS objects are built.
19211 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19212 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
19214 LIBOBJS
=$ac_libobjs
19216 LTLIBOBJS
=$ac_ltlibobjs
19219 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19220 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
19221 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19223 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
19224 as_fn_error $?
"conditional \"HAVE_PYTHON\" was never defined.
19225 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19227 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
19228 as_fn_error $?
"conditional \"HAVE_GUILE\" was never defined.
19229 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19233 : "${CONFIG_STATUS=./config.status}"
19235 ac_clean_files_save
=$ac_clean_files
19236 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19237 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19238 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19240 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19242 # Generated by $as_me.
19243 # Run this file to recreate the current configuration.
19244 # Compiler output produced by configure, useful for debugging
19245 # configure, is in config.log if it exists.
19248 ac_cs_recheck=false
19251 SHELL=\${CONFIG_SHELL-$SHELL}
19254 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
19255 ## -------------------- ##
19256 ## M4sh Initialization. ##
19257 ## -------------------- ##
19259 # Be more Bourne compatible
19260 DUALCASE
=1; export DUALCASE
# for MKS sh
19261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
19264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19265 # is contrary to our usage. Disable this feature.
19266 alias -g '${1+"$@"}'='"$@"'
19267 setopt NO_GLOB_SUBST
19269 case `(set -o) 2>/dev/null` in #(
19281 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19282 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19283 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19284 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19285 # Prefer a ksh shell builtin over an external printf program on Solaris,
19286 # but without wasting forks for bash or zsh.
19287 if test -z "$BASH_VERSION$ZSH_VERSION" \
19288 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19289 as_echo='print
-r --'
19290 as_echo_n='print
-rn --'
19291 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19292 as_echo='printf %s
\n'
19293 as_echo_n='printf %s
'
19295 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19296 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
19297 as_echo_n='/usr
/ucb
/echo -n'
19299 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19300 as_echo_n_body='eval
19304 expr "X$arg" : "X\\(.*\\)$as_nl";
19305 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19307 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
19309 export as_echo_n_body
19310 as_echo_n='sh
-c $as_echo_n_body as_echo
'
19312 export as_echo_body
19313 as_echo='sh
-c $as_echo_body as_echo
'
19316 # The user is always right.
19317 if test "${PATH_SEPARATOR+set}" != set; then
19319 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19320 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19327 # We need space, tab and new line, in precisely that order. Quoting is
19328 # there to prevent editors from complaining about space-tab.
19329 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19330 # splitting by setting IFS to empty value.)
19333 # Find who we are. Look in the path if we contain no directory separator.
19336 *[\\/]* ) as_myself=$0 ;;
19337 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19338 for as_dir in $PATH
19341 test -z "$as_dir" && as_dir=.
19342 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19348 # We did not find ourselves, most probably we were run as `sh COMMAND'
19349 # in which case we are not to be found in the path.
19350 if test "x$as_myself" = x
; then
19353 if test ! -f "$as_myself"; then
19354 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19358 # Unset variables that we do not need and which cause bugs (e.g. in
19359 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19360 # suppresses any "Segmentation fault" message there. '((' could
19361 # trigger a bug in pdksh 5.2.14.
19362 for as_var
in BASH_ENV ENV MAIL MAILPATH
19363 do eval test x\
${$as_var+set} = xset \
19364 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
19377 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
19380 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19381 # ----------------------------------------
19382 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19383 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19384 # script with STATUS, using 1 if that was 0.
19387 as_status
=$1; test $as_status -eq 0 && as_status
=1
19389 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
19390 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19392 $as_echo "$as_me: error: $2" >&2
19393 as_fn_exit
$as_status
19397 # as_fn_set_status STATUS
19398 # -----------------------
19399 # Set $? to STATUS, without forking.
19400 as_fn_set_status
()
19403 } # as_fn_set_status
19405 # as_fn_exit STATUS
19406 # -----------------
19407 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19411 as_fn_set_status
$1
19417 # Portably unset VAR.
19420 { eval $1=; unset $1;}
19422 as_unset
=as_fn_unset
19423 # as_fn_append VAR VALUE
19424 # ----------------------
19425 # Append the text in VALUE to the end of the definition contained in VAR. Take
19426 # advantage of any shell optimizations that allow amortized linear growth over
19427 # repeated appends, instead of the typical quadratic growth present in naive
19429 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
19430 eval 'as_fn_append ()
19441 # as_fn_arith ARG...
19442 # ------------------
19443 # Perform arithmetic evaluation on the ARGs, and store the result in the
19444 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19445 # must be portable across $(()) and expr.
19446 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
19447 eval 'as_fn_arith ()
19454 as_val
=`expr "$@" || test $? -eq 1`
19459 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
19460 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
19466 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19467 as_basename
=basename
19472 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
19478 as_me
=`$as_basename -- "$0" ||
19479 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19480 X"$0" : 'X\(//\)$' \| \
19481 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19483 sed '/^.*\/\([^/][^/]*\)\/*$/{
19497 # Avoid depending upon Character Ranges.
19498 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19499 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19500 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19501 as_cr_digits
='0123456789'
19502 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19504 ECHO_C
= ECHO_N
= ECHO_T
=
19505 case `echo -n x` in #(((((
19507 case `echo 'xy\c'` in
19508 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
19510 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
19517 rm -f conf$$ conf$$.exe conf$$.
file
19518 if test -d conf$$.dir
; then
19519 rm -f conf$$.dir
/conf$$.
file
19522 mkdir conf$$.dir
2>/dev
/null
19524 if (echo >conf$$.
file) 2>/dev
/null
; then
19525 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19527 # ... but there are two gotchas:
19528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19530 # In both cases, we have to default to `cp -pR'.
19531 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
19533 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19541 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
19542 rmdir conf$$.dir
2>/dev
/null
19547 # Create "$as_dir" as a directory, including parents if necessary.
19552 -*) as_dir
=.
/$as_dir;;
19554 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
19558 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19559 *) as_qdir
=$as_dir;;
19561 as_dirs
="'$as_qdir' $as_dirs"
19562 as_dir
=`$as_dirname -- "$as_dir" ||
19563 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19564 X"$as_dir" : 'X\(//\)[^/]' \| \
19565 X"$as_dir" : 'X\(//\)$' \| \
19566 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19567 $as_echo X"$as_dir" |
19568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19572 /^X\(\/\/\)[^/].*/{
19585 test -d "$as_dir" && break
19587 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19588 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
19592 if mkdir
-p .
2>/dev
/null
; then
19593 as_mkdir_p
='mkdir -p "$as_dir"'
19595 test -d .
/-p && rmdir .
/-p
19600 # as_fn_executable_p FILE
19601 # -----------------------
19602 # Test if FILE is an executable regular file.
19603 as_fn_executable_p
()
19605 test -f "$1" && test -x "$1"
19606 } # as_fn_executable_p
19607 as_test_x
='test -x'
19608 as_executable_p
=as_fn_executable_p
19610 # Sed expression to map a string onto a valid CPP name.
19611 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19613 # Sed expression to map a string onto a valid variable name.
19614 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19618 ## ----------------------------------- ##
19619 ## Main body of $CONFIG_STATUS script. ##
19620 ## ----------------------------------- ##
19622 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
19624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19625 # Save the log message, to keep $0 and so on meaningful, and to
19626 # report actual input values of CONFIG_FILES etc. instead of their
19627 # values after options handling.
19629 This file was extended by $as_me, which was
19630 generated by GNU Autoconf 2.69. Invocation command line was
19632 CONFIG_FILES = $CONFIG_FILES
19633 CONFIG_HEADERS = $CONFIG_HEADERS
19634 CONFIG_LINKS = $CONFIG_LINKS
19635 CONFIG_COMMANDS = $CONFIG_COMMANDS
19638 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19643 case $ac_config_files in *"
19644 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
19647 case $ac_config_headers in *"
19648 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
19652 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19653 # Files that config.status was made for.
19654 config_files="$ac_config_files"
19655 config_headers="$ac_config_headers"
19656 config_links="$ac_config_links"
19657 config_commands="$ac_config_commands"
19661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19663 \`$as_me' instantiates files and other configuration actions
19664 from templates according to the current configuration. Unless the files
19665 and actions are specified as TAGs, all are instantiated by default.
19667 Usage: $0 [OPTION]... [TAG]...
19669 -h, --help print this help, then exit
19670 -V, --version print version number and configuration settings, then exit
19671 --config print configuration, then exit
19672 -q, --quiet, --silent
19673 do not print progress messages
19674 -d, --debug don't remove temporary files
19675 --recheck update $as_me by reconfiguring in the same conditions
19676 --file=FILE[:TEMPLATE]
19677 instantiate the configuration file FILE
19678 --header=FILE[:TEMPLATE]
19679 instantiate the configuration header FILE
19681 Configuration files:
19684 Configuration headers:
19687 Configuration links:
19690 Configuration commands:
19693 Report bugs to the package provider."
19696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19697 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19700 configured by $0, generated by GNU Autoconf 2.69,
19701 with options \\"\$ac_cs_config\\"
19703 Copyright (C) 2012 Free Software Foundation, Inc.
19704 This config.status script is free software; the Free Software Foundation
19705 gives unlimited permission to copy, distribute and modify it."
19711 test -n "\$AWK" || AWK=awk
19714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19715 # The default lists apply if the user does not specify any file.
19721 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19722 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
19726 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19738 # Handling of the options.
19739 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19741 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
19742 $as_echo "$ac_cs_version"; exit ;;
19743 --config |
--confi |
--conf |
--con |
--co |
--c )
19744 $as_echo "$ac_cs_config"; exit ;;
19745 --debug |
--debu |
--deb |
--de |
--d |
-d )
19747 --file |
--fil |
--fi |
--f )
19750 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19751 '') as_fn_error $?
"missing file argument" ;;
19753 as_fn_append CONFIG_FILES
" '$ac_optarg'"
19754 ac_need_defaults
=false
;;
19755 --header |
--heade |
--head |
--hea )
19758 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19760 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
19761 ac_need_defaults
=false
;;
19763 # Conflict between --help and --header
19764 as_fn_error $?
"ambiguous option: \`$1'
19765 Try \`$0 --help' for more information.";;
19766 --help |
--hel |
-h )
19767 $as_echo "$ac_cs_usage"; exit ;;
19768 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19769 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19772 # This is an error.
19773 -*) as_fn_error $?
"unrecognized option: \`$1'
19774 Try \`$0 --help' for more information." ;;
19776 *) as_fn_append ac_config_targets
" $1"
19777 ac_need_defaults
=false
;;
19783 ac_configure_extra_args
=
19785 if $ac_cs_silent; then
19787 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19792 if \$ac_cs_recheck; then
19793 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19795 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19796 CONFIG_SHELL='$SHELL'
19797 export CONFIG_SHELL
19802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19806 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19807 ## Running $as_me. ##
19813 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19817 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
19818 GDB_NM_FILE=$GDB_NM_FILE
19822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19824 # Handling of arguments.
19825 for ac_config_target
in $ac_config_targets
19827 case $ac_config_target in
19828 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
19829 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
19830 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
19831 "nm.h") CONFIG_LINKS
="$CONFIG_LINKS nm.h:$GDB_NM_FILE" ;;
19832 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
19833 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19834 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
19835 "gdb-gdb.py") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.py" ;;
19836 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
19837 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
19839 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19844 # If the user did not use the arguments to specify the items to instantiate,
19845 # then the envvar interface is used. Set only those that are not.
19846 # We use the long form for the default assignment because of an extremely
19847 # bizarre bug on SunOS 4.1.3.
19848 if $ac_need_defaults; then
19849 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19850 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
19851 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
19852 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
19855 # Have a temporary directory for convenience. Make it in the build tree
19856 # simply because there is no reason against having it here, and in addition,
19857 # creating and moving files from /tmp can sometimes cause problems.
19858 # Hook for its removal unless debugging.
19859 # Note that there is a small window in which the directory will not be cleaned:
19860 # after its creation but before its name has been assigned to `$tmp'.
19864 trap 'exit_status=$?
19865 : "${ac_tmp:=$tmp}"
19866 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19868 trap 'as_fn_exit 1' 1 2 13 15
19870 # Create a (secure) tmp directory for tmp files.
19873 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19877 tmp
=.
/conf$$
-$RANDOM
19878 (umask 077 && mkdir
"$tmp")
19879 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
19882 # Set up the scripts for CONFIG_FILES section.
19883 # No need to generate them if there are no CONFIG_FILES.
19884 # This happens for instance with `./config.status config.h'.
19885 if test -n "$CONFIG_FILES"; then
19887 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
19888 ac_cs_awk_getline
=:
19889 ac_cs_awk_pipe_init
=
19890 ac_cs_awk_read_file
='
19891 while ((getline aline < (F[key])) > 0)
19894 ac_cs_awk_pipe_fini
=
19896 ac_cs_awk_getline
=false
19897 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
19898 ac_cs_awk_read_file
='
19900 print "cat " F[key] " &&"
19901 '$ac_cs_awk_pipe_init
19902 # The final `:' finishes the AND list.
19903 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
19905 ac_cr
=`echo X | tr X '\015'`
19906 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19907 # But we know of no other shell where ac_cr would be empty at this
19908 # point, so we can use a bashism as a fallback.
19909 if test "x$ac_cr" = x
; then
19910 eval ac_cr
=\$
\'\\r
\'
19912 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19913 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19916 ac_cs_awk_cr
=$ac_cr
19919 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19922 # Create commands to substitute file output variables.
19924 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19925 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19926 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
19929 } >conf$
$files.sh
&&
19930 . .
/conf$
$files.sh ||
19931 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
19932 rm -f conf$
$files.sh
19935 echo "cat >conf$$subs.awk <<_ACEOF" &&
19936 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19938 } >conf$$subs.sh ||
19939 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19940 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19942 for ac_last_try in false false false false false :; do
19943 . ./conf$$subs.sh ||
19944 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19946 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
19947 if test $ac_delim_n = $ac_delim_num; then
19949 elif $ac_last_try; then
19950 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19952 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19955 rm -f conf$$subs.sh
19957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19958 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
19962 s/^/S["/; s
/!.
*/"]=/
19972 s/\(.\{148\}\)..*/\1/
19974 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
19979 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19986 s/\(.\{148\}\)..*/\1/
19988 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
19992 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19997 ' <conf$$subs.awk | sed '
20002 ' >>$CONFIG_STATUS || ac_write_fail=1
20003 rm -f conf$$subs.awk
20004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20006 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
20007 for (key in S) S_is_set[key] = 1
20009 \$ac_cs_awk_pipe_init
20013 nfields = split(line, field, "@
")
20015 len = length(field[1])
20016 for (i = 2; i < nfields; i++) {
20018 keylen = length(key)
20019 if (S_is_set[key]) {
20021 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20022 len += length(value) + length(field[++i])
20027 if (nfields == 3 && !substed) {
20029 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
20030 \$ac_cs_awk_read_file
20036 \$ac_cs_awk_pipe_fini
20039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20040 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20041 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
20044 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
20045 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
20048 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20049 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
20050 # trailing colons and then remove the whole line if VPATH becomes empty
20051 # (actually we leave an empty line to preserve line numbers).
20052 if test "x
$srcdir" = x.; then
20053 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20071 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20072 fi # test -n "$CONFIG_FILES"
20074 # Set up the scripts for CONFIG_HEADERS section.
20075 # No need to generate them if there are no CONFIG_HEADERS.
20076 # This happens for instance with `./config.status Makefile'.
20077 if test -n "$CONFIG_HEADERS"; then
20078 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
20082 # Transform confdefs.h into an awk script `defines.awk', embedded as
20083 # here-document in config.status, that substitutes the proper values into
20084 # config.h.in to produce config.h.
20086 # Create a delimiter string that does not exist in confdefs.h, to ease
20087 # handling of long lines.
20089 for ac_last_try in false false :; do
20090 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
20091 if test -z "$ac_tt"; then
20093 elif $ac_last_try; then
20094 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
20096 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20100 # For the awk script, D is an array of macro values keyed by name,
20101 # likewise P contains macro parameters if any. Preserve backslash
20102 # newline sequences.
20104 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20106 s/.\{148\}/&'"$ac_delim"'/g
20109 s/^[ ]*#[ ]*define[ ][ ]*/ /
20116 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
20118 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
20122 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
20123 D["\
1"]=" \
3\\\\\\n
"\\/p
20125 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
20130 s/.\{148\}/&'"$ac_delim"'/g
20135 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
20138 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
20140 ' <confdefs.h | sed '
20141 s/'"$ac_delim"'/"\\\
20142 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20145 for (key in D) D_is_set[key] = 1
20148 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20150 split(line, arg, " ")
20151 if (arg[1] == "#") {
20155 defundef
= substr
(arg
[1], 2)
20158 split(mac1
, mac2
, "(") #)
20160 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
20161 if (D_is_set
[macro
]) {
20162 # Preserve the white space surrounding the "#".
20163 print prefix
"define", macro P
[macro
] D
[macro
]
20166 # Replace #undef with comments. This is necessary, for example,
20167 # in the case of _POSIX_SOURCE, which is predefined and required
20168 # on some systems where configure will not decide to define it.
20169 if (defundef
== "undef") {
20170 print
"/*", prefix defundef
, macro
, "*/"
20178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20179 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
20180 fi # test -n "$CONFIG_HEADERS"
20183 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
20188 :[FHLC
]) ac_mode
=$ac_tag; continue;;
20190 case $ac_mode$ac_tag in
20192 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
20193 :[FH
]-) ac_tag
=-:-;;
20194 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
20211 -) ac_f
="$ac_tmp/stdin";;
20212 *) # Look for the file first in the build tree, then in the source tree
20213 # (if the path is not absolute). The absolute path cannot be DOS-style,
20214 # because $ac_f cannot contain `:'.
20218 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
20220 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20222 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20223 as_fn_append ac_file_inputs
" '$ac_f'"
20226 # Let's still pretend it is `configure' which instantiates (i.e., don't
20227 # use $as_me), people would be surprised to read:
20228 # /* config.h. Generated by config.status. */
20229 configure_input
='Generated from '`
20230 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20232 if test x
"$ac_file" != x-
; then
20233 configure_input
="$ac_file. $configure_input"
20234 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20235 $as_echo "$as_me: creating $ac_file" >&6;}
20237 # Neutralize special characters interpreted by sed in replacement strings.
20238 case $configure_input in #(
20239 *\
&* |
*\|
* |
*\\* )
20240 ac_sed_conf_input
=`$as_echo "$configure_input" |
20241 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20242 *) ac_sed_conf_input
=$configure_input;;
20246 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
20247 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
20252 ac_dir
=`$as_dirname -- "$ac_file" ||
20253 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20254 X"$ac_file" : 'X\(//\)[^/]' \| \
20255 X"$ac_file" : 'X\(//\)$' \| \
20256 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20257 $as_echo X"$ac_file" |
20258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20262 /^X\(\/\/\)[^/].*/{
20275 as_dir
="$ac_dir"; as_fn_mkdir_p
20279 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20281 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20282 # A ".." for each directory in $ac_dir_suffix.
20283 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20284 case $ac_top_builddir_sub in
20285 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20286 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20289 ac_abs_top_builddir
=$ac_pwd
20290 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
20291 # for backward compatibility:
20292 ac_top_builddir
=$ac_top_build_prefix
20295 .
) # We are building in place.
20297 ac_top_srcdir
=$ac_top_builddir_sub
20298 ac_abs_top_srcdir
=$ac_pwd ;;
20299 [\\/]* | ?
:[\\/]* ) # Absolute name.
20300 ac_srcdir
=$srcdir$ac_dir_suffix;
20301 ac_top_srcdir
=$srcdir
20302 ac_abs_top_srcdir
=$srcdir ;;
20303 *) # Relative name.
20304 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
20305 ac_top_srcdir
=$ac_top_build_prefix$srcdir
20306 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
20308 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
20318 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20319 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
20323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20324 # If the template does not know about datarootdir, expand it.
20325 # FIXME: This hack should be removed a few years after 2.60.
20326 ac_datarootdir_hack
=; ac_datarootdir_seen
=
20337 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20338 *datarootdir
*) ac_datarootdir_seen
=yes;;
20339 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
20340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20341 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20344 ac_datarootdir_hack='
20345 s&@datadir@&$datadir&g
20346 s&@docdir@&$docdir&g
20347 s&@infodir@&$infodir&g
20348 s&@localedir@&$localedir&g
20349 s&@mandir@&$mandir&g
20350 s&\\\${datarootdir}&$datarootdir&g' ;;
20354 # Neutralize VPATH when `$srcdir' = `.'.
20355 # Shell code in configure.ac might set extrasub.
20356 # FIXME: do we really want to maintain this feature?
20357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20358 ac_sed_extra="$ac_vpsub
20361 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20363 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20364 s|@configure_input@|
$ac_sed_conf_input|
;t t
20365 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
20366 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
20367 s
&@srcdir@
&$ac_srcdir&;t t
20368 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
20369 s
&@top_srcdir@
&$ac_top_srcdir&;t t
20370 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
20371 s
&@builddir@
&$ac_builddir&;t t
20372 s
&@abs_builddir@
&$ac_abs_builddir&;t t
20373 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
20374 s
&@INSTALL@
&$ac_INSTALL&;t t
20375 $ac_datarootdir_hack
20377 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
20378 if $ac_cs_awk_getline; then
20379 $AWK -f "$ac_tmp/subs.
awk"
20381 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
20383 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
20385 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20386 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
20387 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20388 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
20389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
20390 which seems to be undefined. Please make sure it is defined" >&5
20391 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
20392 which seems to be undefined. Please make sure it is defined" >&2;}
20394 rm -f "$ac_tmp/stdin"
20396 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20397 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20399 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20405 if test x"$ac_file" != x-; then
20407 $as_echo "/* $configure_input */" \
20408 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20409 } >"$ac_tmp/config.h" \
20410 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20411 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20412 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20413 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20416 mv "$ac_tmp/config.h" "$ac_file" \
20417 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20420 $as_echo "/* $configure_input */" \
20421 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20422 || as_fn_error $? "could not create -" "$LINENO" 5
20430 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
20433 # Prefer the file from the source tree if names are identical.
20434 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
20435 ac_source=$srcdir/$ac_source
20438 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
20439 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
20441 if test ! -r "$ac_source"; then
20442 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
20446 # Try a relative symlink, then a hard link, then a copy.
20448 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
20449 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
20451 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
20452 ln "$ac_source" "$ac_file" 2>/dev/null ||
20453 cp -p "$ac_source" "$ac_file" ||
20454 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
20457 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20458 $as_echo "$as_me: executing $ac_file commands" >&6;}
20463 case $ac_file$ac_mode in
20464 "config.h":H) echo > stamp-h ;;
20465 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
20466 "nm.h":L) echo > stamp-nmh ;;
20467 "gcore":F) chmod +x gcore ;;
20475 ac_clean_files=$ac_clean_files_save
20477 test $ac_write_fail = 0 ||
20478 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20481 # configure is writing to config.log, and then calls config.status.
20482 # config.status does its own redirection, appending to config.log.
20483 # Unfortunately, on DOS this fails, as config.log is still kept open
20484 # by configure, so config.status won't be able to
write to it
; its
20485 # output is simply discarded. So we exec the FD to /dev/null,
20486 # effectively closing config.log, so it can be properly (re)opened and
20487 # appended to by config.status. When coming back to configure, we
20488 # need to make the FD available again.
20489 if test "$no_create" != yes; then
20491 ac_config_status_args
=
20492 test "$silent" = yes &&
20493 ac_config_status_args
="$ac_config_status_args --quiet"
20495 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20497 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20498 # would make configure fail if this is the last instruction.
20499 $ac_cs_success || as_fn_exit
1
20503 # CONFIG_SUBDIRS section.
20505 if test "$no_recursion" != yes; then
20507 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
20508 # so they do not pile up.
20509 ac_sub_configure_args
=
20511 eval "set x $ac_configure_args"
20515 if test -n "$ac_prev"; then
20520 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
20521 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
20522 ac_prev
=cache_file
;;
20523 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
20524 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
20527 --config-cache |
-C)
20529 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
20531 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
20533 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
20535 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
20537 --disable-option-checking)
20541 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20543 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
20547 # Always prepend --prefix to ensure using the same prefix
20548 # in subdir configurations.
20549 ac_arg
="--prefix=$prefix"
20551 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20553 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
20556 if test "$silent" = yes; then
20557 ac_sub_configure_args
="--silent $ac_sub_configure_args"
20560 # Always prepend --disable-option-checking to silence warnings, since
20561 # different subdirs can have different --enable and --with options.
20562 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
20565 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
20567 # Do not complain, so a configure script can configure whichever
20568 # parts of a large source tree are present.
20569 test -d "$srcdir/$ac_dir" ||
continue
20571 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20572 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
20573 $as_echo "$ac_msg" >&6
20574 as_dir
="$ac_dir"; as_fn_mkdir_p
20578 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20580 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20581 # A ".." for each directory in $ac_dir_suffix.
20582 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20583 case $ac_top_builddir_sub in
20584 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20585 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20588 ac_abs_top_builddir
=$ac_pwd
20589 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
20590 # for backward compatibility:
20591 ac_top_builddir
=$ac_top_build_prefix
20594 .
) # We are building in place.
20596 ac_top_srcdir
=$ac_top_builddir_sub
20597 ac_abs_top_srcdir
=$ac_pwd ;;
20598 [\\/]* | ?
:[\\/]* ) # Absolute name.
20599 ac_srcdir
=$srcdir$ac_dir_suffix;
20600 ac_top_srcdir
=$srcdir
20601 ac_abs_top_srcdir
=$srcdir ;;
20602 *) # Relative name.
20603 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
20604 ac_top_srcdir
=$ac_top_build_prefix$srcdir
20605 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
20607 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
20612 # Check for guested configure; otherwise get Cygnus style configure.
20613 if test -f "$ac_srcdir/configure.gnu"; then
20614 ac_sub_configure
=$ac_srcdir/configure.gnu
20615 elif test -f "$ac_srcdir/configure"; then
20616 ac_sub_configure
=$ac_srcdir/configure
20617 elif test -f "$ac_srcdir/configure.in"; then
20618 # This should be Cygnus configure.
20619 ac_sub_configure
=$ac_aux_dir/configure
20621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
20622 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20626 # The recursion is here.
20627 if test -n "$ac_sub_configure"; then
20628 # Make the cache file name correct relative to the subdirectory.
20629 case $cache_file in
20630 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
20631 *) # Relative name.
20632 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
20635 { $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
20636 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20637 # The eval makes quoting arguments work.
20638 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20639 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20640 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
20646 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
20647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20648 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}