2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="main.c"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
622 enable_option_checking
=no
624 ac_subst_vars
='LTLIBOBJS
641 HAVE_NATIVE_GCORE_HOST
744 READLINE_TEXI_INCFLAG
775 HAVE_NATIVE_GCORE_TARGET
777 ENABLE_BFD_64_BIT_FALSE
778 ENABLE_BFD_64_BIT_TRUE
804 INSTALL_STRIP_PROGRAM
834 MAINTAINER_MODE_FALSE
863 program_transform_name
874 ac_subst_files
='nat_makefile_frag'
876 enable_option_checking
877 enable_maintainer_mode
880 with_separate_debug_dir
882 with_relocated_sources
884 with_auto_load_safe_path
917 enable_source_highlight
924 with_system_gdbinit_dir
926 enable_build_warnings
927 enable_gdb_build_warnings
938 with_libbabeltrace_prefix
939 with_libbabeltrace_type
942 with_libxxhash_prefix
946 ac_precious_vars
='build_alias
970 ac_subdirs_all
='testsuite
973 # Initialize some variables set by options.
975 ac_init_version
=false
976 ac_unrecognized_opts
=
978 # The variables have the same names as the options, with
979 # dashes changed to underlines.
987 program_transform_name
=s
,x
,x
,
995 # Installation directory options.
996 # These are left unexpanded so users can "make install exec_prefix=/foo"
997 # and all the variables that are supposed to be based on exec_prefix
998 # by default will actually change.
999 # Use braces instead of parens because sh, perl, etc. also accept them.
1000 # (The list follows the same order as the GNU Coding Standards.)
1001 bindir
='${exec_prefix}/bin'
1002 sbindir
='${exec_prefix}/sbin'
1003 libexecdir
='${exec_prefix}/libexec'
1004 datarootdir
='${prefix}/share'
1005 datadir
='${datarootdir}'
1006 sysconfdir
='${prefix}/etc'
1007 sharedstatedir
='${prefix}/com'
1008 localstatedir
='${prefix}/var'
1009 includedir
='${prefix}/include'
1010 oldincludedir
='/usr/include'
1011 docdir
='${datarootdir}/doc/${PACKAGE}'
1012 infodir
='${datarootdir}/info'
1017 libdir
='${exec_prefix}/lib'
1018 localedir
='${datarootdir}/locale'
1019 mandir
='${datarootdir}/man'
1025 # If the previous option needs an argument, assign it.
1026 if test -n "$ac_prev"; then
1027 eval $ac_prev=\
$ac_option
1033 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1038 # Accept the important Cygnus configure options, so we can diagnose typos.
1040 case $ac_dashdash$ac_option in
1044 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1046 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1047 bindir
=$ac_optarg ;;
1049 -build |
--build |
--buil |
--bui |
--bu)
1050 ac_prev
=build_alias
;;
1051 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1052 build_alias
=$ac_optarg ;;
1054 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1055 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1056 ac_prev
=cache_file
;;
1057 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1058 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1059 cache_file
=$ac_optarg ;;
1061 --config-cache |
-C)
1062 cache_file
=config.cache
;;
1064 -datadir |
--datadir |
--datadi |
--datad)
1066 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1067 datadir
=$ac_optarg ;;
1069 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1070 |
--dataroo |
--dataro |
--datar)
1071 ac_prev
=datarootdir
;;
1072 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1073 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1074 datarootdir
=$ac_optarg ;;
1076 -disable-* |
--disable-*)
1077 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1080 as_fn_error $?
"invalid feature name: $ac_useropt"
1081 ac_useropt_orig
=$ac_useropt
1082 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083 case $ac_user_opts in
1085 "enable_
$ac_useropt"
1087 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1088 ac_unrecognized_sep
=', ';;
1090 eval enable_
$ac_useropt=no
;;
1092 -docdir |
--docdir |
--docdi |
--doc |
--do)
1094 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1095 docdir
=$ac_optarg ;;
1097 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1099 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1100 dvidir
=$ac_optarg ;;
1102 -enable-* |
--enable-*)
1103 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1106 as_fn_error $?
"invalid feature name: $ac_useropt"
1107 ac_useropt_orig
=$ac_useropt
1108 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109 case $ac_user_opts in
1111 "enable_
$ac_useropt"
1113 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1114 ac_unrecognized_sep
=', ';;
1116 eval enable_
$ac_useropt=\
$ac_optarg ;;
1118 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1119 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1120 |
--exec |
--exe |
--ex)
1121 ac_prev
=exec_prefix
;;
1122 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1123 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1124 |
--exec=* |
--exe=* |
--ex=*)
1125 exec_prefix
=$ac_optarg ;;
1127 -gas |
--gas |
--ga |
--g)
1128 # Obsolete; use --with-gas.
1131 -help |
--help |
--hel |
--he |
-h)
1132 ac_init_help
=long
;;
1133 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1134 ac_init_help
=recursive
;;
1135 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1136 ac_init_help
=short
;;
1138 -host |
--host |
--hos |
--ho)
1139 ac_prev
=host_alias
;;
1140 -host=* |
--host=* |
--hos=* |
--ho=*)
1141 host_alias
=$ac_optarg ;;
1143 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1145 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1147 htmldir
=$ac_optarg ;;
1149 -includedir |
--includedir |
--includedi |
--included |
--include \
1150 |
--includ |
--inclu |
--incl |
--inc)
1151 ac_prev
=includedir
;;
1152 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1153 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1154 includedir
=$ac_optarg ;;
1156 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1158 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1159 infodir
=$ac_optarg ;;
1161 -libdir |
--libdir |
--libdi |
--libd)
1163 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1164 libdir
=$ac_optarg ;;
1166 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1167 |
--libexe |
--libex |
--libe)
1168 ac_prev
=libexecdir
;;
1169 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1170 |
--libexe=* |
--libex=* |
--libe=*)
1171 libexecdir
=$ac_optarg ;;
1173 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1174 ac_prev
=localedir
;;
1175 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1176 localedir
=$ac_optarg ;;
1178 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1179 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1180 ac_prev
=localstatedir
;;
1181 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1182 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1183 localstatedir
=$ac_optarg ;;
1185 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1187 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1188 mandir
=$ac_optarg ;;
1190 -nfp |
--nfp |
--nf)
1191 # Obsolete; use --without-fp.
1194 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1195 |
--no-cr |
--no-c |
-n)
1198 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1199 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1202 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1203 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1204 |
--oldin |
--oldi |
--old |
--ol |
--o)
1205 ac_prev
=oldincludedir
;;
1206 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1207 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1208 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1209 oldincludedir
=$ac_optarg ;;
1211 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1213 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1214 prefix
=$ac_optarg ;;
1216 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1217 |
--program-pre |
--program-pr |
--program-p)
1218 ac_prev
=program_prefix
;;
1219 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1220 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1221 program_prefix
=$ac_optarg ;;
1223 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1224 |
--program-suf |
--program-su |
--program-s)
1225 ac_prev
=program_suffix
;;
1226 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1227 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1228 program_suffix
=$ac_optarg ;;
1230 -program-transform-name |
--program-transform-name \
1231 |
--program-transform-nam |
--program-transform-na \
1232 |
--program-transform-n |
--program-transform- \
1233 |
--program-transform |
--program-transfor \
1234 |
--program-transfo |
--program-transf \
1235 |
--program-trans |
--program-tran \
1236 |
--progr-tra |
--program-tr |
--program-t)
1237 ac_prev
=program_transform_name
;;
1238 -program-transform-name=* |
--program-transform-name=* \
1239 |
--program-transform-nam=* |
--program-transform-na=* \
1240 |
--program-transform-n=* |
--program-transform-=* \
1241 |
--program-transform=* |
--program-transfor=* \
1242 |
--program-transfo=* |
--program-transf=* \
1243 |
--program-trans=* |
--program-tran=* \
1244 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1245 program_transform_name
=$ac_optarg ;;
1247 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1249 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1250 pdfdir
=$ac_optarg ;;
1252 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1254 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1257 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1258 |
-silent |
--silent |
--silen |
--sile |
--sil)
1261 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1263 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1265 sbindir
=$ac_optarg ;;
1267 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1268 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1269 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1271 ac_prev
=sharedstatedir
;;
1272 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1273 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1274 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1276 sharedstatedir
=$ac_optarg ;;
1278 -site |
--site |
--sit)
1280 -site=* |
--site=* |
--sit=*)
1283 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1285 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1286 srcdir
=$ac_optarg ;;
1288 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1289 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1290 ac_prev
=sysconfdir
;;
1291 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1292 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1293 sysconfdir
=$ac_optarg ;;
1295 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1296 ac_prev
=target_alias
;;
1297 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1298 target_alias
=$ac_optarg ;;
1300 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1303 -version |
--version |
--versio |
--versi |
--vers |
-V)
1304 ac_init_version
=: ;;
1307 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1308 # Reject names that are not valid shell variable names.
1309 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1310 as_fn_error $?
"invalid package name: $ac_useropt"
1311 ac_useropt_orig
=$ac_useropt
1312 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1313 case $ac_user_opts in
1317 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1318 ac_unrecognized_sep
=', ';;
1320 eval with_
$ac_useropt=\
$ac_optarg ;;
1322 -without-* |
--without-*)
1323 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1324 # Reject names that are not valid shell variable names.
1325 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1326 as_fn_error $?
"invalid package name: $ac_useropt"
1327 ac_useropt_orig
=$ac_useropt
1328 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1329 case $ac_user_opts in
1333 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1334 ac_unrecognized_sep
=', ';;
1336 eval with_
$ac_useropt=no
;;
1339 # Obsolete; use --with-x.
1342 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1343 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1344 ac_prev
=x_includes
;;
1345 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1346 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1347 x_includes
=$ac_optarg ;;
1349 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1350 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1351 ac_prev
=x_libraries
;;
1352 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1353 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1354 x_libraries
=$ac_optarg ;;
1356 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1357 Try \`$0 --help' for more information"
1361 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1362 # Reject names that are not valid shell variable names.
1363 case $ac_envvar in #(
1364 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1365 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1367 eval $ac_envvar=\
$ac_optarg
1368 export $ac_envvar ;;
1371 # FIXME: should be removed in autoconf 3.0.
1372 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1373 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1374 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1375 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1381 if test -n "$ac_prev"; then
1382 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1383 as_fn_error $?
"missing argument to $ac_option"
1386 if test -n "$ac_unrecognized_opts"; then
1387 case $enable_option_checking in
1389 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1390 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1394 # Check all directory arguments for consistency.
1395 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1396 datadir sysconfdir sharedstatedir localstatedir includedir \
1397 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1398 libdir localedir mandir
1400 eval ac_val
=\$
$ac_var
1401 # Remove trailing slashes.
1404 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1405 eval $ac_var=\
$ac_val;;
1407 # Be sure to have absolute directory names.
1409 [\\/$
]* | ?
:[\\/]* ) continue;;
1410 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1412 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1415 # There might be people who depend on the old broken behavior: `$host'
1416 # used to hold the argument of --host etc.
1417 # FIXME: To remove some day.
1420 target
=$target_alias
1422 # FIXME: To remove some day.
1423 if test "x$host_alias" != x
; then
1424 if test "x$build_alias" = x
; then
1425 cross_compiling
=maybe
1426 elif test "x$build_alias" != "x$host_alias"; then
1432 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1434 test "$silent" = yes && exec 6>/dev
/null
1437 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1438 ac_ls_di
=`ls -di .` &&
1439 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1440 as_fn_error $?
"working directory cannot be determined"
1441 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1442 as_fn_error $?
"pwd does not report name of working directory"
1445 # Find the source files, if location was not specified.
1446 if test -z "$srcdir"; then
1447 ac_srcdir_defaulted
=yes
1448 # Try the directory containing this script, then the parent directory.
1449 ac_confdir
=`$as_dirname -- "$as_myself" ||
1450 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1451 X"$as_myself" : 'X\(//\)[^/]' \| \
1452 X"$as_myself" : 'X\(//\)$' \| \
1453 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1454 $as_echo X"$as_myself" |
1455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1473 if test ! -r "$srcdir/$ac_unique_file"; then
1477 ac_srcdir_defaulted
=no
1479 if test ! -r "$srcdir/$ac_unique_file"; then
1480 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1481 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1483 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1485 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1487 # When building in place, set srcdir=.
1488 if test "$ac_abs_confdir" = "$ac_pwd"; then
1491 # Remove unnecessary trailing slashes from srcdir.
1492 # Double slashes in file names in object file debugging info
1493 # mess up M-x gdb in Emacs.
1495 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1497 for ac_var
in $ac_precious_vars; do
1498 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1499 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1500 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1501 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1505 # Report the --help message.
1507 if test "$ac_init_help" = "long"; then
1508 # Omit some internal or obsolete options to make the list less imposing.
1509 # This message is too long to be a string in the A/UX 3.1 sh.
1511 \`configure' configures this package to adapt to many kinds of systems.
1513 Usage: $0 [OPTION]... [VAR=VALUE]...
1515 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1516 VAR=VALUE. See below for descriptions of some of the useful variables.
1518 Defaults for the options are specified in brackets.
1521 -h, --help display this help and exit
1522 --help=short display options specific to this package
1523 --help=recursive display the short help of all the included packages
1524 -V, --version display version information and exit
1525 -q, --quiet, --silent do not print \`checking ...' messages
1526 --cache-file=FILE cache test results in FILE [disabled]
1527 -C, --config-cache alias for \`--cache-file=config.cache'
1528 -n, --no-create do not create output files
1529 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1531 Installation directories:
1532 --prefix=PREFIX install architecture-independent files in PREFIX
1533 [$ac_default_prefix]
1534 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1537 By default, \`make install' will install all the files in
1538 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1539 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1540 for instance \`--prefix=\$HOME'.
1542 For better control, use the options below.
1544 Fine tuning of the installation directories:
1545 --bindir=DIR user executables [EPREFIX/bin]
1546 --sbindir=DIR system admin executables [EPREFIX/sbin]
1547 --libexecdir=DIR program executables [EPREFIX/libexec]
1548 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1549 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1550 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1551 --libdir=DIR object code libraries [EPREFIX/lib]
1552 --includedir=DIR C header files [PREFIX/include]
1553 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1554 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1555 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1556 --infodir=DIR info documentation [DATAROOTDIR/info]
1557 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1558 --mandir=DIR man documentation [DATAROOTDIR/man]
1559 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1560 --htmldir=DIR html documentation [DOCDIR]
1561 --dvidir=DIR dvi documentation [DOCDIR]
1562 --pdfdir=DIR pdf documentation [DOCDIR]
1563 --psdir=DIR ps documentation [DOCDIR]
1569 --program-prefix=PREFIX prepend PREFIX to installed program names
1570 --program-suffix=SUFFIX append SUFFIX to installed program names
1571 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1574 --x-includes=DIR X include files are
in DIR
1575 --x-libraries=DIR X library files are
in DIR
1578 --build=BUILD configure
for building on BUILD
[guessed
]
1579 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1580 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1584 if test -n "$ac_init_help"; then
1589 --disable-option-checking ignore unrecognized
--enable/--with options
1590 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1591 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1592 --enable-maintainer-mode
1593 enable make rules and dependencies not useful
(and
1594 sometimes confusing
) to the casual installer
1595 --enable-plugins Enable support
for plugins
1596 --disable-largefile omit support
for large files
1597 --enable-targets=TARGETS
1598 alternative target configurations
1599 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1600 --disable-gdbmi disable machine-interface
(MI
)
1601 --enable-tui enable full-screen terminal user interface
(TUI
)
1602 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1603 --enable-profiling enable profiling of GDB
1604 --enable-codesign=CERT sign gdb with
'codesign -s CERT'
1605 --disable-rpath do not hardcode runtime library paths
1606 --enable-source-highlight
1607 enable source-highlight
for source listings
1608 --enable-threading include support
for parallel processing of data
1610 --enable-werror treat compile warnings as errors
1611 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1612 --enable-gdb-build-warnings
1613 enable GDB specific build-time compiler warnings
if
1615 --enable-ubsan enable undefined behavior sanitizer
(auto
/yes
/no
)
1616 --enable-sim link gdb with simulator
1617 --enable-libbacktrace use libbacktrace to
write a backtrace after a fatal
1619 --enable-libctf Handle .ctf type-info sections
[default
=yes]
1620 --enable-unit-tests Enable the inclusion of unit tests when compiling
1624 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1625 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1626 --with-separate-debug-dir=PATH
1627 look for global separate debug info
in this path
1629 --with-gdb-datadir=PATH
look for global separate data files
in this path
1631 --with-relocated-sources=PATH
1632 automatically relocate this path
for source files
1633 --with-auto-load-dir=PATH
1634 directories from
which to load auto-loaded scripts
1635 [$debugdir:$datadir/auto-load
]
1636 --with-auto-load-safe-path=PATH
1637 directories safe to hold auto-loaded files
1638 [--with-auto-load-dir]
1639 --without-auto-load-safe-path
1640 do not restrict auto-loaded files locations
1641 --with-debuginfod Enable debuginfo lookups with debuginfod
1643 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1644 --with-curses use the curses library instead of the termcap
1646 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1647 --with-bugurl=URL Direct users to URL to report a bug
1648 --with-system-zlib use installed libz
1649 --with-zstd support zstd compressed debug sections
1651 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1652 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1653 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1654 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1655 --with-iconv-bin=PATH specify where to find the iconv program
1656 --with-system-readline use installed readline library
1657 --with-jit-reader-dir=PATH
1658 directory to load the JIT readers from
1659 --with-expat include expat support (auto/yes/no)
1660 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1661 --without-libexpat-prefix don't search
for libexpat
in includedir and libdir
1662 --with-libexpat-type=TYPE
type of library to search
for (auto
/static
/shared
)
1663 --with-libgmp-prefix[=DIR
] search
for libgmp
in DIR
/include and DIR
/lib
1664 --without-libgmp-prefix don
't search for libgmp in includedir and libdir
1665 --with-libgmp-type=TYPE type of library to search for (auto/static/shared)
1666 --with-mpfr include MPFR support (auto/yes/no)
1667 --with-libmpfr-prefix[=DIR] search for libmpfr in DIR/include and DIR/lib
1668 --without-libmpfr-prefix don't search
for libmpfr
in includedir and libdir
1669 --with-libmpfr-type=TYPE
type of library to search
for (auto
/static
/shared
)
1670 --with-python[=PYTHON
] include python support
1671 (auto
/yes
/no
/<python-program
>)
1672 --with-python-libdir[=DIR
]
1673 search
for python
's libraries in DIR
1674 --with-guile[=GUILE] include guile support
1675 (auto/yes/no/<guile-version>/<pkg-config-program>)
1676 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1677 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1678 --without-libipt-prefix don't search
for libipt
in includedir and libdir
1679 --with-libipt-type=TYPE
type of library to search
for (auto
/static
/shared
)
1680 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1681 --with-system-gdbinit=PATH
1682 automatically load a system-wide gdbinit
file
1683 --with-system-gdbinit-dir=PATH
1684 automatically load system-wide gdbinit files from
1686 --with-lzma support lzma compression
(auto
/yes
/no
)
1687 --with-liblzma-prefix[=DIR
] search
for liblzma
in DIR
/include and DIR
/lib
1688 --without-liblzma-prefix don
't search for liblzma in includedir and libdir
1689 --with-liblzma-type=TYPE type of library to search for (auto/static/shared)
1690 --with-tcl directory containing tcl configuration (tclConfig.sh)
1691 --with-tk directory containing tk configuration (tkConfig.sh)
1692 --with-x use the X Window System
1693 --with-babeltrace include babeltrace support (auto/yes/no)
1694 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1695 --without-libbabeltrace-prefix don't search
for libbabeltrace
in includedir and libdir
1696 --with-libbabeltrace-type=TYPE
type of library to search
for (auto
/static
/shared
)
1697 --with-xxhash use libxxhash
for hashing
(faster
) (auto
/yes
/no
)
1698 --with-libxxhash-prefix[=DIR
] search
for libxxhash
in DIR
/include and DIR
/lib
1699 --without-libxxhash-prefix don
't search for libxxhash in includedir and libdir
1700 --with-libxxhash-type=TYPE type of library to search for (auto/static/shared)
1702 Some influential environment variables:
1703 CC C compiler command
1704 CFLAGS C compiler flags
1705 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1706 nonstandard directory <lib dir>
1707 LIBS libraries to pass to the linker, e.g. -l<library>
1708 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1709 you have headers in a nonstandard directory <include dir>
1710 CXX C++ compiler command
1711 CXXFLAGS C++ compiler flags
1713 MAKEINFO Parent configure detects if it is of sufficient version.
1715 Parameters for MAKEINFO.
1716 PKG_CONFIG path to pkg-config utility
1718 directories to add to pkg-config's search path
1720 path overriding pkg-config
's built-in search path
1722 C compiler flags for DEBUGINFOD, overriding pkg-config
1724 linker flags for DEBUGINFOD, overriding pkg-config
1725 YACC The `Yet Another Compiler Compiler' implementation to use.
1726 Defaults to the first program found out of
: `bison -y', `byacc
',
1728 YFLAGS The list of arguments that will be passed by default to
$YACC.
1729 This
script will default YFLAGS to the empty string to avoid a
1730 default value of
`-d' given by some make applications.
1731 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1732 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config
1733 XMKMF Path to xmkmf, Makefile generator for X Window System
1735 Use these variables to override the choices made by `configure
' or to help
1736 it to find libraries and programs with nonstandard names/locations.
1738 Report bugs to the package provider.
1743 if test "$ac_init_help" = "recursive"; then
1744 # If there are subdirs, report their specific --help.
1745 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1746 test -d "$ac_dir" ||
1747 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1752 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1754 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.
[\\/]||
'`
1755 # A ".." for each directory in $ac_dir_suffix.
1756 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|
/[^
\\/]*|
/..|g
;s|
/||
'`
1757 case $ac_top_builddir_sub in
1758 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1759 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1762 ac_abs_top_builddir=$ac_pwd
1763 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1764 # for backward compatibility:
1765 ac_top_builddir=$ac_top_build_prefix
1768 .) # We are building in place.
1770 ac_top_srcdir=$ac_top_builddir_sub
1771 ac_abs_top_srcdir=$ac_pwd ;;
1772 [\\/]* | ?:[\\/]* ) # Absolute name.
1773 ac_srcdir=$srcdir$ac_dir_suffix;
1774 ac_top_srcdir=$srcdir
1775 ac_abs_top_srcdir=$srcdir ;;
1777 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1778 ac_top_srcdir=$ac_top_build_prefix$srcdir
1779 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1781 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1783 cd "$ac_dir" || { ac_status=$?; continue; }
1784 # Check for guested configure.
1785 if test -f "$ac_srcdir/configure.gnu"; then
1787 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1788 elif test -f "$ac_srcdir/configure"; then
1790 $SHELL "$ac_srcdir/configure" --help=recursive
1792 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1794 cd "$ac_pwd" || { ac_status=$?; break; }
1798 test -n "$ac_init_help" && exit $ac_status
1799 if $ac_init_version; then
1802 generated by GNU Autoconf 2.69
1804 Copyright (C) 2012 Free Software Foundation, Inc.
1805 This configure script is free software; the Free Software Foundation
1806 gives unlimited permission to copy, distribute and modify it.
1811 ## ------------------------ ##
1812 ## Autoconf initialization. ##
1813 ## ------------------------ ##
1815 # ac_fn_c_try_compile LINENO
1816 # --------------------------
1817 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1818 ac_fn_c_try_compile ()
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 rm -f conftest.$ac_objext
1822 if { { ac_try="$ac_compile"
1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825 *) ac_try_echo=$ac_try;;
1827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828 $as_echo "$ac_try_echo"; } >&5
1829 (eval "$ac_compile") 2>conftest.err
1831 if test -s conftest.err; then
1832 grep -v '^
*+' conftest.err >conftest.er1
1833 cat conftest.er1 >&5
1834 mv -f conftest.er1 conftest.err
1836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837 test $ac_status = 0; } && {
1838 test -z "$ac_c_werror_flag" ||
1839 test ! -s conftest.err
1840 } && test -s conftest.$ac_objext; then :
1843 $as_echo "$as_me: failed program was:" >&5
1844 sed 's
/^
/|
/' conftest.$ac_ext >&5
1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849 as_fn_set_status $ac_retval
1851 } # ac_fn_c_try_compile
1853 # ac_fn_cxx_try_compile LINENO
1854 # ----------------------------
1855 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1856 ac_fn_cxx_try_compile ()
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 rm -f conftest.$ac_objext
1860 if { { ac_try="$ac_compile"
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_compile") 2>conftest.err
1869 if test -s conftest.err; then
1870 grep -v '^
*+' conftest.err >conftest.er1
1871 cat conftest.er1 >&5
1872 mv -f conftest.er1 conftest.err
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } && {
1876 test -z "$ac_cxx_werror_flag" ||
1877 test ! -s conftest.err
1878 } && test -s conftest.$ac_objext; then :
1881 $as_echo "$as_me: failed program was:" >&5
1882 sed 's
/^
/|
/' conftest.$ac_ext >&5
1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887 as_fn_set_status $ac_retval
1889 } # ac_fn_cxx_try_compile
1891 # ac_fn_c_try_cpp LINENO
1892 # ----------------------
1893 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 if { { ac_try="$ac_cpp conftest.$ac_ext"
1899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900 *) ac_try_echo=$ac_try;;
1902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903 $as_echo "$ac_try_echo"; } >&5
1904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1906 if test -s conftest.err; then
1907 grep -v '^
*+' conftest.err >conftest.er1
1908 cat conftest.er1 >&5
1909 mv -f conftest.er1 conftest.err
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; } > conftest.i && {
1913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1914 test ! -s conftest.err
1918 $as_echo "$as_me: failed program was:" >&5
1919 sed 's
/^
/|
/' conftest.$ac_ext >&5
1923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924 as_fn_set_status $ac_retval
1928 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1929 # -------------------------------------------------------
1930 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1931 # the include files in INCLUDES and setting the cache variable VAR
1933 ac_fn_c_check_header_mongrel ()
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 if eval \${$3+:} false; then :
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938 $as_echo_n "checking for $2... " >&6; }
1939 if eval \${$3+:} false; then :
1940 $as_echo_n "(cached) " >&6
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944 $as_echo "$ac_res" >&6; }
1946 # Is the header compilable?
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1948 $as_echo_n "checking $2 usability... " >&6; }
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1954 if ac_fn_c_try_compile "$LINENO"; then :
1955 ac_header_compiler=yes
1957 ac_header_compiler=no
1959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1961 $as_echo "$ac_header_compiler" >&6; }
1963 # Is the header present?
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1965 $as_echo_n "checking $2 presence... " >&6; }
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1970 if ac_fn_c_try_cpp "$LINENO"; then :
1971 ac_header_preproc=yes
1973 ac_header_preproc=no
1975 rm -f conftest.err conftest.i conftest.$ac_ext
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1977 $as_echo "$ac_header_preproc" >&6; }
1979 # So? What about this header?
1980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1983 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1985 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1989 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1991 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1993 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1995 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1997 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2001 $as_echo_n "checking for $2... " >&6; }
2002 if eval \${$3+:} false; then :
2003 $as_echo_n "(cached) " >&6
2005 eval "$3=\$ac_header_compiler"
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009 $as_echo "$ac_res" >&6; }
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013 } # ac_fn_c_check_header_mongrel
2015 # ac_fn_c_try_run LINENO
2016 # ----------------------
2017 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2018 # that executables *can* be run.
2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 if { { ac_try="$ac_link"
2024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2025 *) ac_try_echo=$ac_try;;
2027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2028 $as_echo "$ac_try_echo"; } >&5
2029 (eval "$ac_link") 2>&5
2031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2032 test $ac_status = 0; } && { ac_try='.
/conftest
$ac_exeext'
2033 { { case "(($ac_try" in
2034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2035 *) ac_try_echo=$ac_try;;
2037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2038 $as_echo "$ac_try_echo"; } >&5
2039 (eval "$ac_try") 2>&5
2041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2042 test $ac_status = 0; }; }; then :
2045 $as_echo "$as_me: program exited with status $ac_status" >&5
2046 $as_echo "$as_me: failed program was:" >&5
2047 sed 's
/^
/|
/' conftest.$ac_ext >&5
2049 ac_retval=$ac_status
2051 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2052 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053 as_fn_set_status $ac_retval
2057 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2058 # -------------------------------------------------------
2059 # Tests whether HEADER exists and can be compiled using the include files in
2060 # INCLUDES, setting the cache variable VAR accordingly.
2061 ac_fn_c_check_header_compile ()
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2065 $as_echo_n "checking for $2... " >&6; }
2066 if eval \${$3+:} false; then :
2067 $as_echo_n "(cached) " >&6
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2074 if ac_fn_c_try_compile "$LINENO"; then :
2079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2083 $as_echo "$ac_res" >&6; }
2084 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2086 } # ac_fn_c_check_header_compile
2088 # ac_fn_c_try_link LINENO
2089 # -----------------------
2090 # Try to link conftest.$ac_ext, and return whether this succeeded.
2093 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2094 rm -f conftest.$ac_objext conftest$ac_exeext
2095 if { { ac_try="$ac_link"
2097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2098 *) ac_try_echo=$ac_try;;
2100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2101 $as_echo "$ac_try_echo"; } >&5
2102 (eval "$ac_link") 2>conftest.err
2104 if test -s conftest.err; then
2105 grep -v '^
*+' conftest.err >conftest.er1
2106 cat conftest.er1 >&5
2107 mv -f conftest.er1 conftest.err
2109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2110 test $ac_status = 0; } && {
2111 test -z "$ac_c_werror_flag" ||
2112 test ! -s conftest.err
2113 } && test -s conftest$ac_exeext && {
2114 test "$cross_compiling" = yes ||
2115 test -x conftest$ac_exeext
2119 $as_echo "$as_me: failed program was:" >&5
2120 sed 's
/^
/|
/' conftest.$ac_ext >&5
2124 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2125 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2126 # interfere with the next link command; also delete a directory that is
2127 # left behind by Apple's compiler. We
do this before executing the actions.
2128 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2129 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2130 as_fn_set_status
$ac_retval
2132 } # ac_fn_c_try_link
2134 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2135 # --------------------------------------------
2136 # Tries to find the compile-time value of EXPR in a program that includes
2137 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2139 ac_fn_c_compute_int
()
2141 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2142 if test "$cross_compiling" = yes; then
2143 # Depending upon the size, compute the lo and hi bounds.
2144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h. */
2150 static int test_array [1 - 2 * !(($2) >= 0)];
2152 return test_array [0];
2158 if ac_fn_c_try_compile
"$LINENO"; then :
2161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2167 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2169 return test_array [0];
2175 if ac_fn_c_try_compile
"$LINENO"; then :
2176 ac_hi
=$ac_mid; break
2178 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2179 if test $ac_lo -le $ac_mid; then
2183 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2185 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2189 /* end confdefs.h. */
2194 static int test_array [1 - 2 * !(($2) < 0)];
2196 return test_array [0];
2202 if ac_fn_c_try_compile
"$LINENO"; then :
2205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2206 /* end confdefs.h. */
2211 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2213 return test_array [0];
2219 if ac_fn_c_try_compile
"$LINENO"; then :
2220 ac_lo
=$ac_mid; break
2222 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2223 if test $ac_mid -le $ac_hi; then
2227 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2234 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2236 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2237 # Binary search between lo and hi bounds.
2238 while test "x$ac_lo" != "x$ac_hi"; do
2239 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h. */
2246 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2248 return test_array [0];
2254 if ac_fn_c_try_compile
"$LINENO"; then :
2257 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2259 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2262 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h. */
2269 static long int longval () { return $2; }
2270 static unsigned long int ulongval () { return $2; }
2277 FILE *f = fopen ("conftest.val", "w");
2282 long int i = longval ();
2285 fprintf (f, "%ld", i);
2289 unsigned long int i = ulongval ();
2292 fprintf (f, "%lu", i);
2294 /* Do not output a trailing newline, as this causes \r\n confusion
2295 on some platforms. */
2296 return ferror (f) || fclose (f) != 0;
2302 if ac_fn_c_try_run
"$LINENO"; then :
2303 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2307 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2308 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2312 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2313 as_fn_set_status
$ac_retval
2315 } # ac_fn_c_compute_int
2317 # ac_fn_c_check_func LINENO FUNC VAR
2318 # ----------------------------------
2319 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2320 ac_fn_c_check_func
()
2322 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2324 $as_echo_n "checking for $2... " >&6; }
2325 if eval \
${$3+:} false
; then :
2326 $as_echo_n "(cached) " >&6
2328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2329 /* end confdefs.h. */
2330 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2332 #define $2 innocuous_$2
2334 /* System header to define __stub macros and hopefully few prototypes,
2335 which can conflict with char $2 (); below.
2336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2337 <limits.h> exists even on freestanding compilers. */
2340 # include <limits.h>
2342 # include <assert.h>
2347 /* Override any GCC internal prototype to avoid an error.
2348 Use char because int might match the return type of a GCC
2349 builtin and then its argument prototype would still apply. */
2354 /* The GNU C library defines this for functions which it implements
2355 to always fail with ENOSYS. Some functions are actually named
2356 something starting with __ and the normal name is an alias. */
2357 #if defined __stub_$2 || defined __stub___$2
2369 if ac_fn_c_try_link
"$LINENO"; then :
2374 rm -f core conftest.err conftest.
$ac_objext \
2375 conftest
$ac_exeext conftest.
$ac_ext
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2379 $as_echo "$ac_res" >&6; }
2380 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2382 } # ac_fn_c_check_func
2384 # ac_fn_cxx_try_link LINENO
2385 # -------------------------
2386 # Try to link conftest.$ac_ext, and return whether this succeeded.
2387 ac_fn_cxx_try_link
()
2389 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2390 rm -f conftest.
$ac_objext conftest
$ac_exeext
2391 if { { ac_try
="$ac_link"
2393 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2394 *) ac_try_echo=$ac_try;;
2396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2397 $as_echo "$ac_try_echo"; } >&5
2398 (eval "$ac_link") 2>conftest.err
2400 if test -s conftest.err; then
2401 grep -v '^ *+' conftest.err >conftest.er1
2402 cat conftest.er1 >&5
2403 mv -f conftest.er1 conftest.err
2405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2406 test $ac_status = 0; } && {
2407 test -z "$ac_cxx_werror_flag" ||
2408 test ! -s conftest.err
2409 } && test -s conftest$ac_exeext && {
2410 test "$cross_compiling" = yes ||
2411 test -x conftest$ac_exeext
2415 $as_echo "$as_me: failed program was:" >&5
2416 sed 's/^/| /' conftest.$ac_ext >&5
2420 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2421 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2422 # interfere with the next link command; also delete a directory that is
2423 # left behind by Apple's compiler. We do this before executing the actions.
2424 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2425 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2426 as_fn_set_status $ac_retval
2428 } # ac_fn_cxx_try_link
2430 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2431 # -------------------------------------------
2432 # Tests whether TYPE exists after having included INCLUDES, setting cache
2433 # variable VAR accordingly.
2434 ac_fn_c_check_type ()
2436 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2438 $as_echo_n "checking for $2... " >&6; }
2439 if eval \${$3+:} false; then :
2440 $as_echo_n "(cached) " >&6
2443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2444 /* end confdefs.h. */
2455 if ac_fn_c_try_compile "$LINENO"; then :
2456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2457 /* end confdefs.h. */
2468 if ac_fn_c_try_compile "$LINENO"; then :
2473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2479 $as_echo "$ac_res" >&6; }
2480 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2482 } # ac_fn_c_check_type
2484 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2485 # ---------------------------------------------
2486 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2488 ac_fn_c_check_decl ()
2490 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2491 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2492 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2494 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2495 if eval \${$3+:} false; then :
2496 $as_echo_n "(cached) " >&6
2498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2499 /* end confdefs.h. */
2504 #ifndef $as_decl_name
2506 (void) $as_decl_use;
2508 (void) $as_decl_name;
2516 if ac_fn_c_try_compile "$LINENO"; then :
2521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2525 $as_echo "$ac_res" >&6; }
2526 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2528 } # ac_fn_c_check_decl
2530 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2531 # ----------------------------------------------------
2532 # Tries to find if the field MEMBER exists in type AGGR, after including
2533 # INCLUDES, setting cache variable VAR accordingly.
2534 ac_fn_c_check_member ()
2536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2538 $as_echo_n "checking for $2.$3... " >&6; }
2539 if eval \${$4+:} false; then :
2540 $as_echo_n "(cached) " >&6
2542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2543 /* end confdefs.h. */
2555 if ac_fn_c_try_compile "$LINENO"; then :
2558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2559 /* end confdefs.h. */
2565 if (sizeof ac_aggr.$3)
2571 if ac_fn_c_try_compile "$LINENO"; then :
2576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2582 $as_echo "$ac_res" >&6; }
2583 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2585 } # ac_fn_c_check_member
2587 # ac_fn_cxx_check_func LINENO FUNC VAR
2588 # ------------------------------------
2589 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2590 ac_fn_cxx_check_func ()
2592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2594 $as_echo_n "checking for $2... " >&6; }
2595 if eval \${$3+:} false; then :
2596 $as_echo_n "(cached) " >&6
2598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2599 /* end confdefs.h. */
2600 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2602 #define $2 innocuous_$2
2604 /* System header to define __stub macros and hopefully few prototypes,
2605 which can conflict with char $2 (); below.
2606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2607 <limits.h> exists even on freestanding compilers. */
2610 # include <limits.h>
2612 # include <assert.h>
2617 /* Override any GCC internal prototype to avoid an error.
2618 Use char because int might match the return type of a GCC
2619 builtin and then its argument prototype would still apply. */
2624 /* The GNU C library defines this for functions which it implements
2625 to always fail with ENOSYS. Some functions are actually named
2626 something starting with __ and the normal name is an alias. */
2627 #if defined __stub_$2 || defined __stub___$2
2639 if ac_fn_cxx_try_link "$LINENO"; then :
2644 rm -f core conftest.err conftest.$ac_objext \
2645 conftest$ac_exeext conftest.$ac_ext
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2649 $as_echo "$ac_res" >&6; }
2650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2652 } # ac_fn_cxx_check_func
2653 cat >config.log <<_ACEOF
2654 This file contains any messages produced by compilers while
2655 running configure, to aid debugging if configure makes a mistake.
2657 It was created by $as_me, which was
2658 generated by GNU Autoconf 2.69. Invocation command line was
2670 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2671 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2672 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2673 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2674 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2676 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2677 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2679 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2680 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2681 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2682 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2683 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2684 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2685 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 test -z "$as_dir" && as_dir=.
2694 $as_echo "PATH: $as_dir"
2710 # Keep a trace of the command line.
2711 # Strip out --no-create and --no-recursion so they do not pile up.
2712 # Strip out --silent because we don't want to record it for future runs.
2713 # Also quote any args containing shell meta-characters.
2714 # Make two passes to allow for proper duplicate-argument suppression.
2718 ac_must_keep_next=false
2724 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2725 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2726 | -silent | --silent | --silen | --sile | --sil)
2729 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2732 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2734 as_fn_append ac_configure_args1 " '$ac_arg'"
2735 if test $ac_must_keep_next = true; then
2736 ac_must_keep_next=false # Got value, back to normal.
2739 *=* | --config-cache | -C | -disable-* | --disable-* \
2740 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2741 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2742 | -with-* | --with-* | -without-* | --without-* | --x)
2743 case "$ac_configure_args0 " in
2744 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2747 -* ) ac_must_keep_next=true ;;
2750 as_fn_append ac_configure_args " '$ac_arg'"
2755 { ac_configure_args0=; unset ac_configure_args0;}
2756 { ac_configure_args1=; unset ac_configure_args1;}
2758 # When interrupted or exit'd, cleanup temporary files, and complete
2759 # config.log. We remove comments because anyway the quotes in there
2760 # would cause problems or look ugly.
2761 # WARNING: Use '\'' to represent an apostrophe within the trap.
2762 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2763 trap 'exit_status=$?
2764 # Save into config.log some information that might help in debugging.
2768 $as_echo "## ---------------- ##
2769 ## Cache variables. ##
2770 ## ---------------- ##"
2772 # The following way of writing the cache mishandles newlines in values,
2774 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2775 eval ac_val=\$$ac_var
2779 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2780 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2783 _ | IFS | as_nl) ;; #(
2784 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2785 *) { eval $ac_var=; unset $ac_var;} ;;
2790 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2791 *${as_nl}ac_space=\ *)
2793 "s/'\''/'\''\\\\'\'''\''/g;
2794 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2797 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2804 $as_echo "## ----------------- ##
2805 ## Output variables. ##
2806 ## ----------------- ##"
2808 for ac_var in $ac_subst_vars
2810 eval ac_val=\$$ac_var
2812 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2814 $as_echo "$ac_var='\''$ac_val'\''"
2818 if test -n "$ac_subst_files"; then
2819 $as_echo "## ------------------- ##
2820 ## File substitutions. ##
2821 ## ------------------- ##"
2823 for ac_var in $ac_subst_files
2825 eval ac_val=\$$ac_var
2827 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2829 $as_echo "$ac_var='\''$ac_val'\''"
2834 if test -s confdefs.h; then
2835 $as_echo "## ----------- ##
2842 test "$ac_signal" != 0 &&
2843 $as_echo "$as_me: caught signal $ac_signal"
2844 $as_echo "$as_me: exit $exit_status"
2846 rm -f core *.core core.conftest.* &&
2847 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2850 for ac_signal in 1 2 13 15; do
2851 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2855 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2856 rm -f -r conftest* confdefs.h
2858 $as_echo "/* confdefs.h */" > confdefs.h
2860 # Predefined preprocessor variables.
2862 cat >>confdefs.h <<_ACEOF
2863 #define PACKAGE_NAME "$PACKAGE_NAME"
2866 cat >>confdefs.h <<_ACEOF
2867 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2870 cat >>confdefs.h <<_ACEOF
2871 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2874 cat >>confdefs.h <<_ACEOF
2875 #define PACKAGE_STRING "$PACKAGE_STRING"
2878 cat >>confdefs.h <<_ACEOF
2879 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2882 cat >>confdefs.h <<_ACEOF
2883 #define PACKAGE_URL "$PACKAGE_URL"
2887 # Let the site file select an alternate cache file if it wants to.
2888 # Prefer an explicitly selected file to automatically selected ones.
2891 if test -n "$CONFIG_SITE"; then
2892 # We do not want a PATH search for config.site.
2893 case $CONFIG_SITE in #((
2894 -*) ac_site_file1=./$CONFIG_SITE;;
2895 */*) ac_site_file1=$CONFIG_SITE;;
2896 *) ac_site_file1=./$CONFIG_SITE;;
2898 elif test "x$prefix" != xNONE; then
2899 ac_site_file1=$prefix/share/config.site
2900 ac_site_file2=$prefix/etc/config.site
2902 ac_site_file1=$ac_default_prefix/share/config.site
2903 ac_site_file2=$ac_default_prefix/etc/config.site
2905 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2907 test "x$ac_site_file" = xNONE && continue
2908 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2910 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2911 sed 's/^/| /' "$ac_site_file" >&5
2913 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2915 as_fn_error $? "failed to load site
script $ac_site_file
2916 See \
`config.log' for more details" "$LINENO" 5; }
2920 if test -r "$cache_file"; then
2921 # Some versions of bash will fail to source /dev/null (special files
2922 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2923 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2925 $as_echo "$as_me: loading cache $cache_file" >&6;}
2927 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2928 *) . "./$cache_file";;
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2933 $as_echo "$as_me: creating cache $cache_file" >&6;}
2937 as_fn_append ac_header_list " stdlib.h"
2938 as_fn_append ac_header_list " unistd.h"
2939 as_fn_append ac_header_list " sys/param.h"
2940 # Check that the precious variables saved in the cache have kept the same
2942 ac_cache_corrupted=false
2943 for ac_var in $ac_precious_vars; do
2944 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2945 eval ac_new_set=\$ac_env_${ac_var}_set
2946 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2947 eval ac_new_val=\$ac_env_${ac_var}_value
2948 case $ac_old_set,$ac_new_set in
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2951 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2952 ac_cache_corrupted=: ;;
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2955 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2956 ac_cache_corrupted=: ;;
2959 if test "x$ac_old_val" != "x$ac_new_val"; then
2960 # differences in whitespace do not lead to failure.
2961 ac_old_val_w=`echo x
$ac_old_val`
2962 ac_new_val_w=`echo x
$ac_new_val`
2963 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2965 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2966 ac_cache_corrupted=:
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2969 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2970 eval $ac_var=\$ac_old_val
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2973 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2975 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2978 # Pass precious variables to config.status.
2979 if test "$ac_new_set" = set; then
2981 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2982 *) ac_arg=$ac_var=$ac_new_val ;;
2984 case " $ac_configure_args " in
2985 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2986 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2990 if $ac_cache_corrupted; then
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2994 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2995 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2997 ## -------------------- ##
2998 ## Main body of script. ##
2999 ## -------------------- ##
3002 ac_cpp='$CPP $CPPFLAGS'
3003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3013 ac_config_headers="$ac_config_headers config.h:config.in"
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3017 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3018 # Check whether --enable-maintainer-mode was given.
3019 if test "${enable_maintainer_mode+set}" = set; then :
3020 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3022 USE_MAINTAINER_MODE=no
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3026 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3027 if test $USE_MAINTAINER_MODE = yes; then
3028 MAINTAINER_MODE_TRUE=
3029 MAINTAINER_MODE_FALSE='#'
3031 MAINTAINER_MODE_TRUE='#'
3032 MAINTAINER_MODE_FALSE=
3035 MAINT=$MAINTAINER_MODE_TRUE
3040 ac_cpp='$CPP $CPPFLAGS'
3041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3044 if test -n "$ac_tool_prefix"; then
3045 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3046 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3048 $as_echo_n "checking for $ac_word... " >&6; }
3049 if ${ac_cv_prog_CC+:} false; then :
3050 $as_echo_n "(cached) " >&6
3052 if test -n "$CC"; then
3053 ac_cv_prog_CC="$CC" # Let the user override the test.
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059 test -z "$as_dir" && as_dir=.
3060 for ac_exec_ext in '' $ac_executable_extensions; do
3061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3062 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3073 if test -n "$CC"; then
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3075 $as_echo "$CC" >&6; }
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078 $as_echo "no" >&6; }
3083 if test -z "$ac_cv_prog_CC"; then
3085 # Extract the first word of "gcc", so it can be a program name with args.
3086 set dummy gcc; ac_word=$2
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088 $as_echo_n "checking for $ac_word... " >&6; }
3089 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3090 $as_echo_n "(cached) " >&6
3092 if test -n "$ac_ct_CC"; then
3093 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 test -z "$as_dir" && as_dir=.
3100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3102 ac_cv_prog_ac_ct_CC="gcc"
3103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3113 if test -n "$ac_ct_CC"; then
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3115 $as_echo "$ac_ct_CC" >&6; }
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118 $as_echo "no" >&6; }
3121 if test "x$ac_ct_CC" = x; then
3124 case $cross_compiling:$ac_tool_warned in
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3128 ac_tool_warned=yes ;;
3136 if test -z "$CC"; then
3137 if test -n "$ac_tool_prefix"; then
3138 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3139 set dummy ${ac_tool_prefix}cc; ac_word=$2
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if ${ac_cv_prog_CC+:} false; then :
3143 $as_echo_n "(cached) " >&6
3145 if test -n "$CC"; then
3146 ac_cv_prog_CC="$CC" # Let the user override the test.
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3155 ac_cv_prog_CC="${ac_tool_prefix}cc"
3156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
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; }
3177 if test -z "$CC"; then
3178 # Extract the first word of "cc", so it can be a program name with args.
3179 set dummy cc; ac_word=$2
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3181 $as_echo_n "checking for $ac_word... " >&6; }
3182 if ${ac_cv_prog_CC+:} false; then :
3183 $as_echo_n "(cached) " >&6
3185 if test -n "$CC"; then
3186 ac_cv_prog_CC="$CC" # Let the user override the test.
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 test -z "$as_dir" && as_dir=.
3194 for ac_exec_ext in '' $ac_executable_extensions; do
3195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3196 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3197 ac_prog_rejected=yes
3201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3208 if test $ac_prog_rejected = yes; then
3209 # We found a bogon in the path, so make sure we never use it.
3210 set dummy $ac_cv_prog_CC
3212 if test $# != 0; then
3213 # We chose a different compiler from the bogus one.
3214 # However, it has the same basename, so the bogon will be chosen
3215 # first if we set CC to just the basename; use the full file name.
3217 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3223 if test -n "$CC"; then
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3225 $as_echo "$CC" >&6; }
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3228 $as_echo "no" >&6; }
3233 if test -z "$CC"; then
3234 if test -n "$ac_tool_prefix"; then
3235 for ac_prog in cl.exe
3237 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3238 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3240 $as_echo_n "checking for $ac_word... " >&6; }
3241 if ${ac_cv_prog_CC+:} false; then :
3242 $as_echo_n "(cached) " >&6
3244 if test -n "$CC"; then
3245 ac_cv_prog_CC="$CC" # Let the user override the test.
3247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251 test -z "$as_dir" && as_dir=.
3252 for ac_exec_ext in '' $ac_executable_extensions; do
3253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3254 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3265 if test -n "$CC"; then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3267 $as_echo "$CC" >&6; }
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270 $as_echo "no" >&6; }
3274 test -n "$CC" && break
3277 if test -z "$CC"; then
3279 for ac_prog in cl.exe
3281 # Extract the first word of "$ac_prog", so it can be a program name with args.
3282 set dummy $ac_prog; ac_word=$2
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3284 $as_echo_n "checking for $ac_word... " >&6; }
3285 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3286 $as_echo_n "(cached) " >&6
3288 if test -n "$ac_ct_CC"; then
3289 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 test -z "$as_dir" && as_dir=.
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3298 ac_cv_prog_ac_ct_CC="$ac_prog"
3299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3308 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3309 if test -n "$ac_ct_CC"; then
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3311 $as_echo "$ac_ct_CC" >&6; }
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314 $as_echo "no" >&6; }
3318 test -n "$ac_ct_CC" && break
3321 if test "x$ac_ct_CC" = x; then
3324 case $cross_compiling:$ac_tool_warned in
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3328 ac_tool_warned=yes ;;
3337 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3338 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3339 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3340 See \
`config.log' for more details" "$LINENO" 5; }
3342 # Provide some information about the compiler.
3343 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3346 for ac_option in --version -v -V -qversion; do
3347 { { ac_try="$ac_compiler $ac_option >&5"
3349 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3350 *) ac_try_echo
=$ac_try;;
3352 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3353 $as_echo "$ac_try_echo"; } >&5
3354 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3356 if test -s conftest.err
; then
3358 ... rest of stderr output deleted ...
3359 10q' conftest.err
>conftest.er1
3360 cat conftest.er1
>&5
3362 rm -f conftest.er1 conftest.err
3363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3364 test $ac_status = 0; }
3367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3368 /* end confdefs.h. */
3378 ac_clean_files_save
=$ac_clean_files
3379 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3380 # Try to create an executable without -o first, disregard a.out.
3381 # It will help us diagnose broken compilers, and finding out an intuition
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3384 $as_echo_n "checking whether the C compiler works... " >&6; }
3385 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3387 # The possible output files:
3388 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3391 for ac_file
in $ac_files
3394 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3395 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3400 if { { ac_try
="$ac_link_default"
3402 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3405 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3406 $as_echo "$ac_try_echo"; } >&5
3407 (eval "$ac_link_default") 2>&5
3409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3410 test $ac_status = 0; }; then :
3411 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3412 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3413 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3414 # so that the user can short-circuit this test for compilers unknown to
3416 for ac_file in $ac_files ''
3418 test -f "$ac_file" || continue
3420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3423 # We found the default executable, but exeext='' is most
3427 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3429 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3431 # We set ac_cv_exeext here because the later test for it is not
3432 # safe: cross compilers may not add the suffix if given an `-o'
3433 # argument, so we may need to know it at that point already.
3434 # Even if this section looks crufty: it has the advantage of
3441 test "$ac_cv_exeext" = no && ac_cv_exeext=
3446 if test -z "$ac_file"; then :
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3448 $as_echo "no" >&6; }
3449 $as_echo "$as_me: failed program was:" >&5
3450 sed 's
/^
/|
/' conftest.$ac_ext >&5
3452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3453 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3454 as_fn_error 77 "C compiler cannot create executables
3455 See \`config.log
' for more details" "$LINENO" 5; }
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3458 $as_echo "yes" >&6; }
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3461 $as_echo_n "checking for C compiler default output file name... " >&6; }
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3463 $as_echo "$ac_file" >&6; }
3464 ac_exeext=$ac_cv_exeext
3466 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3467 ac_clean_files=$ac_clean_files_save
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3469 $as_echo_n "checking for suffix of executables... " >&6; }
3470 if { { ac_try="$ac_link"
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3475 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3476 $as_echo "$ac_try_echo"; } >&5
3477 (eval "$ac_link") 2>&5
3479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3480 test $ac_status = 0; }; then :
3481 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3482 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3483 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3485 for ac_file
in conftest.exe conftest conftest.
*; do
3486 test -f "$ac_file" ||
continue
3488 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3489 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3497 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3498 See \`config.log' for more details" "$LINENO" 5; }
3500 rm -f conftest conftest
$ac_cv_exeext
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3502 $as_echo "$ac_cv_exeext" >&6; }
3504 rm -f conftest.
$ac_ext
3505 EXEEXT
=$ac_cv_exeext
3507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3508 /* end confdefs.h. */
3513 FILE *f = fopen ("conftest.out", "w");
3514 return ferror (f) || fclose (f) != 0;
3520 ac_clean_files
="$ac_clean_files conftest.out"
3521 # Check that the compiler produces executables we can run. If not, either
3522 # the compiler is broken, or we cross compile.
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3524 $as_echo_n "checking whether we are cross compiling... " >&6; }
3525 if test "$cross_compiling" != yes; then
3526 { { ac_try
="$ac_link"
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_link") 2>&5
3535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3536 test $ac_status = 0; }
3537 if { ac_try='./conftest$ac_cv_exeext'
3538 { { case "(($ac_try" in
3539 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3540 *) ac_try_echo
=$ac_try;;
3542 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3543 $as_echo "$ac_try_echo"; } >&5
3544 (eval "$ac_try") 2>&5
3546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3547 test $ac_status = 0; }; }; then
3550 if test "$cross_compiling" = maybe
; then
3553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3555 as_fn_error $?
"cannot run C compiled programs.
3556 If you meant to cross compile, use \`--host'.
3557 See \`config.log' for more details" "$LINENO" 5; }
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3562 $as_echo "$cross_compiling" >&6; }
3564 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3565 ac_clean_files
=$ac_clean_files_save
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3567 $as_echo_n "checking for suffix of object files... " >&6; }
3568 if ${ac_cv_objext+:} false
; then :
3569 $as_echo_n "(cached) " >&6
3571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3572 /* end confdefs.h. */
3582 rm -f conftest.o conftest.obj
3583 if { { ac_try
="$ac_compile"
3585 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3586 *) ac_try_echo=$ac_try;;
3588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3589 $as_echo "$ac_try_echo"; } >&5
3590 (eval "$ac_compile") 2>&5
3592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3593 test $ac_status = 0; }; then :
3594 for ac_file in conftest.o conftest.obj conftest.*; do
3595 test -f "$ac_file" || continue;
3597 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3598 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3603 $as_echo "$as_me: failed program was:" >&5
3604 sed 's/^/| /' conftest.$ac_ext >&5
3606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3608 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3609 See \
`config.log' for more details" "$LINENO" 5; }
3611 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3614 $as_echo "$ac_cv_objext" >&6; }
3615 OBJEXT=$ac_cv_objext
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3618 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3619 if ${ac_cv_c_compiler_gnu+:} false; then :
3620 $as_echo_n "(cached) " >&6
3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623 /* end confdefs.h. */
3636 if ac_fn_c_try_compile "$LINENO"; then :
3641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3642 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3646 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3647 if test $ac_compiler_gnu = yes; then
3652 ac_test_CFLAGS=${CFLAGS+set}
3653 ac_save_CFLAGS=$CFLAGS
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3655 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3656 if ${ac_cv_prog_cc_g+:} false; then :
3657 $as_echo_n "(cached) " >&6
3659 ac_save_c_werror_flag=$ac_c_werror_flag
3660 ac_c_werror_flag=yes
3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h. */
3674 if ac_fn_c_try_compile "$LINENO"; then :
3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679 /* end confdefs.h. */
3689 if ac_fn_c_try_compile "$LINENO"; then :
3692 ac_c_werror_flag=$ac_save_c_werror_flag
3694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3695 /* end confdefs.h. */
3705 if ac_fn_c_try_compile "$LINENO"; then :
3708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3713 ac_c_werror_flag=$ac_save_c_werror_flag
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3716 $as_echo "$ac_cv_prog_cc_g" >&6; }
3717 if test "$ac_test_CFLAGS" = set; then
3718 CFLAGS=$ac_save_CFLAGS
3719 elif test $ac_cv_prog_cc_g = yes; then
3720 if test "$GCC" = yes; then
3726 if test "$GCC" = yes; then
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3733 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3734 if ${ac_cv_prog_cc_c89+:} false; then :
3735 $as_echo_n "(cached) " >&6
3737 ac_cv_prog_cc_c89=no
3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h. */
3744 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3745 struct buf { int x; };
3746 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3747 static char *e (p, i)
3753 static char *f (char * (*g) (char **, int), char **p, ...)
3758 s = g (p, va_arg (v,int));
3763 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3764 function prototypes and stuff, but not '\xHH' hex character constants.
3765 These don't provoke an error unfortunately, instead are silently treated
3766 as 'x'. The following induces an error, until -std is added to get
3767 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3768 array size at least. It's necessary to write '\x00'==0 to get something
3769 that's true only with -std. */
3770 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3772 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3773 inside strings and character constants. */
3775 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3777 int test (int i, double x);
3778 struct s1 {int (*f) (int a);};
3779 struct s2 {int (*f) (double a);};
3780 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3786 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3791 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3792 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3794 CC="$ac_save_CC $ac_arg"
3795 if ac_fn_c_try_compile "$LINENO"; then :
3796 ac_cv_prog_cc_c89=$ac_arg
3798 rm -f core conftest.err conftest.$ac_objext
3799 test "x$ac_cv_prog_cc_c89" != "xno" && break
3801 rm -f conftest.$ac_ext
3806 case "x$ac_cv_prog_cc_c89" in
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3809 $as_echo "none needed" >&6; } ;;
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3812 $as_echo "unsupported" >&6; } ;;
3814 CC="$CC $ac_cv_prog_cc_c89"
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3816 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3818 if test "x$ac_cv_prog_cc_c89" != xno; then :
3823 ac_cpp='$CPP $CPPFLAGS'
3824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3829 ac_cpp='$CXXCPP $CPPFLAGS'
3830 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3831 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3832 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3833 if test -z "$CXX"; then
3834 if test -n "$CCC"; then
3837 if test -n "$ac_tool_prefix"; then
3838 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3840 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3841 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3843 $as_echo_n "checking for $ac_word... " >&6; }
3844 if ${ac_cv_prog_CXX+:} false; then :
3845 $as_echo_n "(cached) " >&6
3847 if test -n "$CXX"; then
3848 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854 test -z "$as_dir" && as_dir=.
3855 for ac_exec_ext in '' $ac_executable_extensions; do
3856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3857 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3868 if test -n "$CXX"; then
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3870 $as_echo "$CXX" >&6; }
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3873 $as_echo "no" >&6; }
3877 test -n "$CXX" && break
3880 if test -z "$CXX"; then
3882 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3884 # Extract the first word of "$ac_prog", so it can be a program name with args.
3885 set dummy $ac_prog; ac_word=$2
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3887 $as_echo_n "checking for $ac_word... " >&6; }
3888 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3889 $as_echo_n "(cached) " >&6
3891 if test -n "$ac_ct_CXX"; then
3892 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898 test -z "$as_dir" && as_dir=.
3899 for ac_exec_ext in '' $ac_executable_extensions; do
3900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3901 ac_cv_prog_ac_ct_CXX="$ac_prog"
3902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3912 if test -n "$ac_ct_CXX"; then
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3914 $as_echo "$ac_ct_CXX" >&6; }
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3917 $as_echo "no" >&6; }
3921 test -n "$ac_ct_CXX" && break
3924 if test "x$ac_ct_CXX" = x; then
3927 case $cross_compiling:$ac_tool_warned in
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3931 ac_tool_warned=yes ;;
3939 # Provide some information about the compiler.
3940 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3943 for ac_option in --version -v -V -qversion; do
3944 { { ac_try="$ac_compiler $ac_option >&5"
3946 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3947 *) ac_try_echo
=$ac_try;;
3949 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3950 $as_echo "$ac_try_echo"; } >&5
3951 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3953 if test -s conftest.err
; then
3955 ... rest of stderr output deleted ...
3956 10q' conftest.err
>conftest.er1
3957 cat conftest.er1
>&5
3959 rm -f conftest.er1 conftest.err
3960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3961 test $ac_status = 0; }
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3965 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3966 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3967 $as_echo_n "(cached) " >&6
3969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3970 /* end confdefs.h. */
3983 if ac_fn_cxx_try_compile
"$LINENO"; then :
3988 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3989 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3993 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3994 if test $ac_compiler_gnu = yes; then
3999 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4000 ac_save_CXXFLAGS
=$CXXFLAGS
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4002 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4003 if ${ac_cv_prog_cxx_g+:} false
; then :
4004 $as_echo_n "(cached) " >&6
4006 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4007 ac_cxx_werror_flag
=yes
4010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4021 if ac_fn_cxx_try_compile
"$LINENO"; then :
4022 ac_cv_prog_cxx_g
=yes
4025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4026 /* end confdefs.h. */
4036 if ac_fn_cxx_try_compile
"$LINENO"; then :
4039 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h. */
4052 if ac_fn_cxx_try_compile
"$LINENO"; then :
4053 ac_cv_prog_cxx_g
=yes
4055 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4057 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4059 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4060 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4063 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4064 if test "$ac_test_CXXFLAGS" = set; then
4065 CXXFLAGS
=$ac_save_CXXFLAGS
4066 elif test $ac_cv_prog_cxx_g = yes; then
4067 if test "$GXX" = yes; then
4073 if test "$GXX" = yes; then
4080 ac_cpp
='$CPP $CPPFLAGS'
4081 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4082 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4083 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4088 ac_cpp
='$CPP $CPPFLAGS'
4089 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4090 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4091 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4093 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4094 # On Suns, sometimes $CPP names a directory.
4095 if test -n "$CPP" && test -d "$CPP"; then
4098 if test -z "$CPP"; then
4099 if ${ac_cv_prog_CPP+:} false
; then :
4100 $as_echo_n "(cached) " >&6
4102 # Double quotes because CPP needs to be expanded
4103 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4106 for ac_c_preproc_warn_flag
in '' yes
4108 # Use a header file that comes with gcc, so configuring glibc
4109 # with a fresh cross-compiler works.
4110 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4111 # <limits.h> exists even on freestanding compilers.
4112 # On the NeXT, cc -E runs the code through the compiler's parser,
4113 # not just through cpp. "Syntax error" is here to catch this case.
4114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4117 # include <limits.h>
4119 # include <assert.h>
4123 if ac_fn_c_try_cpp
"$LINENO"; then :
4126 # Broken: fails on valid input.
4129 rm -f conftest.err conftest.i conftest.
$ac_ext
4131 # OK, works on sane cases. Now check whether nonexistent headers
4132 # can be detected and how.
4133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h. */
4135 #include <ac_nonexistent.h>
4137 if ac_fn_c_try_cpp
"$LINENO"; then :
4138 # Broken: success on invalid input.
4141 # Passes both tests.
4145 rm -f conftest.err conftest.i conftest.
$ac_ext
4148 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4149 rm -f conftest.i conftest.err conftest.
$ac_ext
4150 if $ac_preproc_ok; then :
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4163 $as_echo "$CPP" >&6; }
4165 for ac_c_preproc_warn_flag
in '' yes
4167 # Use a header file that comes with gcc, so configuring glibc
4168 # with a fresh cross-compiler works.
4169 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4170 # <limits.h> exists even on freestanding compilers.
4171 # On the NeXT, cc -E runs the code through the compiler's parser,
4172 # not just through cpp. "Syntax error" is here to catch this case.
4173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4174 /* end confdefs.h. */
4176 # include <limits.h>
4178 # include <assert.h>
4182 if ac_fn_c_try_cpp
"$LINENO"; then :
4185 # Broken: fails on valid input.
4188 rm -f conftest.err conftest.i conftest.
$ac_ext
4190 # OK, works on sane cases. Now check whether nonexistent headers
4191 # can be detected and how.
4192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4193 /* end confdefs.h. */
4194 #include <ac_nonexistent.h>
4196 if ac_fn_c_try_cpp
"$LINENO"; then :
4197 # Broken: success on invalid input.
4200 # Passes both tests.
4204 rm -f conftest.err conftest.i conftest.
$ac_ext
4207 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4208 rm -f conftest.i conftest.err conftest.
$ac_ext
4209 if $ac_preproc_ok; then :
4212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4214 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4215 See \`config.log' for more details" "$LINENO" 5; }
4219 ac_cpp
='$CPP $CPPFLAGS'
4220 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4221 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4222 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4226 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4227 if ${ac_cv_path_GREP+:} false
; then :
4228 $as_echo_n "(cached) " >&6
4230 if test -z "$GREP"; then
4231 ac_path_GREP_found
=false
4232 # Loop through the user's path and test for each of PROGNAME-LIST
4233 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4234 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4237 test -z "$as_dir" && as_dir
=.
4238 for ac_prog
in grep ggrep
; do
4239 for ac_exec_ext
in '' $ac_executable_extensions; do
4240 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4241 as_fn_executable_p
"$ac_path_GREP" ||
continue
4242 # Check for GNU ac_path_GREP and select it if it is found.
4243 # Check for GNU $ac_path_GREP
4244 case `"$ac_path_GREP" --version 2>&1` in
4246 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4249 $as_echo_n 0123456789 >"conftest.in"
4252 cat "conftest.in" "conftest.in" >"conftest.tmp"
4253 mv "conftest.tmp" "conftest.in"
4254 cp "conftest.in" "conftest.nl"
4255 $as_echo 'GREP' >> "conftest.nl"
4256 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4257 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4258 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4259 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4260 # Best one so far, save it but keep looking for a better one
4261 ac_cv_path_GREP
="$ac_path_GREP"
4262 ac_path_GREP_max
=$ac_count
4264 # 10*(2^10) chars as input seems more than enough
4265 test $ac_count -gt 10 && break
4267 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4270 $ac_path_GREP_found && break 3
4275 if test -z "$ac_cv_path_GREP"; then
4276 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4279 ac_cv_path_GREP
=$GREP
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4284 $as_echo "$ac_cv_path_GREP" >&6; }
4285 GREP
="$ac_cv_path_GREP"
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4289 $as_echo_n "checking for egrep... " >&6; }
4290 if ${ac_cv_path_EGREP+:} false
; then :
4291 $as_echo_n "(cached) " >&6
4293 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4294 then ac_cv_path_EGREP
="$GREP -E"
4296 if test -z "$EGREP"; then
4297 ac_path_EGREP_found
=false
4298 # Loop through the user's path and test for each of PROGNAME-LIST
4299 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4300 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4303 test -z "$as_dir" && as_dir
=.
4304 for ac_prog
in egrep; do
4305 for ac_exec_ext
in '' $ac_executable_extensions; do
4306 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4307 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4308 # Check for GNU ac_path_EGREP and select it if it is found.
4309 # Check for GNU $ac_path_EGREP
4310 case `"$ac_path_EGREP" --version 2>&1` in
4312 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4315 $as_echo_n 0123456789 >"conftest.in"
4318 cat "conftest.in" "conftest.in" >"conftest.tmp"
4319 mv "conftest.tmp" "conftest.in"
4320 cp "conftest.in" "conftest.nl"
4321 $as_echo 'EGREP' >> "conftest.nl"
4322 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4323 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4324 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4325 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4326 # Best one so far, save it but keep looking for a better one
4327 ac_cv_path_EGREP
="$ac_path_EGREP"
4328 ac_path_EGREP_max
=$ac_count
4330 # 10*(2^10) chars as input seems more than enough
4331 test $ac_count -gt 10 && break
4333 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4336 $ac_path_EGREP_found && break 3
4341 if test -z "$ac_cv_path_EGREP"; then
4342 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4345 ac_cv_path_EGREP
=$EGREP
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4351 $as_echo "$ac_cv_path_EGREP" >&6; }
4352 EGREP
="$ac_cv_path_EGREP"
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4356 $as_echo_n "checking for ANSI C header files... " >&6; }
4357 if ${ac_cv_header_stdc+:} false
; then :
4358 $as_echo_n "(cached) " >&6
4360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4361 /* end confdefs.h. */
4375 if ac_fn_c_try_compile
"$LINENO"; then :
4376 ac_cv_header_stdc
=yes
4378 ac_cv_header_stdc
=no
4380 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4382 if test $ac_cv_header_stdc = yes; then
4383 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h. */
4389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4390 $EGREP "memchr" >/dev
/null
2>&1; then :
4393 ac_cv_header_stdc
=no
4399 if test $ac_cv_header_stdc = yes; then
4400 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4402 /* end confdefs.h. */
4406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4407 $EGREP "free" >/dev
/null
2>&1; then :
4410 ac_cv_header_stdc
=no
4416 if test $ac_cv_header_stdc = yes; then
4417 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4418 if test "$cross_compiling" = yes; then :
4421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4422 /* end confdefs.h. */
4425 #if ((' ' & 0x0FF) == 0x020)
4426 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4427 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4429 # define ISLOWER(c) \
4430 (('a' <= (c) && (c) <= 'i') \
4431 || ('j' <= (c) && (c) <= 'r') \
4432 || ('s' <= (c) && (c) <= 'z'))
4433 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4436 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4441 for (i = 0; i < 256; i++)
4442 if (XOR (islower (i), ISLOWER (i))
4443 || toupper (i) != TOUPPER (i))
4448 if ac_fn_c_try_run
"$LINENO"; then :
4451 ac_cv_header_stdc
=no
4453 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4454 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4460 $as_echo "$ac_cv_header_stdc" >&6; }
4461 if test $ac_cv_header_stdc = yes; then
4463 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4467 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4468 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4469 inttypes.h stdint.h unistd.h
4471 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4472 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4474 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4475 cat >>confdefs.h
<<_ACEOF
4476 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4485 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4486 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4493 if test "$MINIX" = yes; then
4495 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4498 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4501 $as_echo "#define _MINIX 1" >>confdefs.h
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4507 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4508 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4509 $as_echo_n "(cached) " >&6
4511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4512 /* end confdefs.h. */
4514 # define __EXTENSIONS__ 1
4515 $ac_includes_default
4524 if ac_fn_c_try_compile
"$LINENO"; then :
4525 ac_cv_safe_to_define___extensions__
=yes
4527 ac_cv_safe_to_define___extensions__
=no
4529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4532 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4533 test $ac_cv_safe_to_define___extensions__ = yes &&
4534 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4536 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4538 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4540 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4542 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4546 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4547 if test -f "$ac_dir/install-sh"; then
4549 ac_install_sh
="$ac_aux_dir/install-sh -c"
4551 elif test -f "$ac_dir/install.sh"; then
4553 ac_install_sh
="$ac_aux_dir/install.sh -c"
4555 elif test -f "$ac_dir/shtool"; then
4557 ac_install_sh
="$ac_aux_dir/shtool install -c"
4561 if test -z "$ac_aux_dir"; then
4562 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4565 # These three variables are undocumented and unsupported,
4566 # and are intended to be withdrawn in a future Autoconf release.
4567 # They can cause serious problems if a builder's source tree is in a directory
4568 # whose full name contains unusual characters.
4569 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4570 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4571 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4574 # Make sure we can run config.sub.
4575 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4576 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4579 $as_echo_n "checking build system type... " >&6; }
4580 if ${ac_cv_build+:} false
; then :
4581 $as_echo_n "(cached) " >&6
4583 ac_build_alias
=$build_alias
4584 test "x$ac_build_alias" = x
&&
4585 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4586 test "x$ac_build_alias" = x
&&
4587 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4588 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4589 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4593 $as_echo "$ac_cv_build" >&6; }
4594 case $ac_cv_build in
4596 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4599 ac_save_IFS
=$IFS; IFS
='-'
4605 # Remember, the first character of IFS is used to create $*,
4606 # except with old shells:
4609 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4613 $as_echo_n "checking host system type... " >&6; }
4614 if ${ac_cv_host+:} false
; then :
4615 $as_echo_n "(cached) " >&6
4617 if test "x$host_alias" = x
; then
4618 ac_cv_host
=$ac_cv_build
4620 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4621 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4626 $as_echo "$ac_cv_host" >&6; }
4629 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4632 ac_save_IFS
=$IFS; IFS
='-'
4638 # Remember, the first character of IFS is used to create $*,
4639 # except with old shells:
4642 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4646 $as_echo_n "checking target system type... " >&6; }
4647 if ${ac_cv_target+:} false
; then :
4648 $as_echo_n "(cached) " >&6
4650 if test "x$target_alias" = x
; then
4651 ac_cv_target
=$ac_cv_host
4653 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4654 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4659 $as_echo "$ac_cv_target" >&6; }
4660 case $ac_cv_target in
4662 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4664 target
=$ac_cv_target
4665 ac_save_IFS
=$IFS; IFS
='-'
4671 # Remember, the first character of IFS is used to create $*,
4672 # except with old shells:
4675 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4678 # The aliases save the names the user supplied, while $host etc.
4679 # will get canonicalized.
4680 test -n "$target_alias" &&
4681 test "$program_prefix$program_suffix$program_transform_name" = \
4683 program_prefix
=${target_alias}-
4685 # The tests for host and target for $enable_largefile require
4690 # As the $enable_largefile decision depends on --enable-plugins we must set it
4691 # even in directories otherwise not depending on the $plugins option.
4695 for ac_header
in dlfcn.h
4697 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4699 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
4700 cat >>confdefs.h
<<_ACEOF
4701 #define HAVE_DLFCN_H 1
4708 for ac_header
in windows.h
4710 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4712 if test "x$ac_cv_header_windows_h" = xyes
; then :
4713 cat >>confdefs.h
<<_ACEOF
4714 #define HAVE_WINDOWS_H 1
4722 # Check whether --enable-plugins was given.
4723 if test "${enable_plugins+set}" = set; then :
4724 enableval
=$enable_plugins; case "${enableval}" in
4727 if test "$maybe_plugins" != "yes" ; then
4728 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4732 plugins
=$maybe_plugins
4736 if test "$plugins" = "yes"; then
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4738 $as_echo_n "checking for library containing dlsym... " >&6; }
4739 if ${ac_cv_search_dlsym+:} false
; then :
4740 $as_echo_n "(cached) " >&6
4742 ac_func_search_save_LIBS
=$LIBS
4743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4746 /* Override any GCC internal prototype to avoid an error.
4747 Use char because int might match the return type of a GCC
4748 builtin and then its argument prototype would still apply. */
4761 for ac_lib
in '' dl
; do
4762 if test -z "$ac_lib"; then
4763 ac_res
="none required"
4766 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4768 if ac_fn_c_try_link
"$LINENO"; then :
4769 ac_cv_search_dlsym
=$ac_res
4771 rm -f core conftest.err conftest.
$ac_objext \
4773 if ${ac_cv_search_dlsym+:} false
; then :
4777 if ${ac_cv_search_dlsym+:} false
; then :
4780 ac_cv_search_dlsym
=no
4783 LIBS
=$ac_func_search_save_LIBS
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4786 $as_echo "$ac_cv_search_dlsym" >&6; }
4787 ac_res
=$ac_cv_search_dlsym
4788 if test "$ac_res" != no
; then :
4789 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4797 sparc-
*-solaris*|i?
86-*-solaris*)
4798 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
4799 # were mutually exclusive until Solaris 11.3. Without procfs support,
4800 # the bfd/ elf module cannot provide certain routines such as
4801 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
4802 # explicitly requested large-file support through the
4803 # --enable-largefile switch, disable large-file support in favor of
4806 # Check if <sys/procfs.h> is incompatible with large-file support.
4807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4808 /* end confdefs.h. */
4809 #define _FILE_OFFSET_BITS 64
4810 #define _STRUCTURED_PROC 1
4811 #include <sys/procfs.h>
4820 if ac_fn_c_try_compile
"$LINENO"; then :
4821 acx_cv_procfs_lfs
=yes
4823 acx_cv_procfs_lfs
=no
4825 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4827 # Forcefully disable large-file support only if necessary, gdb is in
4829 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
4830 -a -d $srcdir/..
/gdb
-a "$enable_gdb" != no
; then
4831 : ${enable_largefile="no"}
4832 if test "$plugins" = yes; then
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4834 plugin support disabled; require large-file support which is incompatible with GDB." >&5
4835 $as_echo "$as_me: WARNING:
4836 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
4841 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
4842 # benefit of g++ 9+ which predefines it on Solaris.
4843 if test "$enable_largefile" = no
; then
4844 LARGEFILE_CPPFLAGS
="-U_FILE_OFFSET_BITS"
4850 # Check whether --enable-largefile was given.
4851 if test "${enable_largefile+set}" = set; then :
4852 enableval
=$enable_largefile;
4855 if test "$enable_largefile" != no
; then
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4858 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4859 if ${ac_cv_sys_largefile_CC+:} false
; then :
4860 $as_echo_n "(cached) " >&6
4862 ac_cv_sys_largefile_CC
=no
4863 if test "$GCC" != yes; then
4866 # IRIX 6.2 and later do not support large files by default,
4867 # so use the C compiler's -n32 option if that helps.
4868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4869 /* end confdefs.h. */
4870 #include <sys/types.h>
4871 /* Check that off_t can represent 2**63 - 1 correctly.
4872 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4873 since some C++ compilers masquerading as C compilers
4874 incorrectly reject 9223372036854775807. */
4875 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4876 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4877 && LARGE_OFF_T % 2147483647 == 1)
4887 if ac_fn_c_try_compile
"$LINENO"; then :
4890 rm -f core conftest.err conftest.
$ac_objext
4892 if ac_fn_c_try_compile
"$LINENO"; then :
4893 ac_cv_sys_largefile_CC
=' -n32'; break
4895 rm -f core conftest.err conftest.
$ac_objext
4899 rm -f conftest.
$ac_ext
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4903 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4904 if test "$ac_cv_sys_largefile_CC" != no
; then
4905 CC
=$CC$ac_cv_sys_largefile_CC
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4909 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4910 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4911 $as_echo_n "(cached) " >&6
4914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4915 /* end confdefs.h. */
4916 #include <sys/types.h>
4917 /* Check that off_t can represent 2**63 - 1 correctly.
4918 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4919 since some C++ compilers masquerading as C compilers
4920 incorrectly reject 9223372036854775807. */
4921 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4922 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4923 && LARGE_OFF_T % 2147483647 == 1)
4933 if ac_fn_c_try_compile
"$LINENO"; then :
4934 ac_cv_sys_file_offset_bits
=no
; break
4936 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4938 /* end confdefs.h. */
4939 #define _FILE_OFFSET_BITS 64
4940 #include <sys/types.h>
4941 /* Check that off_t can represent 2**63 - 1 correctly.
4942 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4943 since some C++ compilers masquerading as C compilers
4944 incorrectly reject 9223372036854775807. */
4945 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4946 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4947 && LARGE_OFF_T % 2147483647 == 1)
4957 if ac_fn_c_try_compile
"$LINENO"; then :
4958 ac_cv_sys_file_offset_bits
=64; break
4960 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4961 ac_cv_sys_file_offset_bits
=unknown
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4966 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4967 case $ac_cv_sys_file_offset_bits in #(
4970 cat >>confdefs.h
<<_ACEOF
4971 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4976 if test $ac_cv_sys_file_offset_bits = unknown
; then
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4978 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4979 if ${ac_cv_sys_large_files+:} false
; then :
4980 $as_echo_n "(cached) " >&6
4983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4984 /* end confdefs.h. */
4985 #include <sys/types.h>
4986 /* Check that off_t can represent 2**63 - 1 correctly.
4987 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4988 since some C++ compilers masquerading as C compilers
4989 incorrectly reject 9223372036854775807. */
4990 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4991 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4992 && LARGE_OFF_T % 2147483647 == 1)
5002 if ac_fn_c_try_compile
"$LINENO"; then :
5003 ac_cv_sys_large_files
=no
; break
5005 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5007 /* end confdefs.h. */
5008 #define _LARGE_FILES 1
5009 #include <sys/types.h>
5010 /* Check that off_t can represent 2**63 - 1 correctly.
5011 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5012 since some C++ compilers masquerading as C compilers
5013 incorrectly reject 9223372036854775807. */
5014 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5015 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5016 && LARGE_OFF_T % 2147483647 == 1)
5026 if ac_fn_c_try_compile
"$LINENO"; then :
5027 ac_cv_sys_large_files
=1; break
5029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5030 ac_cv_sys_large_files
=unknown
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5035 $as_echo "$ac_cv_sys_large_files" >&6; }
5036 case $ac_cv_sys_large_files in #(
5039 cat >>confdefs.h
<<_ACEOF
5040 #define _LARGE_FILES $ac_cv_sys_large_files
5051 # Expand $ac_aux_dir to an absolute path.
5052 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
5054 if test x
"${install_sh+set}" != xset
; then
5057 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
5059 install_sh
="\${SHELL} $am_aux_dir/install-sh"
5063 # Installed binaries are usually stripped using 'strip' when the user
5064 # run "make install-strip". However 'strip' might not be the right
5065 # tool to use in cross-compilation environments, therefore Automake
5066 # will honor the 'STRIP' environment variable to overrule this program.
5067 if test "$cross_compiling" != no
; then
5068 if test -n "$ac_tool_prefix"; then
5069 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5070 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5072 $as_echo_n "checking for $ac_word... " >&6; }
5073 if ${ac_cv_prog_STRIP+:} false
; then :
5074 $as_echo_n "(cached) " >&6
5076 if test -n "$STRIP"; then
5077 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5079 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5083 test -z "$as_dir" && as_dir
=.
5084 for ac_exec_ext
in '' $ac_executable_extensions; do
5085 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5086 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5096 STRIP
=$ac_cv_prog_STRIP
5097 if test -n "$STRIP"; then
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5099 $as_echo "$STRIP" >&6; }
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5102 $as_echo "no" >&6; }
5107 if test -z "$ac_cv_prog_STRIP"; then
5109 # Extract the first word of "strip", so it can be a program name with args.
5110 set dummy strip
; ac_word
=$2
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5112 $as_echo_n "checking for $ac_word... " >&6; }
5113 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
5114 $as_echo_n "(cached) " >&6
5116 if test -n "$ac_ct_STRIP"; then
5117 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5119 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5123 test -z "$as_dir" && as_dir
=.
5124 for ac_exec_ext
in '' $ac_executable_extensions; do
5125 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5126 ac_cv_prog_ac_ct_STRIP
="strip"
5127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5136 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5137 if test -n "$ac_ct_STRIP"; then
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5139 $as_echo "$ac_ct_STRIP" >&6; }
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5142 $as_echo "no" >&6; }
5145 if test "x$ac_ct_STRIP" = x
; then
5148 case $cross_compiling:$ac_tool_warned in
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5152 ac_tool_warned
=yes ;;
5157 STRIP
="$ac_cv_prog_STRIP"
5161 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
5165 for ac_dir
in ..
"$srcdir"/..
; do
5166 if test -f "$ac_dir/install-sh"; then
5168 ac_install_sh
="$ac_aux_dir/install-sh -c"
5170 elif test -f "$ac_dir/install.sh"; then
5172 ac_install_sh
="$ac_aux_dir/install.sh -c"
5174 elif test -f "$ac_dir/shtool"; then
5176 ac_install_sh
="$ac_aux_dir/shtool install -c"
5180 if test -z "$ac_aux_dir"; then
5181 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
5184 # These three variables are undocumented and unsupported,
5185 # and are intended to be withdrawn in a future Autoconf release.
5186 # They can cause serious problems if a builder's source tree is in a directory
5187 # whose full name contains unusual characters.
5188 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5189 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5190 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5194 # Set build, build_cpu, build_vendor and build_os.
5197 # Set host, host_cpu, host_vendor, and host_os.
5200 # Set target, target_cpu, target_vendor, and target_os.
5203 case ${build_alias} in
5204 "") build_noncanonical
=${build} ;;
5205 *) build_noncanonical
=${build_alias} ;;
5208 case ${host_alias} in
5209 "") host_noncanonical
=${build_noncanonical} ;;
5210 *) host_noncanonical
=${host_alias} ;;
5213 case ${target_alias} in
5214 "") target_noncanonical
=${host_noncanonical} ;;
5215 *) target_noncanonical
=${target_alias} ;;
5221 test "$program_prefix" != NONE
&&
5222 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
5223 # Use a double $ so make ignores it.
5224 test "$program_suffix" != NONE
&&
5225 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
5226 # Double any \ or $.
5227 # By default was `s,x,x', remove it if useless.
5228 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
5229 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
5232 # We require a C++11 compiler. Check if one is available, and if
5233 # necessary, set CXX_DIALECT to some -std=xxx switch.
5235 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5237 ac_cpp
='$CXXCPP $CPPFLAGS'
5238 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5239 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5240 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5244 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5245 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5246 $as_echo_n "(cached) " >&6
5248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5249 /* end confdefs.h. */
5252 // If the compiler admits that it is not ready for C++11, why torture it?
5253 // Hopefully, this will speed up the test.
5257 #error "This is not a C++ compiler"
5259 #elif __cplusplus < 201103L
5261 #error "This is not a C++11 compiler"
5268 namespace test_static_assert
5271 template <typename T>
5274 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5279 namespace test_final_override
5287 struct Derived : public Base
5289 virtual void f() override {}
5294 namespace test_double_right_angle_brackets
5297 template < typename T >
5300 typedef check<void> single_type;
5301 typedef check<check<void>> double_type;
5302 typedef check<check<check<void>>> triple_type;
5303 typedef check<check<check<check<void>>>> quadruple_type;
5307 namespace test_decltype
5320 namespace test_type_deduction
5323 template < typename T1, typename T2 >
5326 static const bool value = false;
5329 template < typename T >
5330 struct is_same<T, T>
5332 static const bool value = true;
5335 template < typename T1, typename T2 >
5337 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5343 test(const int c, volatile int v)
5345 static_assert(is_same<int, decltype(0)>::value == true, "");
5346 static_assert(is_same<int, decltype(c)>::value == false, "");
5347 static_assert(is_same<int, decltype(v)>::value == false, "");
5350 auto sumi = ac + av + 'x';
5351 auto sumf = ac + av + 1.0;
5352 static_assert(is_same<int, decltype(ac)>::value == true, "");
5353 static_assert(is_same<int, decltype(av)>::value == true, "");
5354 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5355 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5356 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5357 return (sumf > 0.0) ? sumi : add(c, v);
5362 namespace test_noexcept
5365 int f() { return 0; }
5366 int g() noexcept { return 0; }
5368 static_assert(noexcept(f()) == false, "");
5369 static_assert(noexcept(g()) == true, "");
5373 namespace test_constexpr
5376 template < typename CharT >
5377 unsigned long constexpr
5378 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5380 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5383 template < typename CharT >
5384 unsigned long constexpr
5385 strlen_c(const CharT *const s) noexcept
5387 return strlen_c_r(s, 0UL);
5390 static_assert(strlen_c("") == 0UL, "");
5391 static_assert(strlen_c("1") == 1UL, "");
5392 static_assert(strlen_c("example") == 7UL, "");
5393 static_assert(strlen_c("another\0example") == 7UL, "");
5397 namespace test_rvalue_references
5403 static constexpr int value = N;
5406 answer<1> f(int&) { return answer<1>(); }
5407 answer<2> f(const int&) { return answer<2>(); }
5408 answer<3> f(int&&) { return answer<3>(); }
5415 static_assert(decltype(f(i))::value == 1, "");
5416 static_assert(decltype(f(c))::value == 2, "");
5417 static_assert(decltype(f(0))::value == 3, "");
5422 namespace test_uniform_initialization
5427 static const int zero {};
5428 static const int one {1};
5431 static_assert(test::zero == 0, "");
5432 static_assert(test::one == 1, "");
5436 namespace test_lambdas
5442 auto lambda1 = [](){};
5443 auto lambda2 = lambda1;
5451 auto a = [](int i, int j){ return i + j; }(1, 2);
5452 auto b = []() -> int { return '0'; }();
5453 auto c = [=](){ return a + b; }();
5454 auto d = [&](){ return c; }();
5455 auto e = [a, &b](int x) mutable {
5456 const auto identity = [](int y){ return y; };
5457 for (auto i = 0; i < a; ++i)
5459 return x + identity(a + b);
5461 return a + b + c + d + e;
5467 const auto nullary = [](){ return 0; };
5468 const auto unary = [](int x){ return x; };
5469 using nullary_t = decltype(nullary);
5470 using unary_t = decltype(unary);
5471 const auto higher1st = [](nullary_t f){ return f(); };
5472 const auto higher2nd = [unary](nullary_t f1){
5473 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5475 return higher1st(nullary) + higher2nd(nullary)(unary);
5480 namespace test_variadic_templates
5486 template <int N0, int... N1toN>
5487 struct sum<N0, N1toN...>
5489 static constexpr auto value = N0 + sum<N1toN...>::value;
5495 static constexpr auto value = 0;
5498 static_assert(sum<>::value == 0, "");
5499 static_assert(sum<1>::value == 1, "");
5500 static_assert(sum<23>::value == 23, "");
5501 static_assert(sum<1, 2>::value == 3, "");
5502 static_assert(sum<5, 5, 11>::value == 21, "");
5503 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5507 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5508 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5510 namespace test_template_alias_sfinae
5515 template<typename T>
5516 using member = typename T::member_type;
5518 template<typename T>
5521 template<typename T>
5522 void func(member<T>*) {}
5526 void test() { func<foo>(0); }
5530 } // namespace cxx11
5532 #endif // __cplusplus >= 201103L
5537 if ac_fn_cxx_try_compile
"$LINENO"; then :
5538 ax_cv_cxx_compile_cxx11
=yes
5540 ax_cv_cxx_compile_cxx11
=no
5542 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5545 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5546 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
5550 if test x
$ac_success = xno
; then
5551 for alternative
in ${ax_cxx_compile_alternatives}; do
5552 switch
="-std=gnu++${alternative}"
5553 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5555 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5556 if eval \
${$cachevar+:} false
; then :
5557 $as_echo_n "(cached) " >&6
5561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5562 /* end confdefs.h. */
5565 // If the compiler admits that it is not ready for C++11, why torture it?
5566 // Hopefully, this will speed up the test.
5570 #error "This is not a C++ compiler"
5572 #elif __cplusplus < 201103L
5574 #error "This is not a C++11 compiler"
5581 namespace test_static_assert
5584 template <typename T>
5587 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5592 namespace test_final_override
5600 struct Derived : public Base
5602 virtual void f() override {}
5607 namespace test_double_right_angle_brackets
5610 template < typename T >
5613 typedef check<void> single_type;
5614 typedef check<check<void>> double_type;
5615 typedef check<check<check<void>>> triple_type;
5616 typedef check<check<check<check<void>>>> quadruple_type;
5620 namespace test_decltype
5633 namespace test_type_deduction
5636 template < typename T1, typename T2 >
5639 static const bool value = false;
5642 template < typename T >
5643 struct is_same<T, T>
5645 static const bool value = true;
5648 template < typename T1, typename T2 >
5650 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5656 test(const int c, volatile int v)
5658 static_assert(is_same<int, decltype(0)>::value == true, "");
5659 static_assert(is_same<int, decltype(c)>::value == false, "");
5660 static_assert(is_same<int, decltype(v)>::value == false, "");
5663 auto sumi = ac + av + 'x';
5664 auto sumf = ac + av + 1.0;
5665 static_assert(is_same<int, decltype(ac)>::value == true, "");
5666 static_assert(is_same<int, decltype(av)>::value == true, "");
5667 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5668 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5669 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5670 return (sumf > 0.0) ? sumi : add(c, v);
5675 namespace test_noexcept
5678 int f() { return 0; }
5679 int g() noexcept { return 0; }
5681 static_assert(noexcept(f()) == false, "");
5682 static_assert(noexcept(g()) == true, "");
5686 namespace test_constexpr
5689 template < typename CharT >
5690 unsigned long constexpr
5691 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5693 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5696 template < typename CharT >
5697 unsigned long constexpr
5698 strlen_c(const CharT *const s) noexcept
5700 return strlen_c_r(s, 0UL);
5703 static_assert(strlen_c("") == 0UL, "");
5704 static_assert(strlen_c("1") == 1UL, "");
5705 static_assert(strlen_c("example") == 7UL, "");
5706 static_assert(strlen_c("another\0example") == 7UL, "");
5710 namespace test_rvalue_references
5716 static constexpr int value = N;
5719 answer<1> f(int&) { return answer<1>(); }
5720 answer<2> f(const int&) { return answer<2>(); }
5721 answer<3> f(int&&) { return answer<3>(); }
5728 static_assert(decltype(f(i))::value == 1, "");
5729 static_assert(decltype(f(c))::value == 2, "");
5730 static_assert(decltype(f(0))::value == 3, "");
5735 namespace test_uniform_initialization
5740 static const int zero {};
5741 static const int one {1};
5744 static_assert(test::zero == 0, "");
5745 static_assert(test::one == 1, "");
5749 namespace test_lambdas
5755 auto lambda1 = [](){};
5756 auto lambda2 = lambda1;
5764 auto a = [](int i, int j){ return i + j; }(1, 2);
5765 auto b = []() -> int { return '0'; }();
5766 auto c = [=](){ return a + b; }();
5767 auto d = [&](){ return c; }();
5768 auto e = [a, &b](int x) mutable {
5769 const auto identity = [](int y){ return y; };
5770 for (auto i = 0; i < a; ++i)
5772 return x + identity(a + b);
5774 return a + b + c + d + e;
5780 const auto nullary = [](){ return 0; };
5781 const auto unary = [](int x){ return x; };
5782 using nullary_t = decltype(nullary);
5783 using unary_t = decltype(unary);
5784 const auto higher1st = [](nullary_t f){ return f(); };
5785 const auto higher2nd = [unary](nullary_t f1){
5786 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5788 return higher1st(nullary) + higher2nd(nullary)(unary);
5793 namespace test_variadic_templates
5799 template <int N0, int... N1toN>
5800 struct sum<N0, N1toN...>
5802 static constexpr auto value = N0 + sum<N1toN...>::value;
5808 static constexpr auto value = 0;
5811 static_assert(sum<>::value == 0, "");
5812 static_assert(sum<1>::value == 1, "");
5813 static_assert(sum<23>::value == 23, "");
5814 static_assert(sum<1, 2>::value == 3, "");
5815 static_assert(sum<5, 5, 11>::value == 21, "");
5816 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5820 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5821 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5823 namespace test_template_alias_sfinae
5828 template<typename T>
5829 using member = typename T::member_type;
5831 template<typename T>
5834 template<typename T>
5835 void func(member<T>*) {}
5839 void test() { func<foo>(0); }
5843 } // namespace cxx11
5845 #endif // __cplusplus >= 201103L
5850 if ac_fn_cxx_try_compile
"$LINENO"; then :
5855 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5858 eval ac_res
=\$
$cachevar
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5860 $as_echo "$ac_res" >&6; }
5861 if eval test x\$
$cachevar = xyes
; then
5862 CXX_DIALECT
="$switch"
5864 if test -n "$CXXCPP" ; then
5865 CXXCPP
="$CXXCPP $switch"
5873 if test x
$ac_success = xno
; then
5874 for alternative
in ${ax_cxx_compile_alternatives}; do
5875 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5876 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
5878 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
5879 if eval \${$cachevar+:} false; then :
5880 $as_echo_n "(cached
) " >&6
5884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885 /* end confdefs.h. */
5888 // If the compiler admits that it is not ready for C++11, why torture it?
5889 // Hopefully, this will speed up the test.
5893 #error "This is not a C
++ compiler
"
5895 #elif __cplusplus < 201103L
5897 #error "This is not a C
++11 compiler
"
5904 namespace test_static_assert
5907 template <typename T>
5910 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
5915 namespace test_final_override
5923 struct Derived : public Base
5925 virtual void f() override {}
5930 namespace test_double_right_angle_brackets
5933 template < typename T >
5936 typedef check<void> single_type;
5937 typedef check<check<void>> double_type;
5938 typedef check<check<check<void>>> triple_type;
5939 typedef check<check<check<check<void>>>> quadruple_type;
5943 namespace test_decltype
5956 namespace test_type_deduction
5959 template < typename T1, typename T2 >
5962 static const bool value = false;
5965 template < typename T >
5966 struct is_same<T, T>
5968 static const bool value = true;
5971 template < typename T1, typename T2 >
5973 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5979 test(const int c, volatile int v)
5981 static_assert(is_same<int, decltype(0)>::value == true, "");
5982 static_assert(is_same<int, decltype(c)>::value == false, "");
5983 static_assert(is_same<int, decltype(v)>::value == false, "");
5986 auto sumi = ac + av + 'x';
5987 auto sumf = ac + av + 1.0;
5988 static_assert(is_same<int, decltype(ac)>::value == true, "");
5989 static_assert(is_same<int, decltype(av)>::value == true, "");
5990 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5991 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5992 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5993 return (sumf > 0.0) ? sumi : add(c, v);
5998 namespace test_noexcept
6001 int f() { return 0; }
6002 int g() noexcept { return 0; }
6004 static_assert(noexcept(f()) == false, "");
6005 static_assert(noexcept(g()) == true, "");
6009 namespace test_constexpr
6012 template < typename CharT >
6013 unsigned long constexpr
6014 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6016 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6019 template < typename CharT >
6020 unsigned long constexpr
6021 strlen_c(const CharT *const s) noexcept
6023 return strlen_c_r(s, 0UL);
6026 static_assert(strlen_c("") == 0UL, "");
6027 static_assert(strlen_c("1") == 1UL, "");
6028 static_assert(strlen_c("example
") == 7UL, "");
6029 static_assert(strlen_c("another\
0example
") == 7UL, "");
6033 namespace test_rvalue_references
6039 static constexpr int value = N;
6042 answer<1> f(int&) { return answer<1>(); }
6043 answer<2> f(const int&) { return answer<2>(); }
6044 answer<3> f(int&&) { return answer<3>(); }
6051 static_assert(decltype(f(i))::value == 1, "");
6052 static_assert(decltype(f(c))::value == 2, "");
6053 static_assert(decltype(f(0))::value == 3, "");
6058 namespace test_uniform_initialization
6063 static const int zero {};
6064 static const int one {1};
6067 static_assert(test::zero == 0, "");
6068 static_assert(test::one == 1, "");
6072 namespace test_lambdas
6078 auto lambda1 = [](){};
6079 auto lambda2 = lambda1;
6087 auto a = [](int i, int j){ return i + j; }(1, 2);
6088 auto b = []() -> int { return '0'; }();
6089 auto c = [=](){ return a + b; }();
6090 auto d = [&](){ return c; }();
6091 auto e = [a, &b](int x) mutable {
6092 const auto identity = [](int y){ return y; };
6093 for (auto i = 0; i < a; ++i)
6095 return x + identity(a + b);
6097 return a + b + c + d + e;
6103 const auto nullary = [](){ return 0; };
6104 const auto unary = [](int x){ return x; };
6105 using nullary_t = decltype(nullary);
6106 using unary_t = decltype(unary);
6107 const auto higher1st = [](nullary_t f){ return f(); };
6108 const auto higher2nd = [unary](nullary_t f1){
6109 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6111 return higher1st(nullary) + higher2nd(nullary)(unary);
6116 namespace test_variadic_templates
6122 template <int N0, int... N1toN>
6123 struct sum<N0, N1toN...>
6125 static constexpr auto value = N0 + sum<N1toN...>::value;
6131 static constexpr auto value = 0;
6134 static_assert(sum<>::value == 0, "");
6135 static_assert(sum<1>::value == 1, "");
6136 static_assert(sum<23>::value == 23, "");
6137 static_assert(sum<1, 2>::value == 3, "");
6138 static_assert(sum<5, 5, 11>::value == 21, "");
6139 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6143 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6144 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6146 namespace test_template_alias_sfinae
6151 template<typename T>
6152 using member = typename T::member_type;
6154 template<typename T>
6157 template<typename T>
6158 void func(member<T>*) {}
6162 void test() { func<foo>(0); }
6166 } // namespace cxx11
6168 #endif // __cplusplus >= 201103L
6173 if ac_fn_cxx_try_compile "$LINENO"; then :
6178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6181 eval ac_res=\$$cachevar
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6183 $as_echo "$ac_res" >&6; }
6184 if eval test x\$$cachevar = xyes; then
6185 CXX_DIALECT="$switch"
6187 if test -n "$CXXCPP" ; then
6188 CXXCPP="$CXXCPP $switch"
6194 if test x$ac_success = xyes; then
6200 ac_cpp='$CPP $CPPFLAGS'
6201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6205 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6206 if test x$ac_success = xno; then
6207 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6210 if test x$ac_success = xno; then
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6213 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6217 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6224 # Dependency checking.
6225 rm -rf .tst
2>/dev
/null
6226 mkdir .tst
2>/dev
/null
6227 if test -d .tst
; then
6232 rmdir .tst
2>/dev
/null
6234 DEPDIR
="${am__leading_dot}deps"
6236 ac_config_commands
="$ac_config_commands depdir"
6239 depcc
="$CC" am_compiler_list
=
6241 am_depcomp
=$ac_aux_dir/depcomp
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6243 $as_echo_n "checking dependency style of $depcc... " >&6; }
6244 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
6245 $as_echo_n "(cached) " >&6
6247 if test -f "$am_depcomp"; then
6248 # We make a subdir and do the tests there. Otherwise we can end up
6249 # making bogus files that we don't know about and never remove. For
6250 # instance it was reported that on HP-UX the gcc test will end up
6251 # making a dummy file named `D' -- because `-MD' means `put the output
6254 # Copy depcomp to subdir because otherwise we won't find it if we're
6255 # using a relative directory.
6256 cp "$am_depcomp" conftest.dir
6258 # We will build objects and dependencies in a subdirectory because
6259 # it helps to detect inapplicable dependency modes. For instance
6260 # both Tru64's cc and ICC support -MD to output dependencies as a
6261 # side effect of compilation, but ICC will put the dependencies in
6262 # the current directory while Tru64 will put them in the object
6266 am_cv_CC_dependencies_compiler_type
=none
6267 if test "$am_compiler_list" = ""; then
6268 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6270 for depmode
in $am_compiler_list; do
6271 if test $depmode = none
; then break; fi
6273 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6274 # Setup a source with many dependencies, because some compilers
6275 # like to wrap large dependency lists on column 80 (with \), and
6276 # we should not choose a depcomp mode which is confused by this.
6278 # We need to recreate these files for each test, as the compiler may
6279 # overwrite some of them when testing with obscure command lines.
6280 # This happens at least with the AIX C compiler.
6282 for i
in 1 2 3 4 5 6; do
6283 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6284 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6285 # Solaris 8's {/usr,}/bin/sh.
6286 touch sub
/conftst
$i.h
6288 echo "include sub/conftest.Po" > confmf
6290 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6291 # mode. It turns out that the SunPro C++ compiler does not properly
6292 # handle `-M -o', and we need to detect this.
6293 depcmd
="depmode=$depmode \
6294 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6295 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6296 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6297 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
6298 if env
$depcmd > conftest.err
2>&1 &&
6299 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
6300 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
6301 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
6302 # icc doesn't choke on unknown options, it will just issue warnings
6303 # or remarks (even with -Werror). So we grep stderr for any message
6304 # that says an option was ignored or not supported.
6305 # When given -MP, icc 7.0 and 7.1 complain thusly:
6306 # icc: Command line warning: ignoring option '-M'; no argument required
6307 # The diagnosis changed in icc 8.0:
6308 # icc: Command line remark: option '-MP' not supported
6309 if (grep 'ignoring option' conftest.err ||
6310 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6311 am_cv_CC_dependencies_compiler_type
=$depmode
6312 $as_echo "$as_me:$LINENO: success" >&5
6316 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6317 sed -e 's/^/| /' < conftest.err
>&5
6323 am_cv_CC_dependencies_compiler_type
=none
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6328 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6329 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
6330 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
6331 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
6347 # If we haven't got the data from the intl directory,
6348 # assume NLS is disabled.
6357 if test -f ..
/intl
/config.intl
; then
6358 . ..
/intl
/config.intl
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6361 $as_echo_n "checking whether NLS is requested... " >&6; }
6362 if test x
"$USE_NLS" != xyes
; then
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6364 $as_echo "no" >&6; }
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6367 $as_echo "yes" >&6; }
6369 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6373 $as_echo_n "checking for catalogs to be installed... " >&6; }
6374 # Look for .po and .gmo files in the source directory.
6377 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
6378 # If there aren't any .gmo files the shell will give us the
6379 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6381 case "$cat" in *\
**)
6384 # The quadruple backslash is collapsed to a double backslash
6385 # by the backticks, then collapsed again by the double quotes,
6386 # leaving us with one backslash in the sed expression (right
6387 # before the dot that mustn't act as a wildcard).
6388 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6389 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
6390 # The user is allowed to set LINGUAS to a list of languages to
6391 # install catalogs for. If it's empty that means "all of them."
6392 if test "x$LINGUAS" = x
; then
6393 CATALOGS
="$CATALOGS $cat"
6394 XLINGUAS
="$XLINGUAS $lang"
6396 case "$LINGUAS" in *$lang*)
6397 CATALOGS
="$CATALOGS $cat"
6398 XLINGUAS
="$XLINGUAS $lang"
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6405 $as_echo "$LINGUAS" >&6; }
6418 localedir
='${datadir}/locale'
6421 if test x
"$USE_NLS" = xyes
; then
6422 CONFIG_ALL
="$CONFIG_ALL all-po"
6423 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
6424 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
6425 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
6430 cat >>confdefs.h
<<_ACEOF
6431 #define PACKAGE "$PACKAGE"
6436 # We never need to detect it in this sub-configure.
6437 # But preserve it for config.status --recheck.
6441 MAKEINFO_EXTRA_FLAGS
=""
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
6443 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
6444 if ${gdb_cv_have_makeinfo_click+:} false
; then :
6445 $as_echo_n "(cached) " >&6
6447 echo '@clicksequence{a @click{} b}' >conftest.texinfo
6448 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
6449 gdb_cv_have_makeinfo_click
=yes
6451 gdb_cv_have_makeinfo_click
=no
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
6455 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
6456 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
6457 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
6463 # Check whether --with-separate-debug-dir was given.
6464 if test "${with_separate_debug_dir+set}" = set; then :
6465 withval
=$with_separate_debug_dir;
6468 DEBUGDIR
=${libdir}/debug
6472 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6473 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6474 ac_define_dir
=`eval echo $DEBUGDIR`
6475 ac_define_dir
=`eval echo $ac_define_dir`
6477 cat >>confdefs.h
<<_ACEOF
6478 #define DEBUGDIR "$ac_define_dir"
6484 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6485 if test "x$prefix" = xNONE
; then
6486 test_prefix
=/usr
/local
6491 test_prefix
=$exec_prefix
6494 case ${ac_define_dir} in
6495 "${test_prefix}"|
"${test_prefix}/"*|\
6496 '${exec_prefix}'|
'${exec_prefix}/'*)
6501 cat >>confdefs.h
<<_ACEOF
6502 #define DEBUGDIR_RELOCATABLE $value
6508 # We can't pass paths as command line arguments.
6509 # Mingw32 tries to be clever and will convert the paths for us.
6510 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
6511 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
6512 # This breaks GDB's relocatable path conversions since paths passed in
6513 # config.h would not get so translated, the path prefixes no longer match.
6515 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6516 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6517 ac_define_dir
=`eval echo $bindir`
6518 ac_define_dir
=`eval echo $ac_define_dir`
6520 cat >>confdefs.h
<<_ACEOF
6521 #define BINDIR "$ac_define_dir"
6526 # GDB's datadir relocation
6530 # Check whether --with-gdb-datadir was given.
6531 if test "${with_gdb_datadir+set}" = set; then :
6532 withval
=$with_gdb_datadir;
6533 GDB_DATADIR
=$withval
6535 GDB_DATADIR
=${datadir}/gdb
6539 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6540 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6541 ac_define_dir
=`eval echo $GDB_DATADIR`
6542 ac_define_dir
=`eval echo $ac_define_dir`
6544 cat >>confdefs.h
<<_ACEOF
6545 #define GDB_DATADIR "$ac_define_dir"
6551 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6552 if test "x$prefix" = xNONE
; then
6553 test_prefix
=/usr
/local
6558 test_prefix
=$exec_prefix
6561 case ${ac_define_dir} in
6562 "${test_prefix}"|
"${test_prefix}/"*|\
6563 '${exec_prefix}'|
'${exec_prefix}/'*)
6568 cat >>confdefs.h
<<_ACEOF
6569 #define GDB_DATADIR_RELOCATABLE $value
6576 # Check whether --with-relocated-sources was given.
6577 if test "${with_relocated_sources+set}" = set; then :
6578 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
6580 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6581 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6582 ac_define_dir
=`eval echo $reloc_srcdir`
6583 ac_define_dir
=`eval echo $ac_define_dir`
6585 cat >>confdefs.h
<<_ACEOF
6586 #define RELOC_SRCDIR "$ac_define_dir"
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
6595 $as_echo_n "checking for default auto-load directory... " >&6; }
6597 # Check whether --with-auto-load-dir was given.
6598 if test "${with_auto_load_dir+set}" = set; then :
6599 withval
=$with_auto_load_dir;
6601 with_auto_load_dir
='$debugdir:$datadir/auto-load'
6604 escape_dir
=`echo $with_auto_load_dir | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6606 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6607 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6608 ac_define_dir
=`eval echo $escape_dir`
6609 ac_define_dir
=`eval echo $ac_define_dir`
6611 cat >>confdefs.h
<<_ACEOF
6612 #define AUTO_LOAD_DIR "$ac_define_dir"
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
6617 $as_echo "$with_auto_load_dir" >&6; }
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
6620 $as_echo_n "checking for default auto-load safe-path... " >&6; }
6622 # Check whether --with-auto-load-safe-path was given.
6623 if test "${with_auto_load_safe_path+set}" = set; then :
6624 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
6625 with_auto_load_safe_path
="/"
6628 with_auto_load_safe_path
="$with_auto_load_dir"
6631 escape_dir
=`echo $with_auto_load_safe_path | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6633 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6634 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6635 ac_define_dir
=`eval echo $escape_dir`
6636 ac_define_dir
=`eval echo $ac_define_dir`
6638 cat >>confdefs.h
<<_ACEOF
6639 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
6644 $as_echo "$with_auto_load_safe_path" >&6; }
6648 subdirs
="$subdirs testsuite"
6651 # Check whether to support alternative target configurations
6652 # Check whether --enable-targets was given.
6653 if test "${enable_targets+set}" = set; then :
6654 enableval
=$enable_targets; case "${enableval}" in
6655 yes |
"") as_fn_error $?
"enable-targets option must specify target names or 'all'" "$LINENO" 5
6657 no
) enable_targets
= ;;
6658 *) enable_targets
=$enableval ;;
6663 # Check whether --enable-64-bit-bfd was given.
6664 if test "${enable_64_bit_bfd+set}" = set; then :
6665 enableval
=$enable_64_bit_bfd; case $enableval in #(
6669 as_fn_error $?
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; #(
6674 enable_64_bit_bfd
=no
6678 if test "x$enable_64_bit_bfd" = "xno"; then :
6679 # The cast to long int works around a bug in the HP C Compiler
6680 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6681 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6682 # This bug is HP SR number 8606223364.
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6684 $as_echo_n "checking size of void *... " >&6; }
6685 if ${ac_cv_sizeof_void_p+:} false
; then :
6686 $as_echo_n "(cached) " >&6
6688 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6691 if test "$ac_cv_type_void_p" = yes; then
6692 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6694 as_fn_error
77 "cannot compute sizeof (void *)
6695 See \`config.log' for more details" "$LINENO" 5; }
6697 ac_cv_sizeof_void_p
=0
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6703 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6707 cat >>confdefs.h
<<_ACEOF
6708 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6712 if test "x$ac_cv_sizeof_void_p" = "x8"; then :
6713 enable_64_bit_bfd
=yes
6718 if test "x$enable_64_bit_bfd" = "xyes"; then
6719 ENABLE_BFD_64_BIT_TRUE
=
6720 ENABLE_BFD_64_BIT_FALSE
='#'
6722 ENABLE_BFD_64_BIT_TRUE
='#'
6723 ENABLE_BFD_64_BIT_FALSE
=
6728 # Provide defaults for some variables set by the per-host and per-target
6730 gdb_host_obs
=posix-hdep.o
6732 if test "${target}" = "${host}"; then
6738 .
$srcdir/configure.
host
6740 # Accumulate some settings from configure.tgt over all enabled targets
6744 HAVE_NATIVE_GCORE_TARGET
=
6746 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6748 if test "$targ_alias" = "all"; then
6751 # Canonicalize the secondary target names.
6752 result
=`$ac_config_sub $targ_alias 2>/dev/null`
6753 if test -n "$result"; then
6759 .
${srcdir}/configure.tgt
6761 if test -z "${gdb_target_obs}"; then :
6762 as_fn_error $?
"configuration ${targ} is unsupported." "$LINENO" 5
6765 # Target-specific object files
6766 for i
in ${gdb_target_obs}; do
6767 case " $TARGET_OBS " in
6770 TARGET_OBS
="$TARGET_OBS ${i}"
6775 # Check whether this target needs 64-bit CORE_ADDR
6776 if test x
${enable_64_bit_bfd} = xno
; then
6777 .
${srcdir}/..
/bfd
/config.bfd
6780 # Check whether this target is native and supports gcore.
6781 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
6782 && $gdb_have_gcore; then
6783 HAVE_NATIVE_GCORE_TARGET
=1
6788 if test x
${all_targets} = xtrue
; then
6789 if test x
${enable_64_bit_bfd} = xyes
; then
6790 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
6792 TARGET_OBS
='$(ALL_TARGET_OBS)'
6799 # For other settings, only the main target counts.
6802 targ
=$target; .
${srcdir}/configure.tgt
6804 # Fetch the default architecture and default target vector from BFD.
6805 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
6807 # We only want the first architecture, so strip off the others if
6808 # there is more than one.
6809 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
6811 if test "x$targ_archs" != x
; then
6813 cat >>confdefs.h
<<_ACEOF
6814 #define DEFAULT_BFD_ARCH $targ_archs
6818 if test "x$targ_defvec" != x
; then
6820 cat >>confdefs.h
<<_ACEOF
6821 #define DEFAULT_BFD_VEC $targ_defvec
6827 # Check whether --enable-gdbmi was given.
6828 if test "${enable_gdbmi+set}" = set; then :
6829 enableval
=$enable_gdbmi;
6834 as_fn_error $?
"bad value $enableval for --enable-gdbmi" "$LINENO" 5
6842 if test x
"$enable_gdbmi" = xyes
; then
6843 if test -d "$srcdir/mi"; then
6844 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6845 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6846 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6847 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6852 # Check whether --enable-tui was given.
6853 if test "${enable_tui+set}" = set; then :
6854 enableval
=$enable_tui;
6859 as_fn_error $?
"bad value $enableval for --enable-tui" "$LINENO" 5
6869 # Check whether --enable-gdbtk was given.
6870 if test "${enable_gdbtk+set}" = set; then :
6871 enableval
=$enable_gdbtk;
6876 as_fn_error $?
"bad value $enableval for --enable-gdbtk" "$LINENO" 5
6881 if test -d "$srcdir/gdbtk"; then
6888 # We unconditionally disable gdbtk tests on selected platforms.
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
6892 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6896 # Handle optional debuginfod support
6904 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6905 if test -n "$ac_tool_prefix"; then
6906 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6907 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6909 $as_echo_n "checking for $ac_word... " >&6; }
6910 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
6911 $as_echo_n "(cached) " >&6
6915 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6918 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6922 test -z "$as_dir" && as_dir
=.
6923 for ac_exec_ext
in '' $ac_executable_extensions; do
6924 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6925 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6936 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6937 if test -n "$PKG_CONFIG"; then
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6939 $as_echo "$PKG_CONFIG" >&6; }
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6942 $as_echo "no" >&6; }
6947 if test -z "$ac_cv_path_PKG_CONFIG"; then
6948 ac_pt_PKG_CONFIG
=$PKG_CONFIG
6949 # Extract the first word of "pkg-config", so it can be a program name with args.
6950 set dummy pkg-config
; ac_word
=$2
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6952 $as_echo_n "checking for $ac_word... " >&6; }
6953 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
6954 $as_echo_n "(cached) " >&6
6956 case $ac_pt_PKG_CONFIG in
6958 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6961 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6965 test -z "$as_dir" && as_dir
=.
6966 for ac_exec_ext
in '' $ac_executable_extensions; do
6967 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6968 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6979 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
6980 if test -n "$ac_pt_PKG_CONFIG"; then
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6982 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6985 $as_echo "no" >&6; }
6988 if test "x$ac_pt_PKG_CONFIG" = x
; then
6991 case $cross_compiling:$ac_tool_warned in
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6995 ac_tool_warned
=yes ;;
6997 PKG_CONFIG
=$ac_pt_PKG_CONFIG
7000 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
7004 if test -n "$PKG_CONFIG"; then
7005 _pkg_min_version
=0.9.0
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7007 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7008 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7010 $as_echo "yes" >&6; }
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7013 $as_echo "no" >&6; }
7018 # Handle optional debuginfod support
7020 # Check whether --with-debuginfod was given.
7021 if test "${with_debuginfod+set}" = set; then :
7022 withval
=$with_debuginfod;
7024 with_debuginfod
=auto
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
7028 $as_echo_n "checking whether to use debuginfod... " >&6; }
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
7030 $as_echo "$with_debuginfod" >&6; }
7032 if test "x$with_debuginfod" != xno
; then
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
7036 $as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
7038 if test -n "$DEBUGINFOD_CFLAGS"; then
7039 pkg_cv_DEBUGINFOD_CFLAGS
="$DEBUGINFOD_CFLAGS"
7040 elif test -n "$PKG_CONFIG"; then
7041 if test -n "$PKG_CONFIG" && \
7042 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
7043 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
7045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7046 test $ac_status = 0; }; then
7047 pkg_cv_DEBUGINFOD_CFLAGS
=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
7048 test "x$?" != "x0" && pkg_failed
=yes
7055 if test -n "$DEBUGINFOD_LIBS"; then
7056 pkg_cv_DEBUGINFOD_LIBS
="$DEBUGINFOD_LIBS"
7057 elif test -n "$PKG_CONFIG"; then
7058 if test -n "$PKG_CONFIG" && \
7059 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
7060 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
7062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7063 test $ac_status = 0; }; then
7064 pkg_cv_DEBUGINFOD_LIBS
=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
7065 test "x$?" != "x0" && pkg_failed
=yes
7073 if test $pkg_failed = no
; then
7074 pkg_save_LDFLAGS
="$LDFLAGS"
7075 LDFLAGS
="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
7076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7077 /* end confdefs.h. */
7087 if ac_fn_c_try_link
"$LINENO"; then :
7092 rm -f core conftest.err conftest.
$ac_objext \
7093 conftest
$ac_exeext conftest.
$ac_ext
7094 LDFLAGS
=$pkg_save_LDFLAGS
7099 if test $pkg_failed = yes; then
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101 $as_echo "no" >&6; }
7103 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7104 _pkg_short_errors_supported
=yes
7106 _pkg_short_errors_supported
=no
7108 if test $_pkg_short_errors_supported = yes; then
7109 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
7111 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
7113 # Put the nasty error message in config.log where it belongs
7114 echo "$DEBUGINFOD_PKG_ERRORS" >&5
7116 if test "x$with_debuginfod" = xyes
; then
7117 as_fn_error $?
"\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
7120 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
7122 elif test $pkg_failed = untried
; then
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7124 $as_echo "no" >&6; }
7125 if test "x$with_debuginfod" = xyes
; then
7126 as_fn_error $?
"\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
7129 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
7132 DEBUGINFOD_CFLAGS
=$pkg_cv_DEBUGINFOD_CFLAGS
7133 DEBUGINFOD_LIBS
=$pkg_cv_DEBUGINFOD_LIBS
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7135 $as_echo "yes" >&6; }
7137 $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
7142 $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
7146 # Libunwind support for ia64.
7148 # Check whether --with-libunwind-ia64 was given.
7149 if test "${with_libunwind_ia64+set}" = set; then :
7150 withval
=$with_libunwind_ia64;
7152 with_libunwind_ia64
=auto
7156 # Backward compatibility option.
7157 if test "${with_libunwind+set}" = set; then
7158 if test x
"$with_libunwind_ia64" != xauto
; then
7159 as_fn_error $?
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
7162 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
7163 with_libunwind_ia64
="$with_libunwind"
7166 case "$with_libunwind_ia64" in
7170 for ac_header
in libunwind-ia64.h
7172 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
7173 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
7174 cat >>confdefs.h
<<_ACEOF
7175 #define HAVE_LIBUNWIND_IA64_H 1
7182 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
7185 as_fn_error $?
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
7189 if test x
"$with_libunwind_ia64" = xyes
; then
7190 for ac_header
in libunwind-ia64.h
7192 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
7193 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
7194 cat >>confdefs.h
<<_ACEOF
7195 #define HAVE_LIBUNWIND_IA64_H 1
7202 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
7203 as_fn_error $?
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
7205 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
7206 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
7207 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
7212 # Check whether --with-curses was given.
7213 if test "${with_curses+set}" = set; then :
7214 withval
=$with_curses; opt_curses
=$withval
7219 if test "$opt_curses" = "yes"; then
7223 # Profiling support.
7224 # Check whether --enable-profiling was given.
7225 if test "${enable_profiling+set}" = set; then :
7226 enableval
=$enable_profiling;
7231 as_fn_error $?
"bad value $enableval for --enable-profiling" "$LINENO" 5
7240 for ac_func
in monstartup _mcleanup
7242 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7243 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7244 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7245 cat >>confdefs.h
<<_ACEOF
7246 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
7253 $as_echo_n "checking for _etext... " >&6; }
7254 if ${ac_cv_var__etext+:} false
; then :
7255 $as_echo_n "(cached) " >&6
7257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7258 /* end confdefs.h. */
7270 if ac_fn_c_try_link
"$LINENO"; then :
7271 ac_cv_var__etext
=yes
7276 rm -f core conftest.err conftest.
$ac_objext \
7277 conftest
$ac_exeext conftest.
$ac_ext
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
7281 $as_echo "$ac_cv_var__etext" >&6; }
7282 if test "$ac_cv_var__etext" = yes; then
7284 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
7288 $as_echo_n "checking for etext... " >&6; }
7289 if ${ac_cv_var_etext+:} false
; then :
7290 $as_echo_n "(cached) " >&6
7292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7293 /* end confdefs.h. */
7305 if ac_fn_c_try_link
"$LINENO"; then :
7311 rm -f core conftest.err conftest.
$ac_objext \
7312 conftest
$ac_exeext conftest.
$ac_ext
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
7316 $as_echo "$ac_cv_var_etext" >&6; }
7317 if test "$ac_cv_var_etext" = yes; then
7319 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
7322 if test "$enable_profiling" = yes ; then
7323 if test "$ac_cv_func_monstartup" = no ||
test "$ac_cv_func__mcleanup" = no
; then
7324 as_fn_error $?
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
7327 OLD_CFLAGS
="$CFLAGS"
7328 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
7331 $as_echo_n "checking whether $CC supports -pg... " >&6; }
7332 if ${ac_cv_cc_supports_pg+:} false
; then :
7333 $as_echo_n "(cached) " >&6
7335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7336 /* end confdefs.h. */
7346 if ac_fn_c_try_compile
"$LINENO"; then :
7347 ac_cv_cc_supports_pg
=yes
7349 ac_cv_cc_supports_pg
=no
7352 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
7356 $as_echo "$ac_cv_cc_supports_pg" >&6; }
7358 if test "$ac_cv_cc_supports_pg" = no
; then
7359 as_fn_error $?
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
7362 CFLAGS
="$OLD_CFLAGS"
7366 # Check whether --enable-codesign was given.
7367 if test "${enable_codesign+set}" = set; then :
7368 enableval
=$enable_codesign; CODESIGN_CERT
=$enableval
7375 # Check whether --with-pkgversion was given.
7376 if test "${with_pkgversion+set}" = set; then :
7377 withval
=$with_pkgversion; case "$withval" in
7378 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
7380 *) PKGVERSION
="($withval) " ;;
7391 # Check whether --with-bugurl was given.
7392 if test "${with_bugurl+set}" = set; then :
7393 withval
=$with_bugurl; case "$withval" in
7394 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
7397 *) BUGURL
="$withval"
7401 BUGURL
="https://www.gnu.org/software/gdb/bugs/"
7411 REPORT_BUGS_TO
="<$BUGURL>"
7412 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7419 cat >>confdefs.h
<<_ACEOF
7420 #define PKGVERSION "$PKGVERSION"
7424 cat >>confdefs.h
<<_ACEOF
7425 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7429 # --------------------- #
7430 # Checks for programs. #
7431 # --------------------- #
7433 for ac_prog
in gawk mawk nawk
awk
7435 # Extract the first word of "$ac_prog", so it can be a program name with args.
7436 set dummy
$ac_prog; ac_word
=$2
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7438 $as_echo_n "checking for $ac_word... " >&6; }
7439 if ${ac_cv_prog_AWK+:} false
; then :
7440 $as_echo_n "(cached) " >&6
7442 if test -n "$AWK"; then
7443 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7445 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7449 test -z "$as_dir" && as_dir
=.
7450 for ac_exec_ext
in '' $ac_executable_extensions; do
7451 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7452 ac_cv_prog_AWK
="$ac_prog"
7453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7463 if test -n "$AWK"; then
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7465 $as_echo "$AWK" >&6; }
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7468 $as_echo "no" >&6; }
7472 test -n "$AWK" && break
7475 # Find a good install program. We prefer a C program (faster),
7476 # so one script is as good as another. But avoid the broken or
7477 # incompatible versions:
7478 # SysV /etc/install, /usr/sbin/install
7479 # SunOS /usr/etc/install
7480 # IRIX /sbin/install
7482 # AmigaOS /C/install, which installs bootblocks on floppy discs
7483 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7484 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7485 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7486 # OS/2's system install, which has a completely different semantic
7487 # ./install, which can be erroneously created by make from ./install.sh.
7488 # Reject install programs that cannot install multiple files.
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7490 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7491 if test -z "$INSTALL"; then
7492 if ${ac_cv_path_install+:} false
; then :
7493 $as_echo_n "(cached) " >&6
7495 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7499 test -z "$as_dir" && as_dir
=.
7500 # Account for people who put trailing slashes in PATH elements.
7501 case $as_dir/ in #((
7502 .
/ | .
// |
/[cC
]/* | \
7503 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7504 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
7507 # OSF1 and SCO ODT 3.0 have their own names for install.
7508 # Don't use installbsd from OSF since it installs stuff as root
7510 for ac_prog
in ginstall scoinst
install; do
7511 for ac_exec_ext
in '' $ac_executable_extensions; do
7512 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
7513 if test $ac_prog = install &&
7514 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7515 # AIX install. It has an incompatible calling convention.
7517 elif test $ac_prog = install &&
7518 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7519 # program-specific install script used by HP pwplus--don't use.
7522 rm -rf conftest.one conftest.two conftest.dir
7523 echo one
> conftest.one
7524 echo two
> conftest.two
7526 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
7527 test -s conftest.one
&& test -s conftest.two
&&
7528 test -s conftest.dir
/conftest.one
&&
7529 test -s conftest.dir
/conftest.two
7531 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7544 rm -rf conftest.one conftest.two conftest.dir
7547 if test "${ac_cv_path_install+set}" = set; then
7548 INSTALL
=$ac_cv_path_install
7550 # As a last resort, use the slow shell script. Don't cache a
7551 # value for INSTALL within a source directory, because that will
7552 # break other packages using the cache if that directory is
7553 # removed, or if the value is a relative name.
7554 INSTALL
=$ac_install_sh
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7558 $as_echo "$INSTALL" >&6; }
7560 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7561 # It thinks the first close brace ends the variable substitution.
7562 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7564 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7566 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7569 $as_echo_n "checking whether ln -s works... " >&6; }
7571 if test "$LN_S" = "ln -s"; then
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7573 $as_echo "yes" >&6; }
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7576 $as_echo "no, using $LN_S" >&6; }
7579 if test -n "$ac_tool_prefix"; then
7580 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7581 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7583 $as_echo_n "checking for $ac_word... " >&6; }
7584 if ${ac_cv_prog_RANLIB+:} false
; then :
7585 $as_echo_n "(cached) " >&6
7587 if test -n "$RANLIB"; then
7588 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7594 test -z "$as_dir" && as_dir
=.
7595 for ac_exec_ext
in '' $ac_executable_extensions; do
7596 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7597 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7607 RANLIB
=$ac_cv_prog_RANLIB
7608 if test -n "$RANLIB"; then
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7610 $as_echo "$RANLIB" >&6; }
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7613 $as_echo "no" >&6; }
7618 if test -z "$ac_cv_prog_RANLIB"; then
7619 ac_ct_RANLIB
=$RANLIB
7620 # Extract the first word of "ranlib", so it can be a program name with args.
7621 set dummy ranlib
; ac_word
=$2
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7623 $as_echo_n "checking for $ac_word... " >&6; }
7624 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
7625 $as_echo_n "(cached) " >&6
7627 if test -n "$ac_ct_RANLIB"; then
7628 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7630 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7634 test -z "$as_dir" && as_dir
=.
7635 for ac_exec_ext
in '' $ac_executable_extensions; do
7636 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7637 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7647 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7648 if test -n "$ac_ct_RANLIB"; then
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7650 $as_echo "$ac_ct_RANLIB" >&6; }
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7653 $as_echo "no" >&6; }
7656 if test "x$ac_ct_RANLIB" = x
; then
7659 case $cross_compiling:$ac_tool_warned in
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7663 ac_tool_warned
=yes ;;
7665 RANLIB
=$ac_ct_RANLIB
7668 RANLIB
="$ac_cv_prog_RANLIB"
7671 for ac_prog
in 'bison -y' byacc
7673 # Extract the first word of "$ac_prog", so it can be a program name with args.
7674 set dummy
$ac_prog; 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_YACC+:} false
; then :
7678 $as_echo_n "(cached) " >&6
7680 if test -n "$YACC"; then
7681 ac_cv_prog_YACC
="$YACC" # 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_YACC
="$ac_prog"
7691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7700 YACC
=$ac_cv_prog_YACC
7701 if test -n "$YACC"; then
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7703 $as_echo "$YACC" >&6; }
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7706 $as_echo "no" >&6; }
7710 test -n "$YACC" && break
7712 test -n "$YACC" || YACC
="yacc"
7715 if test -n "$ac_tool_prefix"; then
7716 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7717 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7719 $as_echo_n "checking for $ac_word... " >&6; }
7720 if ${ac_cv_prog_AR+:} false
; then :
7721 $as_echo_n "(cached) " >&6
7723 if test -n "$AR"; then
7724 ac_cv_prog_AR
="$AR" # Let the user override the test.
7726 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7730 test -z "$as_dir" && as_dir
=.
7731 for ac_exec_ext
in '' $ac_executable_extensions; do
7732 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7733 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7744 if test -n "$AR"; then
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7746 $as_echo "$AR" >&6; }
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7749 $as_echo "no" >&6; }
7754 if test -z "$ac_cv_prog_AR"; then
7756 # Extract the first word of "ar", so it can be a program name with args.
7757 set dummy
ar; ac_word
=$2
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7759 $as_echo_n "checking for $ac_word... " >&6; }
7760 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
7761 $as_echo_n "(cached) " >&6
7763 if test -n "$ac_ct_AR"; then
7764 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7766 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7770 test -z "$as_dir" && as_dir
=.
7771 for ac_exec_ext
in '' $ac_executable_extensions; do
7772 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7773 ac_cv_prog_ac_ct_AR
="ar"
7774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7783 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7784 if test -n "$ac_ct_AR"; then
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7786 $as_echo "$ac_ct_AR" >&6; }
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7789 $as_echo "no" >&6; }
7792 if test "x$ac_ct_AR" = x
; then
7795 case $cross_compiling:$ac_tool_warned in
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7799 ac_tool_warned
=yes ;;
7807 if test -n "$ac_tool_prefix"; then
7808 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7809 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7811 $as_echo_n "checking for $ac_word... " >&6; }
7812 if ${ac_cv_prog_DLLTOOL+:} false
; then :
7813 $as_echo_n "(cached) " >&6
7815 if test -n "$DLLTOOL"; then
7816 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
7818 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7822 test -z "$as_dir" && as_dir
=.
7823 for ac_exec_ext
in '' $ac_executable_extensions; do
7824 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7825 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
7826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7835 DLLTOOL
=$ac_cv_prog_DLLTOOL
7836 if test -n "$DLLTOOL"; then
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7838 $as_echo "$DLLTOOL" >&6; }
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7841 $as_echo "no" >&6; }
7846 if test -z "$ac_cv_prog_DLLTOOL"; then
7847 ac_ct_DLLTOOL
=$DLLTOOL
7848 # Extract the first word of "dlltool", so it can be a program name with args.
7849 set dummy dlltool
; ac_word
=$2
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7851 $as_echo_n "checking for $ac_word... " >&6; }
7852 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
7853 $as_echo_n "(cached) " >&6
7855 if test -n "$ac_ct_DLLTOOL"; then
7856 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
7858 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7862 test -z "$as_dir" && as_dir
=.
7863 for ac_exec_ext
in '' $ac_executable_extensions; do
7864 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7865 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
7866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7875 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
7876 if test -n "$ac_ct_DLLTOOL"; then
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7878 $as_echo "$ac_ct_DLLTOOL" >&6; }
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7881 $as_echo "no" >&6; }
7884 if test "x$ac_ct_DLLTOOL" = x
; then
7887 case $cross_compiling:$ac_tool_warned in
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7891 ac_tool_warned
=yes ;;
7893 DLLTOOL
=$ac_ct_DLLTOOL
7896 DLLTOOL
="$ac_cv_prog_DLLTOOL"
7899 if test -n "$ac_tool_prefix"; then
7900 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7901 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7903 $as_echo_n "checking for $ac_word... " >&6; }
7904 if ${ac_cv_prog_WINDRES+:} false
; then :
7905 $as_echo_n "(cached) " >&6
7907 if test -n "$WINDRES"; then
7908 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
7910 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7914 test -z "$as_dir" && as_dir
=.
7915 for ac_exec_ext
in '' $ac_executable_extensions; do
7916 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7917 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
7918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7927 WINDRES
=$ac_cv_prog_WINDRES
7928 if test -n "$WINDRES"; then
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7930 $as_echo "$WINDRES" >&6; }
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7933 $as_echo "no" >&6; }
7938 if test -z "$ac_cv_prog_WINDRES"; then
7939 ac_ct_WINDRES
=$WINDRES
7940 # Extract the first word of "windres", so it can be a program name with args.
7941 set dummy windres
; ac_word
=$2
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7943 $as_echo_n "checking for $ac_word... " >&6; }
7944 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
7945 $as_echo_n "(cached) " >&6
7947 if test -n "$ac_ct_WINDRES"; then
7948 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
7950 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7954 test -z "$as_dir" && as_dir
=.
7955 for ac_exec_ext
in '' $ac_executable_extensions; do
7956 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7957 ac_cv_prog_ac_ct_WINDRES
="windres"
7958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7967 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
7968 if test -n "$ac_ct_WINDRES"; then
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7970 $as_echo "$ac_ct_WINDRES" >&6; }
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7973 $as_echo "no" >&6; }
7976 if test "x$ac_ct_WINDRES" = x
; then
7979 case $cross_compiling:$ac_tool_warned in
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7983 ac_tool_warned
=yes ;;
7985 WINDRES
=$ac_ct_WINDRES
7988 WINDRES
="$ac_cv_prog_WINDRES"
7994 # Needed for GNU Hurd hosts.
7995 if test -n "$ac_tool_prefix"; then
7996 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7997 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7999 $as_echo_n "checking for $ac_word... " >&6; }
8000 if ${ac_cv_prog_MIG+:} false
; then :
8001 $as_echo_n "(cached) " >&6
8003 if test -n "$MIG"; then
8004 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
8006 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8010 test -z "$as_dir" && as_dir
=.
8011 for ac_exec_ext
in '' $ac_executable_extensions; do
8012 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8013 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
8014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8024 if test -n "$MIG"; then
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
8026 $as_echo "$MIG" >&6; }
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8029 $as_echo "no" >&6; }
8034 if test -z "$ac_cv_prog_MIG"; then
8036 # Extract the first word of "mig", so it can be a program name with args.
8037 set dummy mig
; ac_word
=$2
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8039 $as_echo_n "checking for $ac_word... " >&6; }
8040 if ${ac_cv_prog_ac_ct_MIG+:} false
; then :
8041 $as_echo_n "(cached) " >&6
8043 if test -n "$ac_ct_MIG"; then
8044 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
8046 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8050 test -z "$as_dir" && as_dir
=.
8051 for ac_exec_ext
in '' $ac_executable_extensions; do
8052 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8053 ac_cv_prog_ac_ct_MIG
="mig"
8054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8063 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
8064 if test -n "$ac_ct_MIG"; then
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
8066 $as_echo "$ac_ct_MIG" >&6; }
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8069 $as_echo "no" >&6; }
8072 if test "x$ac_ct_MIG" = x
; then
8075 case $cross_compiling:$ac_tool_warned in
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8079 ac_tool_warned
=yes ;;
8084 MIG
="$ac_cv_prog_MIG"
8087 if test x
"$MIG" = x
; then
8088 as_fn_error $?
"MIG not found but required for $host hosts" "$LINENO" 5
8093 # ---------------------- #
8094 # Checks for libraries. #
8095 # ---------------------- #
8097 # We might need to link with -lm; most simulators need it.
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
8099 $as_echo_n "checking for main in -lm... " >&6; }
8100 if ${ac_cv_lib_m_main+:} false
; then :
8101 $as_echo_n "(cached) " >&6
8103 ac_check_lib_save_LIBS
=$LIBS
8105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8106 /* end confdefs.h. */
8117 if ac_fn_c_try_link
"$LINENO"; then :
8118 ac_cv_lib_m_main
=yes
8122 rm -f core conftest.err conftest.
$ac_objext \
8123 conftest
$ac_exeext conftest.
$ac_ext
8124 LIBS
=$ac_check_lib_save_LIBS
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
8127 $as_echo "$ac_cv_lib_m_main" >&6; }
8128 if test "x$ac_cv_lib_m_main" = xyes
; then :
8129 cat >>confdefs.h
<<_ACEOF
8138 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
8140 $as_echo_n "checking for library containing gethostbyname... " >&6; }
8141 if ${ac_cv_search_gethostbyname+:} false
; then :
8142 $as_echo_n "(cached) " >&6
8144 ac_func_search_save_LIBS
=$LIBS
8145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8146 /* end confdefs.h. */
8148 /* Override any GCC internal prototype to avoid an error.
8149 Use char because int might match the return type of a GCC
8150 builtin and then its argument prototype would still apply. */
8154 char gethostbyname ();
8158 return gethostbyname ();
8163 for ac_lib
in '' nsl
; do
8164 if test -z "$ac_lib"; then
8165 ac_res
="none required"
8168 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8170 if ac_fn_c_try_link
"$LINENO"; then :
8171 ac_cv_search_gethostbyname
=$ac_res
8173 rm -f core conftest.err conftest.
$ac_objext \
8175 if ${ac_cv_search_gethostbyname+:} false
; then :
8179 if ${ac_cv_search_gethostbyname+:} false
; then :
8182 ac_cv_search_gethostbyname
=no
8185 LIBS
=$ac_func_search_save_LIBS
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
8188 $as_echo "$ac_cv_search_gethostbyname" >&6; }
8189 ac_res
=$ac_cv_search_gethostbyname
8190 if test "$ac_res" != no
; then :
8191 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8196 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
8198 $as_echo_n "checking for library containing socketpair... " >&6; }
8199 if ${ac_cv_search_socketpair+:} false
; then :
8200 $as_echo_n "(cached) " >&6
8202 ac_func_search_save_LIBS
=$LIBS
8203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8204 /* end confdefs.h. */
8206 /* Override any GCC internal prototype to avoid an error.
8207 Use char because int might match the return type of a GCC
8208 builtin and then its argument prototype would still apply. */
8216 return socketpair ();
8221 for ac_lib
in '' socket
; do
8222 if test -z "$ac_lib"; then
8223 ac_res
="none required"
8226 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8228 if ac_fn_c_try_link
"$LINENO"; then :
8229 ac_cv_search_socketpair
=$ac_res
8231 rm -f core conftest.err conftest.
$ac_objext \
8233 if ${ac_cv_search_socketpair+:} false
; then :
8237 if ${ac_cv_search_socketpair+:} false
; then :
8240 ac_cv_search_socketpair
=no
8243 LIBS
=$ac_func_search_save_LIBS
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
8246 $as_echo "$ac_cv_search_socketpair" >&6; }
8247 ac_res
=$ac_cv_search_socketpair
8248 if test "$ac_res" != no
; then :
8249 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8254 # Link in zlib/zstd if we can. This allows us to read compressed debug
8257 # Use the system's zlib library.
8258 zlibdir
="-L\$(top_builddir)/../zlib"
8259 zlibinc
="-I\$(top_srcdir)/../zlib"
8261 # Check whether --with-system-zlib was given.
8262 if test "${with_system_zlib+set}" = set; then :
8263 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
8275 # Check whether --with-zstd was given.
8276 if test "${with_zstd+set}" = set; then :
8283 if test "$with_zstd" != no
; then :
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd" >&5
8287 $as_echo_n "checking for libzstd... " >&6; }
8289 if test -n "$ZSTD_CFLAGS"; then
8290 pkg_cv_ZSTD_CFLAGS
="$ZSTD_CFLAGS"
8291 elif test -n "$PKG_CONFIG"; then
8292 if test -n "$PKG_CONFIG" && \
8293 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd\""; } >&5
8294 ($PKG_CONFIG --exists --print-errors "libzstd") 2>&5
8296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8297 test $ac_status = 0; }; then
8298 pkg_cv_ZSTD_CFLAGS
=`$PKG_CONFIG --cflags "libzstd" 2>/dev/null`
8299 test "x$?" != "x0" && pkg_failed
=yes
8306 if test -n "$ZSTD_LIBS"; then
8307 pkg_cv_ZSTD_LIBS
="$ZSTD_LIBS"
8308 elif test -n "$PKG_CONFIG"; then
8309 if test -n "$PKG_CONFIG" && \
8310 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd\""; } >&5
8311 ($PKG_CONFIG --exists --print-errors "libzstd") 2>&5
8313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8314 test $ac_status = 0; }; then
8315 pkg_cv_ZSTD_LIBS
=`$PKG_CONFIG --libs "libzstd" 2>/dev/null`
8316 test "x$?" != "x0" && pkg_failed
=yes
8324 if test $pkg_failed = no
; then
8325 pkg_save_LDFLAGS
="$LDFLAGS"
8326 LDFLAGS
="$LDFLAGS $pkg_cv_ZSTD_LIBS"
8327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8328 /* end confdefs.h. */
8338 if ac_fn_c_try_link
"$LINENO"; then :
8343 rm -f core conftest.err conftest.
$ac_objext \
8344 conftest
$ac_exeext conftest.
$ac_ext
8345 LDFLAGS
=$pkg_save_LDFLAGS
8350 if test $pkg_failed = yes; then
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8352 $as_echo "no" >&6; }
8354 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8355 _pkg_short_errors_supported
=yes
8357 _pkg_short_errors_supported
=no
8359 if test $_pkg_short_errors_supported = yes; then
8360 ZSTD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd" 2>&1`
8362 ZSTD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libzstd" 2>&1`
8364 # Put the nasty error message in config.log where it belongs
8365 echo "$ZSTD_PKG_ERRORS" >&5
8368 if test "$with_zstd" = yes; then
8369 as_fn_error $?
"--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
8372 elif test $pkg_failed = untried
; then
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8374 $as_echo "no" >&6; }
8376 if test "$with_zstd" = yes; then
8377 as_fn_error $?
"--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
8381 ZSTD_CFLAGS
=$pkg_cv_ZSTD_CFLAGS
8382 ZSTD_LIBS
=$pkg_cv_ZSTD_LIBS
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8384 $as_echo "yes" >&6; }
8387 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
8396 if test "X$prefix" = "XNONE"; then
8397 acl_final_prefix
="$ac_default_prefix"
8399 acl_final_prefix
="$prefix"
8401 if test "X$exec_prefix" = "XNONE"; then
8402 acl_final_exec_prefix
='${prefix}'
8404 acl_final_exec_prefix
="$exec_prefix"
8406 acl_save_prefix
="$prefix"
8407 prefix
="$acl_final_prefix"
8408 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8409 prefix
="$acl_save_prefix"
8412 # Check whether --with-gnu-ld was given.
8413 if test "${with_gnu_ld+set}" = set; then :
8414 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8419 # Prepare PATH_SEPARATOR.
8420 # The user is always right.
8421 if test "${PATH_SEPARATOR+set}" != set; then
8422 echo "#! /bin/sh" >conf$$.sh
8423 echo "exit 0" >>conf$$.sh
8425 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8433 if test "$GCC" = yes; then
8434 # Check if gcc -print-prog-name=ld gives a path.
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8436 $as_echo_n "checking for ld used by GCC... " >&6; }
8439 # gcc leaves a trailing carriage return which upsets mingw
8440 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8442 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8445 # Accept absolute paths.
8446 [\\/]* |
[A-Za-z
]:[\\/]*)
8447 re_direlt
='/[^/][^/]*/\.\./'
8448 # Canonicalize the path of ld
8449 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8450 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8451 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8453 test -z "$LD" && LD
="$ac_prog"
8456 # If it fails, then pretend we aren't using GCC.
8460 # If it is relative, then search for the first ld in PATH.
8464 elif test "$with_gnu_ld" = yes; then
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8466 $as_echo_n "checking for GNU ld... " >&6; }
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8469 $as_echo_n "checking for non-GNU ld... " >&6; }
8471 if ${acl_cv_path_LD+:} false
; then :
8472 $as_echo_n "(cached) " >&6
8474 if test -z "$LD"; then
8475 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8476 for ac_dir
in $PATH; do
8477 test -z "$ac_dir" && ac_dir
=.
8478 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8479 acl_cv_path_LD
="$ac_dir/$ac_prog"
8480 # Check to see if the program is GNU ld. I'd rather use --version,
8481 # but apparently some GNU ld's only accept -v.
8482 # Break only if it was the GNU/non-GNU ld that we prefer.
8483 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
8484 test "$with_gnu_ld" != no
&& break
8486 test "$with_gnu_ld" != yes && break
8492 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8496 LD
="$acl_cv_path_LD"
8497 if test -n "$LD"; then
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8499 $as_echo "$LD" >&6; }
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8502 $as_echo "no" >&6; }
8504 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8506 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8507 if ${acl_cv_prog_gnu_ld+:} false
; then :
8508 $as_echo_n "(cached) " >&6
8510 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8511 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8512 acl_cv_prog_gnu_ld
=yes
8514 acl_cv_prog_gnu_ld
=no
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8518 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8519 with_gnu_ld
=$acl_cv_prog_gnu_ld
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8524 $as_echo_n "checking for shared library run path origin... " >&6; }
8525 if ${acl_cv_rpath+:} false
; then :
8526 $as_echo_n "(cached) " >&6
8529 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8530 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8537 $as_echo "$acl_cv_rpath" >&6; }
8539 libext
="$acl_cv_libext"
8540 shlibext
="$acl_cv_shlibext"
8541 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8542 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8543 hardcode_direct
="$acl_cv_hardcode_direct"
8544 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8545 # Check whether --enable-rpath was given.
8546 if test "${enable_rpath+set}" = set; then :
8547 enableval
=$enable_rpath; :
8561 acl_save_prefix
="$prefix"
8562 prefix
="$acl_final_prefix"
8563 acl_save_exec_prefix
="$exec_prefix"
8564 exec_prefix
="$acl_final_exec_prefix"
8566 eval additional_includedir
=\"$includedir\"
8567 eval additional_libdir
=\"$libdir\"
8569 exec_prefix
="$acl_save_exec_prefix"
8570 prefix
="$acl_save_prefix"
8573 # Check whether --with-libiconv-prefix was given.
8574 if test "${with_libiconv_prefix+set}" = set; then :
8575 withval
=$with_libiconv_prefix;
8576 if test "X$withval" = "Xno"; then
8579 if test "X$withval" = "X"; then
8581 acl_save_prefix
="$prefix"
8582 prefix
="$acl_final_prefix"
8583 acl_save_exec_prefix
="$exec_prefix"
8584 exec_prefix
="$acl_final_exec_prefix"
8586 eval additional_includedir
=\"$includedir\"
8587 eval additional_libdir
=\"$libdir\"
8589 exec_prefix
="$acl_save_exec_prefix"
8590 prefix
="$acl_save_prefix"
8593 additional_includedir
="$withval/include"
8594 additional_libdir
="$withval/lib"
8601 # Check whether --with-libiconv-type was given.
8602 if test "${with_libiconv_type+set}" = set; then :
8603 withval
=$with_libiconv_type; with_libiconv_type
=$withval
8605 with_libiconv_type
=auto
8608 lib_type
=`eval echo \$with_libiconv_type`
8615 names_already_handled
=
8616 names_next_round
='iconv '
8617 while test -n "$names_next_round"; do
8618 names_this_round
="$names_next_round"
8620 for name
in $names_this_round; do
8622 for n
in $names_already_handled; do
8623 if test "$n" = "$name"; then
8628 if test -z "$already_handled"; then
8629 names_already_handled
="$names_already_handled $name"
8630 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8631 eval value
=\"\
$HAVE_LIB$uppername\"
8632 if test -n "$value"; then
8633 if test "$value" = yes; then
8634 eval value
=\"\
$LIB$uppername\"
8635 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
8636 eval value
=\"\
$LTLIB$uppername\"
8637 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
8646 if test $use_additional = yes; then
8647 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8648 found_dir
="$additional_libdir"
8649 found_so
="$additional_libdir/lib$name.$shlibext"
8650 if test -f "$additional_libdir/lib$name.la"; then
8651 found_la
="$additional_libdir/lib$name.la"
8653 elif test x
$lib_type != xshared
; then
8654 if test -f "$additional_libdir/lib$name.$libext"; then
8655 found_dir
="$additional_libdir"
8656 found_a
="$additional_libdir/lib$name.$libext"
8657 if test -f "$additional_libdir/lib$name.la"; then
8658 found_la
="$additional_libdir/lib$name.la"
8663 if test "X$found_dir" = "X"; then
8664 for x
in $LDFLAGS $LTLIBICONV; do
8666 acl_save_prefix
="$prefix"
8667 prefix
="$acl_final_prefix"
8668 acl_save_exec_prefix
="$exec_prefix"
8669 exec_prefix
="$acl_final_exec_prefix"
8671 exec_prefix
="$acl_save_exec_prefix"
8672 prefix
="$acl_save_prefix"
8676 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8677 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8679 found_so
="$dir/lib$name.$shlibext"
8680 if test -f "$dir/lib$name.la"; then
8681 found_la
="$dir/lib$name.la"
8683 elif test x
$lib_type != xshared
; then
8684 if test -f "$dir/lib$name.$libext"; then
8686 found_a
="$dir/lib$name.$libext"
8687 if test -f "$dir/lib$name.la"; then
8688 found_la
="$dir/lib$name.la"
8694 if test "X$found_dir" != "X"; then
8699 if test "X$found_dir" != "X"; then
8700 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8701 if test "X$found_so" != "X"; then
8702 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8703 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8706 for x
in $ltrpathdirs; do
8707 if test "X$x" = "X$found_dir"; then
8712 if test -z "$haveit"; then
8713 ltrpathdirs
="$ltrpathdirs $found_dir"
8715 if test "$hardcode_direct" = yes; then
8716 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8718 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8719 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8721 for x
in $rpathdirs; do
8722 if test "X$x" = "X$found_dir"; then
8727 if test -z "$haveit"; then
8728 rpathdirs
="$rpathdirs $found_dir"
8732 for x
in $LDFLAGS $LIBICONV; do
8734 acl_save_prefix
="$prefix"
8735 prefix
="$acl_final_prefix"
8736 acl_save_exec_prefix
="$exec_prefix"
8737 exec_prefix
="$acl_final_exec_prefix"
8739 exec_prefix
="$acl_save_exec_prefix"
8740 prefix
="$acl_save_prefix"
8742 if test "X$x" = "X-L$found_dir"; then
8747 if test -z "$haveit"; then
8748 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8750 if test "$hardcode_minus_L" != no
; then
8751 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8753 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8759 if test "X$found_a" != "X"; then
8760 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
8762 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8765 additional_includedir
=
8766 case "$found_dir" in
8768 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8769 additional_includedir
="$basedir/include"
8772 if test "X$additional_includedir" != "X"; then
8773 if test "X$additional_includedir" != "X/usr/include"; then
8775 if test "X$additional_includedir" = "X/usr/local/include"; then
8776 if test -n "$GCC"; then
8778 linux
*) haveit
=yes;;
8782 if test -z "$haveit"; then
8783 for x
in $CPPFLAGS $INCICONV; do
8785 acl_save_prefix
="$prefix"
8786 prefix
="$acl_final_prefix"
8787 acl_save_exec_prefix
="$exec_prefix"
8788 exec_prefix
="$acl_final_exec_prefix"
8790 exec_prefix
="$acl_save_exec_prefix"
8791 prefix
="$acl_save_prefix"
8793 if test "X$x" = "X-I$additional_includedir"; then
8798 if test -z "$haveit"; then
8799 if test -d "$additional_includedir"; then
8800 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8806 if test -n "$found_la"; then
8807 save_libdir
="$libdir"
8809 */* |
*\\*) .
"$found_la" ;;
8810 *) .
"./$found_la" ;;
8812 libdir
="$save_libdir"
8813 for dep
in $dependency_libs; do
8816 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8817 if test "X$additional_libdir" != "X/usr/lib"; then
8819 if test "X$additional_libdir" = "X/usr/local/lib"; then
8820 if test -n "$GCC"; then
8822 linux
*) haveit
=yes;;
8826 if test -z "$haveit"; then
8828 for x
in $LDFLAGS $LIBICONV; do
8830 acl_save_prefix
="$prefix"
8831 prefix
="$acl_final_prefix"
8832 acl_save_exec_prefix
="$exec_prefix"
8833 exec_prefix
="$acl_final_exec_prefix"
8835 exec_prefix
="$acl_save_exec_prefix"
8836 prefix
="$acl_save_prefix"
8838 if test "X$x" = "X-L$additional_libdir"; then
8843 if test -z "$haveit"; then
8844 if test -d "$additional_libdir"; then
8845 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8849 for x
in $LDFLAGS $LTLIBICONV; do
8851 acl_save_prefix
="$prefix"
8852 prefix
="$acl_final_prefix"
8853 acl_save_exec_prefix
="$exec_prefix"
8854 exec_prefix
="$acl_final_exec_prefix"
8856 exec_prefix
="$acl_save_exec_prefix"
8857 prefix
="$acl_save_prefix"
8859 if test "X$x" = "X-L$additional_libdir"; then
8864 if test -z "$haveit"; then
8865 if test -d "$additional_libdir"; then
8866 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8873 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8874 if test "$enable_rpath" != no
; then
8876 for x
in $rpathdirs; do
8877 if test "X$x" = "X$dir"; then
8882 if test -z "$haveit"; then
8883 rpathdirs
="$rpathdirs $dir"
8886 for x
in $ltrpathdirs; do
8887 if test "X$x" = "X$dir"; then
8892 if test -z "$haveit"; then
8893 ltrpathdirs
="$ltrpathdirs $dir"
8898 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8901 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8904 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
8905 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8911 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
8912 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8913 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8915 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
8916 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
8923 if test "X$rpathdirs" != "X"; then
8924 if test -n "$hardcode_libdir_separator"; then
8926 for found_dir
in $rpathdirs; do
8927 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8929 acl_save_libdir
="$libdir"
8931 eval flag
=\"$hardcode_libdir_flag_spec\"
8932 libdir
="$acl_save_libdir"
8933 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8935 for found_dir
in $rpathdirs; do
8936 acl_save_libdir
="$libdir"
8938 eval flag
=\"$hardcode_libdir_flag_spec\"
8939 libdir
="$acl_save_libdir"
8940 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8944 if test "X$ltrpathdirs" != "X"; then
8945 for found_dir
in $ltrpathdirs; do
8946 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8957 $as_echo_n "checking for iconv... " >&6; }
8958 if ${am_cv_func_iconv+:} false
; then :
8959 $as_echo_n "(cached) " >&6
8962 am_cv_func_iconv
="no, consider installing GNU libiconv"
8964 am_save_CPPFLAGS
="$CPPFLAGS"
8965 CPPFLAGS
="$CPPFLAGS $INCICONV"
8966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8967 /* end confdefs.h. */
8973 iconv_t cd = iconv_open("","");
8974 iconv(cd,NULL,NULL,NULL,NULL);
8980 if ac_fn_c_try_link
"$LINENO"; then :
8981 am_cv_func_iconv
=yes
8983 rm -f core conftest.err conftest.
$ac_objext \
8984 conftest
$ac_exeext conftest.
$ac_ext
8985 CPPFLAGS
="$am_save_CPPFLAGS"
8987 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
8988 for _libs
in .libs _libs
; do
8989 am_save_CPPFLAGS
="$CPPFLAGS"
8990 am_save_LIBS
="$LIBS"
8991 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
8992 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
8993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8994 /* end confdefs.h. */
9000 iconv_t cd = iconv_open("","");
9001 iconv(cd,NULL,NULL,NULL,NULL);
9007 if ac_fn_c_try_link
"$LINENO"; then :
9008 INCICONV
="-I../libiconv/include"
9009 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
9010 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
9012 am_cv_func_iconv
=yes
9014 rm -f core conftest.err conftest.
$ac_objext \
9015 conftest
$ac_exeext conftest.
$ac_ext
9016 CPPFLAGS
="$am_save_CPPFLAGS"
9017 LIBS
="$am_save_LIBS"
9018 if test "$am_cv_func_iconv" = "yes"; then
9024 if test "$am_cv_func_iconv" != yes; then
9025 am_save_CPPFLAGS
="$CPPFLAGS"
9026 am_save_LIBS
="$LIBS"
9027 CPPFLAGS
="$CPPFLAGS $INCICONV"
9028 LIBS
="$LIBS $LIBICONV"
9029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9030 /* end confdefs.h. */
9036 iconv_t cd = iconv_open("","");
9037 iconv(cd,NULL,NULL,NULL,NULL);
9043 if ac_fn_c_try_link
"$LINENO"; then :
9045 am_cv_func_iconv
=yes
9047 rm -f core conftest.err conftest.
$ac_objext \
9048 conftest
$ac_exeext conftest.
$ac_ext
9049 CPPFLAGS
="$am_save_CPPFLAGS"
9050 LIBS
="$am_save_LIBS"
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9055 $as_echo "$am_cv_func_iconv" >&6; }
9056 if test "$am_cv_func_iconv" = yes; then
9058 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9061 if test "$am_cv_lib_iconv" = yes; then
9063 for element
in $INCICONV; do
9065 for x
in $CPPFLAGS; do
9067 acl_save_prefix
="$prefix"
9068 prefix
="$acl_final_prefix"
9069 acl_save_exec_prefix
="$exec_prefix"
9070 exec_prefix
="$acl_final_exec_prefix"
9072 exec_prefix
="$acl_save_exec_prefix"
9073 prefix
="$acl_save_prefix"
9075 if test "X$x" = "X$element"; then
9080 if test -z "$haveit"; then
9081 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9086 $as_echo_n "checking how to link with libiconv... " >&6; }
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9088 $as_echo "$LIBICONV" >&6; }
9096 if test "$am_cv_func_iconv" = yes; then
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9098 $as_echo_n "checking for iconv declaration... " >&6; }
9099 if ${am_cv_proto_iconv+:} false
; then :
9100 $as_echo_n "(cached) " >&6
9103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9104 /* end confdefs.h. */
9112 #if defined(__STDC__) || defined(__cplusplus)
9113 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9126 if ac_fn_c_try_compile
"$LINENO"; then :
9127 am_cv_proto_iconv_arg1
=""
9129 am_cv_proto_iconv_arg1
="const"
9131 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9132 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);"
9135 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9137 }$am_cv_proto_iconv" >&5
9139 }$am_cv_proto_iconv" >&6; }
9141 cat >>confdefs.h
<<_ACEOF
9142 #define ICONV_CONST $am_cv_proto_iconv_arg1
9148 # GDB may fork/exec the iconv program to get the list of supported character
9149 # sets. Allow the user to specify where to find it.
9150 # There are several factors affecting the choice of option name:
9151 # - There is already --with-libiconv-prefix but we can't use it, it specifies
9152 # the build-time location of libiconv files.
9153 # - The program we need to find is iconv, which comes with glibc. The user
9154 # doesn't necessarily have libiconv installed. Therefore naming this
9155 # --with-libiconv-foo feels wrong.
9156 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
9157 # defined to work on directories not files (though it really doesn't know
9159 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
9160 # with --with-libiconv-prefix.
9161 # Putting these together is why the option name is --with-iconv-bin.
9164 # Check whether --with-iconv-bin was given.
9165 if test "${with_iconv_bin+set}" = set; then :
9166 withval
=$with_iconv_bin; iconv_bin
="${withval}"
9168 cat >>confdefs.h
<<_ACEOF
9169 #define ICONV_BIN "${iconv_bin}"
9173 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9174 if test "x$prefix" = xNONE
; then
9175 test_prefix
=/usr
/local
9180 test_prefix
=$exec_prefix
9183 case ${iconv_bin} in
9184 "${test_prefix}"|
"${test_prefix}/"*|\
9185 '${exec_prefix}'|
'${exec_prefix}/'*)
9190 cat >>confdefs.h
<<_ACEOF
9191 #define ICONV_BIN_RELOCATABLE $value
9199 # For the TUI, we need enhanced curses functionality.
9200 if test x
"$enable_tui" != xno
; then
9205 if test x
"$prefer_curses" = xyes
; then
9206 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9207 # curses library because the latter might not provide all the
9208 # functionality we need. However, this leads to problems on systems
9209 # where the linker searches /usr/local/lib, but the compiler doesn't
9210 # search /usr/local/include, if ncurses is installed in /usr/local. A
9211 # default installation of ncurses on alpha*-dec-osf* will lead to such
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
9214 $as_echo_n "checking for library containing waddstr... " >&6; }
9215 if ${ac_cv_search_waddstr+:} false
; then :
9216 $as_echo_n "(cached) " >&6
9218 ac_func_search_save_LIBS
=$LIBS
9219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9220 /* end confdefs.h. */
9222 /* Override any GCC internal prototype to avoid an error.
9223 Use char because int might match the return type of a GCC
9224 builtin and then its argument prototype would still apply. */
9237 for ac_lib
in '' ncursesw ncurses cursesX curses
; do
9238 if test -z "$ac_lib"; then
9239 ac_res
="none required"
9242 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9244 if ac_fn_c_try_link
"$LINENO"; then :
9245 ac_cv_search_waddstr
=$ac_res
9247 rm -f core conftest.err conftest.
$ac_objext \
9249 if ${ac_cv_search_waddstr+:} false
; then :
9253 if ${ac_cv_search_waddstr+:} false
; then :
9256 ac_cv_search_waddstr
=no
9259 LIBS
=$ac_func_search_save_LIBS
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
9262 $as_echo "$ac_cv_search_waddstr" >&6; }
9263 ac_res
=$ac_cv_search_waddstr
9264 if test "$ac_res" != no
; then :
9265 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9270 if test "$ac_cv_search_waddstr" != no
; then
9275 # Check whether we should enable the TUI, but only do so if we really
9277 if test x
"$enable_tui" != xno
; then
9278 if test -d "$srcdir/tui"; then
9279 if test "$curses_found" != no
; then
9280 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
9281 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
9282 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9283 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
9285 if test x
"$enable_tui" = xyes
; then
9286 as_fn_error $?
"no enhanced curses library found; disable TUI" "$LINENO" 5
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
9289 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9295 # Since GDB uses Readline, we need termcap functionality. In many
9296 # cases this will be provided by the curses library, but some systems
9297 # have a separate termcap library, or no curses library at all.
9301 if test -d "$srcdir/libtermcap"; then
9302 LIBS
="../libtermcap/libtermcap.a $LIBS"
9303 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
9306 ac_cv_search_tgetent
="none required"
9310 # These are the libraries checked by Readline.
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9312 $as_echo_n "checking for library containing tgetent... " >&6; }
9313 if ${ac_cv_search_tgetent+:} false
; then :
9314 $as_echo_n "(cached) " >&6
9316 ac_func_search_save_LIBS
=$LIBS
9317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9318 /* end confdefs.h. */
9320 /* Override any GCC internal prototype to avoid an error.
9321 Use char because int might match the return type of a GCC
9322 builtin and then its argument prototype would still apply. */
9335 for ac_lib
in '' termcap tinfow tinfo curses ncursesw ncurses
; do
9336 if test -z "$ac_lib"; then
9337 ac_res
="none required"
9340 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9342 if ac_fn_c_try_link
"$LINENO"; then :
9343 ac_cv_search_tgetent
=$ac_res
9345 rm -f core conftest.err conftest.
$ac_objext \
9347 if ${ac_cv_search_tgetent+:} false
; then :
9351 if ${ac_cv_search_tgetent+:} false
; then :
9354 ac_cv_search_tgetent
=no
9357 LIBS
=$ac_func_search_save_LIBS
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9360 $as_echo "$ac_cv_search_tgetent" >&6; }
9361 ac_res
=$ac_cv_search_tgetent
9362 if test "$ac_res" != no
; then :
9363 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9368 if test "$ac_cv_search_tgetent" = no
; then
9369 CONFIG_OBS
="$CONFIG_OBS stub-termcap.o"
9373 # Check whether --with-system-readline was given.
9374 if test "${with_system_readline+set}" = set; then :
9375 withval
=$with_system_readline;
9379 if test "$with_system_readline" = yes; then
9380 for ac_header
in readline
/readline.h
9382 ac_fn_c_check_header_mongrel
"$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
9383 if test "x$ac_cv_header_readline_readline_h" = xyes
; then :
9384 cat >>confdefs.h
<<_ACEOF
9385 #define HAVE_READLINE_READLINE_H 1
9394 if test "$readline_h" = "no"; then
9395 as_fn_error $?
"readline development packages are probably missing" "$LINENO" 5
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system readline is new enough" >&5
9398 $as_echo_n "checking whether system readline is new enough... " >&6; }
9399 if ${gdb_cv_readline_ok+:} false
; then :
9400 $as_echo_n "(cached) " >&6
9402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9403 /* end confdefs.h. */
9405 #include <readline/readline.h>
9409 #if RL_VERSION_MAJOR < 7
9410 # error "readline version 7 required"
9417 if ac_fn_c_try_compile
"$LINENO"; then :
9418 gdb_cv_readline_ok
=yes
9420 gdb_cv_readline_ok
=no
9423 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_readline_ok" >&5
9427 $as_echo "$gdb_cv_readline_ok" >&6; }
9428 if test "$gdb_cv_readline_ok" != yes; then
9429 as_fn_error $?
"system readline is not new enough" "$LINENO" 5
9435 READLINE_TEXI_INCFLAG
=
9437 READLINE
='$(READLINE_DIR)/libreadline.a'
9438 READLINE_DEPS
='$(READLINE)'
9439 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
9440 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
9447 # Generate jit-reader.h
9449 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
9452 # The cast to long int works around a bug in the HP C Compiler
9453 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9454 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9455 # This bug is HP SR number 8606223364.
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
9457 $as_echo_n "checking size of unsigned long long... " >&6; }
9458 if ${ac_cv_sizeof_unsigned_long_long+:} false
; then :
9459 $as_echo_n "(cached) " >&6
9461 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
9464 if test "$ac_cv_type_unsigned_long_long" = yes; then
9465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9467 as_fn_error
77 "cannot compute sizeof (unsigned long long)
9468 See \`config.log' for more details" "$LINENO" 5; }
9470 ac_cv_sizeof_unsigned_long_long
=0
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
9476 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
9480 cat >>confdefs.h
<<_ACEOF
9481 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
9485 # The cast to long int works around a bug in the HP C Compiler
9486 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9487 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9488 # This bug is HP SR number 8606223364.
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
9490 $as_echo_n "checking size of unsigned long... " >&6; }
9491 if ${ac_cv_sizeof_unsigned_long+:} false
; then :
9492 $as_echo_n "(cached) " >&6
9494 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
9497 if test "$ac_cv_type_unsigned_long" = yes; then
9498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9500 as_fn_error
77 "cannot compute sizeof (unsigned long)
9501 See \`config.log' for more details" "$LINENO" 5; }
9503 ac_cv_sizeof_unsigned_long
=0
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
9509 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
9513 cat >>confdefs.h
<<_ACEOF
9514 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9518 # The cast to long int works around a bug in the HP C Compiler
9519 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9520 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9521 # This bug is HP SR number 8606223364.
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
9523 $as_echo_n "checking size of unsigned __int128... " >&6; }
9524 if ${ac_cv_sizeof_unsigned___int128+:} false
; then :
9525 $as_echo_n "(cached) " >&6
9527 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
9530 if test "$ac_cv_type_unsigned___int128" = yes; then
9531 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9533 as_fn_error
77 "cannot compute sizeof (unsigned __int128)
9534 See \`config.log' for more details" "$LINENO" 5; }
9536 ac_cv_sizeof_unsigned___int128
=0
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
9542 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
9546 cat >>confdefs.h
<<_ACEOF
9547 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
9552 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9553 TARGET_PTR
="unsigned long"
9554 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9555 TARGET_PTR
="unsigned long long"
9556 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
9557 TARGET_PTR
="unsigned __int128"
9559 TARGET_PTR
="unsigned long"
9563 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9567 $as_echo_n "checking for library containing dlopen... " >&6; }
9568 if ${ac_cv_search_dlopen+:} false
; then :
9569 $as_echo_n "(cached) " >&6
9571 ac_func_search_save_LIBS
=$LIBS
9572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9573 /* end confdefs.h. */
9575 /* Override any GCC internal prototype to avoid an error.
9576 Use char because int might match the return type of a GCC
9577 builtin and then its argument prototype would still apply. */
9590 for ac_lib
in '' dl
; do
9591 if test -z "$ac_lib"; then
9592 ac_res
="none required"
9595 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9597 if ac_fn_c_try_link
"$LINENO"; then :
9598 ac_cv_search_dlopen
=$ac_res
9600 rm -f core conftest.err conftest.
$ac_objext \
9602 if ${ac_cv_search_dlopen+:} false
; then :
9606 if ${ac_cv_search_dlopen+:} false
; then :
9609 ac_cv_search_dlopen
=no
9612 LIBS
=$ac_func_search_save_LIBS
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9615 $as_echo "$ac_cv_search_dlopen" >&6; }
9616 ac_res
=$ac_cv_search_dlopen
9617 if test "$ac_res" != no
; then :
9618 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9625 # Check whether --with-jit-reader-dir was given.
9626 if test "${with_jit_reader_dir+set}" = set; then :
9627 withval
=$with_jit_reader_dir;
9628 JIT_READER_DIR
=$withval
9630 JIT_READER_DIR
=${libdir}/gdb
9634 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9635 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9636 ac_define_dir
=`eval echo $JIT_READER_DIR`
9637 ac_define_dir
=`eval echo $ac_define_dir`
9639 cat >>confdefs.h
<<_ACEOF
9640 #define JIT_READER_DIR "$ac_define_dir"
9646 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9647 if test "x$prefix" = xNONE
; then
9648 test_prefix
=/usr
/local
9653 test_prefix
=$exec_prefix
9656 case ${ac_define_dir} in
9657 "${test_prefix}"|
"${test_prefix}/"*|\
9658 '${exec_prefix}'|
'${exec_prefix}/'*)
9663 cat >>confdefs.h
<<_ACEOF
9664 #define JIT_READER_DIR_RELOCATABLE $value
9671 # Check whether --with-expat was given.
9672 if test "${with_expat+set}" = set; then :
9673 withval
=$with_expat;
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9679 $as_echo_n "checking whether to use expat... " >&6; }
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9681 $as_echo "$with_expat" >&6; }
9683 if test "${with_expat}" = no
; then
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9685 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9698 acl_save_prefix
="$prefix"
9699 prefix
="$acl_final_prefix"
9700 acl_save_exec_prefix
="$exec_prefix"
9701 exec_prefix
="$acl_final_exec_prefix"
9703 eval additional_includedir
=\"$includedir\"
9704 eval additional_libdir
=\"$libdir\"
9706 exec_prefix
="$acl_save_exec_prefix"
9707 prefix
="$acl_save_prefix"
9710 # Check whether --with-libexpat-prefix was given.
9711 if test "${with_libexpat_prefix+set}" = set; then :
9712 withval
=$with_libexpat_prefix;
9713 if test "X$withval" = "Xno"; then
9716 if test "X$withval" = "X"; then
9718 acl_save_prefix
="$prefix"
9719 prefix
="$acl_final_prefix"
9720 acl_save_exec_prefix
="$exec_prefix"
9721 exec_prefix
="$acl_final_exec_prefix"
9723 eval additional_includedir
=\"$includedir\"
9724 eval additional_libdir
=\"$libdir\"
9726 exec_prefix
="$acl_save_exec_prefix"
9727 prefix
="$acl_save_prefix"
9730 additional_includedir
="$withval/include"
9731 additional_libdir
="$withval/lib"
9738 # Check whether --with-libexpat-type was given.
9739 if test "${with_libexpat_type+set}" = set; then :
9740 withval
=$with_libexpat_type; with_libexpat_type
=$withval
9742 with_libexpat_type
=auto
9745 lib_type
=`eval echo \$with_libexpat_type`
9752 names_already_handled
=
9753 names_next_round
='expat '
9754 while test -n "$names_next_round"; do
9755 names_this_round
="$names_next_round"
9757 for name
in $names_this_round; do
9759 for n
in $names_already_handled; do
9760 if test "$n" = "$name"; then
9765 if test -z "$already_handled"; then
9766 names_already_handled
="$names_already_handled $name"
9767 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9768 eval value
=\"\
$HAVE_LIB$uppername\"
9769 if test -n "$value"; then
9770 if test "$value" = yes; then
9771 eval value
=\"\
$LIB$uppername\"
9772 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
9773 eval value
=\"\
$LTLIB$uppername\"
9774 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
9783 if test $use_additional = yes; then
9784 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9785 found_dir
="$additional_libdir"
9786 found_so
="$additional_libdir/lib$name.$shlibext"
9787 if test -f "$additional_libdir/lib$name.la"; then
9788 found_la
="$additional_libdir/lib$name.la"
9790 elif test x
$lib_type != xshared
; then
9791 if test -f "$additional_libdir/lib$name.$libext"; then
9792 found_dir
="$additional_libdir"
9793 found_a
="$additional_libdir/lib$name.$libext"
9794 if test -f "$additional_libdir/lib$name.la"; then
9795 found_la
="$additional_libdir/lib$name.la"
9800 if test "X$found_dir" = "X"; then
9801 for x
in $LDFLAGS $LTLIBEXPAT; do
9803 acl_save_prefix
="$prefix"
9804 prefix
="$acl_final_prefix"
9805 acl_save_exec_prefix
="$exec_prefix"
9806 exec_prefix
="$acl_final_exec_prefix"
9808 exec_prefix
="$acl_save_exec_prefix"
9809 prefix
="$acl_save_prefix"
9813 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9814 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9816 found_so
="$dir/lib$name.$shlibext"
9817 if test -f "$dir/lib$name.la"; then
9818 found_la
="$dir/lib$name.la"
9820 elif test x
$lib_type != xshared
; then
9821 if test -f "$dir/lib$name.$libext"; then
9823 found_a
="$dir/lib$name.$libext"
9824 if test -f "$dir/lib$name.la"; then
9825 found_la
="$dir/lib$name.la"
9831 if test "X$found_dir" != "X"; then
9836 if test "X$found_dir" != "X"; then
9837 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
9838 if test "X$found_so" != "X"; then
9839 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9840 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9843 for x
in $ltrpathdirs; do
9844 if test "X$x" = "X$found_dir"; then
9849 if test -z "$haveit"; then
9850 ltrpathdirs
="$ltrpathdirs $found_dir"
9852 if test "$hardcode_direct" = yes; then
9853 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9855 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9856 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9858 for x
in $rpathdirs; do
9859 if test "X$x" = "X$found_dir"; then
9864 if test -z "$haveit"; then
9865 rpathdirs
="$rpathdirs $found_dir"
9869 for x
in $LDFLAGS $LIBEXPAT; do
9871 acl_save_prefix
="$prefix"
9872 prefix
="$acl_final_prefix"
9873 acl_save_exec_prefix
="$exec_prefix"
9874 exec_prefix
="$acl_final_exec_prefix"
9876 exec_prefix
="$acl_save_exec_prefix"
9877 prefix
="$acl_save_prefix"
9879 if test "X$x" = "X-L$found_dir"; then
9884 if test -z "$haveit"; then
9885 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
9887 if test "$hardcode_minus_L" != no
; then
9888 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9890 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9896 if test "X$found_a" != "X"; then
9897 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
9899 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
9902 additional_includedir
=
9903 case "$found_dir" in
9905 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9906 additional_includedir
="$basedir/include"
9909 if test "X$additional_includedir" != "X"; then
9910 if test "X$additional_includedir" != "X/usr/include"; then
9912 if test "X$additional_includedir" = "X/usr/local/include"; then
9913 if test -n "$GCC"; then
9915 linux
*) haveit
=yes;;
9919 if test -z "$haveit"; then
9920 for x
in $CPPFLAGS $INCEXPAT; do
9922 acl_save_prefix
="$prefix"
9923 prefix
="$acl_final_prefix"
9924 acl_save_exec_prefix
="$exec_prefix"
9925 exec_prefix
="$acl_final_exec_prefix"
9927 exec_prefix
="$acl_save_exec_prefix"
9928 prefix
="$acl_save_prefix"
9930 if test "X$x" = "X-I$additional_includedir"; then
9935 if test -z "$haveit"; then
9936 if test -d "$additional_includedir"; then
9937 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
9943 if test -n "$found_la"; then
9944 save_libdir
="$libdir"
9946 */* |
*\\*) .
"$found_la" ;;
9947 *) .
"./$found_la" ;;
9949 libdir
="$save_libdir"
9950 for dep
in $dependency_libs; do
9953 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9954 if test "X$additional_libdir" != "X/usr/lib"; then
9956 if test "X$additional_libdir" = "X/usr/local/lib"; then
9957 if test -n "$GCC"; then
9959 linux
*) haveit
=yes;;
9963 if test -z "$haveit"; then
9965 for x
in $LDFLAGS $LIBEXPAT; do
9967 acl_save_prefix
="$prefix"
9968 prefix
="$acl_final_prefix"
9969 acl_save_exec_prefix
="$exec_prefix"
9970 exec_prefix
="$acl_final_exec_prefix"
9972 exec_prefix
="$acl_save_exec_prefix"
9973 prefix
="$acl_save_prefix"
9975 if test "X$x" = "X-L$additional_libdir"; then
9980 if test -z "$haveit"; then
9981 if test -d "$additional_libdir"; then
9982 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
9986 for x
in $LDFLAGS $LTLIBEXPAT; do
9988 acl_save_prefix
="$prefix"
9989 prefix
="$acl_final_prefix"
9990 acl_save_exec_prefix
="$exec_prefix"
9991 exec_prefix
="$acl_final_exec_prefix"
9993 exec_prefix
="$acl_save_exec_prefix"
9994 prefix
="$acl_save_prefix"
9996 if test "X$x" = "X-L$additional_libdir"; then
10001 if test -z "$haveit"; then
10002 if test -d "$additional_libdir"; then
10003 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10010 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10011 if test "$enable_rpath" != no
; then
10013 for x
in $rpathdirs; do
10014 if test "X$x" = "X$dir"; then
10019 if test -z "$haveit"; then
10020 rpathdirs
="$rpathdirs $dir"
10023 for x
in $ltrpathdirs; do
10024 if test "X$x" = "X$dir"; then
10029 if test -z "$haveit"; then
10030 ltrpathdirs
="$ltrpathdirs $dir"
10035 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10038 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10041 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10042 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10048 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
10049 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10050 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10052 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l:lib$name.$libext"
10053 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l:lib$name.$libext"
10060 if test "X$rpathdirs" != "X"; then
10061 if test -n "$hardcode_libdir_separator"; then
10063 for found_dir
in $rpathdirs; do
10064 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10066 acl_save_libdir
="$libdir"
10068 eval flag
=\"$hardcode_libdir_flag_spec\"
10069 libdir
="$acl_save_libdir"
10070 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10072 for found_dir
in $rpathdirs; do
10073 acl_save_libdir
="$libdir"
10074 libdir
="$found_dir"
10075 eval flag
=\"$hardcode_libdir_flag_spec\"
10076 libdir
="$acl_save_libdir"
10077 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10081 if test "X$ltrpathdirs" != "X"; then
10082 for found_dir
in $ltrpathdirs; do
10083 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10088 ac_save_CPPFLAGS
="$CPPFLAGS"
10090 for element
in $INCEXPAT; do
10092 for x
in $CPPFLAGS; do
10094 acl_save_prefix
="$prefix"
10095 prefix
="$acl_final_prefix"
10096 acl_save_exec_prefix
="$exec_prefix"
10097 exec_prefix
="$acl_final_exec_prefix"
10099 exec_prefix
="$acl_save_exec_prefix"
10100 prefix
="$acl_save_prefix"
10102 if test "X$x" = "X$element"; then
10107 if test -z "$haveit"; then
10108 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
10114 $as_echo_n "checking for libexpat... " >&6; }
10115 if ${ac_cv_libexpat+:} false
; then :
10116 $as_echo_n "(cached) " >&6
10119 ac_save_LIBS
="$LIBS"
10120 LIBS
="$LIBS $LIBEXPAT"
10121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10122 /* end confdefs.h. */
10127 XML_Parser p = XML_ParserCreate (0);
10132 if ac_fn_c_try_link
"$LINENO"; then :
10137 rm -f core conftest.err conftest.
$ac_objext \
10138 conftest
$ac_exeext conftest.
$ac_ext
10139 LIBS
="$ac_save_LIBS"
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
10143 $as_echo "$ac_cv_libexpat" >&6; }
10144 if test "$ac_cv_libexpat" = yes; then
10147 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
10150 $as_echo_n "checking how to link with libexpat... " >&6; }
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
10152 $as_echo "$LIBEXPAT" >&6; }
10155 CPPFLAGS
="$ac_save_CPPFLAGS"
10165 if test "$HAVE_LIBEXPAT" != yes; then
10166 if test "$with_expat" = yes; then
10167 as_fn_error $?
"expat is missing or unusable" "$LINENO" 5
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
10170 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
10174 LIBS
="$LIBS $LIBEXPAT"
10175 for ac_func
in XML_StopParser
10177 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
10178 if test "x$ac_cv_func_XML_StopParser" = xyes
; then :
10179 cat >>confdefs.h
<<_ACEOF
10180 #define HAVE_XML_STOPPARSER 1
10190 # Verify that we have a usable GMP library.
10201 acl_save_prefix
="$prefix"
10202 prefix
="$acl_final_prefix"
10203 acl_save_exec_prefix
="$exec_prefix"
10204 exec_prefix
="$acl_final_exec_prefix"
10206 eval additional_includedir
=\"$includedir\"
10207 eval additional_libdir
=\"$libdir\"
10209 exec_prefix
="$acl_save_exec_prefix"
10210 prefix
="$acl_save_prefix"
10213 # Check whether --with-libgmp-prefix was given.
10214 if test "${with_libgmp_prefix+set}" = set; then :
10215 withval
=$with_libgmp_prefix;
10216 if test "X$withval" = "Xno"; then
10219 if test "X$withval" = "X"; then
10221 acl_save_prefix
="$prefix"
10222 prefix
="$acl_final_prefix"
10223 acl_save_exec_prefix
="$exec_prefix"
10224 exec_prefix
="$acl_final_exec_prefix"
10226 eval additional_includedir
=\"$includedir\"
10227 eval additional_libdir
=\"$libdir\"
10229 exec_prefix
="$acl_save_exec_prefix"
10230 prefix
="$acl_save_prefix"
10233 additional_includedir
="$withval/include"
10234 additional_libdir
="$withval/lib"
10241 # Check whether --with-libgmp-type was given.
10242 if test "${with_libgmp_type+set}" = set; then :
10243 withval
=$with_libgmp_type; with_libgmp_type
=$withval
10245 with_libgmp_type
=auto
10248 lib_type
=`eval echo \$with_libgmp_type`
10255 names_already_handled
=
10256 names_next_round
='gmp '
10257 while test -n "$names_next_round"; do
10258 names_this_round
="$names_next_round"
10260 for name
in $names_this_round; do
10262 for n
in $names_already_handled; do
10263 if test "$n" = "$name"; then
10264 already_handled
=yes
10268 if test -z "$already_handled"; then
10269 names_already_handled
="$names_already_handled $name"
10270 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10271 eval value
=\"\
$HAVE_LIB$uppername\"
10272 if test -n "$value"; then
10273 if test "$value" = yes; then
10274 eval value
=\"\
$LIB$uppername\"
10275 test -z "$value" || LIBGMP
="${LIBGMP}${LIBGMP:+ }$value"
10276 eval value
=\"\
$LTLIB$uppername\"
10277 test -z "$value" || LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }$value"
10286 if test $use_additional = yes; then
10287 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10288 found_dir
="$additional_libdir"
10289 found_so
="$additional_libdir/lib$name.$shlibext"
10290 if test -f "$additional_libdir/lib$name.la"; then
10291 found_la
="$additional_libdir/lib$name.la"
10293 elif test x
$lib_type != xshared
; then
10294 if test -f "$additional_libdir/lib$name.$libext"; then
10295 found_dir
="$additional_libdir"
10296 found_a
="$additional_libdir/lib$name.$libext"
10297 if test -f "$additional_libdir/lib$name.la"; then
10298 found_la
="$additional_libdir/lib$name.la"
10303 if test "X$found_dir" = "X"; then
10304 for x
in $LDFLAGS $LTLIBGMP; do
10306 acl_save_prefix
="$prefix"
10307 prefix
="$acl_final_prefix"
10308 acl_save_exec_prefix
="$exec_prefix"
10309 exec_prefix
="$acl_final_exec_prefix"
10311 exec_prefix
="$acl_save_exec_prefix"
10312 prefix
="$acl_save_prefix"
10316 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10317 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10319 found_so
="$dir/lib$name.$shlibext"
10320 if test -f "$dir/lib$name.la"; then
10321 found_la
="$dir/lib$name.la"
10323 elif test x
$lib_type != xshared
; then
10324 if test -f "$dir/lib$name.$libext"; then
10326 found_a
="$dir/lib$name.$libext"
10327 if test -f "$dir/lib$name.la"; then
10328 found_la
="$dir/lib$name.la"
10334 if test "X$found_dir" != "X"; then
10339 if test "X$found_dir" != "X"; then
10340 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }-L$found_dir -l$name"
10341 if test "X$found_so" != "X"; then
10342 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10343 LIBGMP
="${LIBGMP}${LIBGMP:+ }$found_so"
10346 for x
in $ltrpathdirs; do
10347 if test "X$x" = "X$found_dir"; then
10352 if test -z "$haveit"; then
10353 ltrpathdirs
="$ltrpathdirs $found_dir"
10355 if test "$hardcode_direct" = yes; then
10356 LIBGMP
="${LIBGMP}${LIBGMP:+ }$found_so"
10358 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10359 LIBGMP
="${LIBGMP}${LIBGMP:+ }$found_so"
10361 for x
in $rpathdirs; do
10362 if test "X$x" = "X$found_dir"; then
10367 if test -z "$haveit"; then
10368 rpathdirs
="$rpathdirs $found_dir"
10372 for x
in $LDFLAGS $LIBGMP; do
10374 acl_save_prefix
="$prefix"
10375 prefix
="$acl_final_prefix"
10376 acl_save_exec_prefix
="$exec_prefix"
10377 exec_prefix
="$acl_final_exec_prefix"
10379 exec_prefix
="$acl_save_exec_prefix"
10380 prefix
="$acl_save_prefix"
10382 if test "X$x" = "X-L$found_dir"; then
10387 if test -z "$haveit"; then
10388 LIBGMP
="${LIBGMP}${LIBGMP:+ }-L$found_dir"
10390 if test "$hardcode_minus_L" != no
; then
10391 LIBGMP
="${LIBGMP}${LIBGMP:+ }$found_so"
10393 LIBGMP
="${LIBGMP}${LIBGMP:+ }-l$name"
10399 if test "X$found_a" != "X"; then
10400 LIBGMP
="${LIBGMP}${LIBGMP:+ }$found_a"
10402 LIBGMP
="${LIBGMP}${LIBGMP:+ }-L$found_dir -l$name"
10405 additional_includedir
=
10406 case "$found_dir" in
10408 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10409 additional_includedir
="$basedir/include"
10412 if test "X$additional_includedir" != "X"; then
10413 if test "X$additional_includedir" != "X/usr/include"; then
10415 if test "X$additional_includedir" = "X/usr/local/include"; then
10416 if test -n "$GCC"; then
10418 linux
*) haveit
=yes;;
10422 if test -z "$haveit"; then
10423 for x
in $CPPFLAGS $INCGMP; do
10425 acl_save_prefix
="$prefix"
10426 prefix
="$acl_final_prefix"
10427 acl_save_exec_prefix
="$exec_prefix"
10428 exec_prefix
="$acl_final_exec_prefix"
10430 exec_prefix
="$acl_save_exec_prefix"
10431 prefix
="$acl_save_prefix"
10433 if test "X$x" = "X-I$additional_includedir"; then
10438 if test -z "$haveit"; then
10439 if test -d "$additional_includedir"; then
10440 INCGMP
="${INCGMP}${INCGMP:+ }-I$additional_includedir"
10446 if test -n "$found_la"; then
10447 save_libdir
="$libdir"
10448 case "$found_la" in
10449 */* |
*\\*) .
"$found_la" ;;
10450 *) .
"./$found_la" ;;
10452 libdir
="$save_libdir"
10453 for dep
in $dependency_libs; do
10456 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10457 if test "X$additional_libdir" != "X/usr/lib"; then
10459 if test "X$additional_libdir" = "X/usr/local/lib"; then
10460 if test -n "$GCC"; then
10462 linux
*) haveit
=yes;;
10466 if test -z "$haveit"; then
10468 for x
in $LDFLAGS $LIBGMP; do
10470 acl_save_prefix
="$prefix"
10471 prefix
="$acl_final_prefix"
10472 acl_save_exec_prefix
="$exec_prefix"
10473 exec_prefix
="$acl_final_exec_prefix"
10475 exec_prefix
="$acl_save_exec_prefix"
10476 prefix
="$acl_save_prefix"
10478 if test "X$x" = "X-L$additional_libdir"; then
10483 if test -z "$haveit"; then
10484 if test -d "$additional_libdir"; then
10485 LIBGMP
="${LIBGMP}${LIBGMP:+ }-L$additional_libdir"
10489 for x
in $LDFLAGS $LTLIBGMP; do
10491 acl_save_prefix
="$prefix"
10492 prefix
="$acl_final_prefix"
10493 acl_save_exec_prefix
="$exec_prefix"
10494 exec_prefix
="$acl_final_exec_prefix"
10496 exec_prefix
="$acl_save_exec_prefix"
10497 prefix
="$acl_save_prefix"
10499 if test "X$x" = "X-L$additional_libdir"; then
10504 if test -z "$haveit"; then
10505 if test -d "$additional_libdir"; then
10506 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }-L$additional_libdir"
10513 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10514 if test "$enable_rpath" != no
; then
10516 for x
in $rpathdirs; do
10517 if test "X$x" = "X$dir"; then
10522 if test -z "$haveit"; then
10523 rpathdirs
="$rpathdirs $dir"
10526 for x
in $ltrpathdirs; do
10527 if test "X$x" = "X$dir"; then
10532 if test -z "$haveit"; then
10533 ltrpathdirs
="$ltrpathdirs $dir"
10538 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10541 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10544 LIBGMP
="${LIBGMP}${LIBGMP:+ }$dep"
10545 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }$dep"
10551 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
10552 LIBGMP
="${LIBGMP}${LIBGMP:+ }-l$name"
10553 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }-l$name"
10555 LIBGMP
="${LIBGMP}${LIBGMP:+ }-l:lib$name.$libext"
10556 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }-l:lib$name.$libext"
10563 if test "X$rpathdirs" != "X"; then
10564 if test -n "$hardcode_libdir_separator"; then
10566 for found_dir
in $rpathdirs; do
10567 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10569 acl_save_libdir
="$libdir"
10571 eval flag
=\"$hardcode_libdir_flag_spec\"
10572 libdir
="$acl_save_libdir"
10573 LIBGMP
="${LIBGMP}${LIBGMP:+ }$flag"
10575 for found_dir
in $rpathdirs; do
10576 acl_save_libdir
="$libdir"
10577 libdir
="$found_dir"
10578 eval flag
=\"$hardcode_libdir_flag_spec\"
10579 libdir
="$acl_save_libdir"
10580 LIBGMP
="${LIBGMP}${LIBGMP:+ }$flag"
10584 if test "X$ltrpathdirs" != "X"; then
10585 for found_dir
in $ltrpathdirs; do
10586 LTLIBGMP
="${LTLIBGMP}${LTLIBGMP:+ }-R$found_dir"
10591 ac_save_CPPFLAGS
="$CPPFLAGS"
10593 for element
in $INCGMP; do
10595 for x
in $CPPFLAGS; do
10597 acl_save_prefix
="$prefix"
10598 prefix
="$acl_final_prefix"
10599 acl_save_exec_prefix
="$exec_prefix"
10600 exec_prefix
="$acl_final_exec_prefix"
10602 exec_prefix
="$acl_save_exec_prefix"
10603 prefix
="$acl_save_prefix"
10605 if test "X$x" = "X$element"; then
10610 if test -z "$haveit"; then
10611 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgmp" >&5
10617 $as_echo_n "checking for libgmp... " >&6; }
10618 if ${ac_cv_libgmp+:} false
; then :
10619 $as_echo_n "(cached) " >&6
10622 ac_save_LIBS
="$LIBS"
10623 LIBS
="$LIBS $LIBGMP"
10624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10625 /* end confdefs.h. */
10636 if ac_fn_c_try_link
"$LINENO"; then :
10641 rm -f core conftest.err conftest.
$ac_objext \
10642 conftest
$ac_exeext conftest.
$ac_ext
10643 LIBS
="$ac_save_LIBS"
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgmp" >&5
10647 $as_echo "$ac_cv_libgmp" >&6; }
10648 if test "$ac_cv_libgmp" = yes; then
10651 $as_echo "#define HAVE_LIBGMP 1" >>confdefs.h
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libgmp" >&5
10654 $as_echo_n "checking how to link with libgmp... " >&6; }
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGMP" >&5
10656 $as_echo "$LIBGMP" >&6; }
10659 CPPFLAGS
="$ac_save_CPPFLAGS"
10669 if test "$HAVE_LIBGMP" != yes; then
10670 as_fn_error $?
"GMP is missing or unusable" "$LINENO" 5
10674 # Check whether --with-mpfr was given.
10675 if test "${with_mpfr+set}" = set; then :
10676 withval
=$with_mpfr;
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5
10682 $as_echo_n "checking whether to use MPFR... " >&6; }
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5
10684 $as_echo "$with_mpfr" >&6; }
10686 if test "${with_mpfr}" = no
; then
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5
10688 $as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;}
10701 acl_save_prefix
="$prefix"
10702 prefix
="$acl_final_prefix"
10703 acl_save_exec_prefix
="$exec_prefix"
10704 exec_prefix
="$acl_final_exec_prefix"
10706 eval additional_includedir
=\"$includedir\"
10707 eval additional_libdir
=\"$libdir\"
10709 exec_prefix
="$acl_save_exec_prefix"
10710 prefix
="$acl_save_prefix"
10713 # Check whether --with-libmpfr-prefix was given.
10714 if test "${with_libmpfr_prefix+set}" = set; then :
10715 withval
=$with_libmpfr_prefix;
10716 if test "X$withval" = "Xno"; then
10719 if test "X$withval" = "X"; then
10721 acl_save_prefix
="$prefix"
10722 prefix
="$acl_final_prefix"
10723 acl_save_exec_prefix
="$exec_prefix"
10724 exec_prefix
="$acl_final_exec_prefix"
10726 eval additional_includedir
=\"$includedir\"
10727 eval additional_libdir
=\"$libdir\"
10729 exec_prefix
="$acl_save_exec_prefix"
10730 prefix
="$acl_save_prefix"
10733 additional_includedir
="$withval/include"
10734 additional_libdir
="$withval/lib"
10741 # Check whether --with-libmpfr-type was given.
10742 if test "${with_libmpfr_type+set}" = set; then :
10743 withval
=$with_libmpfr_type; with_libmpfr_type
=$withval
10745 with_libmpfr_type
=auto
10748 lib_type
=`eval echo \$with_libmpfr_type`
10755 names_already_handled
=
10756 names_next_round
='mpfr gmp'
10757 while test -n "$names_next_round"; do
10758 names_this_round
="$names_next_round"
10760 for name
in $names_this_round; do
10762 for n
in $names_already_handled; do
10763 if test "$n" = "$name"; then
10764 already_handled
=yes
10768 if test -z "$already_handled"; then
10769 names_already_handled
="$names_already_handled $name"
10770 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10771 eval value
=\"\
$HAVE_LIB$uppername\"
10772 if test -n "$value"; then
10773 if test "$value" = yes; then
10774 eval value
=\"\
$LIB$uppername\"
10775 test -z "$value" || LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$value"
10776 eval value
=\"\
$LTLIB$uppername\"
10777 test -z "$value" || LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$value"
10786 if test $use_additional = yes; then
10787 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10788 found_dir
="$additional_libdir"
10789 found_so
="$additional_libdir/lib$name.$shlibext"
10790 if test -f "$additional_libdir/lib$name.la"; then
10791 found_la
="$additional_libdir/lib$name.la"
10793 elif test x
$lib_type != xshared
; then
10794 if test -f "$additional_libdir/lib$name.$libext"; then
10795 found_dir
="$additional_libdir"
10796 found_a
="$additional_libdir/lib$name.$libext"
10797 if test -f "$additional_libdir/lib$name.la"; then
10798 found_la
="$additional_libdir/lib$name.la"
10803 if test "X$found_dir" = "X"; then
10804 for x
in $LDFLAGS $LTLIBMPFR; do
10806 acl_save_prefix
="$prefix"
10807 prefix
="$acl_final_prefix"
10808 acl_save_exec_prefix
="$exec_prefix"
10809 exec_prefix
="$acl_final_exec_prefix"
10811 exec_prefix
="$acl_save_exec_prefix"
10812 prefix
="$acl_save_prefix"
10816 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10817 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10819 found_so
="$dir/lib$name.$shlibext"
10820 if test -f "$dir/lib$name.la"; then
10821 found_la
="$dir/lib$name.la"
10823 elif test x
$lib_type != xshared
; then
10824 if test -f "$dir/lib$name.$libext"; then
10826 found_a
="$dir/lib$name.$libext"
10827 if test -f "$dir/lib$name.la"; then
10828 found_la
="$dir/lib$name.la"
10834 if test "X$found_dir" != "X"; then
10839 if test "X$found_dir" != "X"; then
10840 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$found_dir -l$name"
10841 if test "X$found_so" != "X"; then
10842 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10843 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10846 for x
in $ltrpathdirs; do
10847 if test "X$x" = "X$found_dir"; then
10852 if test -z "$haveit"; then
10853 ltrpathdirs
="$ltrpathdirs $found_dir"
10855 if test "$hardcode_direct" = yes; then
10856 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10858 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10859 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10861 for x
in $rpathdirs; do
10862 if test "X$x" = "X$found_dir"; then
10867 if test -z "$haveit"; then
10868 rpathdirs
="$rpathdirs $found_dir"
10872 for x
in $LDFLAGS $LIBMPFR; do
10874 acl_save_prefix
="$prefix"
10875 prefix
="$acl_final_prefix"
10876 acl_save_exec_prefix
="$exec_prefix"
10877 exec_prefix
="$acl_final_exec_prefix"
10879 exec_prefix
="$acl_save_exec_prefix"
10880 prefix
="$acl_save_prefix"
10882 if test "X$x" = "X-L$found_dir"; then
10887 if test -z "$haveit"; then
10888 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir"
10890 if test "$hardcode_minus_L" != no
; then
10891 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10893 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10899 if test "X$found_a" != "X"; then
10900 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_a"
10902 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir -l$name"
10905 additional_includedir
=
10906 case "$found_dir" in
10908 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10909 additional_includedir
="$basedir/include"
10912 if test "X$additional_includedir" != "X"; then
10913 if test "X$additional_includedir" != "X/usr/include"; then
10915 if test "X$additional_includedir" = "X/usr/local/include"; then
10916 if test -n "$GCC"; then
10918 linux
*) haveit
=yes;;
10922 if test -z "$haveit"; then
10923 for x
in $CPPFLAGS $INCMPFR; do
10925 acl_save_prefix
="$prefix"
10926 prefix
="$acl_final_prefix"
10927 acl_save_exec_prefix
="$exec_prefix"
10928 exec_prefix
="$acl_final_exec_prefix"
10930 exec_prefix
="$acl_save_exec_prefix"
10931 prefix
="$acl_save_prefix"
10933 if test "X$x" = "X-I$additional_includedir"; then
10938 if test -z "$haveit"; then
10939 if test -d "$additional_includedir"; then
10940 INCMPFR
="${INCMPFR}${INCMPFR:+ }-I$additional_includedir"
10946 if test -n "$found_la"; then
10947 save_libdir
="$libdir"
10948 case "$found_la" in
10949 */* |
*\\*) .
"$found_la" ;;
10950 *) .
"./$found_la" ;;
10952 libdir
="$save_libdir"
10953 for dep
in $dependency_libs; do
10956 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10957 if test "X$additional_libdir" != "X/usr/lib"; then
10959 if test "X$additional_libdir" = "X/usr/local/lib"; then
10960 if test -n "$GCC"; then
10962 linux
*) haveit
=yes;;
10966 if test -z "$haveit"; then
10968 for x
in $LDFLAGS $LIBMPFR; do
10970 acl_save_prefix
="$prefix"
10971 prefix
="$acl_final_prefix"
10972 acl_save_exec_prefix
="$exec_prefix"
10973 exec_prefix
="$acl_final_exec_prefix"
10975 exec_prefix
="$acl_save_exec_prefix"
10976 prefix
="$acl_save_prefix"
10978 if test "X$x" = "X-L$additional_libdir"; then
10983 if test -z "$haveit"; then
10984 if test -d "$additional_libdir"; then
10985 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$additional_libdir"
10989 for x
in $LDFLAGS $LTLIBMPFR; do
10991 acl_save_prefix
="$prefix"
10992 prefix
="$acl_final_prefix"
10993 acl_save_exec_prefix
="$exec_prefix"
10994 exec_prefix
="$acl_final_exec_prefix"
10996 exec_prefix
="$acl_save_exec_prefix"
10997 prefix
="$acl_save_prefix"
10999 if test "X$x" = "X-L$additional_libdir"; then
11004 if test -z "$haveit"; then
11005 if test -d "$additional_libdir"; then
11006 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$additional_libdir"
11013 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11014 if test "$enable_rpath" != no
; then
11016 for x
in $rpathdirs; do
11017 if test "X$x" = "X$dir"; then
11022 if test -z "$haveit"; then
11023 rpathdirs
="$rpathdirs $dir"
11026 for x
in $ltrpathdirs; do
11027 if test "X$x" = "X$dir"; then
11032 if test -z "$haveit"; then
11033 ltrpathdirs
="$ltrpathdirs $dir"
11038 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11041 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11044 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$dep"
11045 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$dep"
11051 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
11052 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
11053 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l$name"
11055 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l:lib$name.$libext"
11056 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l:lib$name.$libext"
11063 if test "X$rpathdirs" != "X"; then
11064 if test -n "$hardcode_libdir_separator"; then
11066 for found_dir
in $rpathdirs; do
11067 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11069 acl_save_libdir
="$libdir"
11071 eval flag
=\"$hardcode_libdir_flag_spec\"
11072 libdir
="$acl_save_libdir"
11073 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
11075 for found_dir
in $rpathdirs; do
11076 acl_save_libdir
="$libdir"
11077 libdir
="$found_dir"
11078 eval flag
=\"$hardcode_libdir_flag_spec\"
11079 libdir
="$acl_save_libdir"
11080 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
11084 if test "X$ltrpathdirs" != "X"; then
11085 for found_dir
in $ltrpathdirs; do
11086 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-R$found_dir"
11091 ac_save_CPPFLAGS
="$CPPFLAGS"
11093 for element
in $INCMPFR; do
11095 for x
in $CPPFLAGS; do
11097 acl_save_prefix
="$prefix"
11098 prefix
="$acl_final_prefix"
11099 acl_save_exec_prefix
="$exec_prefix"
11100 exec_prefix
="$acl_final_exec_prefix"
11102 exec_prefix
="$acl_save_exec_prefix"
11103 prefix
="$acl_save_prefix"
11105 if test "X$x" = "X$element"; then
11110 if test -z "$haveit"; then
11111 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpfr" >&5
11117 $as_echo_n "checking for libmpfr... " >&6; }
11118 if ${ac_cv_libmpfr+:} false
; then :
11119 $as_echo_n "(cached) " >&6
11122 ac_save_LIBS
="$LIBS"
11123 LIBS
="$LIBS $LIBMPFR"
11124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11125 /* end confdefs.h. */
11130 mpfr_exp_t exp; mpfr_t x;
11131 mpfr_frexp (&exp, x, x, MPFR_RNDN);
11136 if ac_fn_c_try_link
"$LINENO"; then :
11141 rm -f core conftest.err conftest.
$ac_objext \
11142 conftest
$ac_exeext conftest.
$ac_ext
11143 LIBS
="$ac_save_LIBS"
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmpfr" >&5
11147 $as_echo "$ac_cv_libmpfr" >&6; }
11148 if test "$ac_cv_libmpfr" = yes; then
11151 $as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libmpfr" >&5
11154 $as_echo_n "checking how to link with libmpfr... " >&6; }
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPFR" >&5
11156 $as_echo "$LIBMPFR" >&6; }
11159 CPPFLAGS
="$ac_save_CPPFLAGS"
11169 if test "$HAVE_LIBMPFR" != yes; then
11170 if test "$with_mpfr" = yes; then
11171 as_fn_error $?
"MPFR is missing or unusable" "$LINENO" 5
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR is missing or unusable; some features may be unavailable." >&5
11174 $as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;}
11179 # --------------------- #
11180 # Check for libpython. #
11181 # --------------------- #
11188 # Check whether --with-python was given.
11189 if test "${with_python+set}" = set; then :
11190 withval
=$with_python;
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
11196 $as_echo_n "checking whether to use python... " >&6; }
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
11198 $as_echo "$with_python" >&6; }
11200 if test "${with_python}" = no
; then
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
11202 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
11205 case "${with_python}" in
11207 if test -d "${with_python}"; then
11208 # Assume the python binary is ${with_python}/bin/python.
11209 python_prog
="${with_python}/bin/python"
11211 # If python does not exit ${with_python}/bin, then try in
11212 # ${with_python}. On Windows/MinGW, this is where the Python
11214 if test ! -x "${python_prog}"; then
11215 python_prog
="${with_python}/python"
11218 if test ! -x "${python_prog}"; then
11219 # Fall back to gdb 7.0/7.1 behaviour.
11220 python_prog
=missing
11221 python_prefix
=${with_python}
11223 elif test -x "${with_python}"; then
11224 # While we can't run python compiled for $host (unless host == build),
11225 # the user could write a script that provides the needed information,
11226 # so we support that.
11227 python_prog
=${with_python}
11230 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
11234 # Disallow --with-python=foo/bar.
11235 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
11238 # The user has either specified auto, yes, or the name of the python
11239 # program assumed to be in $PATH.
11241 case "${with_python}" in
11243 if test "${build}" = "${host}"; then
11244 # Look first for 'python', then 'python3'.
11245 for ac_prog
in python python3
11247 # Extract the first word of "$ac_prog", so it can be a program name with args.
11248 set dummy
$ac_prog; ac_word
=$2
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11250 $as_echo_n "checking for $ac_word... " >&6; }
11251 if ${ac_cv_path_python_prog_path+:} false
; then :
11252 $as_echo_n "(cached) " >&6
11254 case $python_prog_path in
11256 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
11259 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11260 for as_dir
in $PATH
11263 test -z "$as_dir" && as_dir
=.
11264 for ac_exec_ext
in '' $ac_executable_extensions; do
11265 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11266 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
11267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11277 python_prog_path
=$ac_cv_path_python_prog_path
11278 if test -n "$python_prog_path"; then
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
11280 $as_echo "$python_prog_path" >&6; }
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11283 $as_echo "no" >&6; }
11287 test -n "$python_prog_path" && break
11289 test -n "$python_prog_path" || python_prog_path
="missing"
11291 if test "${python_prog_path}" = missing
; then
11292 python_prog
=missing
11294 python_prog
=${python_prog_path}
11297 # Not much we can do except assume the cross-compiler will find the
11299 python_prog
=missing
11303 # While we can't run python compiled for $host (unless host == build),
11304 # the user could write a script that provides the needed information,
11305 # so we support that.
11306 python_prog
="${with_python}"
11307 # Extract the first word of "${python_prog}", so it can be a program name with args.
11308 set dummy
${python_prog}; ac_word
=$2
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11310 $as_echo_n "checking for $ac_word... " >&6; }
11311 if ${ac_cv_path_python_prog_path+:} false
; then :
11312 $as_echo_n "(cached) " >&6
11314 case $python_prog_path in
11316 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
11319 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11320 for as_dir
in $PATH
11323 test -z "$as_dir" && as_dir
=.
11324 for ac_exec_ext
in '' $ac_executable_extensions; do
11325 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11326 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
11327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11334 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
11338 python_prog_path
=$ac_cv_path_python_prog_path
11339 if test -n "$python_prog_path"; then
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
11341 $as_echo "$python_prog_path" >&6; }
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11344 $as_echo "no" >&6; }
11348 if test "${python_prog_path}" = missing
; then
11349 as_fn_error $?
"unable to find python program ${python_prog}" "$LINENO" 5
11355 if test "${python_prog}" != missing
; then
11356 # We have a python program to use, but it may be too old.
11357 # Don't flag an error for --with-python=auto (the default).
11358 have_python_config
=yes
11359 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
11360 if test $?
!= 0; then
11361 have_python_config
=failed
11362 if test "${with_python}" != auto
; then
11363 as_fn_error $?
"failure running python-config --includes" "$LINENO" 5
11366 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
11367 if test $?
!= 0; then
11368 have_python_config
=failed
11369 if test "${with_python}" != auto
; then
11370 as_fn_error $?
"failure running python-config --ldflags" "$LINENO" 5
11373 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
11374 if test $?
!= 0; then
11375 have_python_config
=failed
11376 if test "${with_python}" != auto
; then
11377 as_fn_error $?
"failure running python-config --exec-prefix" "$LINENO" 5
11381 # We do not have a python executable we can use to determine where
11382 # to find the Python headers and libs. We cannot guess the include
11383 # path from the python_prefix either, because that include path
11384 # depends on the Python version. So, there is nothing much we can
11385 # do except assume that the compiler will be able to find those files.
11388 have_python_config
=no
11391 # If we have python-config, only try the configuration it provides.
11392 # Otherwise fallback on the old way of trying different versions of
11396 if test "${have_python_config}" = yes; then
11399 new_CPPFLAGS
=${python_includes}
11400 new_LIBS
=${python_libs}
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
11402 $as_echo_n "checking for python... " >&6; }
11403 save_CPPFLAGS
=$CPPFLAGS
11405 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11406 LIBS
="$new_LIBS $LIBS"
11407 found_usable_python
=no
11408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11409 /* end confdefs.h. */
11410 #include "Python.h"
11415 #if PY_MAJOR_VERSION != 3
11416 # error "We only support Python 3"
11424 if ac_fn_c_try_link
"$LINENO"; then :
11426 found_usable_python
=yes
11427 PYTHON_CPPFLAGS
=$new_CPPFLAGS
11428 PYTHON_LIBS
=$new_LIBS
11430 rm -f core conftest.err conftest.
$ac_objext \
11431 conftest
$ac_exeext conftest.
$ac_ext
11432 CPPFLAGS
=$save_CPPFLAGS
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11435 $as_echo "${found_usable_python}" >&6; }
11439 if test "${have_libpython}" = no
; then
11440 case "${with_python}" in
11442 as_fn_error $?
"python is missing or unusable" "$LINENO" 5
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
11446 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
11449 as_fn_error $?
"no usable python found at ${with_python}" "$LINENO" 5
11453 if test -n "${python_prefix}"; then
11455 cat >>confdefs.h
<<_ACEOF
11456 #define WITH_PYTHON_PATH "${python_prefix}"
11460 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
11461 if test "x$prefix" = xNONE
; then
11462 test_prefix
=/usr
/local
11464 test_prefix
=$prefix
11467 test_prefix
=$exec_prefix
11470 case ${python_prefix} in
11471 "${test_prefix}"|
"${test_prefix}/"*|\
11472 '${exec_prefix}'|
'${exec_prefix}/'*)
11477 cat >>confdefs.h
<<_ACEOF
11478 #define PYTHON_PATH_RELOCATABLE $value
11487 # Check whether --with-python-libdir was given.
11488 if test "${with_python_libdir+set}" = set; then :
11489 withval
=$with_python_libdir;
11492 # If no python libdir is specified then select one based on
11493 # python's prefix path.
11494 if test -n "${python_prefix}"; then
11495 with_python_libdir
=${python_prefix}/lib
11501 if test "${have_libpython}" != no
; then
11503 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
11505 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
11506 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
11507 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
11508 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
11509 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
11511 if test -n "${with_python_libdir}"; then
11513 cat >>confdefs.h
<<_ACEOF
11514 #define WITH_PYTHON_LIBDIR "${with_python_libdir}"
11518 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
11519 if test "x$prefix" = xNONE
; then
11520 test_prefix
=/usr
/local
11522 test_prefix
=$prefix
11525 test_prefix
=$exec_prefix
11528 case ${with_python_libdir} in
11529 "${test_prefix}"|
"${test_prefix}/"*|\
11530 '${exec_prefix}'|
'${exec_prefix}/'*)
11535 cat >>confdefs.h
<<_ACEOF
11536 #define PYTHON_LIBDIR_RELOCATABLE $value
11542 # Flags needed to compile Python code (taken from python-config --cflags).
11543 # We cannot call python-config directly because it will output whatever was
11544 # used when compiling the Python interpreter itself, including flags which
11545 # would make the python-related objects be compiled differently from the
11546 # rest of GDB (e.g., -O2 and -fPIC).
11547 if test "${GCC}" = yes; then
11548 tentative_python_cflags
="-fno-strict-aliasing -fwrapv"
11549 # Python headers recommend -DNDEBUG, but it's unclear if that just
11550 # refers to building Python itself. In release mode, though, it
11551 # doesn't hurt for the Python code in gdb to follow.
11552 $development || tentative_python_cflags
="$tentative_python_cflags -DNDEBUG"
11555 if test "x${tentative_python_cflags}" != x
; then
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
11557 $as_echo_n "checking compiler flags for python code... " >&6; }
11558 for flag
in ${tentative_python_cflags}; do
11559 # Check that the compiler accepts it
11560 saved_CFLAGS
="$CFLAGS"
11561 CFLAGS
="$CFLAGS $flag"
11562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11563 /* end confdefs.h. */
11573 if ac_fn_c_try_compile
"$LINENO"; then :
11574 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
11576 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11577 CFLAGS
="$saved_CFLAGS"
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
11580 $as_echo "${PYTHON_CFLAGS}" >&6; }
11583 # On x64 Windows, Python's include headers, and pyconfig.h in
11584 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
11585 # version of Windows. Unfortunately, MS_WIN64 is only defined if
11586 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
11587 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
11588 # The issue was reported to the Python community, but still isn't
11589 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
11591 case "$gdb_host" in
11593 if test "${GCC}" = yes; then
11594 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
11599 # Even if Python support is not compiled in, we need to have this file
11600 # included so that the "python" command, et.al., still exists.
11601 CONFIG_OBS
="$CONFIG_OBS python/python.o"
11602 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
11605 # Work around Python http://bugs.python.org/issue10112. See also
11606 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
11607 # no effect. Note that the only test after this that uses Python is
11608 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
11609 # run without -export-dynamic too.
11610 PYTHON_LIBS
=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
11615 if test "${have_libpython}" != no
; then
11617 HAVE_PYTHON_FALSE
='#'
11619 HAVE_PYTHON_TRUE
='#'
11624 # -------------------- #
11625 # Check for libguile. #
11626 # -------------------- #
11633 # Check whether --with-guile was given.
11634 if test "${with_guile+set}" = set; then :
11635 withval
=$with_guile;
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
11641 $as_echo_n "checking whether to use guile... " >&6; }
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
11643 $as_echo "$with_guile" >&6; }
11645 # Extract the first word of "pkg-config", so it can be a program name with args.
11646 set dummy pkg-config
; ac_word
=$2
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11648 $as_echo_n "checking for $ac_word... " >&6; }
11649 if ${ac_cv_path_pkg_config_prog_path+:} false
; then :
11650 $as_echo_n "(cached) " >&6
11652 case $pkg_config_prog_path in
11654 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
11657 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11658 for as_dir
in $PATH
11661 test -z "$as_dir" && as_dir
=.
11662 for ac_exec_ext
in '' $ac_executable_extensions; do
11663 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11664 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
11665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11672 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
11676 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
11677 if test -n "$pkg_config_prog_path"; then
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
11679 $as_echo "$pkg_config_prog_path" >&6; }
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11682 $as_echo "no" >&6; }
11687 try_guile_versions
="guile-3.0 guile-2.2 guile-2.0"
11689 case "${with_guile}" in
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
11692 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
11695 if test "${pkg_config_prog_path}" = "missing"; then
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
11697 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
11700 pkg_config
=${pkg_config_prog_path}
11701 guile_version_list
=${try_guile_versions}
11704 found_usable_guile
=checking
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11706 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11707 for guile_version
in ${guile_version_list}; do
11708 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11709 if test $?
!= 0; then
11712 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11713 if test $?
!= 0; then
11714 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11716 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11717 if test $?
!= 0; then
11718 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11720 found_usable_guile
=${guile_version}
11723 if test "${found_usable_guile}" = "checking"; then
11724 if test "${flag_errors}" = "yes"; then
11725 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11727 found_usable_guile
=no
11730 if test "${found_usable_guile}" != no
; then
11731 save_CPPFLAGS
=$CPPFLAGS
11733 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11734 LIBS
="$LIBS $new_LIBS"
11735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11736 /* end confdefs.h. */
11737 #include "libguile.h"
11746 if ac_fn_c_try_link
"$LINENO"; then :
11748 GUILE_CPPFLAGS
=$new_CPPFLAGS
11749 GUILE_LIBS
=$new_LIBS
11751 found_usable_guile
=no
11753 rm -f core conftest.err conftest.
$ac_objext \
11754 conftest
$ac_exeext conftest.
$ac_ext
11755 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11756 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11758 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11763 CPPFLAGS
=$save_CPPFLAGS
11765 if test "${found_usable_guile}" = no
; then
11766 if test "${flag_errors}" = yes; then
11767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11769 as_fn_error $?
"linking guile version ${guile_version} test program failed
11770 See \`config.log' for more details" "$LINENO" 5; }
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11775 $as_echo "${found_usable_guile}" >&6; }
11780 if test "${pkg_config_prog_path}" = "missing"; then
11781 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11784 pkg_config
=${pkg_config_prog_path}
11785 guile_version_list
=${try_guile_versions}
11788 found_usable_guile
=checking
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11790 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11791 for guile_version
in ${guile_version_list}; do
11792 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11793 if test $?
!= 0; then
11796 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11797 if test $?
!= 0; then
11798 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11800 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11801 if test $?
!= 0; then
11802 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11804 found_usable_guile
=${guile_version}
11807 if test "${found_usable_guile}" = "checking"; then
11808 if test "${flag_errors}" = "yes"; then
11809 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11811 found_usable_guile
=no
11814 if test "${found_usable_guile}" != no
; then
11815 save_CPPFLAGS
=$CPPFLAGS
11817 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11818 LIBS
="$LIBS $new_LIBS"
11819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11820 /* end confdefs.h. */
11821 #include "libguile.h"
11830 if ac_fn_c_try_link
"$LINENO"; then :
11832 GUILE_CPPFLAGS
=$new_CPPFLAGS
11833 GUILE_LIBS
=$new_LIBS
11835 found_usable_guile
=no
11837 rm -f core conftest.err conftest.
$ac_objext \
11838 conftest
$ac_exeext conftest.
$ac_ext
11839 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11840 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11842 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11847 CPPFLAGS
=$save_CPPFLAGS
11849 if test "${found_usable_guile}" = no
; then
11850 if test "${flag_errors}" = yes; then
11851 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11853 as_fn_error $?
"linking guile version ${guile_version} test program failed
11854 See \`config.log' for more details" "$LINENO" 5; }
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11859 $as_echo "${found_usable_guile}" >&6; }
11863 if test -x "${with_guile}"; then
11865 pkg_config
=${with_guile}
11866 guile_version_list
=${try_guile_versions}
11869 found_usable_guile
=checking
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11871 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11872 for guile_version
in ${guile_version_list}; do
11873 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11874 if test $?
!= 0; then
11877 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11878 if test $?
!= 0; then
11879 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11881 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11882 if test $?
!= 0; then
11883 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11885 found_usable_guile
=${guile_version}
11888 if test "${found_usable_guile}" = "checking"; then
11889 if test "${flag_errors}" = "yes"; then
11890 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11892 found_usable_guile
=no
11895 if test "${found_usable_guile}" != no
; then
11896 save_CPPFLAGS
=$CPPFLAGS
11898 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11899 LIBS
="$LIBS $new_LIBS"
11900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11901 /* end confdefs.h. */
11902 #include "libguile.h"
11911 if ac_fn_c_try_link
"$LINENO"; then :
11913 GUILE_CPPFLAGS
=$new_CPPFLAGS
11914 GUILE_LIBS
=$new_LIBS
11916 found_usable_guile
=no
11918 rm -f core conftest.err conftest.
$ac_objext \
11919 conftest
$ac_exeext conftest.
$ac_ext
11920 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11921 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11923 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11928 CPPFLAGS
=$save_CPPFLAGS
11930 if test "${found_usable_guile}" = no
; then
11931 if test "${flag_errors}" = yes; then
11932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11934 as_fn_error $?
"linking guile version ${guile_version} test program failed
11935 See \`config.log' for more details" "$LINENO" 5; }
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11940 $as_echo "${found_usable_guile}" >&6; }
11943 as_fn_error $?
"Guile config program not executable: ${with_guile}" "$LINENO" 5
11947 # Disallow --with=guile="" and --with-guile=foo/bar.
11948 as_fn_error $?
"invalid value for --with-guile" "$LINENO" 5
11951 # A space separate list of guile versions to try, in order.
11952 if test "${pkg_config_prog_path}" = "missing"; then
11953 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11956 pkg_config
=${pkg_config_prog_path}
11957 guile_version_list
=${with_guile}
11960 found_usable_guile
=checking
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11962 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11963 for guile_version
in ${guile_version_list}; do
11964 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11965 if test $?
!= 0; then
11968 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11969 if test $?
!= 0; then
11970 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11972 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11973 if test $?
!= 0; then
11974 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11976 found_usable_guile
=${guile_version}
11979 if test "${found_usable_guile}" = "checking"; then
11980 if test "${flag_errors}" = "yes"; then
11981 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11983 found_usable_guile
=no
11986 if test "${found_usable_guile}" != no
; then
11987 save_CPPFLAGS
=$CPPFLAGS
11989 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11990 LIBS
="$LIBS $new_LIBS"
11991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11992 /* end confdefs.h. */
11993 #include "libguile.h"
12002 if ac_fn_c_try_link
"$LINENO"; then :
12004 GUILE_CPPFLAGS
=$new_CPPFLAGS
12005 GUILE_LIBS
=$new_LIBS
12007 found_usable_guile
=no
12009 rm -f core conftest.err conftest.
$ac_objext \
12010 conftest
$ac_exeext conftest.
$ac_ext
12011 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
12012 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
12014 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
12019 CPPFLAGS
=$save_CPPFLAGS
12021 if test "${found_usable_guile}" = no
; then
12022 if test "${flag_errors}" = yes; then
12023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12025 as_fn_error $?
"linking guile version ${guile_version} test program failed
12026 See \`config.log' for more details" "$LINENO" 5; }
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
12031 $as_echo "${found_usable_guile}" >&6; }
12036 if test "${have_libguile}" != no
; then
12037 case "${with_guile}" in
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
12041 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
12042 if ${ac_cv_guild_program_name+:} false
; then :
12043 $as_echo_n "(cached) " >&6
12045 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
12047 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
12048 # the 'guild' and 'bindir' variables. In that case, try to guess
12049 # what the program name is, at the risk of getting it wrong if
12050 # Guile was configured with '--program-suffix' or similar.
12051 if test "x$ac_cv_guild_program_name" = "x"; then
12052 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
12053 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
12058 $as_echo "$ac_cv_guild_program_name" >&6; }
12060 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
12061 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
12064 GUILD
="$ac_cv_guild_program_name"
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
12071 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
12072 if ${ac_cv_guild_program_name+:} false
; then :
12073 $as_echo_n "(cached) " >&6
12075 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
12077 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
12078 # the 'guild' and 'bindir' variables. In that case, try to guess
12079 # what the program name is, at the risk of getting it wrong if
12080 # Guile was configured with '--program-suffix' or similar.
12081 if test "x$ac_cv_guild_program_name" = "x"; then
12082 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
12083 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
12088 $as_echo "$ac_cv_guild_program_name" >&6; }
12090 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
12091 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
12094 GUILD
="$ac_cv_guild_program_name"
12101 if test "$cross_compiling" = no
; then
12104 GUILD_TARGET_FLAG
="--target=$host"
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
12111 $as_echo_n "checking whether guild supports this host... " >&6; }
12112 if ${ac_cv_guild_ok+:} false
; then :
12113 $as_echo_n "(cached) " >&6
12115 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
12116 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
12123 $as_echo "$ac_cv_guild_ok" >&6; }
12125 if test "$ac_cv_guild_ok" = no
; then
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
12128 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
12132 if test "${have_libguile}" != no
; then
12134 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
12136 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
12137 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
12138 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
12139 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
12140 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
12143 save_CPPFLAGS
="$CPPFLAGS"
12145 CPPFLAGS
="$GUILE_CPPFLAGS"
12146 for ac_func
in scm_new_smob
12148 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
12149 if test "x$ac_cv_func_scm_new_smob" = xyes
; then :
12150 cat >>confdefs.h
<<_ACEOF
12151 #define HAVE_SCM_NEW_SMOB 1
12158 CPPFLAGS
="$save_CPPFLAGS"
12160 # Even if Guile support is not compiled in, we need to have these files
12162 CONFIG_OBS
="$CONFIG_OBS guile/guile.o"
12163 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
12167 if test "${have_libguile}" != no
; then
12169 HAVE_GUILE_FALSE
='#'
12171 HAVE_GUILE_TRUE
='#'
12176 # ---------------------------- #
12177 # Check for source highlight. #
12178 # ---------------------------- #
12183 # Check whether --enable-source-highlight was given.
12184 if test "${enable_source_highlight+set}" = set; then :
12185 enableval
=$enable_source_highlight;
12190 as_fn_error $?
"bad value $enableval for --enable-source-highlight" "$LINENO" 5
12195 enable_source_highlight
=auto
12199 if test "${enable_source_highlight}" != "no"; then
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
12201 $as_echo_n "checking for the source-highlight library... " >&6; }
12202 if test "${pkg_config_prog_path}" = "missing"; then
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
12204 $as_echo "no - pkg-config not found" >&6; }
12205 if test "${enable_source_highlight}" = "yes"; then
12206 as_fn_error $?
"pkg-config was not found in your system" "$LINENO" 5
12209 if ${pkg_config_prog_path} --exists source-highlight
; then
12212 as_fn_error $?
"source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
12216 srchigh_pkg_cflags
=`${pkg_config_prog_path} --cflags source-highlight`
12217 srchigh_pkg_libs
=`${pkg_config_prog_path} --libs source-highlight`
12219 # Now that we have found a source-highlight library, check if we can use
12220 # it. In particular, we're trying to detect the situation that the
12221 # library is using the new libstdc++ library abi ( see
12222 # https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html )
12223 # while the compiler being used to compile gdb is using the old abi.
12224 # Such a situation will result in an undefined reference to
12225 # srchilite::SourceHighlight::SourceHighlight(std::string const&).
12226 # This situation can occur for instance when using a source highlight
12227 # library compiled with g++ 7.5.0 while building gdb with g++ 4.8.5.
12229 ac_cpp
='$CXXCPP $CPPFLAGS'
12230 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12231 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12232 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12234 save_CXXFLAGS
="$CXXFLAGS"
12236 CXXFLAGS
="$CXXFLAGS $srchigh_pkg_cflags"
12237 LIBS
="$LIBS $srchigh_pkg_libs"
12238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12239 /* end confdefs.h. */
12240 #include <srchilite/sourcehighlight.h>
12244 std::string outlang = "esc.outlang";
12245 new srchilite::SourceHighlight (outlang);
12251 if ac_fn_cxx_try_link
"$LINENO"; then :
12252 have_usable_source_highlight
=yes
12254 have_usable_source_highlight
=no
12257 rm -f core conftest.err conftest.
$ac_objext \
12258 conftest
$ac_exeext conftest.
$ac_ext
12259 CXXFLAGS
="$save_CXXFLAGS"
12262 ac_cpp
='$CPP $CPPFLAGS'
12263 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12264 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12265 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12268 if test "${have_usable_source_highlight}" = "yes"; then
12270 $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12273 $as_echo "yes" >&6; }
12274 SRCHIGH_CFLAGS
="$srchigh_pkg_cflags"
12275 SRCHIGH_LIBS
="$srchigh_pkg_libs"
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12278 $as_echo "no" >&6; }
12279 if test "${enable_source_highlight}" = "yes"; then
12280 as_fn_error $?
"source-highlight in your system could not be used" "$LINENO" 5
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12285 $as_echo "no" >&6; }
12286 if test "${enable_source_highlight}" = "yes"; then
12287 as_fn_error $?
"source-highlight was not found in your system" "$LINENO" 5
12295 # ------------------------- #
12296 # Checks for header files. #
12297 # ------------------------- #
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12300 $as_echo_n "checking for ANSI C header files... " >&6; }
12301 if ${ac_cv_header_stdc+:} false
; then :
12302 $as_echo_n "(cached) " >&6
12304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12305 /* end confdefs.h. */
12306 #include <stdlib.h>
12307 #include <stdarg.h>
12308 #include <string.h>
12319 if ac_fn_c_try_compile
"$LINENO"; then :
12320 ac_cv_header_stdc
=yes
12322 ac_cv_header_stdc
=no
12324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12326 if test $ac_cv_header_stdc = yes; then
12327 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12329 /* end confdefs.h. */
12330 #include <string.h>
12333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12334 $EGREP "memchr" >/dev
/null
2>&1; then :
12337 ac_cv_header_stdc
=no
12343 if test $ac_cv_header_stdc = yes; then
12344 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12346 /* end confdefs.h. */
12347 #include <stdlib.h>
12350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12351 $EGREP "free" >/dev
/null
2>&1; then :
12354 ac_cv_header_stdc
=no
12360 if test $ac_cv_header_stdc = yes; then
12361 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12362 if test "$cross_compiling" = yes; then :
12365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12366 /* end confdefs.h. */
12368 #include <stdlib.h>
12369 #if ((' ' & 0x0FF) == 0x020)
12370 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12371 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12373 # define ISLOWER(c) \
12374 (('a' <= (c) && (c) <= 'i') \
12375 || ('j' <= (c) && (c) <= 'r') \
12376 || ('s' <= (c) && (c) <= 'z'))
12377 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12380 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12385 for (i = 0; i < 256; i++)
12386 if (XOR (islower (i), ISLOWER (i))
12387 || toupper (i) != TOUPPER (i))
12392 if ac_fn_c_try_run
"$LINENO"; then :
12395 ac_cv_header_stdc
=no
12397 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12398 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12404 $as_echo "$ac_cv_header_stdc" >&6; }
12405 if test $ac_cv_header_stdc = yes; then
12407 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12411 # elf_hp.h is for HP/UX 64-bit shared library support.
12412 for ac_header
in nlist.h machine
/reg.h \
12414 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
12415 sys
/procctl.h sys
/resource.h sys
/ptrace.h ptrace.h \
12416 sys
/reg.h sys
/debugreg.h \
12419 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12420 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12421 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12422 cat >>confdefs.h
<<_ACEOF
12423 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12430 for ac_header
in sys
/user.h
12432 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
12433 # include <sys/param.h>
12437 if test "x$ac_cv_header_sys_user_h" = xyes
; then :
12438 cat >>confdefs.h
<<_ACEOF
12439 #define HAVE_SYS_USER_H 1
12447 for ac_header
in curses.h cursesX.h ncurses.h ncursesw
/ncurses.h ncurses
/ncurses.h ncurses
/term.h
12449 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12450 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12451 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12452 cat >>confdefs.h
<<_ACEOF
12453 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12460 for ac_header
in term.h
12462 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
12463 # include <curses.h>
12467 if test "x$ac_cv_header_term_h" = xyes
; then :
12468 cat >>confdefs.h
<<_ACEOF
12469 #define HAVE_TERM_H 1
12477 for ac_header
in sys
/socket.h
12479 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
12480 if test "x$ac_cv_header_sys_socket_h" = xyes
; then :
12481 cat >>confdefs.h
<<_ACEOF
12482 #define HAVE_SYS_SOCKET_H 1
12489 for ac_header
in ws2tcpip.h
12491 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
12492 if test "x$ac_cv_header_ws2tcpip_h" = xyes
; then :
12493 cat >>confdefs.h
<<_ACEOF
12494 #define HAVE_WS2TCPIP_H 1
12501 for ac_header
in execinfo.h
12503 ac_fn_c_check_header_mongrel
"$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
12504 if test "x$ac_cv_header_execinfo_h" = xyes
; then :
12505 cat >>confdefs.h
<<_ACEOF
12506 #define HAVE_EXECINFO_H 1
12514 # ------------------------- #
12515 # Checks for declarations. #
12516 # ------------------------- #
12519 # Check for presence and size of long long.
12520 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12521 if test "x$ac_cv_type_long_long" = xyes
; then :
12523 cat >>confdefs.h
<<_ACEOF
12524 #define HAVE_LONG_LONG 1
12527 # The cast to long int works around a bug in the HP C Compiler
12528 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12529 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12530 # This bug is HP SR number 8606223364.
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12532 $as_echo_n "checking size of long long... " >&6; }
12533 if ${ac_cv_sizeof_long_long+:} false
; then :
12534 $as_echo_n "(cached) " >&6
12536 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12539 if test "$ac_cv_type_long_long" = yes; then
12540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12542 as_fn_error
77 "cannot compute sizeof (long long)
12543 See \`config.log' for more details" "$LINENO" 5; }
12545 ac_cv_sizeof_long_long
=0
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12551 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12555 cat >>confdefs.h
<<_ACEOF
12556 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12563 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
12564 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
12565 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
12571 cat >>confdefs.h
<<_ACEOF
12572 #define HAVE_DECL_BASENAME $ac_have_decl
12574 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
12575 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
12581 cat >>confdefs.h
<<_ACEOF
12582 #define HAVE_DECL_FFS $ac_have_decl
12584 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12585 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
12591 cat >>confdefs.h
<<_ACEOF
12592 #define HAVE_DECL_ASPRINTF $ac_have_decl
12594 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12595 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
12601 cat >>confdefs.h
<<_ACEOF
12602 #define HAVE_DECL_VASPRINTF $ac_have_decl
12604 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12605 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12611 cat >>confdefs.h
<<_ACEOF
12612 #define HAVE_DECL_SNPRINTF $ac_have_decl
12614 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12615 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
12621 cat >>confdefs.h
<<_ACEOF
12622 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12625 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
12626 if test "x$ac_cv_have_decl_strtol" = xyes
; then :
12632 cat >>confdefs.h
<<_ACEOF
12633 #define HAVE_DECL_STRTOL $ac_have_decl
12635 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
12636 if test "x$ac_cv_have_decl_strtoul" = xyes
; then :
12642 cat >>confdefs.h
<<_ACEOF
12643 #define HAVE_DECL_STRTOUL $ac_have_decl
12645 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
12646 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
12652 cat >>confdefs.h
<<_ACEOF
12653 #define HAVE_DECL_STRTOLL $ac_have_decl
12655 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
12656 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
12662 cat >>confdefs.h
<<_ACEOF
12663 #define HAVE_DECL_STRTOULL $ac_have_decl
12666 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12667 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
12673 cat >>confdefs.h
<<_ACEOF
12674 #define HAVE_DECL_STRVERSCMP $ac_have_decl
12679 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12680 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12686 cat >>confdefs.h
<<_ACEOF
12687 #define HAVE_DECL_SNPRINTF $ac_have_decl
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12692 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12693 if ${am_cv_val_LC_MESSAGES+:} false
; then :
12694 $as_echo_n "(cached) " >&6
12696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12697 /* end confdefs.h. */
12698 #include <locale.h>
12707 if ac_fn_c_try_link
"$LINENO"; then :
12708 am_cv_val_LC_MESSAGES
=yes
12710 am_cv_val_LC_MESSAGES
=no
12712 rm -f core conftest.err conftest.
$ac_objext \
12713 conftest
$ac_exeext conftest.
$ac_ext
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12716 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12717 if test $am_cv_val_LC_MESSAGES = yes; then
12719 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12724 # ------------------ #
12725 # Checks for types. #
12726 # ------------------ #
12728 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12729 #if HAVE_SYS_SOCKET_H
12730 # include <sys/socket.h>
12731 #elif HAVE_WS2TCPIP_H
12732 # include <ws2tcpip.h>
12736 if test "x$ac_cv_type_socklen_t" = xyes
; then :
12738 cat >>confdefs.h
<<_ACEOF
12739 #define HAVE_SOCKLEN_T 1
12746 # ------------------------------------- #
12747 # Checks for compiler characteristics. #
12748 # ------------------------------------- #
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12751 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12752 if ${ac_cv_c_const+:} false
; then :
12753 $as_echo_n "(cached) " >&6
12755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12756 /* end confdefs.h. */
12762 #ifndef __cplusplus
12763 /* Ultrix mips cc rejects this sort of thing. */
12764 typedef int charset[2];
12765 const charset cs = { 0, 0 };
12766 /* SunOS 4.1.1 cc rejects this. */
12767 char const *const *pcpcc;
12769 /* NEC SVR4.0.2 mips cc rejects this. */
12770 struct point {int x, y;};
12771 static struct point const zero = {0,0};
12772 /* AIX XL C 1.02.0.0 rejects this.
12773 It does not let you subtract one const X* pointer from another in
12774 an arm of an if-expression whose if-part is not a constant
12776 const char *g = "string";
12777 pcpcc = &g + (g ? g-g : 0);
12778 /* HPUX 7.0 cc rejects these. */
12780 ppc = (char**) pcpcc;
12781 pcpcc = (char const *const *) ppc;
12782 { /* SCO 3.2v4 cc rejects this sort of thing. */
12785 char const *s = 0 ? (char *) 0 : (char const *) 0;
12790 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12791 int x[] = {25, 17};
12792 const int *foo = &x[0];
12795 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12796 typedef const int *iptr;
12800 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12801 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12802 struct s { int j; const int *ap[3]; } bx;
12803 struct s *b = &bx; b->j = 5;
12805 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12806 const int foo = 10;
12807 if (!foo) return 0;
12809 return !cs[0] && !zero.x;
12816 if ac_fn_c_try_compile
"$LINENO"; then :
12821 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12824 $as_echo "$ac_cv_c_const" >&6; }
12825 if test $ac_cv_c_const = no
; then
12827 $as_echo "#define const /**/" >>confdefs.h
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12832 $as_echo_n "checking for inline... " >&6; }
12833 if ${ac_cv_c_inline+:} false
; then :
12834 $as_echo_n "(cached) " >&6
12837 for ac_kw
in inline __inline__ __inline
; do
12838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12839 /* end confdefs.h. */
12840 #ifndef __cplusplus
12842 static $ac_kw foo_t static_foo () {return 0; }
12843 $ac_kw foo_t foo () {return 0; }
12847 if ac_fn_c_try_compile
"$LINENO"; then :
12848 ac_cv_c_inline
=$ac_kw
12850 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12851 test "$ac_cv_c_inline" != no
&& break
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12856 $as_echo "$ac_cv_c_inline" >&6; }
12858 case $ac_cv_c_inline in
12861 case $ac_cv_c_inline in
12863 *) ac_val
=$ac_cv_c_inline;;
12865 cat >>confdefs.h
<<_ACEOF
12866 #ifndef __cplusplus
12867 #define inline $ac_val
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12874 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12875 if ${ac_cv_c_bigendian+:} false
; then :
12876 $as_echo_n "(cached) " >&6
12878 ac_cv_c_bigendian
=unknown
12879 # See if we're dealing with a universal compiler.
12880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12881 /* end confdefs.h. */
12882 #ifndef __APPLE_CC__
12883 not a universal capable compiler
12888 if ac_fn_c_try_compile
"$LINENO"; then :
12890 # Check for potential -arch flags. It is not universal unless
12891 # there are at least two -arch flags with different values.
12894 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12895 if test -n "$ac_prev"; then
12897 i?
86 | x86_64 | ppc | ppc64
)
12898 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12901 ac_cv_c_bigendian
=universal
12907 elif test "x$ac_word" = "x-arch"; then
12912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12913 if test $ac_cv_c_bigendian = unknown
; then
12914 # See if sys/param.h defines the BYTE_ORDER macro.
12915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12916 /* end confdefs.h. */
12917 #include <sys/types.h>
12918 #include <sys/param.h>
12923 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12924 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12926 bogus endian macros
12933 if ac_fn_c_try_compile
"$LINENO"; then :
12934 # It does; now see whether it defined to BIG_ENDIAN or not.
12935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12936 /* end confdefs.h. */
12937 #include <sys/types.h>
12938 #include <sys/param.h>
12943 #if BYTE_ORDER != BIG_ENDIAN
12951 if ac_fn_c_try_compile
"$LINENO"; then :
12952 ac_cv_c_bigendian
=yes
12954 ac_cv_c_bigendian
=no
12956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12958 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12960 if test $ac_cv_c_bigendian = unknown
; then
12961 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12963 /* end confdefs.h. */
12964 #include <limits.h>
12969 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12970 bogus endian macros
12977 if ac_fn_c_try_compile
"$LINENO"; then :
12978 # It does; now see whether it defined to _BIG_ENDIAN or not.
12979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12980 /* end confdefs.h. */
12981 #include <limits.h>
12986 #ifndef _BIG_ENDIAN
12994 if ac_fn_c_try_compile
"$LINENO"; then :
12995 ac_cv_c_bigendian
=yes
12997 ac_cv_c_bigendian
=no
12999 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13001 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13003 if test $ac_cv_c_bigendian = unknown
; then
13004 # Compile a test program.
13005 if test "$cross_compiling" = yes; then :
13006 # Try to guess by grepping values from an object file.
13007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13008 /* end confdefs.h. */
13009 short int ascii_mm[] =
13010 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13011 short int ascii_ii[] =
13012 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13013 int use_ascii (int i) {
13014 return ascii_mm[i] + ascii_ii[i];
13016 short int ebcdic_ii[] =
13017 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13018 short int ebcdic_mm[] =
13019 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13020 int use_ebcdic (int i) {
13021 return ebcdic_mm[i] + ebcdic_ii[i];
13028 return use_ascii (foo) == use_ebcdic (foo);
13033 if ac_fn_c_try_compile
"$LINENO"; then :
13034 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
13035 ac_cv_c_bigendian
=yes
13037 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
13038 if test "$ac_cv_c_bigendian" = unknown
; then
13039 ac_cv_c_bigendian
=no
13041 # finding both strings is unlikely to happen, but who knows?
13042 ac_cv_c_bigendian
=unknown
13046 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13049 /* end confdefs.h. */
13050 $ac_includes_default
13055 /* Are we little or big endian? From Harbison&Steele. */
13059 char c[sizeof (long int)];
13062 return u.c[sizeof (long int) - 1] == 1;
13068 if ac_fn_c_try_run
"$LINENO"; then :
13069 ac_cv_c_bigendian
=no
13071 ac_cv_c_bigendian
=yes
13073 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13074 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13080 $as_echo "$ac_cv_c_bigendian" >&6; }
13081 case $ac_cv_c_bigendian in #(
13083 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13089 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13093 as_fn_error $?
"unknown endianness
13094 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13098 # ------------------------------ #
13099 # Checks for library functions. #
13100 # ------------------------------ #
13102 for ac_func
in getuid getgid \
13103 pipe pread pread64 pwrite resize_term \
13105 sigaction sigsetmask socketpair \
13106 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
13107 setrlimit getrlimit posix_madvise waitpid \
13110 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13111 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13112 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13113 cat >>confdefs.h
<<_ACEOF
13114 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13122 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13123 if ${am_cv_langinfo_codeset+:} false
; then :
13124 $as_echo_n "(cached) " >&6
13126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13127 /* end confdefs.h. */
13128 #include <langinfo.h>
13132 char* cs = nl_langinfo(CODESET);
13137 if ac_fn_c_try_link
"$LINENO"; then :
13138 am_cv_langinfo_codeset
=yes
13140 am_cv_langinfo_codeset
=no
13142 rm -f core conftest.err conftest.
$ac_objext \
13143 conftest
$ac_exeext conftest.
$ac_ext
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13147 $as_echo "$am_cv_langinfo_codeset" >&6; }
13148 if test $am_cv_langinfo_codeset = yes; then
13150 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13154 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13155 if test "x$ac_cv_type_size_t" = xyes
; then :
13159 cat >>confdefs.h
<<_ACEOF
13160 #define size_t unsigned int
13168 for ac_header
in $ac_header_list
13170 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13171 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13173 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13174 cat >>confdefs.h
<<_ACEOF
13175 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13188 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13189 if test "x$ac_cv_type_pid_t" = xyes
; then :
13193 cat >>confdefs.h
<<_ACEOF
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13200 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13201 if ${ac_cv_path_SED+:} false
; then :
13202 $as_echo_n "(cached) " >&6
13204 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
13205 for ac_i
in 1 2 3 4 5 6 7; do
13206 ac_script
="$ac_script$as_nl$ac_script"
13208 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
13209 { ac_script
=; unset ac_script
;}
13210 if test -z "$SED"; then
13211 ac_path_SED_found
=false
13212 # Loop through the user's path and test for each of PROGNAME-LIST
13213 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13214 for as_dir
in $PATH
13217 test -z "$as_dir" && as_dir
=.
13218 for ac_prog
in sed gsed
; do
13219 for ac_exec_ext
in '' $ac_executable_extensions; do
13220 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
13221 as_fn_executable_p
"$ac_path_SED" ||
continue
13222 # Check for GNU ac_path_SED and select it if it is found.
13223 # Check for GNU $ac_path_SED
13224 case `"$ac_path_SED" --version 2>&1` in
13226 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
13229 $as_echo_n 0123456789 >"conftest.in"
13232 cat "conftest.in" "conftest.in" >"conftest.tmp"
13233 mv "conftest.tmp" "conftest.in"
13234 cp "conftest.in" "conftest.nl"
13235 $as_echo '' >> "conftest.nl"
13236 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13237 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13238 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13239 if test $ac_count -gt ${ac_path_SED_max-0}; then
13240 # Best one so far, save it but keep looking for a better one
13241 ac_cv_path_SED
="$ac_path_SED"
13242 ac_path_SED_max
=$ac_count
13244 # 10*(2^10) chars as input seems more than enough
13245 test $ac_count -gt 10 && break
13247 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13250 $ac_path_SED_found && break 3
13255 if test -z "$ac_cv_path_SED"; then
13256 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
13259 ac_cv_path_SED
=$SED
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13264 $as_echo "$ac_cv_path_SED" >&6; }
13265 SED
="$ac_cv_path_SED"
13269 # Set the 'development' global.
13270 .
$srcdir/..
/bfd
/development.sh
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13273 $as_echo_n "checking for ANSI C header files... " >&6; }
13274 if ${ac_cv_header_stdc+:} false
; then :
13275 $as_echo_n "(cached) " >&6
13277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13278 /* end confdefs.h. */
13279 #include <stdlib.h>
13280 #include <stdarg.h>
13281 #include <string.h>
13292 if ac_fn_c_try_compile
"$LINENO"; then :
13293 ac_cv_header_stdc
=yes
13295 ac_cv_header_stdc
=no
13297 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13299 if test $ac_cv_header_stdc = yes; then
13300 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13302 /* end confdefs.h. */
13303 #include <string.h>
13306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13307 $EGREP "memchr" >/dev
/null
2>&1; then :
13310 ac_cv_header_stdc
=no
13316 if test $ac_cv_header_stdc = yes; then
13317 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13319 /* end confdefs.h. */
13320 #include <stdlib.h>
13323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13324 $EGREP "free" >/dev
/null
2>&1; then :
13327 ac_cv_header_stdc
=no
13333 if test $ac_cv_header_stdc = yes; then
13334 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13335 if test "$cross_compiling" = yes; then :
13338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13339 /* end confdefs.h. */
13341 #include <stdlib.h>
13342 #if ((' ' & 0x0FF) == 0x020)
13343 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13344 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13346 # define ISLOWER(c) \
13347 (('a' <= (c) && (c) <= 'i') \
13348 || ('j' <= (c) && (c) <= 'r') \
13349 || ('s' <= (c) && (c) <= 'z'))
13350 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13353 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13358 for (i = 0; i < 256; i++)
13359 if (XOR (islower (i), ISLOWER (i))
13360 || toupper (i) != TOUPPER (i))
13365 if ac_fn_c_try_run
"$LINENO"; then :
13368 ac_cv_header_stdc
=no
13370 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13371 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13377 $as_echo "$ac_cv_header_stdc" >&6; }
13378 if test $ac_cv_header_stdc = yes; then
13380 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13384 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13385 # for constant arguments. Useless!
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13387 $as_echo_n "checking for working alloca.h... " >&6; }
13388 if ${ac_cv_working_alloca_h+:} false
; then :
13389 $as_echo_n "(cached) " >&6
13391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13392 /* end confdefs.h. */
13393 #include <alloca.h>
13397 char *p = (char *) alloca (2 * sizeof (int));
13403 if ac_fn_c_try_link
"$LINENO"; then :
13404 ac_cv_working_alloca_h
=yes
13406 ac_cv_working_alloca_h
=no
13408 rm -f core conftest.err conftest.
$ac_objext \
13409 conftest
$ac_exeext conftest.
$ac_ext
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13412 $as_echo "$ac_cv_working_alloca_h" >&6; }
13413 if test $ac_cv_working_alloca_h = yes; then
13415 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13420 $as_echo_n "checking for alloca... " >&6; }
13421 if ${ac_cv_func_alloca_works+:} false
; then :
13422 $as_echo_n "(cached) " >&6
13424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13425 /* end confdefs.h. */
13427 # define alloca __builtin_alloca
13430 # include <malloc.h>
13431 # define alloca _alloca
13433 # ifdef HAVE_ALLOCA_H
13434 # include <alloca.h>
13439 # ifndef alloca /* predefined by HP cc +Olibcalls */
13440 void *alloca (size_t);
13450 char *p = (char *) alloca (1);
13456 if ac_fn_c_try_link
"$LINENO"; then :
13457 ac_cv_func_alloca_works
=yes
13459 ac_cv_func_alloca_works
=no
13461 rm -f core conftest.err conftest.
$ac_objext \
13462 conftest
$ac_exeext conftest.
$ac_ext
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13465 $as_echo "$ac_cv_func_alloca_works" >&6; }
13467 if test $ac_cv_func_alloca_works = yes; then
13469 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13472 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13473 # that cause trouble. Some versions do not even contain alloca or
13474 # contain a buggy version. If you still want to use their alloca,
13475 # use ar to extract alloca.o from them instead of compiling alloca.c.
13477 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
13479 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13483 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13484 if ${ac_cv_os_cray+:} false
; then :
13485 $as_echo_n "(cached) " >&6
13487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13488 /* end confdefs.h. */
13489 #if defined CRAY && ! defined CRAY2
13496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13497 $EGREP "webecray" >/dev
/null
2>&1; then :
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13506 $as_echo "$ac_cv_os_cray" >&6; }
13507 if test $ac_cv_os_cray = yes; then
13508 for ac_func
in _getb67 GETB67 getb67
; do
13509 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13510 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13511 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13513 cat >>confdefs.h
<<_ACEOF
13514 #define CRAY_STACKSEG_END $ac_func
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13524 $as_echo_n "checking stack direction for C alloca... " >&6; }
13525 if ${ac_cv_c_stack_direction+:} false
; then :
13526 $as_echo_n "(cached) " >&6
13528 if test "$cross_compiling" = yes; then :
13529 ac_cv_c_stack_direction
=0
13531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13532 /* end confdefs.h. */
13533 $ac_includes_default
13535 find_stack_direction (int *addr, int depth)
13537 int dir, dummy = 0;
13540 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13541 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13542 return dir + dummy;
13546 main (int argc, char **argv)
13548 return find_stack_direction (0, argc + !argv + 20) < 0;
13551 if ac_fn_c_try_run
"$LINENO"; then :
13552 ac_cv_c_stack_direction
=1
13554 ac_cv_c_stack_direction
=-1
13556 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13557 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13562 $as_echo "$ac_cv_c_stack_direction" >&6; }
13563 cat >>confdefs.h
<<_ACEOF
13564 #define STACK_DIRECTION $ac_cv_c_stack_direction
13575 $as_echo "#define USE_WIN32API 1" >>confdefs.h
13577 WIN32APILIBS
="-lws2_32"
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13583 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13584 if ${am_cv_langinfo_codeset+:} false
; then :
13585 $as_echo_n "(cached) " >&6
13587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13588 /* end confdefs.h. */
13589 #include <langinfo.h>
13593 char* cs = nl_langinfo(CODESET);
13598 if ac_fn_c_try_link
"$LINENO"; then :
13599 am_cv_langinfo_codeset
=yes
13601 am_cv_langinfo_codeset
=no
13603 rm -f core conftest.err conftest.
$ac_objext \
13604 conftest
$ac_exeext conftest.
$ac_ext
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13608 $as_echo "$am_cv_langinfo_codeset" >&6; }
13609 if test $am_cv_langinfo_codeset = yes; then
13611 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13616 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 linux
/elf.h proc_service.h poll.h sys
/poll.h sys
/select.h
13618 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13619 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13620 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13621 cat >>confdefs.h
<<_ACEOF
13622 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13631 for ac_func
in getpagesize
13633 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13634 if test "x$ac_cv_func_getpagesize" = xyes
; then :
13635 cat >>confdefs.h
<<_ACEOF
13636 #define HAVE_GETPAGESIZE 1
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13643 $as_echo_n "checking for working mmap... " >&6; }
13644 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
13645 $as_echo_n "(cached) " >&6
13647 if test "$cross_compiling" = yes; then :
13648 ac_cv_func_mmap_fixed_mapped
=no
13650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13651 /* end confdefs.h. */
13652 $ac_includes_default
13653 /* malloc might have been renamed as rpl_malloc. */
13656 /* Thanks to Mike Haertel and Jim Avera for this test.
13657 Here is a matrix of mmap possibilities:
13658 mmap private not fixed
13659 mmap private fixed at somewhere currently unmapped
13660 mmap private fixed at somewhere already mapped
13661 mmap shared not fixed
13662 mmap shared fixed at somewhere currently unmapped
13663 mmap shared fixed at somewhere already mapped
13664 For private mappings, we should verify that changes cannot be read()
13665 back from the file, nor mmap's back from the file at a different
13666 address. (There have been systems where private was not correctly
13667 implemented like the infamous i386 svr4.0, and systems where the
13668 VM page cache was not coherent with the file system buffer cache
13669 like early versions of FreeBSD and possibly contemporary NetBSD.)
13670 For shared mappings, we should conversely verify that changes get
13671 propagated back to all the places they're supposed to be.
13673 Grep wants private fixed already mapped.
13674 The main things grep needs to know about mmap are:
13675 * does it exist and is it safe to write into the mmap'd area
13676 * how to use it (BSD variants) */
13679 #include <sys/mman.h>
13681 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13685 /* This mess was copied from the GNU getpagesize.h. */
13686 #ifndef HAVE_GETPAGESIZE
13687 # ifdef _SC_PAGESIZE
13688 # define getpagesize() sysconf(_SC_PAGESIZE)
13689 # else /* no _SC_PAGESIZE */
13690 # ifdef HAVE_SYS_PARAM_H
13691 # include <sys/param.h>
13692 # ifdef EXEC_PAGESIZE
13693 # define getpagesize() EXEC_PAGESIZE
13694 # else /* no EXEC_PAGESIZE */
13696 # define getpagesize() NBPG * CLSIZE
13699 # endif /* no CLSIZE */
13700 # else /* no NBPG */
13702 # define getpagesize() NBPC
13703 # else /* no NBPC */
13705 # define getpagesize() PAGESIZE
13706 # endif /* PAGESIZE */
13707 # endif /* no NBPC */
13708 # endif /* no NBPG */
13709 # endif /* no EXEC_PAGESIZE */
13710 # else /* no HAVE_SYS_PARAM_H */
13711 # define getpagesize() 8192 /* punt totally */
13712 # endif /* no HAVE_SYS_PARAM_H */
13713 # endif /* no _SC_PAGESIZE */
13715 #endif /* no HAVE_GETPAGESIZE */
13720 char *data, *data2, *data3;
13721 const char *cdata2;
13725 pagesize = getpagesize ();
13727 /* First, make a file with some known garbage in it. */
13728 data = (char *) malloc (pagesize);
13731 for (i = 0; i < pagesize; ++i)
13732 *(data + i) = rand ();
13734 fd = creat ("conftest.mmap", 0600);
13737 if (write (fd, data, pagesize) != pagesize)
13741 /* Next, check that the tail of a page is zero-filled. File must have
13742 non-zero length, otherwise we risk SIGBUS for entire page. */
13743 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13747 if (write (fd2, cdata2, 1) != 1)
13749 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13750 if (data2 == MAP_FAILED)
13752 for (i = 0; i < pagesize; ++i)
13756 if (munmap (data2, pagesize))
13759 /* Next, try to mmap the file at a fixed address which already has
13760 something else allocated at it. If we can, also make sure that
13761 we see the same garbage. */
13762 fd = open ("conftest.mmap", O_RDWR);
13765 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13766 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13768 for (i = 0; i < pagesize; ++i)
13769 if (*(data + i) != *(data2 + i))
13772 /* Finally, make sure that changes to the mapped area do not
13773 percolate back to the file as seen by read(). (This is a bug on
13774 some variants of i386 svr4.0.) */
13775 for (i = 0; i < pagesize; ++i)
13776 *(data2 + i) = *(data2 + i) + 1;
13777 data3 = (char *) malloc (pagesize);
13780 if (read (fd, data3, pagesize) != pagesize)
13782 for (i = 0; i < pagesize; ++i)
13783 if (*(data + i) != *(data3 + i))
13789 if ac_fn_c_try_run
"$LINENO"; then :
13790 ac_cv_func_mmap_fixed_mapped
=yes
13792 ac_cv_func_mmap_fixed_mapped
=no
13794 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13795 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13800 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13801 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13803 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13806 rm -f conftest.mmap conftest.txt
13808 for ac_header
in vfork.h
13810 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13811 if test "x$ac_cv_header_vfork_h" = xyes
; then :
13812 cat >>confdefs.h
<<_ACEOF
13813 #define HAVE_VFORK_H 1
13820 for ac_func
in fork vfork
13822 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13823 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13824 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13825 cat >>confdefs.h
<<_ACEOF
13826 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13832 if test "x$ac_cv_func_fork" = xyes
; then
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13834 $as_echo_n "checking for working fork... " >&6; }
13835 if ${ac_cv_func_fork_works+:} false
; then :
13836 $as_echo_n "(cached) " >&6
13838 if test "$cross_compiling" = yes; then :
13839 ac_cv_func_fork_works
=cross
13841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13842 /* end confdefs.h. */
13843 $ac_includes_default
13848 /* By Ruediger Kuhlmann. */
13849 return fork () < 0;
13855 if ac_fn_c_try_run
"$LINENO"; then :
13856 ac_cv_func_fork_works
=yes
13858 ac_cv_func_fork_works
=no
13860 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13861 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13866 $as_echo "$ac_cv_func_fork_works" >&6; }
13869 ac_cv_func_fork_works
=$ac_cv_func_fork
13871 if test "x$ac_cv_func_fork_works" = xcross
; then
13873 *-*-amigaos* |
*-*-msdosdjgpp*)
13874 # Override, as these systems have only a dummy fork() stub
13875 ac_cv_func_fork_works
=no
13878 ac_cv_func_fork_works
=yes
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13882 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13884 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13885 if test "x$ac_cv_func_vfork" = xyes
; then
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13887 $as_echo_n "checking for working vfork... " >&6; }
13888 if ${ac_cv_func_vfork_works+:} false
; then :
13889 $as_echo_n "(cached) " >&6
13891 if test "$cross_compiling" = yes; then :
13892 ac_cv_func_vfork_works
=cross
13894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13895 /* end confdefs.h. */
13896 /* Thanks to Paul Eggert for this test. */
13897 $ac_includes_default
13898 #include <sys/wait.h>
13899 #ifdef HAVE_VFORK_H
13900 # include <vfork.h>
13902 /* On some sparc systems, changes by the child to local and incoming
13903 argument registers are propagated back to the parent. The compiler
13904 is told about this with #include <vfork.h>, but some compilers
13905 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13906 static variable whose address is put into a register that is
13907 clobbered by the vfork. */
13910 sparc_address_test (int arg)
13912 sparc_address_test (arg) int arg;
13915 static pid_t child;
13933 pid_t parent = getpid ();
13936 sparc_address_test (0);
13941 /* Here is another test for sparc vfork register problems. This
13942 test uses lots of local variables, at least as many local
13943 variables as main has allocated so far including compiler
13944 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13945 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13946 reuse the register of parent for one of the local variables,
13947 since it will think that parent can't possibly be used any more
13948 in this routine. Assigning to the local variable will thus
13949 munge parent in the parent process. */
13951 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13952 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13953 /* Convince the compiler that p..p7 are live; otherwise, it might
13954 use the same hardware register for all 8 local variables. */
13955 if (p != p1 || p != p2 || p != p3 || p != p4
13956 || p != p5 || p != p6 || p != p7)
13959 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13960 from child file descriptors. If the child closes a descriptor
13961 before it execs or exits, this munges the parent's descriptor
13962 as well. Test for this by closing stdout in the child. */
13963 _exit(close(fileno(stdout)) != 0);
13968 while (wait(&status) != child)
13971 /* Was there some problem with vforking? */
13974 /* Did the child fail? (This shouldn't happen.) */
13977 /* Did the vfork/compiler bug occur? */
13978 || parent != getpid()
13980 /* Did the file descriptor bug occur? */
13981 || fstat(fileno(stdout), &st) != 0
13986 if ac_fn_c_try_run
"$LINENO"; then :
13987 ac_cv_func_vfork_works
=yes
13989 ac_cv_func_vfork_works
=no
13991 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13992 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13997 $as_echo "$ac_cv_func_vfork_works" >&6; }
14000 if test "x$ac_cv_func_fork_works" = xcross
; then
14001 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14003 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14006 if test "x$ac_cv_func_vfork_works" = xyes
; then
14008 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14012 $as_echo "#define vfork fork" >>confdefs.h
14015 if test "x$ac_cv_func_fork_works" = xyes
; then
14017 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14021 for ac_func
in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
14022 ptrace64 sbrk setns sigaltstack sigprocmask \
14023 setpgid setpgrp getrusage getauxval sigtimedwait
14025 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14026 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14027 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14028 cat >>confdefs.h
<<_ACEOF
14029 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14036 # This is needed for RHEL 5 and uclibc-ng < 1.0.39.
14037 # These did not define ADDR_NO_RANDOMIZE in sys/personality.h,
14038 # only in linux/personality.h.
14039 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
14041 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
14047 cat >>confdefs.h
<<_ACEOF
14048 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
14052 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
14053 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
14059 cat >>confdefs.h
<<_ACEOF
14060 #define HAVE_DECL_STRSTR $ac_have_decl
14064 # ----------------------- #
14065 # Checks for structures. #
14066 # ----------------------- #
14068 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
14069 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
14071 cat >>confdefs.h
<<_ACEOF
14072 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14077 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
14078 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
14080 cat >>confdefs.h
<<_ACEOF
14081 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
14088 # On FreeBSD we need libutil for the kinfo_get* functions. On
14089 # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
14090 # Figure out which one to use.
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
14092 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
14093 if ${ac_cv_search_kinfo_getfile+:} false
; then :
14094 $as_echo_n "(cached) " >&6
14096 ac_func_search_save_LIBS
=$LIBS
14097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14098 /* end confdefs.h. */
14100 /* Override any GCC internal prototype to avoid an error.
14101 Use char because int might match the return type of a GCC
14102 builtin and then its argument prototype would still apply. */
14106 char kinfo_getfile ();
14110 return kinfo_getfile ();
14115 for ac_lib
in '' util util-freebsd
; do
14116 if test -z "$ac_lib"; then
14117 ac_res
="none required"
14120 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14122 if ac_fn_c_try_link
"$LINENO"; then :
14123 ac_cv_search_kinfo_getfile
=$ac_res
14125 rm -f core conftest.err conftest.
$ac_objext \
14127 if ${ac_cv_search_kinfo_getfile+:} false
; then :
14131 if ${ac_cv_search_kinfo_getfile+:} false
; then :
14134 ac_cv_search_kinfo_getfile
=no
14136 rm conftest.
$ac_ext
14137 LIBS
=$ac_func_search_save_LIBS
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
14140 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
14141 ac_res
=$ac_cv_search_kinfo_getfile
14142 if test "$ac_res" != no
; then :
14143 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14148 # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
14149 for ac_func
in kinfo_getfile
14151 ac_fn_c_check_func
"$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
14152 if test "x$ac_cv_func_kinfo_getfile" = xyes
; then :
14153 cat >>confdefs.h
<<_ACEOF
14154 #define HAVE_KINFO_GETFILE 1
14161 # ----------------------- #
14162 # Check for threading. #
14163 # ----------------------- #
14165 # Check whether --enable-threading was given.
14166 if test "${enable_threading+set}" = set; then :
14167 enableval
=$enable_threading; case "$enableval" in
14168 yes) want_threading
=yes ;;
14169 no
) want_threading
=no
;;
14170 *) as_fn_error $?
"bad value $enableval for threading" "$LINENO" 5 ;;
14177 # Check for std::thread. This does not work on some platforms, like
14180 ac_cpp
='$CXXCPP $CPPFLAGS'
14181 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14182 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14183 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
14190 ac_cpp
='$CPP $CPPFLAGS'
14191 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14192 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14193 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14197 # We used to check for pthread.h first, but this fails if pthread.h
14198 # requires special compiler flags (e.g. on Tru64 or Sequent).
14199 # It gets checked for in the link test anyway.
14201 # First of all, check if the user has set any of the PTHREAD_LIBS,
14202 # etcetera environment variables, and if threads linking works using
14204 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
14205 ax_pthread_save_CC
="$CC"
14206 ax_pthread_save_CFLAGS
="$CFLAGS"
14207 ax_pthread_save_LIBS
="$LIBS"
14208 if test "x$PTHREAD_CC" != "x"; then :
14211 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
14212 LIBS
="$PTHREAD_LIBS $LIBS"
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
14214 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
14215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14216 /* end confdefs.h. */
14218 /* Override any GCC internal prototype to avoid an error.
14219 Use char because int might match the return type of a GCC
14220 builtin and then its argument prototype would still apply. */
14224 char pthread_join ();
14228 return pthread_join ();
14233 if ac_fn_c_try_link
"$LINENO"; then :
14236 rm -f core conftest.err conftest.
$ac_objext \
14237 conftest
$ac_exeext conftest.
$ac_ext
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14239 $as_echo "$ax_pthread_ok" >&6; }
14240 if test "x$ax_pthread_ok" = "xno"; then
14244 CC
="$ax_pthread_save_CC"
14245 CFLAGS
="$ax_pthread_save_CFLAGS"
14246 LIBS
="$ax_pthread_save_LIBS"
14249 # We must check for the threads library under a number of different
14250 # names; the ordering is very important because some systems
14251 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14252 # libraries is broken (non-POSIX).
14254 # Create a list of thread flags to try. Items starting with a "-" are
14255 # C compiler flags, and other items are library names, except for "none"
14256 # which indicates that we try without any flags at all, and "pthread-config"
14257 # which is a program returning the flags for the Pth emulation library.
14259 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14261 # The ordering *is* (sometimes) important. Some notes on the
14262 # individual items follow:
14264 # pthreads: AIX (must check this before -lpthread)
14265 # none: in case threads are in libc; should be tried before -Kthread and
14266 # other compiler flags to prevent continual compiler warnings
14267 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14268 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
14269 # (Note: HP C rejects this with "bad form for `-t' option")
14270 # -pthreads: Solaris/gcc (Note: HP C also rejects)
14271 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14272 # doesn't hurt to check since this sometimes defines pthreads and
14273 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
14274 # is present but should not be used directly; and before -mthreads,
14275 # because the compiler interprets this as "-mt" + "-hreads")
14276 # -mthreads: Mingw32/gcc, Lynx/gcc
14277 # pthread: Linux, etcetera
14278 # --thread-safe: KAI C++
14279 # pthread-config: use pthread-config program (for GNU Pth library)
14285 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14286 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14288 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
14293 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
14294 # multi-threading and also sets -lpthread."
14296 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
14301 # IBM z/OS requires a feature-test macro to be defined in order to
14302 # enable POSIX threads at all, so give the user a hint if this is
14303 # not set. (We don't define these ourselves, as they can affect
14304 # other portions of the system API in unpredictable ways.)
14306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14307 /* end confdefs.h. */
14309 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
14310 AX_PTHREAD_ZOS_MISSING
14314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14315 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
14317 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
14325 # On Solaris (at least, for some versions), libc contains stubbed
14326 # (non-functional) versions of the pthreads routines, so link-based
14327 # tests will erroneously succeed. (N.B.: The stubs are missing
14328 # pthread_cleanup_push, or rather a function called by this macro,
14329 # so we could check for that, but who knows whether they'll stub
14330 # that too in a future libc.) So we'll check first for the
14331 # standard Solaris way of linking pthreads (-mt -lpthread).
14333 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
14337 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
14339 if test "x$GCC" = "xyes"; then :
14340 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
14343 # The presence of a feature test macro requesting re-entrant function
14344 # definitions is, on some systems, a strong hint that pthreads support is
14345 # correctly enabled
14348 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
14349 ax_pthread_check_macro
="_REENTRANT"
14353 ax_pthread_check_macro
="_THREAD_SAFE"
14357 ax_pthread_check_macro
="--"
14360 if test "x$ax_pthread_check_macro" = "x--"; then :
14361 ax_pthread_check_cond
=0
14363 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
14366 # Are we compiling with Clang?
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
14369 $as_echo_n "checking whether $CC is Clang... " >&6; }
14370 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
14371 $as_echo_n "(cached) " >&6
14373 ax_cv_PTHREAD_CLANG
=no
14374 # Note that Autoconf sets GCC=yes for Clang as well as GCC
14375 if test "x$GCC" = "xyes"; then
14376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14377 /* end confdefs.h. */
14378 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
14379 # if defined(__clang__) && defined(__llvm__)
14380 AX_PTHREAD_CC_IS_CLANG
14384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14385 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
14386 ax_cv_PTHREAD_CLANG
=yes
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
14394 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
14395 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
14397 ax_pthread_clang_warning
=no
14399 # Clang needs special handling, because older versions handle the -pthread
14400 # option in a rather... idiosyncratic way
14402 if test "x$ax_pthread_clang" = "xyes"; then
14404 # Clang takes -pthread; it has never supported any other flag
14406 # (Note 1: This will need to be revisited if a system that Clang
14407 # supports has POSIX threads in a separate library. This tends not
14408 # to be the way of modern systems, but it's conceivable.)
14410 # (Note 2: On some systems, notably Darwin, -pthread is not needed
14411 # to get POSIX threads support; the API is always present and
14412 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
14413 # -pthread does define _REENTRANT, and while the Darwin headers
14414 # ignore this macro, third-party headers might not.)
14416 PTHREAD_CFLAGS
="-pthread"
14421 # However, older versions of Clang make a point of warning the user
14422 # that, in an invocation where only linking and no compilation is
14423 # taking place, the -pthread option has no effect ("argument unused
14424 # during compilation"). They expect -pthread to be passed in only
14425 # when source code is being compiled.
14427 # Problem is, this is at odds with the way Automake and most other
14428 # C build frameworks function, which is that the same flags used in
14429 # compilation (CFLAGS) are also used in linking. Many systems
14430 # supported by AX_PTHREAD require exactly this for POSIX threads
14431 # support, and in fact it is often not straightforward to specify a
14432 # flag that is used only in the compilation phase and not in
14433 # linking. Such a scenario is extremely rare in practice.
14435 # Even though use of the -pthread flag in linking would only print
14436 # a warning, this can be a nuisance for well-run software projects
14437 # that build with -Werror. So if the active version of Clang has
14438 # this misfeature, we search for an option to squash it.
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
14441 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
14442 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
14443 $as_echo_n "(cached) " >&6
14445 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
14446 # Create an alternate version of $ac_link that compiles and
14447 # links in two steps (.c -> .o, .o -> exe) instead of one
14448 # (.c -> exe), because the warning occurs only in the second
14450 ax_pthread_save_ac_link
="$ac_link"
14451 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
14452 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
14453 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
14454 ax_pthread_save_CFLAGS
="$CFLAGS"
14455 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
14456 if test "x$ax_pthread_try" = "xunknown"; then :
14459 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
14460 ac_link
="$ax_pthread_save_ac_link"
14461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14462 /* end confdefs.h. */
14463 int main(void){return 0;}
14465 if ac_fn_c_try_link
"$LINENO"; then :
14466 ac_link
="$ax_pthread_2step_ac_link"
14467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14468 /* end confdefs.h. */
14469 int main(void){return 0;}
14471 if ac_fn_c_try_link
"$LINENO"; then :
14474 rm -f core conftest.err conftest.
$ac_objext \
14475 conftest
$ac_exeext conftest.
$ac_ext
14478 rm -f core conftest.err conftest.
$ac_objext \
14479 conftest
$ac_exeext conftest.
$ac_ext
14481 ac_link
="$ax_pthread_save_ac_link"
14482 CFLAGS
="$ax_pthread_save_CFLAGS"
14483 if test "x$ax_pthread_try" = "x"; then :
14486 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
14490 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
14492 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
14494 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
14497 fi # $ax_pthread_clang = yes
14499 if test "x$ax_pthread_ok" = "xno"; then
14500 for ax_pthread_try_flag
in $ax_pthread_flags; do
14502 case $ax_pthread_try_flag in
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14505 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
14510 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
14511 PTHREAD_CFLAGS
="-mt"
14512 PTHREAD_LIBS
="-lpthread"
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
14517 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
14518 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
14522 # Extract the first word of "pthread-config", so it can be a program name with args.
14523 set dummy pthread-config
; ac_word
=$2
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14525 $as_echo_n "checking for $ac_word... " >&6; }
14526 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
14527 $as_echo_n "(cached) " >&6
14529 if test -n "$ax_pthread_config"; then
14530 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
14532 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14533 for as_dir
in $PATH
14536 test -z "$as_dir" && as_dir
=.
14537 for ac_exec_ext
in '' $ac_executable_extensions; do
14538 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14539 ac_cv_prog_ax_pthread_config
="yes"
14540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14547 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
14550 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
14551 if test -n "$ax_pthread_config"; then
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
14553 $as_echo "$ax_pthread_config" >&6; }
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14556 $as_echo "no" >&6; }
14560 if test "x$ax_pthread_config" = "xno"; then :
14563 PTHREAD_CFLAGS
="`pthread-config --cflags`"
14564 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
14569 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
14570 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
14574 ax_pthread_save_CFLAGS
="$CFLAGS"
14575 ax_pthread_save_LIBS
="$LIBS"
14576 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
14577 LIBS
="$PTHREAD_LIBS $LIBS"
14579 # Check for various functions. We must include pthread.h,
14580 # since some functions may be macros. (On the Sequent, we
14581 # need a special flag -Kthread to make this header compile.)
14582 # We check for pthread_join because it is in -lpthread on IRIX
14583 # while pthread_create is in libc. We check for pthread_attr_init
14584 # due to DEC craziness with -lpthreads. We check for
14585 # pthread_cleanup_push because it is one of the few pthread
14586 # functions on Solaris that doesn't have a non-functional libc stub.
14587 # We try pthread_create on general principles.
14589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14590 /* end confdefs.h. */
14591 #include <pthread.h>
14592 # if $ax_pthread_check_cond
14593 # error "$ax_pthread_check_macro must be defined"
14595 static void routine(void *a) { a = 0; }
14596 static void *start_routine(void *a) { return a; }
14600 pthread_t th; pthread_attr_t attr;
14601 pthread_create(&th, 0, start_routine, 0);
14602 pthread_join(th, 0);
14603 pthread_attr_init(&attr);
14604 pthread_cleanup_push(routine, 0);
14605 pthread_cleanup_pop(0) /* ; */
14610 if ac_fn_c_try_link
"$LINENO"; then :
14613 rm -f core conftest.err conftest.
$ac_objext \
14614 conftest
$ac_exeext conftest.
$ac_ext
14616 CFLAGS
="$ax_pthread_save_CFLAGS"
14617 LIBS
="$ax_pthread_save_LIBS"
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14620 $as_echo "$ax_pthread_ok" >&6; }
14621 if test "x$ax_pthread_ok" = "xyes"; then :
14630 # Various other checks:
14631 if test "x$ax_pthread_ok" = "xyes"; then
14632 ax_pthread_save_CFLAGS
="$CFLAGS"
14633 ax_pthread_save_LIBS
="$LIBS"
14634 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
14635 LIBS
="$PTHREAD_LIBS $LIBS"
14637 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14639 $as_echo_n "checking for joinable pthread attribute... " >&6; }
14640 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
14641 $as_echo_n "(cached) " >&6
14643 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
14644 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
14645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14646 /* end confdefs.h. */
14647 #include <pthread.h>
14651 int attr = $ax_pthread_attr; return attr /* ; */
14656 if ac_fn_c_try_link
"$LINENO"; then :
14657 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
14659 rm -f core conftest.err conftest.
$ac_objext \
14660 conftest
$ac_exeext conftest.
$ac_ext
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
14665 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
14666 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
14667 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
14668 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
14670 cat >>confdefs.h
<<_ACEOF
14671 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
14674 ax_pthread_joinable_attr_defined
=yes
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
14679 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
14680 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
14681 $as_echo_n "(cached) " >&6
14683 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
14686 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
14692 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
14693 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
14694 test "x$ax_pthread_special_flags_added" != "xyes"; then :
14695 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
14696 ax_pthread_special_flags_added
=yes
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
14700 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
14701 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
14702 $as_echo_n "(cached) " >&6
14704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14705 /* end confdefs.h. */
14706 #include <pthread.h>
14710 int i = PTHREAD_PRIO_INHERIT;
14715 if ac_fn_c_try_link
"$LINENO"; then :
14716 ax_cv_PTHREAD_PRIO_INHERIT
=yes
14718 ax_cv_PTHREAD_PRIO_INHERIT
=no
14720 rm -f core conftest.err conftest.
$ac_objext \
14721 conftest
$ac_exeext conftest.
$ac_ext
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
14725 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
14726 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
14727 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
14729 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
14731 ax_pthread_prio_inherit_defined
=yes
14735 CFLAGS
="$ax_pthread_save_CFLAGS"
14736 LIBS
="$ax_pthread_save_LIBS"
14738 # More AIX lossage: compile with *_r variant
14739 if test "x$GCC" != "xyes"; then
14743 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
14744 #handle absolute path differently from PATH based program lookup
14747 if as_fn_executable_p
${CC}_r
; then :
14748 PTHREAD_CC
="${CC}_r"
14751 for ac_prog
in ${CC}_r
14753 # Extract the first word of "$ac_prog", so it can be a program name with args.
14754 set dummy
$ac_prog; ac_word
=$2
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14756 $as_echo_n "checking for $ac_word... " >&6; }
14757 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
14758 $as_echo_n "(cached) " >&6
14760 if test -n "$PTHREAD_CC"; then
14761 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
14763 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14764 for as_dir
in $PATH
14767 test -z "$as_dir" && as_dir
=.
14768 for ac_exec_ext
in '' $ac_executable_extensions; do
14769 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14770 ac_cv_prog_PTHREAD_CC
="$ac_prog"
14771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14780 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
14781 if test -n "$PTHREAD_CC"; then
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14783 $as_echo "$PTHREAD_CC" >&6; }
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14786 $as_echo "no" >&6; }
14790 test -n "$PTHREAD_CC" && break
14792 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
14803 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
14809 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14810 if test "x$ax_pthread_ok" = "xyes"; then
14818 ac_cpp
='$CXXCPP $CPPFLAGS'
14819 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14820 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14821 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
14825 LIBS
="$PTHREAD_LIBS $LIBS"
14826 save_CXXFLAGS
="$CXXFLAGS"
14827 CXXFLAGS
="$PTHREAD_CFLAGS $save_CXXFLAGS"
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
14829 $as_echo_n "checking for std::thread... " >&6; }
14830 if ${gdb_cv_cxx_std_thread+:} false
; then :
14831 $as_echo_n "(cached) " >&6
14833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14834 /* end confdefs.h. */
14836 void callback() { }
14840 std::thread t(callback);
14845 if ac_fn_cxx_try_compile
"$LINENO"; then :
14846 gdb_cv_cxx_std_thread
=yes
14848 gdb_cv_cxx_std_thread
=no
14850 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
14853 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
14855 if test "$threads" = "yes"; then
14856 # This check must be here, while LIBS includes any necessary
14857 # threading library.
14858 for ac_func
in pthread_sigmask pthread_setname_np
14860 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14861 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14862 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14863 cat >>confdefs.h
<<_ACEOF
14864 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14872 CXXFLAGS
="$save_CXXFLAGS"
14874 if test "$want_threading" = "yes"; then
14875 if test "$gdb_cv_cxx_std_thread" = "yes"; then
14877 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
14882 ac_cpp
='$CPP $CPPFLAGS'
14883 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14884 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14885 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
14889 $as_echo_n "checking for sigsetjmp... " >&6; }
14890 if ${gdb_cv_func_sigsetjmp+:} false
; then :
14891 $as_echo_n "(cached) " >&6
14893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14894 /* end confdefs.h. */
14895 #include <setjmp.h>
14900 while (! sigsetjmp (env, 1))
14901 siglongjmp (env, 1);
14907 if ac_fn_c_try_compile
"$LINENO"; then :
14908 gdb_cv_func_sigsetjmp
=yes
14910 gdb_cv_func_sigsetjmp
=no
14913 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
14917 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
14918 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
14920 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
14925 # Check whether --with-intel_pt was given.
14926 if test "${with_intel_pt+set}" = set; then :
14927 withval
=$with_intel_pt;
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
14933 $as_echo_n "checking whether to use intel pt... " >&6; }
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
14935 $as_echo "$with_intel_pt" >&6; }
14937 if test "${with_intel_pt}" = no
; then
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
14939 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
14942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14943 /* end confdefs.h. */
14945 #include <linux/perf_event.h>
14946 #ifndef PERF_ATTR_SIZE_VER5
14951 if ac_fn_c_try_cpp
"$LINENO"; then :
14956 rm -f conftest.err conftest.i conftest.
$ac_ext
14957 if test "$perf_event" != yes; then
14958 if test "$with_intel_pt" = yes; then
14959 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
14962 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
14976 acl_save_prefix
="$prefix"
14977 prefix
="$acl_final_prefix"
14978 acl_save_exec_prefix
="$exec_prefix"
14979 exec_prefix
="$acl_final_exec_prefix"
14981 eval additional_includedir
=\"$includedir\"
14982 eval additional_libdir
=\"$libdir\"
14984 exec_prefix
="$acl_save_exec_prefix"
14985 prefix
="$acl_save_prefix"
14988 # Check whether --with-libipt-prefix was given.
14989 if test "${with_libipt_prefix+set}" = set; then :
14990 withval
=$with_libipt_prefix;
14991 if test "X$withval" = "Xno"; then
14994 if test "X$withval" = "X"; then
14996 acl_save_prefix
="$prefix"
14997 prefix
="$acl_final_prefix"
14998 acl_save_exec_prefix
="$exec_prefix"
14999 exec_prefix
="$acl_final_exec_prefix"
15001 eval additional_includedir
=\"$includedir\"
15002 eval additional_libdir
=\"$libdir\"
15004 exec_prefix
="$acl_save_exec_prefix"
15005 prefix
="$acl_save_prefix"
15008 additional_includedir
="$withval/include"
15009 additional_libdir
="$withval/lib"
15016 # Check whether --with-libipt-type was given.
15017 if test "${with_libipt_type+set}" = set; then :
15018 withval
=$with_libipt_type; with_libipt_type
=$withval
15020 with_libipt_type
=auto
15023 lib_type
=`eval echo \$with_libipt_type`
15030 names_already_handled
=
15031 names_next_round
='ipt '
15032 while test -n "$names_next_round"; do
15033 names_this_round
="$names_next_round"
15035 for name
in $names_this_round; do
15037 for n
in $names_already_handled; do
15038 if test "$n" = "$name"; then
15039 already_handled
=yes
15043 if test -z "$already_handled"; then
15044 names_already_handled
="$names_already_handled $name"
15045 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15046 eval value
=\"\
$HAVE_LIB$uppername\"
15047 if test -n "$value"; then
15048 if test "$value" = yes; then
15049 eval value
=\"\
$LIB$uppername\"
15050 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
15051 eval value
=\"\
$LTLIB$uppername\"
15052 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
15061 if test $use_additional = yes; then
15062 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
15063 found_dir
="$additional_libdir"
15064 found_so
="$additional_libdir/lib$name.$shlibext"
15065 if test -f "$additional_libdir/lib$name.la"; then
15066 found_la
="$additional_libdir/lib$name.la"
15068 elif test x
$lib_type != xshared
; then
15069 if test -f "$additional_libdir/lib$name.$libext"; then
15070 found_dir
="$additional_libdir"
15071 found_a
="$additional_libdir/lib$name.$libext"
15072 if test -f "$additional_libdir/lib$name.la"; then
15073 found_la
="$additional_libdir/lib$name.la"
15078 if test "X$found_dir" = "X"; then
15079 for x
in $LDFLAGS $LTLIBIPT; do
15081 acl_save_prefix
="$prefix"
15082 prefix
="$acl_final_prefix"
15083 acl_save_exec_prefix
="$exec_prefix"
15084 exec_prefix
="$acl_final_exec_prefix"
15086 exec_prefix
="$acl_save_exec_prefix"
15087 prefix
="$acl_save_prefix"
15091 dir
=`echo "X$x" | sed -e 's/^X-L//'`
15092 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
15094 found_so
="$dir/lib$name.$shlibext"
15095 if test -f "$dir/lib$name.la"; then
15096 found_la
="$dir/lib$name.la"
15098 elif test x
$lib_type != xshared
; then
15099 if test -f "$dir/lib$name.$libext"; then
15101 found_a
="$dir/lib$name.$libext"
15102 if test -f "$dir/lib$name.la"; then
15103 found_la
="$dir/lib$name.la"
15109 if test "X$found_dir" != "X"; then
15114 if test "X$found_dir" != "X"; then
15115 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
15116 if test "X$found_so" != "X"; then
15117 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
15118 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
15121 for x
in $ltrpathdirs; do
15122 if test "X$x" = "X$found_dir"; then
15127 if test -z "$haveit"; then
15128 ltrpathdirs
="$ltrpathdirs $found_dir"
15130 if test "$hardcode_direct" = yes; then
15131 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
15133 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
15134 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
15136 for x
in $rpathdirs; do
15137 if test "X$x" = "X$found_dir"; then
15142 if test -z "$haveit"; then
15143 rpathdirs
="$rpathdirs $found_dir"
15147 for x
in $LDFLAGS $LIBIPT; do
15149 acl_save_prefix
="$prefix"
15150 prefix
="$acl_final_prefix"
15151 acl_save_exec_prefix
="$exec_prefix"
15152 exec_prefix
="$acl_final_exec_prefix"
15154 exec_prefix
="$acl_save_exec_prefix"
15155 prefix
="$acl_save_prefix"
15157 if test "X$x" = "X-L$found_dir"; then
15162 if test -z "$haveit"; then
15163 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
15165 if test "$hardcode_minus_L" != no
; then
15166 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
15168 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
15174 if test "X$found_a" != "X"; then
15175 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
15177 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
15180 additional_includedir
=
15181 case "$found_dir" in
15183 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15184 additional_includedir
="$basedir/include"
15187 if test "X$additional_includedir" != "X"; then
15188 if test "X$additional_includedir" != "X/usr/include"; then
15190 if test "X$additional_includedir" = "X/usr/local/include"; then
15191 if test -n "$GCC"; then
15193 linux
*) haveit
=yes;;
15197 if test -z "$haveit"; then
15198 for x
in $CPPFLAGS $INCIPT; do
15200 acl_save_prefix
="$prefix"
15201 prefix
="$acl_final_prefix"
15202 acl_save_exec_prefix
="$exec_prefix"
15203 exec_prefix
="$acl_final_exec_prefix"
15205 exec_prefix
="$acl_save_exec_prefix"
15206 prefix
="$acl_save_prefix"
15208 if test "X$x" = "X-I$additional_includedir"; then
15213 if test -z "$haveit"; then
15214 if test -d "$additional_includedir"; then
15215 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
15221 if test -n "$found_la"; then
15222 save_libdir
="$libdir"
15223 case "$found_la" in
15224 */* |
*\\*) .
"$found_la" ;;
15225 *) .
"./$found_la" ;;
15227 libdir
="$save_libdir"
15228 for dep
in $dependency_libs; do
15231 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
15232 if test "X$additional_libdir" != "X/usr/lib"; then
15234 if test "X$additional_libdir" = "X/usr/local/lib"; then
15235 if test -n "$GCC"; then
15237 linux
*) haveit
=yes;;
15241 if test -z "$haveit"; then
15243 for x
in $LDFLAGS $LIBIPT; do
15245 acl_save_prefix
="$prefix"
15246 prefix
="$acl_final_prefix"
15247 acl_save_exec_prefix
="$exec_prefix"
15248 exec_prefix
="$acl_final_exec_prefix"
15250 exec_prefix
="$acl_save_exec_prefix"
15251 prefix
="$acl_save_prefix"
15253 if test "X$x" = "X-L$additional_libdir"; then
15258 if test -z "$haveit"; then
15259 if test -d "$additional_libdir"; then
15260 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
15264 for x
in $LDFLAGS $LTLIBIPT; do
15266 acl_save_prefix
="$prefix"
15267 prefix
="$acl_final_prefix"
15268 acl_save_exec_prefix
="$exec_prefix"
15269 exec_prefix
="$acl_final_exec_prefix"
15271 exec_prefix
="$acl_save_exec_prefix"
15272 prefix
="$acl_save_prefix"
15274 if test "X$x" = "X-L$additional_libdir"; then
15279 if test -z "$haveit"; then
15280 if test -d "$additional_libdir"; then
15281 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
15288 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
15289 if test "$enable_rpath" != no
; then
15291 for x
in $rpathdirs; do
15292 if test "X$x" = "X$dir"; then
15297 if test -z "$haveit"; then
15298 rpathdirs
="$rpathdirs $dir"
15301 for x
in $ltrpathdirs; do
15302 if test "X$x" = "X$dir"; then
15307 if test -z "$haveit"; then
15308 ltrpathdirs
="$ltrpathdirs $dir"
15313 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15316 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15319 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
15320 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
15326 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
15327 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
15328 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
15330 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
15331 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
15338 if test "X$rpathdirs" != "X"; then
15339 if test -n "$hardcode_libdir_separator"; then
15341 for found_dir
in $rpathdirs; do
15342 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15344 acl_save_libdir
="$libdir"
15346 eval flag
=\"$hardcode_libdir_flag_spec\"
15347 libdir
="$acl_save_libdir"
15348 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
15350 for found_dir
in $rpathdirs; do
15351 acl_save_libdir
="$libdir"
15352 libdir
="$found_dir"
15353 eval flag
=\"$hardcode_libdir_flag_spec\"
15354 libdir
="$acl_save_libdir"
15355 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
15359 if test "X$ltrpathdirs" != "X"; then
15360 for found_dir
in $ltrpathdirs; do
15361 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
15366 ac_save_CPPFLAGS
="$CPPFLAGS"
15368 for element
in $INCIPT; do
15370 for x
in $CPPFLAGS; do
15372 acl_save_prefix
="$prefix"
15373 prefix
="$acl_final_prefix"
15374 acl_save_exec_prefix
="$exec_prefix"
15375 exec_prefix
="$acl_final_exec_prefix"
15377 exec_prefix
="$acl_save_exec_prefix"
15378 prefix
="$acl_save_prefix"
15380 if test "X$x" = "X$element"; then
15385 if test -z "$haveit"; then
15386 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
15392 $as_echo_n "checking for libipt... " >&6; }
15393 if ${ac_cv_libipt+:} false
; then :
15394 $as_echo_n "(cached) " >&6
15397 ac_save_LIBS
="$LIBS"
15398 LIBS
="$LIBS $LIBIPT"
15399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15400 /* end confdefs.h. */
15401 #include "intel-pt.h"
15405 pt_insn_alloc_decoder (0);
15410 if ac_fn_c_try_link
"$LINENO"; then :
15415 rm -f core conftest.err conftest.
$ac_objext \
15416 conftest
$ac_exeext conftest.
$ac_ext
15417 LIBS
="$ac_save_LIBS"
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
15421 $as_echo "$ac_cv_libipt" >&6; }
15422 if test "$ac_cv_libipt" = yes; then
15425 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
15428 $as_echo_n "checking how to link with libipt... " >&6; }
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
15430 $as_echo "$LIBIPT" >&6; }
15433 CPPFLAGS
="$ac_save_CPPFLAGS"
15443 if test "$HAVE_LIBIPT" != yes; then
15444 if test "$with_intel_pt" = yes; then
15445 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
15448 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
15452 LIBS
="$LIBS $LIBIPT"
15453 for ac_func
in pt_insn_event
15455 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
15456 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
15457 cat >>confdefs.h
<<_ACEOF
15458 #define HAVE_PT_INSN_EVENT 1
15464 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
15466 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
15468 cat >>confdefs.h
<<_ACEOF
15469 #define HAVE_STRUCT_PT_INSN_ENABLED 1
15474 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
15476 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
15478 cat >>confdefs.h
<<_ACEOF
15479 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
15489 # Check if the compiler and runtime support printing long longs.
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
15492 $as_echo_n "checking for long long support in printf... " >&6; }
15493 if ${gdb_cv_printf_has_long_long+:} false
; then :
15494 $as_echo_n "(cached) " >&6
15496 if test "$cross_compiling" = yes; then :
15497 gdb_cv_printf_has_long_long
=no
15499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15500 /* end confdefs.h. */
15501 $ac_includes_default
15507 l = (l << 16) + 0x0123;
15508 l = (l << 16) + 0x4567;
15509 l = (l << 16) + 0x89ab;
15510 l = (l << 16) + 0xcdef;
15511 sprintf (buf, "0x%016llx", l);
15512 return (strcmp ("0x0123456789abcdef", buf));
15517 if ac_fn_c_try_run
"$LINENO"; then :
15518 gdb_cv_printf_has_long_long
=yes
15520 gdb_cv_printf_has_long_long
=no
15522 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15523 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
15528 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
15529 if test "$gdb_cv_printf_has_long_long" = yes; then
15531 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
15536 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
15538 for ac_header
in sys
/procfs.h
15540 ac_fn_c_check_header_mongrel
"$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
15541 if test "x$ac_cv_header_sys_procfs_h" = xyes
; then :
15542 cat >>confdefs.h
<<_ACEOF
15543 #define HAVE_SYS_PROCFS_H 1
15550 if test "$ac_cv_header_sys_procfs_h" = yes; then
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
15553 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
15554 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
15555 $as_echo_n "(cached) " >&6
15557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15558 /* end confdefs.h. */
15561 #include <sys/procfs.h>
15570 if ac_fn_c_try_compile
"$LINENO"; then :
15571 bfd_cv_have_sys_procfs_type_gregset_t
=yes
15573 bfd_cv_have_sys_procfs_type_gregset_t
=no
15576 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15579 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
15581 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
15585 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
15589 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
15590 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
15591 $as_echo_n "(cached) " >&6
15593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15594 /* end confdefs.h. */
15597 #include <sys/procfs.h>
15606 if ac_fn_c_try_compile
"$LINENO"; then :
15607 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
15609 bfd_cv_have_sys_procfs_type_fpregset_t
=no
15612 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15615 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
15617 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
15621 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
15625 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
15626 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
15627 $as_echo_n "(cached) " >&6
15629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15630 /* end confdefs.h. */
15633 #include <sys/procfs.h>
15642 if ac_fn_c_try_compile
"$LINENO"; then :
15643 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
15645 bfd_cv_have_sys_procfs_type_prgregset_t
=no
15648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15651 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
15653 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
15657 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
15661 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
15662 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
15663 $as_echo_n "(cached) " >&6
15665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15666 /* end confdefs.h. */
15669 #include <sys/procfs.h>
15678 if ac_fn_c_try_compile
"$LINENO"; then :
15679 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
15681 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
15684 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15687 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
15689 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
15693 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
15697 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
15698 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
15699 $as_echo_n "(cached) " >&6
15701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15702 /* end confdefs.h. */
15705 #include <sys/procfs.h>
15714 if ac_fn_c_try_compile
"$LINENO"; then :
15715 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
15717 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
15720 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15723 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
15725 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
15729 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
15733 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
15734 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
15735 $as_echo_n "(cached) " >&6
15737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15738 /* end confdefs.h. */
15741 #include <sys/procfs.h>
15750 if ac_fn_c_try_compile
"$LINENO"; then :
15751 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
15753 bfd_cv_have_sys_procfs_type_lwpid_t
=no
15756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15759 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
15761 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
15765 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
15769 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
15770 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
15771 $as_echo_n "(cached) " >&6
15773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15774 /* end confdefs.h. */
15777 #include <sys/procfs.h>
15786 if ac_fn_c_try_compile
"$LINENO"; then :
15787 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
15789 bfd_cv_have_sys_procfs_type_psaddr_t
=no
15792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15795 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
15797 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
15800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
15801 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
15805 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
15806 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
15807 $as_echo_n "(cached) " >&6
15809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15810 /* end confdefs.h. */
15813 #include <sys/procfs.h>
15817 elf_fpregset_t avar
15822 if ac_fn_c_try_compile
"$LINENO"; then :
15823 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
15825 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
15828 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15831 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
15833 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
15837 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
15842 # Check the return and argument types of ptrace.
15845 for ac_header
in sys
/ptrace.h ptrace.h
15847 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15848 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15849 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
15850 cat >>confdefs.h
<<_ACEOF
15851 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15859 gdb_ptrace_headers
='
15860 #include <sys/types.h>
15861 #if HAVE_SYS_PTRACE_H
15862 # include <sys/ptrace.h>
15865 # include <unistd.h>
15869 # Check return type. Varargs (used on GNU/Linux) conflict with the
15870 # empty argument list, so check for that explicitly.
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
15872 $as_echo_n "checking return type of ptrace... " >&6; }
15873 if ${gdb_cv_func_ptrace_ret+:} false
; then :
15874 $as_echo_n "(cached) " >&6
15876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15877 /* end confdefs.h. */
15878 Â $gdb_ptrace_headers
15882 extern long ptrace (enum __ptrace_request, ...);
15888 if ac_fn_c_try_compile
"$LINENO"; then :
15889 gdb_cv_func_ptrace_ret
='long'
15891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15892 /* end confdefs.h. */
15893 $gdb_ptrace_headers
15897 extern int ptrace ();
15903 if ac_fn_c_try_compile
"$LINENO"; then :
15904 gdb_cv_func_ptrace_ret
='int'
15906 gdb_cv_func_ptrace_ret
='long'
15909 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
15916 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
15919 cat >>confdefs.h
<<_ACEOF
15920 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
15924 # Check argument types.
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
15926 $as_echo_n "checking types of arguments for ptrace... " >&6; }
15927 if ${gdb_cv_func_ptrace_args+:} false
; then :
15928 $as_echo_n "(cached) " >&6
15930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15931 /* end confdefs.h. */
15932 $gdb_ptrace_headers
15936 extern long ptrace (enum __ptrace_request, ...);
15942 if ac_fn_c_try_compile
"$LINENO"; then :
15943 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
15945 for gdb_arg1
in 'int' 'long'; do
15946 for gdb_arg2
in 'pid_t' 'int' 'long'; do
15947 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
15948 for gdb_arg4
in 'int' 'long' 'void *'; do
15949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15950 /* end confdefs.h. */
15951 $gdb_ptrace_headers
15955 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
15961 if ac_fn_c_try_compile
"$LINENO"; then :
15962 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
15966 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15968 for gdb_arg5
in 'int *' 'int' 'long'; do
15969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15970 /* end confdefs.h. */
15971 $gdb_ptrace_headers
15975 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
15981 if ac_fn_c_try_compile
"$LINENO"; then :
15982 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
15986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15992 # Provide a safe default value.
15993 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
15996 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
16000 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
16002 ac_save_IFS
=$IFS; IFS
=','
16003 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
16007 cat >>confdefs.h
<<_ACEOF
16008 #define PTRACE_TYPE_ARG1 $1
16012 cat >>confdefs.h
<<_ACEOF
16013 #define PTRACE_TYPE_ARG3 $3
16017 cat >>confdefs.h
<<_ACEOF
16018 #define PTRACE_TYPE_ARG4 $4
16021 if test -n "$5"; then
16023 cat >>confdefs.h
<<_ACEOF
16024 #define PTRACE_TYPE_ARG5 $5
16030 if test "$cross_compiling" = no
; then
16031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
16032 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
16033 if ${ac_cv_func_setpgrp_void+:} false
; then :
16034 $as_echo_n "(cached) " >&6
16036 if test "$cross_compiling" = yes; then :
16037 as_fn_error $?
"cannot check setpgrp when cross compiling" "$LINENO" 5
16039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16040 /* end confdefs.h. */
16041 $ac_includes_default
16045 /* If this system has a BSD-style setpgrp which takes arguments,
16046 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16047 exit successfully. */
16048 return setpgrp (1,1) != -1;
16053 if ac_fn_c_try_run
"$LINENO"; then :
16054 ac_cv_func_setpgrp_void
=no
16056 ac_cv_func_setpgrp_void
=yes
16058 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16059 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
16064 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
16065 if test $ac_cv_func_setpgrp_void = yes; then
16067 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
16073 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
16074 if ${ac_cv_func_setpgrp_void+:} false
; then :
16075 $as_echo_n "(cached) " >&6
16077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16078 /* end confdefs.h. */
16079 #include <unistd.h>
16083 if (setpgrp(1,1) == -1)
16092 if ac_fn_c_try_compile
"$LINENO"; then :
16093 ac_cv_func_setpgrp_void
=no
16095 ac_cv_func_setpgrp_void
=yes
16098 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
16102 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
16103 if test "$ac_cv_func_setpgrp_void" = yes; then
16104 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
16109 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
16110 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
16111 #include <sys/proc.h>
16114 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes
; then :
16116 cat >>confdefs.h
<<_ACEOF
16117 #define HAVE_STRUCT_THREAD_TD_PCB 1
16124 # See if <sys/lwp.h> defines `struct lwp`.
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
16126 $as_echo_n "checking for struct lwp... " >&6; }
16127 if ${gdb_cv_struct_lwp+:} false
; then :
16128 $as_echo_n "(cached) " >&6
16130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16131 /* end confdefs.h. */
16132 #include <sys/param.h>
16134 #include <sys/lwp.h>
16144 if ac_fn_c_try_compile
"$LINENO"; then :
16145 gdb_cv_struct_lwp
=yes
16147 gdb_cv_struct_lwp
=no
16150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
16154 $as_echo "$gdb_cv_struct_lwp" >&6; }
16155 if test "$gdb_cv_struct_lwp" = yes; then
16157 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
16161 # See if <machine/reg.h> degines `struct reg'.
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
16163 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
16164 if ${gdb_cv_struct_reg+:} false
; then :
16165 $as_echo_n "(cached) " >&6
16167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16168 /* end confdefs.h. */
16169 #include <sys/types.h>
16170 #include <machine/reg.h>
16180 if ac_fn_c_try_compile
"$LINENO"; then :
16181 gdb_cv_struct_reg
=yes
16183 gdb_cv_struct_reg
=no
16186 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
16190 $as_echo "$gdb_cv_struct_reg" >&6; }
16191 if test "$gdb_cv_struct_reg" = yes; then
16193 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
16197 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
16198 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
16199 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
16200 #include <machine/reg.h>
16202 if test "x$ac_cv_member_struct_reg_r_fs" = xyes
; then :
16204 cat >>confdefs.h
<<_ACEOF
16205 #define HAVE_STRUCT_REG_R_FS 1
16210 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
16211 #include <machine/reg.h>
16213 if test "x$ac_cv_member_struct_reg_r_gs" = xyes
; then :
16215 cat >>confdefs.h
<<_ACEOF
16216 #define HAVE_STRUCT_REG_R_GS 1
16223 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
16225 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
16226 if ${gdb_cv_have_ptrace_getregs+:} false
; then :
16227 $as_echo_n "(cached) " >&6
16229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16230 /* end confdefs.h. */
16231 #include <sys/ptrace.h>
16240 if ac_fn_c_try_compile
"$LINENO"; then :
16241 gdb_cv_have_ptrace_getregs
=yes
16243 gdb_cv_have_ptrace_getregs
=no
16246 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
16251 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
16252 if test "$gdb_cv_have_ptrace_getregs" = yes; then
16254 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
16258 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
16260 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
16261 if ${gdb_cv_have_ptrace_getfpxregs+:} false
; then :
16262 $as_echo_n "(cached) " >&6
16264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16265 /* end confdefs.h. */
16266 #include <sys/ptrace.h>
16275 if ac_fn_c_try_compile
"$LINENO"; then :
16276 gdb_cv_have_ptrace_getfpxregs
=yes
16278 gdb_cv_have_ptrace_getfpxregs
=no
16281 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
16286 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
16287 if test "$gdb_cv_have_ptrace_getfpxregs" = yes; then
16289 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
16293 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
16295 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
16296 if ${gdb_cv_have_pt_getdbregs+:} false
; then :
16297 $as_echo_n "(cached) " >&6
16299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16300 /* end confdefs.h. */
16301 #include <sys/types.h>
16302 #include <sys/ptrace.h>
16312 if ac_fn_c_try_compile
"$LINENO"; then :
16313 gdb_cv_have_pt_getdbregs
=yes
16315 gdb_cv_have_pt_getdbregs
=no
16318 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
16323 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
16324 if test "$gdb_cv_have_pt_getdbregs" = yes; then
16326 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
16330 # See if <sys/ptrace.h> supports LWP names on FreeBSD
16331 # Older FreeBSD versions don't have the pl_tdname member of
16332 # `struct ptrace_lwpinfo'.
16333 ac_fn_c_check_member
"$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
16335 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes
; then :
16337 cat >>confdefs.h
<<_ACEOF
16338 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
16345 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
16346 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
16348 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>
16350 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes
; then :
16352 cat >>confdefs.h
<<_ACEOF
16353 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
16360 # Check if the compiler supports the `long long' type.
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
16363 $as_echo_n "checking for long long support in compiler... " >&6; }
16364 if ${gdb_cv_c_long_long+:} false
; then :
16365 $as_echo_n "(cached) " >&6
16367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16368 /* end confdefs.h. */
16369 extern long long foo;
16373 switch (foo & 2) { case 0: return 1; }
16378 if ac_fn_c_try_compile
"$LINENO"; then :
16379 gdb_cv_c_long_long
=yes
16381 gdb_cv_c_long_long
=no
16383 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
16386 $as_echo "$gdb_cv_c_long_long" >&6; }
16387 if test "$gdb_cv_c_long_long" != yes; then
16388 # libdecnumber requires long long.
16389 as_fn_error $?
"Compiler must support long long for GDB." "$LINENO" 5
16392 # Check if the compiler and runtime support printing decfloats.
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
16395 $as_echo_n "checking for decfloat support in printf... " >&6; }
16396 if ${gdb_cv_printf_has_decfloat+:} false
; then :
16397 $as_echo_n "(cached) " >&6
16399 if test "$cross_compiling" = yes; then :
16400 gdb_cv_printf_has_decfloat
=no
16402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16403 /* end confdefs.h. */
16404 $ac_includes_default
16409 _Decimal32 d32 = 1.2345df;
16410 _Decimal64 d64 = 1.2345dd;
16411 _Decimal128 d128 = 1.2345dl;
16412 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
16413 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
16418 if ac_fn_c_try_run
"$LINENO"; then :
16419 gdb_cv_printf_has_decfloat
=yes
16421 gdb_cv_printf_has_decfloat
=no
16423 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16424 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
16429 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
16430 if test "$gdb_cv_printf_has_decfloat" = yes; then
16432 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
16436 # Check if the compiler supports the `long double' type. We can't use
16437 # AC_C_LONG_DOUBLE because that one does additional checks on the
16438 # constants defined in <float.h> that fail on some systems,
16439 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
16442 $as_echo_n "checking for long double support in compiler... " >&6; }
16443 if ${gdb_cv_c_long_double+:} false
; then :
16444 $as_echo_n "(cached) " >&6
16446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16447 /* end confdefs.h. */
16450 if ac_fn_c_try_compile
"$LINENO"; then :
16451 gdb_cv_c_long_double
=yes
16453 gdb_cv_c_long_double
=no
16455 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
16458 $as_echo "$gdb_cv_c_long_double" >&6; }
16459 if test "$gdb_cv_c_long_double" = yes; then
16461 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
16465 # Check if the compiler and runtime support printing long doubles.
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
16468 $as_echo_n "checking for long double support in printf... " >&6; }
16469 if ${gdb_cv_printf_has_long_double+:} false
; then :
16470 $as_echo_n "(cached) " >&6
16472 if test "$cross_compiling" = yes; then :
16473 gdb_cv_printf_has_long_double
=no
16475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16476 /* end confdefs.h. */
16477 $ac_includes_default
16482 long double f = 3.141592653;
16483 sprintf (buf, "%Lg", f);
16484 return (strncmp ("3.14159", buf, 7));
16489 if ac_fn_c_try_run
"$LINENO"; then :
16490 gdb_cv_printf_has_long_double
=yes
16492 gdb_cv_printf_has_long_double
=no
16494 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16495 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
16500 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
16501 if test "$gdb_cv_printf_has_long_double" = yes; then
16503 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
16507 # Check if the compiler and runtime support scanning long doubles.
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
16510 $as_echo_n "checking for long double support in scanf... " >&6; }
16511 if ${gdb_cv_scanf_has_long_double+:} false
; then :
16512 $as_echo_n "(cached) " >&6
16514 if test "$cross_compiling" = yes; then :
16515 gdb_cv_scanf_has_long_double
=no
16517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16518 /* end confdefs.h. */
16523 char *buf = "3.141592653";
16525 sscanf (buf, "%Lg", &f);
16526 return !(f > 3.14159 && f < 3.14160);
16531 if ac_fn_c_try_run
"$LINENO"; then :
16532 gdb_cv_scanf_has_long_double
=yes
16534 gdb_cv_scanf_has_long_double
=no
16536 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16537 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
16542 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
16543 if test "$gdb_cv_scanf_has_long_double" = yes; then
16545 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
16552 $as_echo_n "checking for -bbigtoc option... " >&6; }
16553 if ${gdb_cv_bigtoc+:} false
; then :
16554 $as_echo_n "(cached) " >&6
16556 SAVE_LDFLAGS
=$LDFLAGS
16559 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
16560 *) gdb_cv_bigtoc
=-bbigtoc ;;
16563 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
16564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16565 /* end confdefs.h. */
16575 if ac_fn_c_try_link
"$LINENO"; then :
16581 rm -f core conftest.err conftest.
$ac_objext \
16582 conftest
$ac_exeext conftest.
$ac_ext
16583 LDFLAGS
="${SAVE_LDFLAGS}"
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
16587 $as_echo "$gdb_cv_bigtoc" >&6; }
16588 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
16593 $as_echo_n "checking for the dynamic export flag... " >&6; }
16595 if test "${gdb_native}" = yes; then
16596 # The dynamically loaded libthread_db needs access to symbols in the gdb
16597 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
16598 # may not be supported there.
16599 old_LDFLAGS
="$LDFLAGS"
16600 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
16601 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
16602 LDFLAGS
="$LDFLAGS $RDYNAMIC"
16603 if test "${have_libpython}" = no
; then
16604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16605 /* end confdefs.h. */
16615 if ac_fn_c_try_link
"$LINENO"; then :
16618 rm -f core conftest.err conftest.
$ac_objext \
16619 conftest
$ac_exeext conftest.
$ac_ext
16621 # Workaround http://bugs.python.org/issue4434 where static
16622 # libpythonX.Y.a would get its symbols required for
16623 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
16624 # Problem does not happen for the recommended libpythonX.Y.so linkage.
16626 # Note the workaround for Python
16627 # http://bugs.python.org/issue10112 earlier has removed
16628 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
16629 # here too, as otherwise it'd make this -Wl,--dynamic-list test
16631 old_CFLAGS
="$CFLAGS"
16632 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
16634 LIBS
="$LIBS $PYTHON_LIBS"
16635 old_CPPFLAGS
="$CPPFLAGS"
16636 CPPFLAGS
="$CPPFLAGS $PYTHON_CPPFLAGS"
16637 if test "$cross_compiling" = yes; then :
16640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16641 /* end confdefs.h. */
16642 #include "Python.h"
16648 err = PyRun_SimpleString ("import ctypes\n");
16650 return err == 0 ? 0 : 1;
16655 if ac_fn_c_try_run
"$LINENO"; then :
16658 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16659 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16663 CFLAGS
="$old_CFLAGS"
16664 CPPFLAGS
="$old_CPPFLAGS"
16666 LDFLAGS
="$old_LDFLAGS"
16668 if $dynamic_list; then
16669 found
="-Wl,--dynamic-list"
16670 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
16673 RDYNAMIC
="-rdynamic"
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
16677 $as_echo "$found" >&6; }
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether execinfo.h backtrace is available" >&5
16680 $as_echo_n "checking whether execinfo.h backtrace is available... " >&6; }
16681 if ${gdb_cv_execinfo_backtrace+:} false
; then :
16682 $as_echo_n "(cached) " >&6
16684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16685 /* end confdefs.h. */
16687 #include <execinfo.h>
16695 f = backtrace (b, 2);
16696 backtrace_symbols_fd (b, f, 2);
16702 if ac_fn_c_try_link
"$LINENO"; then :
16703 gdb_cv_execinfo_backtrace
=yes
16705 gdb_cv_execinfo_backtrace
=no
16707 rm -f core conftest.err conftest.
$ac_objext \
16708 conftest
$ac_exeext conftest.
$ac_ext
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_execinfo_backtrace" >&5
16711 $as_echo "$gdb_cv_execinfo_backtrace" >&6; }
16712 if test "$gdb_cv_execinfo_backtrace" = yes; then
16714 $as_echo "#define HAVE_EXECINFO_BACKTRACE 1" >>confdefs.h
16719 if test "${build}" = "${host}" -a "${host}" = "${target}" ; then
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
16723 $as_echo_n "checking for AiX thread debugging library... " >&6; }
16724 if ${gdb_cv_have_aix_thread_debug+:} false
; then :
16725 $as_echo_n "(cached) " >&6
16727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16728 /* end confdefs.h. */
16729 #include <sys/pthdebug.h>
16733 #ifndef PTHDB_VERSION_3
16741 if ac_fn_c_try_compile
"$LINENO"; then :
16742 gdb_cv_have_aix_thread_debug
=yes
16744 gdb_cv_have_aix_thread_debug
=no
16747 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
16752 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
16753 if test "$gdb_cv_have_aix_thread_debug" = yes; then
16754 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
16755 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
16756 LIBS
="$LIBS -lpthdebug"
16758 # Older versions of AIX do not provide the declaration for
16759 # the getthrds function (it appears that it was introduced
16761 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
16763 if test "x$ac_cv_have_decl_getthrds" = xyes
; then :
16769 cat >>confdefs.h
<<_ACEOF
16770 #define HAVE_DECL_GETTHRDS $ac_have_decl
16779 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
16780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
16781 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
16782 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false
; then :
16783 $as_echo_n "(cached) " >&6
16785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16786 /* end confdefs.h. */
16787 #include <thread_db.h>
16791 int i = TD_NOTALLOC;
16797 if ac_fn_c_try_compile
"$LINENO"; then :
16798 gdb_cv_thread_db_h_has_td_notalloc
=yes
16800 gdb_cv_thread_db_h_has_td_notalloc
=no
16803 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
16807 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
16810 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
16811 if ${gdb_cv_thread_db_h_has_td_version+:} false
; then :
16812 $as_echo_n "(cached) " >&6
16814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16815 /* end confdefs.h. */
16816 #include <thread_db.h>
16820 int i = TD_VERSION;
16826 if ac_fn_c_try_compile
"$LINENO"; then :
16827 gdb_cv_thread_db_h_has_td_version
=yes
16829 gdb_cv_thread_db_h_has_td_version
=no
16832 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
16836 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
16839 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
16840 if ${gdb_cv_thread_db_h_has_td_notls+:} false
; then :
16841 $as_echo_n "(cached) " >&6
16843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16844 /* end confdefs.h. */
16845 #include <thread_db.h>
16855 if ac_fn_c_try_compile
"$LINENO"; then :
16856 gdb_cv_thread_db_h_has_td_notls
=yes
16858 gdb_cv_thread_db_h_has_td_notls
=no
16861 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
16865 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
16867 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
16869 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
16872 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
16874 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
16877 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
16879 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
16892 cat >>confdefs.h
<<_ACEOF
16893 #define GDBINIT "$gdbinit"
16898 cat >>confdefs.h
<<_ACEOF
16899 #define GDBEARLYINIT ".gdbearlyinit"
16904 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
16905 # except that the argument to --with-sysroot is optional.
16906 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
16907 if test "x$with_sysroot" = xyes
; then
16908 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
16911 # Check whether --with-sysroot was given.
16912 if test "${with_sysroot+set}" = set; then :
16913 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
16915 TARGET_SYSTEM_ROOT
=
16919 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16920 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16921 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
16922 ac_define_dir
=`eval echo $ac_define_dir`
16924 cat >>confdefs.h
<<_ACEOF
16925 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
16931 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16932 if test "x$prefix" = xNONE
; then
16933 test_prefix
=/usr
/local
16935 test_prefix
=$prefix
16938 test_prefix
=$exec_prefix
16941 case ${ac_define_dir} in
16942 "${test_prefix}"|
"${test_prefix}/"*|\
16943 '${exec_prefix}'|
'${exec_prefix}/'*)
16948 cat >>confdefs.h
<<_ACEOF
16949 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
16956 # Check whether --with-system-gdbinit was given.
16957 if test "${with_system_gdbinit+set}" = set; then :
16958 withval
=$with_system_gdbinit;
16959 SYSTEM_GDBINIT
=$withval
16965 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16966 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16967 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
16968 ac_define_dir
=`eval echo $ac_define_dir`
16970 cat >>confdefs.h
<<_ACEOF
16971 #define SYSTEM_GDBINIT "$ac_define_dir"
16977 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16978 if test "x$prefix" = xNONE
; then
16979 test_prefix
=/usr
/local
16981 test_prefix
=$prefix
16984 test_prefix
=$exec_prefix
16987 case ${ac_define_dir} in
16988 "${test_prefix}"|
"${test_prefix}/"*|\
16989 '${exec_prefix}'|
'${exec_prefix}/'*)
16994 cat >>confdefs.h
<<_ACEOF
16995 #define SYSTEM_GDBINIT_RELOCATABLE $value
17002 # Check whether --with-system-gdbinit-dir was given.
17003 if test "${with_system_gdbinit_dir+set}" = set; then :
17004 withval
=$with_system_gdbinit_dir;
17005 SYSTEM_GDBINIT_DIR
=$withval
17007 SYSTEM_GDBINIT_DIR
=
17011 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
17012 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17013 ac_define_dir
=`eval echo $SYSTEM_GDBINIT_DIR`
17014 ac_define_dir
=`eval echo $ac_define_dir`
17016 cat >>confdefs.h
<<_ACEOF
17017 #define SYSTEM_GDBINIT_DIR "$ac_define_dir"
17023 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
17024 if test "x$prefix" = xNONE
; then
17025 test_prefix
=/usr
/local
17027 test_prefix
=$prefix
17030 test_prefix
=$exec_prefix
17033 case ${ac_define_dir} in
17034 "${test_prefix}"|
"${test_prefix}/"*|\
17035 '${exec_prefix}'|
'${exec_prefix}/'*)
17040 cat >>confdefs.h
<<_ACEOF
17041 #define SYSTEM_GDBINIT_DIR_RELOCATABLE $value
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the compiler type" >&5
17050 $as_echo_n "checking the compiler type... " >&6; }
17051 if ${gdb_cv_compiler_type+:} false
; then :
17052 $as_echo_n "(cached) " >&6
17054 gdb_cv_compiler_type
=unknown
17055 if test "$gdb_cv_compiler_type" = unknown
; then
17056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17057 /* end confdefs.h. */
17063 #if !defined __GNUC__ || defined __clang__
17071 if ac_fn_c_try_compile
"$LINENO"; then :
17072 gdb_cv_compiler_type
=gcc
17074 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17077 if test "$gdb_cv_compiler_type" = unknown
; then
17078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17079 /* end confdefs.h. */
17093 if ac_fn_c_try_compile
"$LINENO"; then :
17094 gdb_cv_compiler_type
=clang
17096 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_compiler_type" >&5
17101 $as_echo "$gdb_cv_compiler_type" >&6; }
17103 GDB_COMPILER_TYPE
="$gdb_cv_compiler_type"
17106 # Check whether --enable-werror was given.
17107 if test "${enable_werror+set}" = set; then :
17108 enableval
=$enable_werror; case "${enableval}" in
17109 yes | y
) ERROR_ON_WARNING
="yes" ;;
17110 no | n
) ERROR_ON_WARNING
="no" ;;
17111 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
17116 # Enable -Werror by default when using gcc. Turn it off for releases.
17117 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
17118 ERROR_ON_WARNING
=yes
17122 if test "${ERROR_ON_WARNING}" = yes ; then
17123 WERROR_CFLAGS
="-Werror"
17126 # The options we'll try to enable.
17127 build_warnings
="-Wall -Wpointer-arith \
17128 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
17129 -Wno-switch -Wno-char-subscripts \
17130 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
17131 -Wno-sign-compare -Wno-error=maybe-uninitialized \
17132 -Wno-mismatched-tags \
17133 -Wno-error=deprecated-register \
17134 -Wsuggest-override \
17135 -Wimplicit-fallthrough=3 \
17136 -Wduplicated-cond \
17138 -Wdeprecated-copy \
17139 -Wdeprecated-copy-dtor \
17141 -Wmissing-declarations \
17142 -Wstrict-null-sentinel \
17145 # The -Wmissing-prototypes flag will be accepted by GCC, but results
17146 # in a warning being printed about the flag not being valid for C++,
17147 # this is something to do with using ccache, and argument ordering.
17148 if test "$GDB_COMPILER_TYPE" != gcc
; then
17149 build_warnings
="$build_warnings -Wmissing-prototypes"
17154 # Enable -Wno-format by default when using gcc on mingw since many
17155 # GCC versions complain about %I64.
17156 build_warnings
="$build_warnings -Wno-format" ;;
17158 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
17159 # doesn't understand.
17160 build_warnings
="$build_warnings -Wno-unknown-pragmas"
17161 # Solaris 11 <unistd.h> marks vfork deprecated.
17162 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
17164 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
17165 # but there's a special case for this below.
17166 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
17169 # Check whether --enable-build-warnings was given.
17170 if test "${enable_build_warnings+set}" = set; then :
17171 enableval
=$enable_build_warnings; case "${enableval}" in
17173 no
) build_warnings
="-w";;
17174 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
17175 build_warnings
="${build_warnings} ${t}";;
17176 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
17177 build_warnings
="${t} ${build_warnings}";;
17178 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
17180 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
17181 echo "Setting compiler warning flags = $build_warnings" 6>&1
17184 # Check whether --enable-gdb-build-warnings was given.
17185 if test "${enable_gdb_build_warnings+set}" = set; then :
17186 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
17188 no
) build_warnings
="-w";;
17189 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
17190 build_warnings
="${build_warnings} ${t}";;
17191 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
17192 build_warnings
="${t} ${build_warnings}";;
17193 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
17195 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
17196 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
17200 # The set of warnings supported by a C++ compiler is not the same as
17201 # of the C compiler.
17203 ac_cpp
='$CXXCPP $CPPFLAGS'
17204 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17205 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17206 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
17210 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
17213 $as_echo_n "checking compiler warning flags... " >&6; }
17214 # Separate out the -Werror flag as some files just cannot be
17215 # compiled with it enabled.
17216 for w
in ${build_warnings}; do
17217 # GCC does not complain about -Wno-unknown-warning. Invert
17218 # and test -Wunknown-warning instead.
17221 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
17222 -Wformat-nonliteral)
17223 # gcc requires -Wformat before -Wformat-nonliteral
17224 # will work, so stick them together.
17233 -Werr*) WERROR_CFLAGS
=-Werror ;;
17235 # Check whether GCC accepts it.
17236 saved_CFLAGS
="$CFLAGS"
17237 CFLAGS
="$CFLAGS -Werror $wtest"
17238 saved_CXXFLAGS
="$CXXFLAGS"
17239 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
17240 if test "x$w" = "x-Wunused-variable"; then
17241 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
17242 # fixed in GCC 4.9. This test is derived from the gdb
17243 # source code that triggered this bug in GCC.
17244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17245 /* end confdefs.h. */
17246 struct scoped_restore_base {};
17247 struct scoped_restore_tmpl : public scoped_restore_base {
17248 ~scoped_restore_tmpl() {}
17253 const scoped_restore_base &b = scoped_restore_tmpl();
17259 if ac_fn_cxx_try_compile
"$LINENO"; then :
17260 WARN_CFLAGS
="${WARN_CFLAGS} $w"
17262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17265 /* end confdefs.h. */
17275 if ac_fn_cxx_try_compile
"$LINENO"; then :
17276 WARN_CFLAGS
="${WARN_CFLAGS} $w"
17278 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17280 CFLAGS
="$saved_CFLAGS"
17281 CXXFLAGS
="$saved_CXXFLAGS"
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
17285 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
17291 ac_cpp='$CPP $CPPFLAGS'
17292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17298 # Check whether --enable-ubsan was given.
17299 if test "${enable_ubsan+set}" = set; then :
17300 enableval=$enable_ubsan;
17305 if test "x
$enable_ubsan" = xauto; then
17306 if $development; then
17311 ac_cpp='$CXXCPP $CPPFLAGS'
17312 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17313 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17314 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17316 if test "x
$enable_ubsan" = xyes; then
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
-fsanitize=undefined is accepted
" >&5
17318 $as_echo_n "checking whether
-fsanitize=undefined is accepted...
" >&6; }
17319 saved_CXXFLAGS="$CXXFLAGS"
17320 CXXFLAGS="$CXXFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
17321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17322 /* end confdefs.h. */
17332 if ac_fn_cxx_try_link "$LINENO"; then :
17338 rm -f core conftest.err conftest.$ac_objext \
17339 conftest$ac_exeext conftest.$ac_ext
17340 CXXFLAGS="$saved_CXXFLAGS"
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $enable_ubsan" >&5
17342 $as_echo "$enable_ubsan" >&6; }
17343 if test "x
$enable_ubsan" = xyes; then
17344 WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
17345 CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined
"
17349 ac_cpp='$CPP $CPPFLAGS'
17350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17356 # In the Cygwin environment, we need some additional flags.
17357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
17358 $as_echo_n "checking
for cygwin...
" >&6; }
17359 if ${gdb_cv_os_cygwin+:} false; then :
17360 $as_echo_n "(cached
) " >&6
17362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17363 /* end confdefs.h. */
17365 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
17369 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
17370 $EGREP "^lose$
" >/dev/null 2>&1; then :
17371 gdb_cv_os_cygwin=yes
17373 gdb_cv_os_cygwin=no
17378 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
17379 $as_echo "$gdb_cv_os_cygwin" >&6; }
17382 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
17384 *go32* ) SER_HARDWIRE=ser-go32.o ;;
17385 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
17386 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
17387 *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o
" ;;
17391 # libreadline needs libuser32.a in a cygwin environment
17393 if test x"$gdb_cv_os_cygwin" = xyes; then
17394 WIN32LIBS="-luser32"
17395 case "${target}" in
17396 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
17401 # The ser-tcp.c module requires sockets.
17402 # Note that WIN32APILIBS is set by GDB_AC_COMMON.
17403 WIN32LIBS="$WIN32LIBS $WIN32APILIBS"
17405 # Add ELF support to GDB, but only if BFD includes ELF support.
17408 OLD_LDFLAGS=$LDFLAGS
17410 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
17411 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
17412 # always want our bfd.
17413 CFLAGS="-I${srcdir}/..
/include
-I..
/bfd
-I${srcdir}/..
/bfd
$CFLAGS"
17414 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
17415 LDFLAGS="-L..
/bfd
-L..
/libiberty
$ZLIBDIR $ZSTD_LIBS $LDFLAGS"
17416 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
17417 LIBS="-lbfd -liberty -lz $intl $LIBS"
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ELF support
in BFD
" >&5
17419 $as_echo_n "checking
for ELF support
in BFD...
" >&6; }
17420 if ${gdb_cv_var_elf+:} false; then :
17421 $as_echo_n "(cached
) " >&6
17423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17424 /* end confdefs.h. */
17425 #include <stdlib.h>
17426 #include <string.h>
17428 #include "elf-bfd.h
"
17432 return bfd_get_elf_phdr_upper_bound (NULL);
17438 if ac_fn_c_try_link "$LINENO"; then :
17444 rm -f core conftest.err conftest.$ac_objext \
17445 conftest$ac_exeext conftest.$ac_ext
17448 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_var_elf" >&5
17449 $as_echo "$gdb_cv_var_elf" >&6; }
17451 LDFLAGS=$OLD_LDFLAGS
17453 if test "$gdb_cv_var_elf" = yes; then
17454 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o \
17455 gcore-elf.o elf-none-tdep.o
"
17457 $as_echo "#define HAVE_ELF 1" >>confdefs.h
17459 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
17460 if test "$plugins" = "yes"; then
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17462 $as_echo_n "checking for library containing dlopen... " >&6; }
17463 if ${ac_cv_search_dlopen+:} false
; then :
17464 $as_echo_n "(cached) " >&6
17466 ac_func_search_save_LIBS
=$LIBS
17467 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17468 /* end confdefs.h. */
17470 /* Override any GCC internal prototype to avoid an error.
17471 Use char because int might match the return type of a GCC
17472 builtin and then its argument prototype would still apply. */
17485 for ac_lib
in '' dl
; do
17486 if test -z "$ac_lib"; then
17487 ac_res
="none required"
17490 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
17492 if ac_fn_c_try_link
"$LINENO"; then :
17493 ac_cv_search_dlopen
=$ac_res
17495 rm -f core conftest.err conftest.
$ac_objext \
17497 if ${ac_cv_search_dlopen+:} false
; then :
17501 if ${ac_cv_search_dlopen+:} false
; then :
17504 ac_cv_search_dlopen
=no
17506 rm conftest.
$ac_ext
17507 LIBS
=$ac_func_search_save_LIBS
17509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17510 $as_echo "$ac_cv_search_dlopen" >&6; }
17511 ac_res
=$ac_cv_search_dlopen
17512 if test "$ac_res" != no
; then :
17513 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
17520 # Add macho support to GDB, but only if BFD includes it.
17523 OLD_LDFLAGS
=$LDFLAGS
17525 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
17526 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
17527 # always want our bfd.
17528 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
17529 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
17530 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $ZSTD_LIBS $LDFLAGS"
17531 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
17532 LIBS
="-lbfd -liberty -lz $intl $LIBS"
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
17534 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
17535 if ${gdb_cv_var_macho+:} false
; then :
17536 $as_echo_n "(cached) " >&6
17538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17539 /* end confdefs.h. */
17540 #include <stdlib.h>
17541 #include <string.h>
17543 #include "mach-o.h"
17547 return bfd_mach_o_lookup_command (NULL, 0, NULL);
17553 if ac_fn_c_try_link
"$LINENO"; then :
17554 gdb_cv_var_macho
=yes
17556 gdb_cv_var_macho
=no
17559 rm -f core conftest.err conftest.
$ac_objext \
17560 conftest
$ac_exeext conftest.
$ac_ext
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
17564 $as_echo "$gdb_cv_var_macho" >&6; }
17566 LDFLAGS
=$OLD_LDFLAGS
17568 if test "$gdb_cv_var_macho" = yes; then
17569 CONFIG_OBS
="$CONFIG_OBS machoread.o"
17572 # Add any host-specific objects to GDB.
17573 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
17575 # If building on ELF, look for lzma support for embedded compressed debug info.
17576 if test "$gdb_cv_var_elf" = yes; then
17578 # Check whether --with-lzma was given.
17579 if test "${with_lzma+set}" = set; then :
17580 withval
=$with_lzma;
17585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
17586 $as_echo_n "checking whether to use lzma... " >&6; }
17587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
17588 $as_echo "$with_lzma" >&6; }
17590 if test "${with_lzma}" != no
; then
17601 acl_save_prefix
="$prefix"
17602 prefix
="$acl_final_prefix"
17603 acl_save_exec_prefix
="$exec_prefix"
17604 exec_prefix
="$acl_final_exec_prefix"
17606 eval additional_includedir
=\"$includedir\"
17607 eval additional_libdir
=\"$libdir\"
17609 exec_prefix
="$acl_save_exec_prefix"
17610 prefix
="$acl_save_prefix"
17613 # Check whether --with-liblzma-prefix was given.
17614 if test "${with_liblzma_prefix+set}" = set; then :
17615 withval
=$with_liblzma_prefix;
17616 if test "X$withval" = "Xno"; then
17619 if test "X$withval" = "X"; then
17621 acl_save_prefix
="$prefix"
17622 prefix
="$acl_final_prefix"
17623 acl_save_exec_prefix
="$exec_prefix"
17624 exec_prefix
="$acl_final_exec_prefix"
17626 eval additional_includedir
=\"$includedir\"
17627 eval additional_libdir
=\"$libdir\"
17629 exec_prefix
="$acl_save_exec_prefix"
17630 prefix
="$acl_save_prefix"
17633 additional_includedir
="$withval/include"
17634 additional_libdir
="$withval/lib"
17641 # Check whether --with-liblzma-type was given.
17642 if test "${with_liblzma_type+set}" = set; then :
17643 withval
=$with_liblzma_type; with_liblzma_type
=$withval
17645 with_liblzma_type
=auto
17648 lib_type
=`eval echo \$with_liblzma_type`
17655 names_already_handled
=
17656 names_next_round
='lzma '
17657 while test -n "$names_next_round"; do
17658 names_this_round
="$names_next_round"
17660 for name
in $names_this_round; do
17662 for n
in $names_already_handled; do
17663 if test "$n" = "$name"; then
17664 already_handled
=yes
17668 if test -z "$already_handled"; then
17669 names_already_handled
="$names_already_handled $name"
17670 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17671 eval value
=\"\
$HAVE_LIB$uppername\"
17672 if test -n "$value"; then
17673 if test "$value" = yes; then
17674 eval value
=\"\
$LIB$uppername\"
17675 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
17676 eval value
=\"\
$LTLIB$uppername\"
17677 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
17686 if test $use_additional = yes; then
17687 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
17688 found_dir
="$additional_libdir"
17689 found_so
="$additional_libdir/lib$name.$shlibext"
17690 if test -f "$additional_libdir/lib$name.la"; then
17691 found_la
="$additional_libdir/lib$name.la"
17693 elif test x
$lib_type != xshared
; then
17694 if test -f "$additional_libdir/lib$name.$libext"; then
17695 found_dir
="$additional_libdir"
17696 found_a
="$additional_libdir/lib$name.$libext"
17697 if test -f "$additional_libdir/lib$name.la"; then
17698 found_la
="$additional_libdir/lib$name.la"
17703 if test "X$found_dir" = "X"; then
17704 for x
in $LDFLAGS $LTLIBLZMA; do
17706 acl_save_prefix
="$prefix"
17707 prefix
="$acl_final_prefix"
17708 acl_save_exec_prefix
="$exec_prefix"
17709 exec_prefix
="$acl_final_exec_prefix"
17711 exec_prefix
="$acl_save_exec_prefix"
17712 prefix
="$acl_save_prefix"
17716 dir
=`echo "X$x" | sed -e 's/^X-L//'`
17717 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
17719 found_so
="$dir/lib$name.$shlibext"
17720 if test -f "$dir/lib$name.la"; then
17721 found_la
="$dir/lib$name.la"
17723 elif test x
$lib_type != xshared
; then
17724 if test -f "$dir/lib$name.$libext"; then
17726 found_a
="$dir/lib$name.$libext"
17727 if test -f "$dir/lib$name.la"; then
17728 found_la
="$dir/lib$name.la"
17734 if test "X$found_dir" != "X"; then
17739 if test "X$found_dir" != "X"; then
17740 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
17741 if test "X$found_so" != "X"; then
17742 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
17743 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17746 for x
in $ltrpathdirs; do
17747 if test "X$x" = "X$found_dir"; then
17752 if test -z "$haveit"; then
17753 ltrpathdirs
="$ltrpathdirs $found_dir"
17755 if test "$hardcode_direct" = yes; then
17756 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17758 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
17759 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17761 for x
in $rpathdirs; do
17762 if test "X$x" = "X$found_dir"; then
17767 if test -z "$haveit"; then
17768 rpathdirs
="$rpathdirs $found_dir"
17772 for x
in $LDFLAGS $LIBLZMA; do
17774 acl_save_prefix
="$prefix"
17775 prefix
="$acl_final_prefix"
17776 acl_save_exec_prefix
="$exec_prefix"
17777 exec_prefix
="$acl_final_exec_prefix"
17779 exec_prefix
="$acl_save_exec_prefix"
17780 prefix
="$acl_save_prefix"
17782 if test "X$x" = "X-L$found_dir"; then
17787 if test -z "$haveit"; then
17788 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
17790 if test "$hardcode_minus_L" != no
; then
17791 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17793 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
17799 if test "X$found_a" != "X"; then
17800 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
17802 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
17805 additional_includedir
=
17806 case "$found_dir" in
17808 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17809 additional_includedir
="$basedir/include"
17812 if test "X$additional_includedir" != "X"; then
17813 if test "X$additional_includedir" != "X/usr/include"; then
17815 if test "X$additional_includedir" = "X/usr/local/include"; then
17816 if test -n "$GCC"; then
17818 linux
*) haveit
=yes;;
17822 if test -z "$haveit"; then
17823 for x
in $CPPFLAGS $INCLZMA; do
17825 acl_save_prefix
="$prefix"
17826 prefix
="$acl_final_prefix"
17827 acl_save_exec_prefix
="$exec_prefix"
17828 exec_prefix
="$acl_final_exec_prefix"
17830 exec_prefix
="$acl_save_exec_prefix"
17831 prefix
="$acl_save_prefix"
17833 if test "X$x" = "X-I$additional_includedir"; then
17838 if test -z "$haveit"; then
17839 if test -d "$additional_includedir"; then
17840 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
17846 if test -n "$found_la"; then
17847 save_libdir
="$libdir"
17848 case "$found_la" in
17849 */* |
*\\*) .
"$found_la" ;;
17850 *) .
"./$found_la" ;;
17852 libdir
="$save_libdir"
17853 for dep
in $dependency_libs; do
17856 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
17857 if test "X$additional_libdir" != "X/usr/lib"; then
17859 if test "X$additional_libdir" = "X/usr/local/lib"; then
17860 if test -n "$GCC"; then
17862 linux
*) haveit
=yes;;
17866 if test -z "$haveit"; then
17868 for x
in $LDFLAGS $LIBLZMA; do
17870 acl_save_prefix
="$prefix"
17871 prefix
="$acl_final_prefix"
17872 acl_save_exec_prefix
="$exec_prefix"
17873 exec_prefix
="$acl_final_exec_prefix"
17875 exec_prefix
="$acl_save_exec_prefix"
17876 prefix
="$acl_save_prefix"
17878 if test "X$x" = "X-L$additional_libdir"; then
17883 if test -z "$haveit"; then
17884 if test -d "$additional_libdir"; then
17885 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
17889 for x
in $LDFLAGS $LTLIBLZMA; do
17891 acl_save_prefix
="$prefix"
17892 prefix
="$acl_final_prefix"
17893 acl_save_exec_prefix
="$exec_prefix"
17894 exec_prefix
="$acl_final_exec_prefix"
17896 exec_prefix
="$acl_save_exec_prefix"
17897 prefix
="$acl_save_prefix"
17899 if test "X$x" = "X-L$additional_libdir"; then
17904 if test -z "$haveit"; then
17905 if test -d "$additional_libdir"; then
17906 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
17913 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
17914 if test "$enable_rpath" != no
; then
17916 for x
in $rpathdirs; do
17917 if test "X$x" = "X$dir"; then
17922 if test -z "$haveit"; then
17923 rpathdirs
="$rpathdirs $dir"
17926 for x
in $ltrpathdirs; do
17927 if test "X$x" = "X$dir"; then
17932 if test -z "$haveit"; then
17933 ltrpathdirs
="$ltrpathdirs $dir"
17938 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17941 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17944 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
17945 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
17951 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
17952 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
17953 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
17955 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l:lib$name.$libext"
17956 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l:lib$name.$libext"
17963 if test "X$rpathdirs" != "X"; then
17964 if test -n "$hardcode_libdir_separator"; then
17966 for found_dir
in $rpathdirs; do
17967 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17969 acl_save_libdir
="$libdir"
17971 eval flag
=\"$hardcode_libdir_flag_spec\"
17972 libdir
="$acl_save_libdir"
17973 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
17975 for found_dir
in $rpathdirs; do
17976 acl_save_libdir
="$libdir"
17977 libdir
="$found_dir"
17978 eval flag
=\"$hardcode_libdir_flag_spec\"
17979 libdir
="$acl_save_libdir"
17980 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
17984 if test "X$ltrpathdirs" != "X"; then
17985 for found_dir
in $ltrpathdirs; do
17986 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
17991 ac_save_CPPFLAGS
="$CPPFLAGS"
17993 for element
in $INCLZMA; do
17995 for x
in $CPPFLAGS; do
17997 acl_save_prefix
="$prefix"
17998 prefix
="$acl_final_prefix"
17999 acl_save_exec_prefix
="$exec_prefix"
18000 exec_prefix
="$acl_final_exec_prefix"
18002 exec_prefix
="$acl_save_exec_prefix"
18003 prefix
="$acl_save_prefix"
18005 if test "X$x" = "X$element"; then
18010 if test -z "$haveit"; then
18011 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
18017 $as_echo_n "checking for liblzma... " >&6; }
18018 if ${ac_cv_liblzma+:} false
; then :
18019 $as_echo_n "(cached) " >&6
18022 ac_save_LIBS
="$LIBS"
18023 LIBS
="$LIBS $LIBLZMA"
18024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18025 /* end confdefs.h. */
18030 lzma_index_iter iter;
18031 lzma_index_iter_init (&iter, 0);
18032 lzma_mf_is_supported (LZMA_MF_HC3);
18037 if ac_fn_c_try_link
"$LINENO"; then :
18042 rm -f core conftest.err conftest.
$ac_objext \
18043 conftest
$ac_exeext conftest.
$ac_ext
18044 LIBS
="$ac_save_LIBS"
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
18048 $as_echo "$ac_cv_liblzma" >&6; }
18049 if test "$ac_cv_liblzma" = yes; then
18052 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
18054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
18055 $as_echo_n "checking how to link with liblzma... " >&6; }
18056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
18057 $as_echo "$LIBLZMA" >&6; }
18060 CPPFLAGS
="$ac_save_CPPFLAGS"
18070 if test "$HAVE_LIBLZMA" != yes; then
18071 if test "$with_lzma" = yes; then
18072 as_fn_error $?
"missing liblzma for --with-lzma" "$LINENO" 5
18078 LIBGUI
="../libgui/src/libgui.a"
18079 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
18088 *-*-cygwin* |
*-*-mingw* )
18097 if test "${enable_gdbtk}" = "yes"; then
18099 # Gdbtk must have an absolute path to srcdir in order to run
18100 # properly when not installed.
18103 GDBTK_SRC_DIR
=`pwd`
18108 # Ok, lets find the tcl configuration
18109 # First, look for one uninstalled.
18110 # the alternative search directory is invoked by --with-tcl
18113 if test x
"${no_tcl}" = x
; then
18114 # we reset no_tcl in case something fails here
18117 # Check whether --with-tcl was given.
18118 if test "${with_tcl+set}" = set; then :
18119 withval
=$with_tcl; with_tclconfig
=${withval}
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
18123 $as_echo_n "checking for Tcl configuration... " >&6; }
18124 if ${ac_cv_c_tclconfig+:} false
; then :
18125 $as_echo_n "(cached) " >&6
18129 # First check to see if --with-tcl was specified.
18131 *-*-cygwin*) platDir
="win" ;;
18132 *) platDir
="unix" ;;
18134 if test x
"${with_tclconfig}" != x
; then
18135 if test -f "${with_tclconfig}/tclConfig.sh" ; then
18136 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
18138 as_fn_error $?
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
18142 # then check for a private Tcl installation
18143 if test x
"${ac_cv_c_tclconfig}" = x
; then
18146 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
18147 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
18148 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
18150 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
18151 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
18152 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
18154 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
18155 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
18156 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
18157 if test -f "$i/$platDir/tclConfig.sh" ; then
18158 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
18164 # on Darwin, check in Framework installation locations
18165 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
18166 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
18167 `ls -d /Library/Frameworks 2>/dev/null` \
18168 `ls -d /Network/Library/Frameworks 2>/dev/null` \
18169 `ls -d /System/Library/Frameworks 2>/dev/null` \
18171 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
18172 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
18178 # check in a few common install locations
18179 if test x
"${ac_cv_c_tclconfig}" = x
; then
18180 for i
in `ls -d ${libdir} 2>/dev/null` \
18181 `ls -d ${exec_prefix}/lib 2>/dev/null` \
18182 `ls -d ${prefix}/lib 2>/dev/null` \
18183 `ls -d /usr/local/lib 2>/dev/null` \
18184 `ls -d /usr/contrib/lib 2>/dev/null` \
18185 `ls -d /usr/lib 2>/dev/null` \
18187 if test -f "$i/tclConfig.sh" ; then
18188 ac_cv_c_tclconfig
=`(cd $i; pwd)`
18194 # check in a few other private locations
18195 if test x
"${ac_cv_c_tclconfig}" = x
; then
18198 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
18199 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
18200 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
18201 if test -f "$i/$platDir/tclConfig.sh" ; then
18202 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
18211 if test x
"${ac_cv_c_tclconfig}" = x
; then
18212 TCL_BIN_DIR
="# no Tcl configs found"
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
18214 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
18217 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
18219 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
18224 # If $no_tk is nonempty, then we can't do Tk, and there is no
18225 # point to doing Tcl.
18228 # Ok, lets find the tk configuration
18229 # First, look for one uninstalled.
18230 # the alternative search directory is invoked by --with-tk
18233 if test x
"${no_tk}" = x
; then
18234 # we reset no_tk in case something fails here
18237 # Check whether --with-tk was given.
18238 if test "${with_tk+set}" = set; then :
18239 withval
=$with_tk; with_tkconfig
=${withval}
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
18243 $as_echo_n "checking for Tk configuration... " >&6; }
18244 if ${ac_cv_c_tkconfig+:} false
; then :
18245 $as_echo_n "(cached) " >&6
18249 # First check to see if --with-tkconfig was specified.
18250 if test x
"${with_tkconfig}" != x
; then
18251 if test -f "${with_tkconfig}/tkConfig.sh" ; then
18252 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
18254 as_fn_error $?
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
18258 # then check for a private Tk library
18260 *-*-cygwin*) platDir
="win" ;;
18261 *) platDir
="unix" ;;
18263 if test x
"${ac_cv_c_tkconfig}" = x
; then
18266 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
18267 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
18268 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
18270 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
18271 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
18272 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
18274 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
18275 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
18276 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
18277 if test -f "$i/$platDir/tkConfig.sh" ; then
18278 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
18284 # on Darwin, check in Framework installation locations
18285 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
18286 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
18287 `ls -d /Library/Frameworks 2>/dev/null` \
18288 `ls -d /Network/Library/Frameworks 2>/dev/null` \
18289 `ls -d /System/Library/Frameworks 2>/dev/null` \
18291 if test -f "$i/Tk.framework/tkConfig.sh" ; then
18292 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
18298 # check in a few common install locations
18299 if test x
"${ac_cv_c_tkconfig}" = x
; then
18300 for i
in `ls -d ${libdir} 2>/dev/null` \
18301 `ls -d ${exec_prefix}/lib 2>/dev/null` \
18302 `ls -d ${prefix}/lib 2>/dev/null` \
18303 `ls -d /usr/local/lib 2>/dev/null` \
18304 `ls -d /usr/contrib/lib 2>/dev/null` \
18305 `ls -d /usr/lib 2>/dev/null` \
18307 if test -f "$i/tkConfig.sh" ; then
18308 ac_cv_c_tkconfig
=`(cd $i; pwd)`
18313 # check in a few other private locations
18314 if test x
"${ac_cv_c_tkconfig}" = x
; then
18317 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
18318 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
18319 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
18320 if test -f "$i/$platDir/tkConfig.sh" ; then
18321 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
18330 if test x
"${ac_cv_c_tkconfig}" = x
; then
18331 TK_BIN_DIR
="# no Tk configs found"
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
18333 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
18336 TK_BIN_DIR
=${ac_cv_c_tkconfig}
18337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
18338 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
18343 if test -z "${no_tcl}" -a -z "${no_tk}"; then
18345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
18346 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
18348 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
18350 $as_echo "loading" >&6; }
18351 .
${TCL_BIN_DIR}/tclConfig.sh
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
18354 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
18357 # eval is required to do the TCL_DBGX substitution
18358 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
18359 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
18361 # If the TCL_BIN_DIR is the build directory (not the install directory),
18362 # then set the common variable name to the value of the build variables.
18363 # For example, the variable TCL_LIB_SPEC will be set to the value
18364 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
18365 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
18366 # installed and uninstalled version of Tcl.
18367 if test -f "${TCL_BIN_DIR}/Makefile" ; then
18368 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
18369 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
18370 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
18371 elif test "`uname -s`" = "Darwin"; then
18372 # If Tcl was built as a framework, attempt to use the libraries
18373 # from the framework at the given location so that linking works
18374 # against Tcl.framework installed in an arbitrary location.
18375 case ${TCL_DEFS} in
18377 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
18378 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
18379 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
18380 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
18381 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
18386 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
18387 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
18388 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
18394 # eval is required to do the TCL_DBGX substitution
18395 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
18396 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
18397 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
18398 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
18414 # Check for in-tree tcl
18421 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
18425 # Find Tcl private headers
18426 if test x
"${intree}" = xno
; then
18428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
18429 $as_echo_n "checking for Tcl private headers... " >&6; }
18431 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
18432 if test -f ${dir}/tclInt.h
; then
18436 if test x
"${private_dir}" = x
; then
18437 as_fn_error $?
"could not find private Tcl headers" "$LINENO" 5
18439 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
18441 $as_echo "${private_dir}" >&6; }
18444 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
18445 TCL_LIBRARY
="${TCL_LIB_SPEC}"
18448 # If building tcl in the same src tree, private headers
18449 # are not needed, but we need to be sure to use the right
18451 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
18452 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
18453 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
18460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
18461 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
18463 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
18464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
18465 $as_echo "loading" >&6; }
18466 .
${TK_BIN_DIR}/tkConfig.sh
18468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
18469 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
18472 # eval is required to do the TK_DBGX substitution
18473 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
18474 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
18476 # If the TK_BIN_DIR is the build directory (not the install directory),
18477 # then set the common variable name to the value of the build variables.
18478 # For example, the variable TK_LIB_SPEC will be set to the value
18479 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
18480 # instead of TK_BUILD_LIB_SPEC since it will work with both an
18481 # installed and uninstalled version of Tcl.
18482 if test -f "${TK_BIN_DIR}/Makefile" ; then
18483 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
18484 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
18485 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
18486 elif test "`uname -s`" = "Darwin"; then
18487 # If Tk was built as a framework, attempt to use the libraries
18488 # from the framework at the given location so that linking works
18489 # against Tk.framework installed in an arbitrary location.
18492 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
18493 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
18494 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
18495 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
18496 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
18501 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
18502 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
18503 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
18509 # eval is required to do the TK_DBGX substitution
18510 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
18511 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
18512 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
18513 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
18528 # Check for in-tree Tk
18530 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
18534 # Find Tk private headers
18535 if test x
"${intree}" = xno
; then
18537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
18538 $as_echo_n "checking for Tk private headers... " >&6; }
18540 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
18541 if test -f ${dir}/tkInt.h
; then
18545 if test x
"${private_dir}" = x
; then
18546 as_fn_error $?
"could not find Tk private headers" "$LINENO" 5
18548 TK_PRIVATE_INCLUDE
="-I${private_dir}"
18549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
18550 $as_echo "${private_dir}" >&6; }
18553 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
18554 TK_LIBRARY
=${TK_LIB_SPEC}
18557 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
18558 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
18559 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
18566 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
18568 # Include some libraries that Tcl and Tk want.
18569 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
18570 # Yes, the ordering seems wrong here. But it isn't.
18571 # TK_LIBS is the list of libraries that need to be linked
18572 # after Tcl/Tk. Note that this isn't put into LIBS. If it
18573 # were in LIBS then any link tests after this point would
18574 # try to include things like `$(LIBGUI)', which wouldn't work.
18575 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
18577 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
18578 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
18579 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
18580 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
18581 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
18582 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
18583 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
18585 if test x
"$gdb_cv_os_cygwin" = xyes
; then
18586 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
18587 WIN32LDAPP
="-Wl,--subsystem,console"
18588 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
18591 subdirs
="$subdirs gdbtk"
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
18604 $as_echo_n "checking for X... " >&6; }
18607 # Check whether --with-x was given.
18608 if test "${with_x+set}" = set; then :
18612 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18613 if test "x$with_x" = xno
; then
18614 # The user explicitly disabled X.
18617 case $x_includes,$x_libraries in #(
18618 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
18619 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
18620 $as_echo_n "(cached) " >&6
18622 # One or both of the vars are not set, and there is no cached value.
18623 ac_x_includes
=no ac_x_libraries
=no
18624 rm -f -r conftest.dir
18625 if mkdir conftest.dir
; then
18627 cat >Imakefile
<<'_ACEOF'
18629 @echo incroot='${INCROOT}'
18631 @echo usrlibdir='${USRLIBDIR}'
18633 @echo libdir='${LIBDIR}'
18635 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
18636 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
18637 for ac_var
in incroot usrlibdir libdir
; do
18638 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18640 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18641 for ac_extension
in a so sl dylib la dll
; do
18642 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18643 test -f "$ac_im_libdir/libX11.$ac_extension"; then
18644 ac_im_usrlibdir
=$ac_im_libdir; break
18647 # Screen out bogus values from the imake configuration. They are
18648 # bogus both because they are the default anyway, and because
18649 # using them would break gcc on systems where it needs fixed includes.
18650 case $ac_im_incroot in
18651 /usr
/include
) ac_x_includes
= ;;
18652 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
18654 case $ac_im_usrlibdir in
18655 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
18656 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
18660 rm -f -r conftest.dir
18663 # Standard set of common directories for X headers.
18664 # Check X11 before X11Rn because it is often a symlink to the current release.
18678 /usr/local/X11/include
18679 /usr/local/X11R7/include
18680 /usr/local/X11R6/include
18681 /usr/local/X11R5/include
18682 /usr/local/X11R4/include
18684 /usr/local/include/X11
18685 /usr/local/include/X11R7
18686 /usr/local/include/X11R6
18687 /usr/local/include/X11R5
18688 /usr/local/include/X11R4
18692 /usr/XFree86/include/X11
18696 /usr/unsupported/include
18697 /usr/athena/include
18698 /usr/local/x11r5/include
18699 /usr/lpp/Xamples/include
18701 /usr/openwin/include
18702 /usr/openwin/share/include'
18704 if test "$ac_x_includes" = no
; then
18705 # Guess where to find include files, by looking for Xlib.h.
18706 # First, try using that file with no special directory specified.
18707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18708 /* end confdefs.h. */
18709 #include <X11/Xlib.h>
18711 if ac_fn_c_try_cpp
"$LINENO"; then :
18712 # We can compile using X headers with no special include directory.
18715 for ac_dir
in $ac_x_header_dirs; do
18716 if test -r "$ac_dir/X11/Xlib.h"; then
18717 ac_x_includes
=$ac_dir
18722 rm -f conftest.err conftest.i conftest.
$ac_ext
18723 fi # $ac_x_includes = no
18725 if test "$ac_x_libraries" = no
; then
18726 # Check for the libraries.
18727 # See if we find them without any special options.
18728 # Don't add to $LIBS permanently.
18731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18732 /* end confdefs.h. */
18733 #include <X11/Xlib.h>
18742 if ac_fn_c_try_link
"$LINENO"; then :
18744 # We can link X programs with no special library path.
18748 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18750 # Don't even attempt the hair of trying to link an X program!
18751 for ac_extension
in a so sl dylib la dll
; do
18752 if test -r "$ac_dir/libX11.$ac_extension"; then
18753 ac_x_libraries
=$ac_dir
18759 rm -f core conftest.err conftest.
$ac_objext \
18760 conftest
$ac_exeext conftest.
$ac_ext
18761 fi # $ac_x_libraries = no
18763 case $ac_x_includes,$ac_x_libraries in #(
18764 no
,* |
*,no |
*\'*)
18765 # Didn't find X, or a directory has "'" in its name.
18766 ac_cv_have_x
="have_x=no";; #(
18768 # Record where we found X for the cache.
18769 ac_cv_have_x
="have_x=yes\
18770 ac_x_includes='$ac_x_includes'\
18771 ac_x_libraries='$ac_x_libraries'"
18777 eval "$ac_cv_have_x"
18780 if test "$have_x" != yes; then
18781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
18782 $as_echo "$have_x" >&6; }
18785 # If each of the values was on the command line, it overrides each guess.
18786 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
18787 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
18788 # Update the cache value to reflect the command line values.
18789 ac_cv_have_x
="have_x=yes\
18790 ac_x_includes='$x_includes'\
18791 ac_x_libraries='$x_libraries'"
18792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
18793 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
18797 # Unlike the sim directory, whether a simulator is linked is controlled by
18798 # presence of a gdb_sim definition in the target configure.tgt entry.
18799 # This code just checks for a few cases where we'd like to ignore those
18800 # definitions, even when they're present in the '.mt' file. These cases
18801 # are when --disable-sim is specified, or if the simulator directory is
18802 # not part of the source tree.
18804 # Check whether --enable-sim was given.
18805 if test "${enable_sim+set}" = set; then :
18806 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
18807 echo "enableval = ${enableval}";
18808 case "${enableval}" in
18809 yes) ignore_sim
=false
;;
18810 no
) ignore_sim
=true
;;
18811 *) ignore_sim
=false
;;
18818 if test ! -d "${srcdir}/../sim"; then
18824 if test "${ignore_sim}" = "false"; then
18825 if test x
"${gdb_sim}" != x
; then
18827 SIM_OBS
="remote-sim.o"
18829 # Some tdep code should only be compiled in when the ppc sim is
18830 # built. PR sim/13418.
18834 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
18854 # List of host floatformats.
18856 cat >>confdefs.h
<<_ACEOF
18857 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
18861 cat >>confdefs.h
<<_ACEOF
18862 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
18866 cat >>confdefs.h
<<_ACEOF
18867 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
18871 # target_subdir is used by the testsuite to find the target libraries.
18873 if test "${host}" != "${target}"; then
18874 target_subdir
="${target_alias}/"
18878 # Import nat definitions.
18879 nat_makefile_frag
=/dev
/null
18880 if test "${gdb_native}" = "yes"; then
18881 .
${srcdir}/configure.nat
18882 nativefile
=$NAT_FILE
18895 if test x
"${gdb_osabi}" != x
; then
18897 cat >>confdefs.h
<<_ACEOF
18898 #define GDB_OSABI_DEFAULT $gdb_osabi
18903 # Setup possible use of libbacktrace.
18904 # Check whether --enable-libbacktrace was given.
18905 if test "${enable_libbacktrace+set}" = set; then :
18906 enableval
=$enable_libbacktrace;
18911 as_fn_error $?
"bad value $enableval for --enable-libbacktrace" "$LINENO" 5
18916 enable_libbacktrace
=yes
18920 if test "${enable_libbacktrace}" = "yes"; then
18921 LIBBACKTRACE_INC
="-I$srcdir/../libbacktrace/ -I../libbacktrace/"
18922 LIBBACKTRACE_LIB
=..
/libbacktrace
/.libs
/libbacktrace.a
18924 $as_echo "#define HAVE_LIBBACKTRACE 1" >>confdefs.h
18934 # Check for babeltrace and babeltrace-ctf
18936 # Check whether --with-babeltrace was given.
18937 if test "${with_babeltrace+set}" = set; then :
18938 withval
=$with_babeltrace;
18940 with_babeltrace
=auto
18943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
18944 $as_echo_n "checking whether to use babeltrace... " >&6; }
18945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
18946 $as_echo "$with_babeltrace" >&6; }
18948 if test "x$with_babeltrace" = "xno"; then
18949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
18950 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
18952 # Append -Werror to CFLAGS so that configure can catch the warning
18953 # "assignment from incompatible pointer type", which is related to
18954 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
18955 # in GDB, while babeltrace 1.0.3 is broken.
18956 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
18957 # safe to save and restore CFLAGS here.
18958 saved_CFLAGS
=$CFLAGS
18959 CFLAGS
="$CFLAGS -Werror"
18970 acl_save_prefix
="$prefix"
18971 prefix
="$acl_final_prefix"
18972 acl_save_exec_prefix
="$exec_prefix"
18973 exec_prefix
="$acl_final_exec_prefix"
18975 eval additional_includedir
=\"$includedir\"
18976 eval additional_libdir
=\"$libdir\"
18978 exec_prefix
="$acl_save_exec_prefix"
18979 prefix
="$acl_save_prefix"
18982 # Check whether --with-libbabeltrace-prefix was given.
18983 if test "${with_libbabeltrace_prefix+set}" = set; then :
18984 withval
=$with_libbabeltrace_prefix;
18985 if test "X$withval" = "Xno"; then
18988 if test "X$withval" = "X"; then
18990 acl_save_prefix
="$prefix"
18991 prefix
="$acl_final_prefix"
18992 acl_save_exec_prefix
="$exec_prefix"
18993 exec_prefix
="$acl_final_exec_prefix"
18995 eval additional_includedir
=\"$includedir\"
18996 eval additional_libdir
=\"$libdir\"
18998 exec_prefix
="$acl_save_exec_prefix"
18999 prefix
="$acl_save_prefix"
19002 additional_includedir
="$withval/include"
19003 additional_libdir
="$withval/lib"
19010 # Check whether --with-libbabeltrace-type was given.
19011 if test "${with_libbabeltrace_type+set}" = set; then :
19012 withval
=$with_libbabeltrace_type; with_libbabeltrace_type
=$withval
19014 with_libbabeltrace_type
=auto
19017 lib_type
=`eval echo \$with_libbabeltrace_type`
19024 names_already_handled
=
19025 names_next_round
='babeltrace babeltrace-ctf'
19026 while test -n "$names_next_round"; do
19027 names_this_round
="$names_next_round"
19029 for name
in $names_this_round; do
19031 for n
in $names_already_handled; do
19032 if test "$n" = "$name"; then
19033 already_handled
=yes
19037 if test -z "$already_handled"; then
19038 names_already_handled
="$names_already_handled $name"
19039 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
19040 eval value
=\"\
$HAVE_LIB$uppername\"
19041 if test -n "$value"; then
19042 if test "$value" = yes; then
19043 eval value
=\"\
$LIB$uppername\"
19044 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
19045 eval value
=\"\
$LTLIB$uppername\"
19046 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
19055 if test $use_additional = yes; then
19056 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
19057 found_dir
="$additional_libdir"
19058 found_so
="$additional_libdir/lib$name.$shlibext"
19059 if test -f "$additional_libdir/lib$name.la"; then
19060 found_la
="$additional_libdir/lib$name.la"
19062 elif test x
$lib_type != xshared
; then
19063 if test -f "$additional_libdir/lib$name.$libext"; then
19064 found_dir
="$additional_libdir"
19065 found_a
="$additional_libdir/lib$name.$libext"
19066 if test -f "$additional_libdir/lib$name.la"; then
19067 found_la
="$additional_libdir/lib$name.la"
19072 if test "X$found_dir" = "X"; then
19073 for x
in $LDFLAGS $LTLIBBABELTRACE; do
19075 acl_save_prefix
="$prefix"
19076 prefix
="$acl_final_prefix"
19077 acl_save_exec_prefix
="$exec_prefix"
19078 exec_prefix
="$acl_final_exec_prefix"
19080 exec_prefix
="$acl_save_exec_prefix"
19081 prefix
="$acl_save_prefix"
19085 dir
=`echo "X$x" | sed -e 's/^X-L//'`
19086 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
19088 found_so
="$dir/lib$name.$shlibext"
19089 if test -f "$dir/lib$name.la"; then
19090 found_la
="$dir/lib$name.la"
19092 elif test x
$lib_type != xshared
; then
19093 if test -f "$dir/lib$name.$libext"; then
19095 found_a
="$dir/lib$name.$libext"
19096 if test -f "$dir/lib$name.la"; then
19097 found_la
="$dir/lib$name.la"
19103 if test "X$found_dir" != "X"; then
19108 if test "X$found_dir" != "X"; then
19109 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
19110 if test "X$found_so" != "X"; then
19111 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
19112 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
19115 for x
in $ltrpathdirs; do
19116 if test "X$x" = "X$found_dir"; then
19121 if test -z "$haveit"; then
19122 ltrpathdirs
="$ltrpathdirs $found_dir"
19124 if test "$hardcode_direct" = yes; then
19125 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
19127 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
19128 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
19130 for x
in $rpathdirs; do
19131 if test "X$x" = "X$found_dir"; then
19136 if test -z "$haveit"; then
19137 rpathdirs
="$rpathdirs $found_dir"
19141 for x
in $LDFLAGS $LIBBABELTRACE; do
19143 acl_save_prefix
="$prefix"
19144 prefix
="$acl_final_prefix"
19145 acl_save_exec_prefix
="$exec_prefix"
19146 exec_prefix
="$acl_final_exec_prefix"
19148 exec_prefix
="$acl_save_exec_prefix"
19149 prefix
="$acl_save_prefix"
19151 if test "X$x" = "X-L$found_dir"; then
19156 if test -z "$haveit"; then
19157 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
19159 if test "$hardcode_minus_L" != no
; then
19160 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
19162 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
19168 if test "X$found_a" != "X"; then
19169 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
19171 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
19174 additional_includedir
=
19175 case "$found_dir" in
19177 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
19178 additional_includedir
="$basedir/include"
19181 if test "X$additional_includedir" != "X"; then
19182 if test "X$additional_includedir" != "X/usr/include"; then
19184 if test "X$additional_includedir" = "X/usr/local/include"; then
19185 if test -n "$GCC"; then
19187 linux
*) haveit
=yes;;
19191 if test -z "$haveit"; then
19192 for x
in $CPPFLAGS $INCBABELTRACE; do
19194 acl_save_prefix
="$prefix"
19195 prefix
="$acl_final_prefix"
19196 acl_save_exec_prefix
="$exec_prefix"
19197 exec_prefix
="$acl_final_exec_prefix"
19199 exec_prefix
="$acl_save_exec_prefix"
19200 prefix
="$acl_save_prefix"
19202 if test "X$x" = "X-I$additional_includedir"; then
19207 if test -z "$haveit"; then
19208 if test -d "$additional_includedir"; then
19209 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
19215 if test -n "$found_la"; then
19216 save_libdir
="$libdir"
19217 case "$found_la" in
19218 */* |
*\\*) .
"$found_la" ;;
19219 *) .
"./$found_la" ;;
19221 libdir
="$save_libdir"
19222 for dep
in $dependency_libs; do
19225 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
19226 if test "X$additional_libdir" != "X/usr/lib"; then
19228 if test "X$additional_libdir" = "X/usr/local/lib"; then
19229 if test -n "$GCC"; then
19231 linux
*) haveit
=yes;;
19235 if test -z "$haveit"; then
19237 for x
in $LDFLAGS $LIBBABELTRACE; do
19239 acl_save_prefix
="$prefix"
19240 prefix
="$acl_final_prefix"
19241 acl_save_exec_prefix
="$exec_prefix"
19242 exec_prefix
="$acl_final_exec_prefix"
19244 exec_prefix
="$acl_save_exec_prefix"
19245 prefix
="$acl_save_prefix"
19247 if test "X$x" = "X-L$additional_libdir"; then
19252 if test -z "$haveit"; then
19253 if test -d "$additional_libdir"; then
19254 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
19258 for x
in $LDFLAGS $LTLIBBABELTRACE; do
19260 acl_save_prefix
="$prefix"
19261 prefix
="$acl_final_prefix"
19262 acl_save_exec_prefix
="$exec_prefix"
19263 exec_prefix
="$acl_final_exec_prefix"
19265 exec_prefix
="$acl_save_exec_prefix"
19266 prefix
="$acl_save_prefix"
19268 if test "X$x" = "X-L$additional_libdir"; then
19273 if test -z "$haveit"; then
19274 if test -d "$additional_libdir"; then
19275 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
19282 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
19283 if test "$enable_rpath" != no
; then
19285 for x
in $rpathdirs; do
19286 if test "X$x" = "X$dir"; then
19291 if test -z "$haveit"; then
19292 rpathdirs
="$rpathdirs $dir"
19295 for x
in $ltrpathdirs; do
19296 if test "X$x" = "X$dir"; then
19301 if test -z "$haveit"; then
19302 ltrpathdirs
="$ltrpathdirs $dir"
19307 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19310 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19313 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
19314 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
19320 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
19321 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
19322 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
19324 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l:lib$name.$libext"
19325 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l:lib$name.$libext"
19332 if test "X$rpathdirs" != "X"; then
19333 if test -n "$hardcode_libdir_separator"; then
19335 for found_dir
in $rpathdirs; do
19336 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
19338 acl_save_libdir
="$libdir"
19340 eval flag
=\"$hardcode_libdir_flag_spec\"
19341 libdir
="$acl_save_libdir"
19342 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
19344 for found_dir
in $rpathdirs; do
19345 acl_save_libdir
="$libdir"
19346 libdir
="$found_dir"
19347 eval flag
=\"$hardcode_libdir_flag_spec\"
19348 libdir
="$acl_save_libdir"
19349 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
19353 if test "X$ltrpathdirs" != "X"; then
19354 for found_dir
in $ltrpathdirs; do
19355 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
19360 ac_save_CPPFLAGS
="$CPPFLAGS"
19362 for element
in $INCBABELTRACE; do
19364 for x
in $CPPFLAGS; do
19366 acl_save_prefix
="$prefix"
19367 prefix
="$acl_final_prefix"
19368 acl_save_exec_prefix
="$exec_prefix"
19369 exec_prefix
="$acl_final_exec_prefix"
19371 exec_prefix
="$acl_save_exec_prefix"
19372 prefix
="$acl_save_prefix"
19374 if test "X$x" = "X$element"; then
19379 if test -z "$haveit"; then
19380 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
19385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
19386 $as_echo_n "checking for libbabeltrace... " >&6; }
19387 if ${ac_cv_libbabeltrace+:} false
; then :
19388 $as_echo_n "(cached) " >&6
19391 ac_save_LIBS
="$LIBS"
19392 LIBS
="$LIBS $LIBBABELTRACE"
19393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19394 /* end confdefs.h. */
19395 #include <babeltrace/babeltrace.h>
19396 #include <babeltrace/ctf/events.h>
19397 #include <babeltrace/ctf/iterator.h>
19401 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
19402 struct bt_ctf_event *event = NULL;
19403 const struct bt_definition *scope;
19405 pos->type = BT_SEEK_BEGIN;
19406 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
19407 scope = bt_ctf_get_top_level_scope (event,
19408 BT_STREAM_EVENT_HEADER);
19409 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
19415 if ac_fn_c_try_link
"$LINENO"; then :
19416 ac_cv_libbabeltrace
=yes
19418 ac_cv_libbabeltrace
=no
19420 rm -f core conftest.err conftest.
$ac_objext \
19421 conftest
$ac_exeext conftest.
$ac_ext
19422 LIBS
="$ac_save_LIBS"
19425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
19426 $as_echo "$ac_cv_libbabeltrace" >&6; }
19427 if test "$ac_cv_libbabeltrace" = yes; then
19428 HAVE_LIBBABELTRACE
=yes
19430 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
19432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
19433 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
19434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
19435 $as_echo "$LIBBABELTRACE" >&6; }
19437 HAVE_LIBBABELTRACE
=no
19438 CPPFLAGS
="$ac_save_CPPFLAGS"
19448 CFLAGS
=$saved_CFLAGS
19450 if test "$HAVE_LIBBABELTRACE" != yes; then
19451 if test "$with_babeltrace" = yes; then
19452 as_fn_error $?
"babeltrace is missing or unusable" "$LINENO" 5
19454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
19455 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
19462 # Check whether --with-xxhash was given.
19463 if test "${with_xxhash+set}" = set; then :
19464 withval
=$with_xxhash;
19470 # Check whether --enable-libctf was given.
19471 if test "${enable_libctf+set}" = set; then :
19472 enableval
=$enable_libctf;
19473 case "$enableval" in
19475 *) as_fn_error $?
"Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
19483 if test x
${enable_static} = xno
; then
19484 LIBCTF
="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so"
19485 CTF_DEPS
="../libctf/.libs/libctf.so"
19487 LIBCTF
="../libctf/.libs/libctf.a"
19490 if test "${enable_libctf}" = yes; then
19492 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
19501 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
19504 if test "x$with_xxhash" != "xno"; then
19515 acl_save_prefix
="$prefix"
19516 prefix
="$acl_final_prefix"
19517 acl_save_exec_prefix
="$exec_prefix"
19518 exec_prefix
="$acl_final_exec_prefix"
19520 eval additional_includedir
=\"$includedir\"
19521 eval additional_libdir
=\"$libdir\"
19523 exec_prefix
="$acl_save_exec_prefix"
19524 prefix
="$acl_save_prefix"
19527 # Check whether --with-libxxhash-prefix was given.
19528 if test "${with_libxxhash_prefix+set}" = set; then :
19529 withval
=$with_libxxhash_prefix;
19530 if test "X$withval" = "Xno"; then
19533 if test "X$withval" = "X"; then
19535 acl_save_prefix
="$prefix"
19536 prefix
="$acl_final_prefix"
19537 acl_save_exec_prefix
="$exec_prefix"
19538 exec_prefix
="$acl_final_exec_prefix"
19540 eval additional_includedir
=\"$includedir\"
19541 eval additional_libdir
=\"$libdir\"
19543 exec_prefix
="$acl_save_exec_prefix"
19544 prefix
="$acl_save_prefix"
19547 additional_includedir
="$withval/include"
19548 additional_libdir
="$withval/lib"
19555 # Check whether --with-libxxhash-type was given.
19556 if test "${with_libxxhash_type+set}" = set; then :
19557 withval
=$with_libxxhash_type; with_libxxhash_type
=$withval
19559 with_libxxhash_type
=auto
19562 lib_type
=`eval echo \$with_libxxhash_type`
19569 names_already_handled
=
19570 names_next_round
='xxhash '
19571 while test -n "$names_next_round"; do
19572 names_this_round
="$names_next_round"
19574 for name
in $names_this_round; do
19576 for n
in $names_already_handled; do
19577 if test "$n" = "$name"; then
19578 already_handled
=yes
19582 if test -z "$already_handled"; then
19583 names_already_handled
="$names_already_handled $name"
19584 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
19585 eval value
=\"\
$HAVE_LIB$uppername\"
19586 if test -n "$value"; then
19587 if test "$value" = yes; then
19588 eval value
=\"\
$LIB$uppername\"
19589 test -z "$value" || LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$value"
19590 eval value
=\"\
$LTLIB$uppername\"
19591 test -z "$value" || LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$value"
19600 if test $use_additional = yes; then
19601 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
19602 found_dir
="$additional_libdir"
19603 found_so
="$additional_libdir/lib$name.$shlibext"
19604 if test -f "$additional_libdir/lib$name.la"; then
19605 found_la
="$additional_libdir/lib$name.la"
19607 elif test x
$lib_type != xshared
; then
19608 if test -f "$additional_libdir/lib$name.$libext"; then
19609 found_dir
="$additional_libdir"
19610 found_a
="$additional_libdir/lib$name.$libext"
19611 if test -f "$additional_libdir/lib$name.la"; then
19612 found_la
="$additional_libdir/lib$name.la"
19617 if test "X$found_dir" = "X"; then
19618 for x
in $LDFLAGS $LTLIBXXHASH; do
19620 acl_save_prefix
="$prefix"
19621 prefix
="$acl_final_prefix"
19622 acl_save_exec_prefix
="$exec_prefix"
19623 exec_prefix
="$acl_final_exec_prefix"
19625 exec_prefix
="$acl_save_exec_prefix"
19626 prefix
="$acl_save_prefix"
19630 dir
=`echo "X$x" | sed -e 's/^X-L//'`
19631 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
19633 found_so
="$dir/lib$name.$shlibext"
19634 if test -f "$dir/lib$name.la"; then
19635 found_la
="$dir/lib$name.la"
19637 elif test x
$lib_type != xshared
; then
19638 if test -f "$dir/lib$name.$libext"; then
19640 found_a
="$dir/lib$name.$libext"
19641 if test -f "$dir/lib$name.la"; then
19642 found_la
="$dir/lib$name.la"
19648 if test "X$found_dir" != "X"; then
19653 if test "X$found_dir" != "X"; then
19654 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$found_dir -l$name"
19655 if test "X$found_so" != "X"; then
19656 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
19657 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19660 for x
in $ltrpathdirs; do
19661 if test "X$x" = "X$found_dir"; then
19666 if test -z "$haveit"; then
19667 ltrpathdirs
="$ltrpathdirs $found_dir"
19669 if test "$hardcode_direct" = yes; then
19670 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19672 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
19673 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19675 for x
in $rpathdirs; do
19676 if test "X$x" = "X$found_dir"; then
19681 if test -z "$haveit"; then
19682 rpathdirs
="$rpathdirs $found_dir"
19686 for x
in $LDFLAGS $LIBXXHASH; do
19688 acl_save_prefix
="$prefix"
19689 prefix
="$acl_final_prefix"
19690 acl_save_exec_prefix
="$exec_prefix"
19691 exec_prefix
="$acl_final_exec_prefix"
19693 exec_prefix
="$acl_save_exec_prefix"
19694 prefix
="$acl_save_prefix"
19696 if test "X$x" = "X-L$found_dir"; then
19701 if test -z "$haveit"; then
19702 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir"
19704 if test "$hardcode_minus_L" != no
; then
19705 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19707 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
19713 if test "X$found_a" != "X"; then
19714 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_a"
19716 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir -l$name"
19719 additional_includedir
=
19720 case "$found_dir" in
19722 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
19723 additional_includedir
="$basedir/include"
19726 if test "X$additional_includedir" != "X"; then
19727 if test "X$additional_includedir" != "X/usr/include"; then
19729 if test "X$additional_includedir" = "X/usr/local/include"; then
19730 if test -n "$GCC"; then
19732 linux
*) haveit
=yes;;
19736 if test -z "$haveit"; then
19737 for x
in $CPPFLAGS $INCXXHASH; do
19739 acl_save_prefix
="$prefix"
19740 prefix
="$acl_final_prefix"
19741 acl_save_exec_prefix
="$exec_prefix"
19742 exec_prefix
="$acl_final_exec_prefix"
19744 exec_prefix
="$acl_save_exec_prefix"
19745 prefix
="$acl_save_prefix"
19747 if test "X$x" = "X-I$additional_includedir"; then
19752 if test -z "$haveit"; then
19753 if test -d "$additional_includedir"; then
19754 INCXXHASH
="${INCXXHASH}${INCXXHASH:+ }-I$additional_includedir"
19760 if test -n "$found_la"; then
19761 save_libdir
="$libdir"
19762 case "$found_la" in
19763 */* |
*\\*) .
"$found_la" ;;
19764 *) .
"./$found_la" ;;
19766 libdir
="$save_libdir"
19767 for dep
in $dependency_libs; do
19770 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
19771 if test "X$additional_libdir" != "X/usr/lib"; then
19773 if test "X$additional_libdir" = "X/usr/local/lib"; then
19774 if test -n "$GCC"; then
19776 linux
*) haveit
=yes;;
19780 if test -z "$haveit"; then
19782 for x
in $LDFLAGS $LIBXXHASH; do
19784 acl_save_prefix
="$prefix"
19785 prefix
="$acl_final_prefix"
19786 acl_save_exec_prefix
="$exec_prefix"
19787 exec_prefix
="$acl_final_exec_prefix"
19789 exec_prefix
="$acl_save_exec_prefix"
19790 prefix
="$acl_save_prefix"
19792 if test "X$x" = "X-L$additional_libdir"; then
19797 if test -z "$haveit"; then
19798 if test -d "$additional_libdir"; then
19799 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$additional_libdir"
19803 for x
in $LDFLAGS $LTLIBXXHASH; do
19805 acl_save_prefix
="$prefix"
19806 prefix
="$acl_final_prefix"
19807 acl_save_exec_prefix
="$exec_prefix"
19808 exec_prefix
="$acl_final_exec_prefix"
19810 exec_prefix
="$acl_save_exec_prefix"
19811 prefix
="$acl_save_prefix"
19813 if test "X$x" = "X-L$additional_libdir"; then
19818 if test -z "$haveit"; then
19819 if test -d "$additional_libdir"; then
19820 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$additional_libdir"
19827 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
19828 if test "$enable_rpath" != no
; then
19830 for x
in $rpathdirs; do
19831 if test "X$x" = "X$dir"; then
19836 if test -z "$haveit"; then
19837 rpathdirs
="$rpathdirs $dir"
19840 for x
in $ltrpathdirs; do
19841 if test "X$x" = "X$dir"; then
19846 if test -z "$haveit"; then
19847 ltrpathdirs
="$ltrpathdirs $dir"
19852 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19855 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19858 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$dep"
19859 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$dep"
19865 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
19866 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
19867 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l$name"
19869 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l:lib$name.$libext"
19870 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l:lib$name.$libext"
19877 if test "X$rpathdirs" != "X"; then
19878 if test -n "$hardcode_libdir_separator"; then
19880 for found_dir
in $rpathdirs; do
19881 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
19883 acl_save_libdir
="$libdir"
19885 eval flag
=\"$hardcode_libdir_flag_spec\"
19886 libdir
="$acl_save_libdir"
19887 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
19889 for found_dir
in $rpathdirs; do
19890 acl_save_libdir
="$libdir"
19891 libdir
="$found_dir"
19892 eval flag
=\"$hardcode_libdir_flag_spec\"
19893 libdir
="$acl_save_libdir"
19894 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
19898 if test "X$ltrpathdirs" != "X"; then
19899 for found_dir
in $ltrpathdirs; do
19900 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-R$found_dir"
19905 ac_save_CPPFLAGS
="$CPPFLAGS"
19907 for element
in $INCXXHASH; do
19909 for x
in $CPPFLAGS; do
19911 acl_save_prefix
="$prefix"
19912 prefix
="$acl_final_prefix"
19913 acl_save_exec_prefix
="$exec_prefix"
19914 exec_prefix
="$acl_final_exec_prefix"
19916 exec_prefix
="$acl_save_exec_prefix"
19917 prefix
="$acl_save_prefix"
19919 if test "X$x" = "X$element"; then
19924 if test -z "$haveit"; then
19925 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
19930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5
19931 $as_echo_n "checking for libxxhash... " >&6; }
19932 if ${ac_cv_libxxhash+:} false
; then :
19933 $as_echo_n "(cached) " >&6
19936 ac_save_LIBS
="$LIBS"
19937 LIBS
="$LIBS $LIBXXHASH"
19938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19939 /* end confdefs.h. */
19940 #include <xxhash.h>
19944 XXH32("foo", 3, 0);
19950 if ac_fn_c_try_link
"$LINENO"; then :
19951 ac_cv_libxxhash
=yes
19955 rm -f core conftest.err conftest.
$ac_objext \
19956 conftest
$ac_exeext conftest.
$ac_ext
19957 LIBS
="$ac_save_LIBS"
19960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxxhash" >&5
19961 $as_echo "$ac_cv_libxxhash" >&6; }
19962 if test "$ac_cv_libxxhash" = yes; then
19965 $as_echo "#define HAVE_LIBXXHASH 1" >>confdefs.h
19967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libxxhash" >&5
19968 $as_echo_n "checking how to link with libxxhash... " >&6; }
19969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXXHASH" >&5
19970 $as_echo "$LIBXXHASH" >&6; }
19973 CPPFLAGS
="$ac_save_CPPFLAGS"
19983 if test "$HAVE_LIBXXHASH" != yes; then
19984 if test "$with_xxhash" = yes; then
19985 as_fn_error $?
"xxhash is missing or unusable" "$LINENO" 5
19988 if test "x$with_xxhash" = "xauto"; then
19989 with_xxhash
="$HAVE_LIBXXHASH"
19993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
19994 $as_echo_n "checking whether to use xxhash... " >&6; }
19995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
19996 $as_echo "$with_xxhash" >&6; }
20000 if test "${nativefile}" != ""; then
20001 case "${nativefile}" in
20002 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
20003 * ) GDB_NM_FILE
="${nativefile}"
20005 ac_config_links
="$ac_config_links nm.h:$GDB_NM_FILE"
20008 cat >>confdefs.h
<<_ACEOF
20009 #define GDB_NM_FILE "${GDB_NM_FILE}"
20017 for ac_prog
in xsltproc
20019 # Extract the first word of "$ac_prog", so it can be a program name with args.
20020 set dummy
$ac_prog; ac_word
=$2
20021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20022 $as_echo_n "checking for $ac_word... " >&6; }
20023 if ${ac_cv_path_XSLTPROC+:} false
; then :
20024 $as_echo_n "(cached) " >&6
20028 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
20031 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20032 for as_dir
in $PATH
20035 test -z "$as_dir" && as_dir
=.
20036 for ac_exec_ext
in '' $ac_executable_extensions; do
20037 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
20038 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
20039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20049 XSLTPROC
=$ac_cv_path_XSLTPROC
20050 if test -n "$XSLTPROC"; then
20051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
20052 $as_echo "$XSLTPROC" >&6; }
20054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20055 $as_echo "no" >&6; }
20059 test -n "$XSLTPROC" && break
20061 test -n "$XSLTPROC" || XSLTPROC
="missing"
20063 if test "x$USE_MAINTAINER_MODE" = xyes
; then
20064 if test "${XSLTPROC}" = missing
; then
20065 as_fn_error $?
"unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
20073 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
20077 # Check whether we will enable the inclusion of unit tests when
20080 # The default value of this option changes depending whether we're on
20081 # development mode (in which case it's "true") or not (in which case
20082 # it's "false"). The $development variable is set by the GDB_AC_COMMON
20083 # macro, which must therefore be used before GDB_AC_SELFTEST.
20085 if test "x$development" != xtrue
&& test "x$development" != xfalse
; then :
20086 as_fn_error $?
"Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
20089 # Check whether --enable-unit-tests was given.
20090 if test "${enable_unit_tests+set}" = set; then :
20091 enableval
=$enable_unit_tests; case "${enableval}" in
20092 yes) enable_unittests
=true
;;
20093 no
) enable_unittests
=false
;;
20094 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
20097 enable_unittests
=$development
20101 if $enable_unittests; then
20103 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
20106 CONFIG_OBS
="$CONFIG_OBS \$(SELFTESTS_OBS)"
20107 CONFIG_SRCS
="$CONFIG_SRCS \$(SELFTESTS_SRCS)"
20113 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
20114 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
20115 if test "x$GDB_TRANSFORM_NAME" = x
; then
20116 GDB_TRANSFORM_NAME
=gdb
20121 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
20122 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
20123 if test "x$GCORE_TRANSFORM_NAME" = x
; then
20124 GCORE_TRANSFORM_NAME
=gcore
20128 ac_config_files
="$ac_config_files gcore"
20130 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
20133 cat >confcache
<<\_ACEOF
20134 # This file is a shell script that caches the results of configure
20135 # tests run on this system so they can be shared between configure
20136 # scripts and configure runs, see configure's option --config-cache.
20137 # It is not useful on other systems. If it contains results you don't
20138 # want to keep, you may remove or edit it.
20140 # config.status only pays attention to the cache file if you give it
20141 # the --recheck option to rerun configure.
20143 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20144 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20145 # following values.
20149 # The following way of writing the cache mishandles newlines in values,
20150 # but we know of no workaround that is simple, portable, and efficient.
20151 # So, we kill variables containing newlines.
20152 # Ultrix sh set writes to stderr and can't be redirected directly,
20153 # and sets the high bit in the cache file unless we assign to the vars.
20155 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20156 eval ac_val
=\$
$ac_var
20160 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20161 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20164 _ | IFS | as_nl
) ;; #(
20165 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
20166 *) { eval $ac_var=; unset $ac_var;} ;;
20172 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20173 *${as_nl}ac_space
=\
*)
20174 # `set' does not quote correctly, so add quotes: double-quote
20175 # substitution turns \\\\ into \\, and sed turns \\ into \.
20178 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20181 # `set' quotes correctly as required by POSIX, so do not add quotes.
20182 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20191 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20193 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20195 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
20196 if test -w "$cache_file"; then
20197 if test "x$cache_file" != "x/dev/null"; then
20198 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20199 $as_echo "$as_me: updating cache $cache_file" >&6;}
20200 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
20201 cat confcache
>"$cache_file"
20203 case $cache_file in #(
20205 mv -f confcache
"$cache_file"$$
&&
20206 mv -f "$cache_file"$$
"$cache_file" ;; #(
20208 mv -f confcache
"$cache_file" ;;
20213 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20214 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20219 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
20220 # Let make expand exec_prefix.
20221 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
20223 DEFS
=-DHAVE_CONFIG_H
20228 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
20229 # 1. Remove the extension, and $U if already installed.
20230 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
20231 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
20232 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20233 # will be set to the directory where LIBOBJS objects are built.
20234 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20235 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
20237 LIBOBJS
=$ac_libobjs
20239 LTLIBOBJS
=$ac_ltlibobjs
20242 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20243 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
20244 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20246 if test -z "${ENABLE_BFD_64_BIT_TRUE}" && test -z "${ENABLE_BFD_64_BIT_FALSE}"; then
20247 as_fn_error $?
"conditional \"ENABLE_BFD_64_BIT\" was never defined.
20248 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20250 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
20251 as_fn_error $?
"conditional \"HAVE_PYTHON\" was never defined.
20252 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20254 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
20255 as_fn_error $?
"conditional \"HAVE_GUILE\" was never defined.
20256 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20260 : "${CONFIG_STATUS=./config.status}"
20262 ac_clean_files_save
=$ac_clean_files
20263 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
20264 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20265 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20267 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20269 # Generated by $as_me.
20270 # Run this file to recreate the current configuration.
20271 # Compiler output produced by configure, useful for debugging
20272 # configure, is in config.log if it exists.
20275 ac_cs_recheck=false
20278 SHELL=\${CONFIG_SHELL-$SHELL}
20281 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
20282 ## -------------------- ##
20283 ## M4sh Initialization. ##
20284 ## -------------------- ##
20286 # Be more Bourne compatible
20287 DUALCASE
=1; export DUALCASE
# for MKS sh
20288 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20291 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20292 # is contrary to our usage. Disable this feature.
20293 alias -g '${1+"$@"}'='"$@"'
20294 setopt NO_GLOB_SUBST
20296 case `(set -o) 2>/dev/null` in #(
20308 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20309 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20310 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20311 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20312 # Prefer a ksh shell builtin over an external printf program on Solaris,
20313 # but without wasting forks for bash or zsh.
20314 if test -z "$BASH_VERSION$ZSH_VERSION" \
20315 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20316 as_echo='print
-r --'
20317 as_echo_n='print
-rn --'
20318 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20319 as_echo='printf %s
\n'
20320 as_echo_n='printf %s
'
20322 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20323 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
20324 as_echo_n='/usr
/ucb
/echo -n'
20326 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20327 as_echo_n_body='eval
20331 expr "X$arg" : "X\\(.*\\)$as_nl";
20332 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20334 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
20336 export as_echo_n_body
20337 as_echo_n='sh
-c $as_echo_n_body as_echo
'
20339 export as_echo_body
20340 as_echo='sh
-c $as_echo_body as_echo
'
20343 # The user is always right.
20344 if test "${PATH_SEPARATOR+set}" != set; then
20346 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20347 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20354 # We need space, tab and new line, in precisely that order. Quoting is
20355 # there to prevent editors from complaining about space-tab.
20356 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20357 # splitting by setting IFS to empty value.)
20360 # Find who we are. Look in the path if we contain no directory separator.
20363 *[\\/]* ) as_myself=$0 ;;
20364 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20365 for as_dir in $PATH
20368 test -z "$as_dir" && as_dir=.
20369 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20375 # We did not find ourselves, most probably we were run as `sh COMMAND'
20376 # in which case we are not to be found in the path.
20377 if test "x$as_myself" = x
; then
20380 if test ! -f "$as_myself"; then
20381 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20385 # Unset variables that we do not need and which cause bugs (e.g. in
20386 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20387 # suppresses any "Segmentation fault" message there. '((' could
20388 # trigger a bug in pdksh 5.2.14.
20389 for as_var
in BASH_ENV ENV MAIL MAILPATH
20390 do eval test x\
${$as_var+set} = xset \
20391 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
20404 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
20407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20408 # ----------------------------------------
20409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20411 # script with STATUS, using 1 if that was 0.
20414 as_status
=$1; test $as_status -eq 0 && as_status
=1
20416 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
20417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20419 $as_echo "$as_me: error: $2" >&2
20420 as_fn_exit
$as_status
20424 # as_fn_set_status STATUS
20425 # -----------------------
20426 # Set $? to STATUS, without forking.
20427 as_fn_set_status
()
20430 } # as_fn_set_status
20432 # as_fn_exit STATUS
20433 # -----------------
20434 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20438 as_fn_set_status
$1
20444 # Portably unset VAR.
20447 { eval $1=; unset $1;}
20449 as_unset
=as_fn_unset
20450 # as_fn_append VAR VALUE
20451 # ----------------------
20452 # Append the text in VALUE to the end of the definition contained in VAR. Take
20453 # advantage of any shell optimizations that allow amortized linear growth over
20454 # repeated appends, instead of the typical quadratic growth present in naive
20456 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
20457 eval 'as_fn_append ()
20468 # as_fn_arith ARG...
20469 # ------------------
20470 # Perform arithmetic evaluation on the ARGs, and store the result in the
20471 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20472 # must be portable across $(()) and expr.
20473 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
20474 eval 'as_fn_arith ()
20481 as_val
=`expr "$@" || test $? -eq 1`
20486 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20487 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20493 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20494 as_basename
=basename
20499 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
20505 as_me
=`$as_basename -- "$0" ||
20506 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20507 X"$0" : 'X\(//\)$' \| \
20508 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20510 sed '/^.*\/\([^/][^/]*\)\/*$/{
20524 # Avoid depending upon Character Ranges.
20525 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
20526 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20527 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
20528 as_cr_digits
='0123456789'
20529 as_cr_alnum
=$as_cr_Letters$as_cr_digits
20531 ECHO_C
= ECHO_N
= ECHO_T
=
20532 case `echo -n x` in #(((((
20534 case `echo 'xy\c'` in
20535 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
20537 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
20544 rm -f conf$$ conf$$.exe conf$$.
file
20545 if test -d conf$$.dir
; then
20546 rm -f conf$$.dir
/conf$$.
file
20549 mkdir conf$$.dir
2>/dev
/null
20551 if (echo >conf$$.
file) 2>/dev
/null
; then
20552 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20554 # ... but there are two gotchas:
20555 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20556 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20557 # In both cases, we have to default to `cp -pR'.
20558 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
20560 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20568 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
20569 rmdir conf$$.dir
2>/dev
/null
20574 # Create "$as_dir" as a directory, including parents if necessary.
20579 -*) as_dir
=.
/$as_dir;;
20581 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
20585 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20586 *) as_qdir
=$as_dir;;
20588 as_dirs
="'$as_qdir' $as_dirs"
20589 as_dir
=`$as_dirname -- "$as_dir" ||
20590 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20591 X"$as_dir" : 'X\(//\)[^/]' \| \
20592 X"$as_dir" : 'X\(//\)$' \| \
20593 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20594 $as_echo X"$as_dir" |
20595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20599 /^X\(\/\/\)[^/].*/{
20612 test -d "$as_dir" && break
20614 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
20615 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
20619 if mkdir
-p .
2>/dev
/null
; then
20620 as_mkdir_p
='mkdir -p "$as_dir"'
20622 test -d .
/-p && rmdir .
/-p
20627 # as_fn_executable_p FILE
20628 # -----------------------
20629 # Test if FILE is an executable regular file.
20630 as_fn_executable_p
()
20632 test -f "$1" && test -x "$1"
20633 } # as_fn_executable_p
20634 as_test_x
='test -x'
20635 as_executable_p
=as_fn_executable_p
20637 # Sed expression to map a string onto a valid CPP name.
20638 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20640 # Sed expression to map a string onto a valid variable name.
20641 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20645 ## ----------------------------------- ##
20646 ## Main body of $CONFIG_STATUS script. ##
20647 ## ----------------------------------- ##
20649 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
20651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20652 # Save the log message, to keep $0 and so on meaningful, and to
20653 # report actual input values of CONFIG_FILES etc. instead of their
20654 # values after options handling.
20656 This file was extended by $as_me, which was
20657 generated by GNU Autoconf 2.69. Invocation command line was
20659 CONFIG_FILES = $CONFIG_FILES
20660 CONFIG_HEADERS = $CONFIG_HEADERS
20661 CONFIG_LINKS = $CONFIG_LINKS
20662 CONFIG_COMMANDS = $CONFIG_COMMANDS
20665 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20670 case $ac_config_files in *"
20671 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
20674 case $ac_config_headers in *"
20675 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
20679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20680 # Files that config.status was made for.
20681 config_files="$ac_config_files"
20682 config_headers="$ac_config_headers"
20683 config_links="$ac_config_links"
20684 config_commands="$ac_config_commands"
20688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20690 \`$as_me' instantiates files and other configuration actions
20691 from templates according to the current configuration. Unless the files
20692 and actions are specified as TAGs, all are instantiated by default.
20694 Usage: $0 [OPTION]... [TAG]...
20696 -h, --help print this help, then exit
20697 -V, --version print version number and configuration settings, then exit
20698 --config print configuration, then exit
20699 -q, --quiet, --silent
20700 do not print progress messages
20701 -d, --debug don't remove temporary files
20702 --recheck update $as_me by reconfiguring in the same conditions
20703 --file=FILE[:TEMPLATE]
20704 instantiate the configuration file FILE
20705 --header=FILE[:TEMPLATE]
20706 instantiate the configuration header FILE
20708 Configuration files:
20711 Configuration headers:
20714 Configuration links:
20717 Configuration commands:
20720 Report bugs to the package provider."
20723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20724 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20727 configured by $0, generated by GNU Autoconf 2.69,
20728 with options \\"\$ac_cs_config\\"
20730 Copyright (C) 2012 Free Software Foundation, Inc.
20731 This config.status script is free software; the Free Software Foundation
20732 gives unlimited permission to copy, distribute and modify it."
20738 test -n "\$AWK" || AWK=awk
20741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20742 # The default lists apply if the user does not specify any file.
20748 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20749 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20753 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20765 # Handling of the options.
20766 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20768 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20769 $as_echo "$ac_cs_version"; exit ;;
20770 --config |
--confi |
--conf |
--con |
--co |
--c )
20771 $as_echo "$ac_cs_config"; exit ;;
20772 --debug |
--debu |
--deb |
--de |
--d |
-d )
20774 --file |
--fil |
--fi |
--f )
20777 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20778 '') as_fn_error $?
"missing file argument" ;;
20780 as_fn_append CONFIG_FILES
" '$ac_optarg'"
20781 ac_need_defaults
=false
;;
20782 --header |
--heade |
--head |
--hea )
20785 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20787 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
20788 ac_need_defaults
=false
;;
20790 # Conflict between --help and --header
20791 as_fn_error $?
"ambiguous option: \`$1'
20792 Try \`$0 --help' for more information.";;
20793 --help |
--hel |
-h )
20794 $as_echo "$ac_cs_usage"; exit ;;
20795 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20796 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20799 # This is an error.
20800 -*) as_fn_error $?
"unrecognized option: \`$1'
20801 Try \`$0 --help' for more information." ;;
20803 *) as_fn_append ac_config_targets
" $1"
20804 ac_need_defaults
=false
;;
20810 ac_configure_extra_args
=
20812 if $ac_cs_silent; then
20814 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20819 if \$ac_cs_recheck; then
20820 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20822 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20823 CONFIG_SHELL='$SHELL'
20824 export CONFIG_SHELL
20829 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20833 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20834 ## Running $as_me. ##
20840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20844 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
20845 GDB_NM_FILE=$GDB_NM_FILE
20849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20851 # Handling of arguments.
20852 for ac_config_target
in $ac_config_targets
20854 case $ac_config_target in
20855 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
20856 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
20857 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
20858 "nm.h") CONFIG_LINKS
="$CONFIG_LINKS nm.h:$GDB_NM_FILE" ;;
20859 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
20860 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20861 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
20862 "gdb-gdb.py") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.py" ;;
20863 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
20864 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
20866 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20871 # If the user did not use the arguments to specify the items to instantiate,
20872 # then the envvar interface is used. Set only those that are not.
20873 # We use the long form for the default assignment because of an extremely
20874 # bizarre bug on SunOS 4.1.3.
20875 if $ac_need_defaults; then
20876 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20877 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20878 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
20879 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20882 # Have a temporary directory for convenience. Make it in the build tree
20883 # simply because there is no reason against having it here, and in addition,
20884 # creating and moving files from /tmp can sometimes cause problems.
20885 # Hook for its removal unless debugging.
20886 # Note that there is a small window in which the directory will not be cleaned:
20887 # after its creation but before its name has been assigned to `$tmp'.
20891 trap 'exit_status=$?
20892 : "${ac_tmp:=$tmp}"
20893 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20895 trap 'as_fn_exit 1' 1 2 13 15
20897 # Create a (secure) tmp directory for tmp files.
20900 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20904 tmp
=.
/conf$$
-$RANDOM
20905 (umask 077 && mkdir
"$tmp")
20906 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
20909 # Set up the scripts for CONFIG_FILES section.
20910 # No need to generate them if there are no CONFIG_FILES.
20911 # This happens for instance with `./config.status config.h'.
20912 if test -n "$CONFIG_FILES"; then
20914 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
20915 ac_cs_awk_getline
=:
20916 ac_cs_awk_pipe_init
=
20917 ac_cs_awk_read_file
='
20918 while ((getline aline < (F[key])) > 0)
20921 ac_cs_awk_pipe_fini
=
20923 ac_cs_awk_getline
=false
20924 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
20925 ac_cs_awk_read_file
='
20927 print "cat " F[key] " &&"
20928 '$ac_cs_awk_pipe_init
20929 # The final `:' finishes the AND list.
20930 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
20932 ac_cr
=`echo X | tr X '\015'`
20933 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20934 # But we know of no other shell where ac_cr would be empty at this
20935 # point, so we can use a bashism as a fallback.
20936 if test "x$ac_cr" = x
; then
20937 eval ac_cr
=\$
\'\\r
\'
20939 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20940 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20943 ac_cs_awk_cr
=$ac_cr
20946 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20949 # Create commands to substitute file output variables.
20951 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20952 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
20953 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
20956 } >conf$
$files.sh
&&
20957 . .
/conf$
$files.sh ||
20958 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
20959 rm -f conf$
$files.sh
20962 echo "cat >conf$$subs.awk <<_ACEOF" &&
20963 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20965 } >conf$$subs.sh ||
20966 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20967 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20969 for ac_last_try in false false false false false :; do
20970 . ./conf$$subs.sh ||
20971 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20973 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20974 if test $ac_delim_n = $ac_delim_num; then
20976 elif $ac_last_try; then
20977 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20979 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20982 rm -f conf$$subs.sh
20984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20985 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
20989 s/^/S["/; s
/!.
*/"]=/
20999 s/\(.\{148\}\)..*/\1/
21001 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
21006 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
21013 s/\(.\{148\}\)..*/\1/
21015 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
21019 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
21024 ' <conf$$subs.awk | sed '
21029 ' >>$CONFIG_STATUS || ac_write_fail=1
21030 rm -f conf$$subs.awk
21031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21033 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
21034 for (key in S) S_is_set[key] = 1
21036 \$ac_cs_awk_pipe_init
21040 nfields = split(line, field, "@
")
21042 len = length(field[1])
21043 for (i = 2; i < nfields; i++) {
21045 keylen = length(key)
21046 if (S_is_set[key]) {
21048 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21049 len += length(value) + length(field[++i])
21054 if (nfields == 3 && !substed) {
21056 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
21057 \$ac_cs_awk_read_file
21063 \$ac_cs_awk_pipe_fini
21066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21067 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21068 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
21071 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
21072 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
21075 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21076 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
21077 # trailing colons and then remove the whole line if VPATH becomes empty
21078 # (actually we leave an empty line to preserve line numbers).
21079 if test "x
$srcdir" = x.; then
21080 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21099 fi # test -n "$CONFIG_FILES"
21101 # Set up the scripts for CONFIG_HEADERS section.
21102 # No need to generate them if there are no CONFIG_HEADERS.
21103 # This happens for instance with `./config.status Makefile'.
21104 if test -n "$CONFIG_HEADERS"; then
21105 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
21109 # Transform confdefs.h into an awk script `defines.awk', embedded as
21110 # here-document in config.status, that substitutes the proper values into
21111 # config.h.in to produce config.h.
21113 # Create a delimiter string that does not exist in confdefs.h, to ease
21114 # handling of long lines.
21116 for ac_last_try in false false :; do
21117 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
21118 if test -z "$ac_tt"; then
21120 elif $ac_last_try; then
21121 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
21123 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
21127 # For the awk script, D is an array of macro values keyed by name,
21128 # likewise P contains macro parameters if any. Preserve backslash
21129 # newline sequences.
21131 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21133 s/.\{148\}/&'"$ac_delim"'/g
21136 s/^[ ]*#[ ]*define[ ][ ]*/ /
21143 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
21145 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
21149 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
21150 D["\
1"]=" \
3\\\\\\n
"\\/p
21152 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
21157 s/.\{148\}/&'"$ac_delim"'/g
21162 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
21165 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
21167 ' <confdefs.h | sed '
21168 s/'"$ac_delim"'/"\\\
21169 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21172 for (key in D) D_is_set[key] = 1
21175 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21177 split(line, arg, " ")
21178 if (arg[1] == "#") {
21182 defundef
= substr
(arg
[1], 2)
21185 split(mac1
, mac2
, "(") #)
21187 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
21188 if (D_is_set
[macro
]) {
21189 # Preserve the white space surrounding the "#".
21190 print prefix
"define", macro P
[macro
] D
[macro
]
21193 # Replace #undef with comments. This is necessary, for example,
21194 # in the case of _POSIX_SOURCE, which is predefined and required
21195 # on some systems where configure will not decide to define it.
21196 if (defundef
== "undef") {
21197 print
"/*", prefix defundef
, macro
, "*/"
21205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21206 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
21207 fi # test -n "$CONFIG_HEADERS"
21210 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
21215 :[FHLC
]) ac_mode
=$ac_tag; continue;;
21217 case $ac_mode$ac_tag in
21219 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
21220 :[FH
]-) ac_tag
=-:-;;
21221 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
21238 -) ac_f
="$ac_tmp/stdin";;
21239 *) # Look for the file first in the build tree, then in the source tree
21240 # (if the path is not absolute). The absolute path cannot be DOS-style,
21241 # because $ac_f cannot contain `:'.
21245 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
21247 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21249 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21250 as_fn_append ac_file_inputs
" '$ac_f'"
21253 # Let's still pretend it is `configure' which instantiates (i.e., don't
21254 # use $as_me), people would be surprised to read:
21255 # /* config.h. Generated by config.status. */
21256 configure_input
='Generated from '`
21257 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21259 if test x
"$ac_file" != x-
; then
21260 configure_input
="$ac_file. $configure_input"
21261 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21262 $as_echo "$as_me: creating $ac_file" >&6;}
21264 # Neutralize special characters interpreted by sed in replacement strings.
21265 case $configure_input in #(
21266 *\
&* |
*\|
* |
*\\* )
21267 ac_sed_conf_input
=`$as_echo "$configure_input" |
21268 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21269 *) ac_sed_conf_input
=$configure_input;;
21273 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
21274 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
21279 ac_dir
=`$as_dirname -- "$ac_file" ||
21280 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21281 X"$ac_file" : 'X\(//\)[^/]' \| \
21282 X"$ac_file" : 'X\(//\)$' \| \
21283 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21284 $as_echo X"$ac_file" |
21285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21289 /^X\(\/\/\)[^/].*/{
21302 as_dir
="$ac_dir"; as_fn_mkdir_p
21306 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21308 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21309 # A ".." for each directory in $ac_dir_suffix.
21310 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21311 case $ac_top_builddir_sub in
21312 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21313 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
21316 ac_abs_top_builddir
=$ac_pwd
21317 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
21318 # for backward compatibility:
21319 ac_top_builddir
=$ac_top_build_prefix
21322 .
) # We are building in place.
21324 ac_top_srcdir
=$ac_top_builddir_sub
21325 ac_abs_top_srcdir
=$ac_pwd ;;
21326 [\\/]* | ?
:[\\/]* ) # Absolute name.
21327 ac_srcdir
=$srcdir$ac_dir_suffix;
21328 ac_top_srcdir
=$srcdir
21329 ac_abs_top_srcdir
=$srcdir ;;
21330 *) # Relative name.
21331 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
21332 ac_top_srcdir
=$ac_top_build_prefix$srcdir
21333 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
21335 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
21345 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
21346 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
21350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21351 # If the template does not know about datarootdir, expand it.
21352 # FIXME: This hack should be removed a few years after 2.60.
21353 ac_datarootdir_hack
=; ac_datarootdir_seen
=
21364 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21365 *datarootdir
*) ac_datarootdir_seen
=yes;;
21366 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
21367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21368 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21370 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21371 ac_datarootdir_hack='
21372 s&@datadir@&$datadir&g
21373 s&@docdir@&$docdir&g
21374 s&@infodir@&$infodir&g
21375 s&@localedir@&$localedir&g
21376 s&@mandir@&$mandir&g
21377 s&\\\${datarootdir}&$datarootdir&g' ;;
21381 # Neutralize VPATH when `$srcdir' = `.'.
21382 # Shell code in configure.ac might set extrasub.
21383 # FIXME: do we really want to maintain this feature?
21384 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21385 ac_sed_extra="$ac_vpsub
21388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21390 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
21391 s|@configure_input@|
$ac_sed_conf_input|
;t t
21392 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
21393 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
21394 s
&@srcdir@
&$ac_srcdir&;t t
21395 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
21396 s
&@top_srcdir@
&$ac_top_srcdir&;t t
21397 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
21398 s
&@builddir@
&$ac_builddir&;t t
21399 s
&@abs_builddir@
&$ac_abs_builddir&;t t
21400 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
21401 s
&@INSTALL@
&$ac_INSTALL&;t t
21402 $ac_datarootdir_hack
21404 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
21405 if $ac_cs_awk_getline; then
21406 $AWK -f "$ac_tmp/subs.
awk"
21408 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
21410 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
21412 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21413 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
21414 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21415 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
21416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
21417 which seems to be undefined. Please make sure it is defined" >&5
21418 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
21419 which seems to be undefined. Please make sure it is defined" >&2;}
21421 rm -f "$ac_tmp/stdin"
21423 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21424 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21426 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21432 if test x"$ac_file" != x-; then
21434 $as_echo "/* $configure_input */" \
21435 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21436 } >"$ac_tmp/config.h" \
21437 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21438 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21439 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21440 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21443 mv "$ac_tmp/config.h" "$ac_file" \
21444 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21447 $as_echo "/* $configure_input */" \
21448 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21449 || as_fn_error $? "could not create -" "$LINENO" 5
21457 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
21460 # Prefer the file from the source tree if names are identical.
21461 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
21462 ac_source=$srcdir/$ac_source
21465 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
21466 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
21468 if test ! -r "$ac_source"; then
21469 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
21473 # Try a relative symlink, then a hard link, then a copy.
21475 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
21476 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
21478 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
21479 ln "$ac_source" "$ac_file" 2>/dev/null ||
21480 cp -p "$ac_source" "$ac_file" ||
21481 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
21484 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21485 $as_echo "$as_me: executing $ac_file commands" >&6;}
21490 case $ac_file$ac_mode in
21491 "config.h":H) echo > stamp-h ;;
21492 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
21493 "nm.h":L) echo > stamp-nmh ;;
21494 "gcore":F) chmod +x gcore ;;
21502 ac_clean_files=$ac_clean_files_save
21504 test $ac_write_fail = 0 ||
21505 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21508 # configure is writing to config.log, and then calls config.status.
21509 # config.status does its own redirection, appending to config.log.
21510 # Unfortunately, on DOS this fails, as config.log is still kept open
21511 # by configure, so config.status won't be able to
write to it
; its
21512 # output is simply discarded. So we exec the FD to /dev/null,
21513 # effectively closing config.log, so it can be properly (re)opened and
21514 # appended to by config.status. When coming back to configure, we
21515 # need to make the FD available again.
21516 if test "$no_create" != yes; then
21518 ac_config_status_args
=
21519 test "$silent" = yes &&
21520 ac_config_status_args
="$ac_config_status_args --quiet"
21522 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21524 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21525 # would make configure fail if this is the last instruction.
21526 $ac_cs_success || as_fn_exit
1
21530 # CONFIG_SUBDIRS section.
21532 if test "$no_recursion" != yes; then
21534 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
21535 # so they do not pile up.
21536 ac_sub_configure_args
=
21538 eval "set x $ac_configure_args"
21542 if test -n "$ac_prev"; then
21547 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
21548 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
21549 ac_prev
=cache_file
;;
21550 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
21551 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
21554 --config-cache |
-C)
21556 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
21558 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
21560 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
21562 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
21564 --disable-option-checking)
21568 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21570 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
21574 # Always prepend --prefix to ensure using the same prefix
21575 # in subdir configurations.
21576 ac_arg
="--prefix=$prefix"
21578 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21580 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
21583 if test "$silent" = yes; then
21584 ac_sub_configure_args
="--silent $ac_sub_configure_args"
21587 # Always prepend --disable-option-checking to silence warnings, since
21588 # different subdirs can have different --enable and --with options.
21589 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
21592 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
21594 # Do not complain, so a configure script can configure whichever
21595 # parts of a large source tree are present.
21596 test -d "$srcdir/$ac_dir" ||
continue
21598 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21599 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
21600 $as_echo "$ac_msg" >&6
21601 as_dir
="$ac_dir"; as_fn_mkdir_p
21605 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21607 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21608 # A ".." for each directory in $ac_dir_suffix.
21609 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21610 case $ac_top_builddir_sub in
21611 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21612 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
21615 ac_abs_top_builddir
=$ac_pwd
21616 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
21617 # for backward compatibility:
21618 ac_top_builddir
=$ac_top_build_prefix
21621 .
) # We are building in place.
21623 ac_top_srcdir
=$ac_top_builddir_sub
21624 ac_abs_top_srcdir
=$ac_pwd ;;
21625 [\\/]* | ?
:[\\/]* ) # Absolute name.
21626 ac_srcdir
=$srcdir$ac_dir_suffix;
21627 ac_top_srcdir
=$srcdir
21628 ac_abs_top_srcdir
=$srcdir ;;
21629 *) # Relative name.
21630 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
21631 ac_top_srcdir
=$ac_top_build_prefix$srcdir
21632 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
21634 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
21639 # Check for guested configure; otherwise get Cygnus style configure.
21640 if test -f "$ac_srcdir/configure.gnu"; then
21641 ac_sub_configure
=$ac_srcdir/configure.gnu
21642 elif test -f "$ac_srcdir/configure"; then
21643 ac_sub_configure
=$ac_srcdir/configure
21644 elif test -f "$ac_srcdir/configure.in"; then
21645 # This should be Cygnus configure.
21646 ac_sub_configure
=$ac_aux_dir/configure
21648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
21649 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21653 # The recursion is here.
21654 if test -n "$ac_sub_configure"; then
21655 # Make the cache file name correct relative to the subdirectory.
21656 case $cache_file in
21657 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
21658 *) # Relative name.
21659 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
21662 { $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
21663 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21664 # The eval makes quoting arguments work.
21665 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21666 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21667 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
21673 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
21674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21675 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}