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
640 HAVE_NATIVE_GCORE_HOST
740 READLINE_TEXI_INCFLAG
769 HAVE_NATIVE_GCORE_TARGET
795 INSTALL_STRIP_PROGRAM
824 MAINTAINER_MODE_FALSE
853 program_transform_name
864 ac_subst_files
='nat_makefile_frag'
866 enable_option_checking
867 enable_maintainer_mode
870 with_separate_debug_dir
872 with_relocated_sources
874 with_auto_load_safe_path
904 enable_source_highlight
911 with_system_gdbinit_dir
913 enable_build_warnings
914 enable_gdb_build_warnings
924 with_libbabeltrace_prefix
925 with_libbabeltrace_type
928 with_libxxhash_prefix
932 ac_precious_vars
='build_alias
954 ac_subdirs_all
='testsuite
957 # Initialize some variables set by options.
959 ac_init_version
=false
960 ac_unrecognized_opts
=
962 # The variables have the same names as the options, with
963 # dashes changed to underlines.
971 program_transform_name
=s
,x
,x
,
979 # Installation directory options.
980 # These are left unexpanded so users can "make install exec_prefix=/foo"
981 # and all the variables that are supposed to be based on exec_prefix
982 # by default will actually change.
983 # Use braces instead of parens because sh, perl, etc. also accept them.
984 # (The list follows the same order as the GNU Coding Standards.)
985 bindir
='${exec_prefix}/bin'
986 sbindir
='${exec_prefix}/sbin'
987 libexecdir
='${exec_prefix}/libexec'
988 datarootdir
='${prefix}/share'
989 datadir
='${datarootdir}'
990 sysconfdir
='${prefix}/etc'
991 sharedstatedir
='${prefix}/com'
992 localstatedir
='${prefix}/var'
993 includedir
='${prefix}/include'
994 oldincludedir
='/usr/include'
995 docdir
='${datarootdir}/doc/${PACKAGE}'
996 infodir
='${datarootdir}/info'
1001 libdir
='${exec_prefix}/lib'
1002 localedir
='${datarootdir}/locale'
1003 mandir
='${datarootdir}/man'
1009 # If the previous option needs an argument, assign it.
1010 if test -n "$ac_prev"; then
1011 eval $ac_prev=\
$ac_option
1017 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1022 # Accept the important Cygnus configure options, so we can diagnose typos.
1024 case $ac_dashdash$ac_option in
1028 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1030 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1031 bindir
=$ac_optarg ;;
1033 -build |
--build |
--buil |
--bui |
--bu)
1034 ac_prev
=build_alias
;;
1035 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1036 build_alias
=$ac_optarg ;;
1038 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1039 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1040 ac_prev
=cache_file
;;
1041 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1042 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1043 cache_file
=$ac_optarg ;;
1045 --config-cache |
-C)
1046 cache_file
=config.cache
;;
1048 -datadir |
--datadir |
--datadi |
--datad)
1050 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1051 datadir
=$ac_optarg ;;
1053 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1054 |
--dataroo |
--dataro |
--datar)
1055 ac_prev
=datarootdir
;;
1056 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1057 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1058 datarootdir
=$ac_optarg ;;
1060 -disable-* |
--disable-*)
1061 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1062 # Reject names that are not valid shell variable names.
1063 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1064 as_fn_error $?
"invalid feature name: $ac_useropt"
1065 ac_useropt_orig
=$ac_useropt
1066 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1067 case $ac_user_opts in
1069 "enable_
$ac_useropt"
1071 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1072 ac_unrecognized_sep
=', ';;
1074 eval enable_
$ac_useropt=no
;;
1076 -docdir |
--docdir |
--docdi |
--doc |
--do)
1078 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1079 docdir
=$ac_optarg ;;
1081 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1083 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1084 dvidir
=$ac_optarg ;;
1086 -enable-* |
--enable-*)
1087 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1088 # Reject names that are not valid shell variable names.
1089 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1090 as_fn_error $?
"invalid feature name: $ac_useropt"
1091 ac_useropt_orig
=$ac_useropt
1092 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093 case $ac_user_opts in
1095 "enable_
$ac_useropt"
1097 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1098 ac_unrecognized_sep
=', ';;
1100 eval enable_
$ac_useropt=\
$ac_optarg ;;
1102 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1103 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1104 |
--exec |
--exe |
--ex)
1105 ac_prev
=exec_prefix
;;
1106 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1107 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1108 |
--exec=* |
--exe=* |
--ex=*)
1109 exec_prefix
=$ac_optarg ;;
1111 -gas |
--gas |
--ga |
--g)
1112 # Obsolete; use --with-gas.
1115 -help |
--help |
--hel |
--he |
-h)
1116 ac_init_help
=long
;;
1117 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1118 ac_init_help
=recursive
;;
1119 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1120 ac_init_help
=short
;;
1122 -host |
--host |
--hos |
--ho)
1123 ac_prev
=host_alias
;;
1124 -host=* |
--host=* |
--hos=* |
--ho=*)
1125 host_alias
=$ac_optarg ;;
1127 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1129 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1131 htmldir
=$ac_optarg ;;
1133 -includedir |
--includedir |
--includedi |
--included |
--include \
1134 |
--includ |
--inclu |
--incl |
--inc)
1135 ac_prev
=includedir
;;
1136 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1137 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1138 includedir
=$ac_optarg ;;
1140 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1142 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1143 infodir
=$ac_optarg ;;
1145 -libdir |
--libdir |
--libdi |
--libd)
1147 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1148 libdir
=$ac_optarg ;;
1150 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1151 |
--libexe |
--libex |
--libe)
1152 ac_prev
=libexecdir
;;
1153 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1154 |
--libexe=* |
--libex=* |
--libe=*)
1155 libexecdir
=$ac_optarg ;;
1157 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1158 ac_prev
=localedir
;;
1159 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1160 localedir
=$ac_optarg ;;
1162 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1163 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1164 ac_prev
=localstatedir
;;
1165 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1166 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1167 localstatedir
=$ac_optarg ;;
1169 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1171 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1172 mandir
=$ac_optarg ;;
1174 -nfp |
--nfp |
--nf)
1175 # Obsolete; use --without-fp.
1178 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1179 |
--no-cr |
--no-c |
-n)
1182 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1183 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1186 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1187 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1188 |
--oldin |
--oldi |
--old |
--ol |
--o)
1189 ac_prev
=oldincludedir
;;
1190 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1191 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1192 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1193 oldincludedir
=$ac_optarg ;;
1195 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1197 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1198 prefix
=$ac_optarg ;;
1200 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1201 |
--program-pre |
--program-pr |
--program-p)
1202 ac_prev
=program_prefix
;;
1203 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1204 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1205 program_prefix
=$ac_optarg ;;
1207 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1208 |
--program-suf |
--program-su |
--program-s)
1209 ac_prev
=program_suffix
;;
1210 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1211 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1212 program_suffix
=$ac_optarg ;;
1214 -program-transform-name |
--program-transform-name \
1215 |
--program-transform-nam |
--program-transform-na \
1216 |
--program-transform-n |
--program-transform- \
1217 |
--program-transform |
--program-transfor \
1218 |
--program-transfo |
--program-transf \
1219 |
--program-trans |
--program-tran \
1220 |
--progr-tra |
--program-tr |
--program-t)
1221 ac_prev
=program_transform_name
;;
1222 -program-transform-name=* |
--program-transform-name=* \
1223 |
--program-transform-nam=* |
--program-transform-na=* \
1224 |
--program-transform-n=* |
--program-transform-=* \
1225 |
--program-transform=* |
--program-transfor=* \
1226 |
--program-transfo=* |
--program-transf=* \
1227 |
--program-trans=* |
--program-tran=* \
1228 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1229 program_transform_name
=$ac_optarg ;;
1231 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1233 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1234 pdfdir
=$ac_optarg ;;
1236 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1238 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1241 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1242 |
-silent |
--silent |
--silen |
--sile |
--sil)
1245 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1247 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1249 sbindir
=$ac_optarg ;;
1251 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1252 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1253 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1255 ac_prev
=sharedstatedir
;;
1256 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1257 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1258 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1260 sharedstatedir
=$ac_optarg ;;
1262 -site |
--site |
--sit)
1264 -site=* |
--site=* |
--sit=*)
1267 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1269 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1270 srcdir
=$ac_optarg ;;
1272 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1273 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1274 ac_prev
=sysconfdir
;;
1275 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1276 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1277 sysconfdir
=$ac_optarg ;;
1279 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1280 ac_prev
=target_alias
;;
1281 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1282 target_alias
=$ac_optarg ;;
1284 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1287 -version |
--version |
--versio |
--versi |
--vers |
-V)
1288 ac_init_version
=: ;;
1291 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1294 as_fn_error $?
"invalid package name: $ac_useropt"
1295 ac_useropt_orig
=$ac_useropt
1296 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297 case $ac_user_opts in
1301 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1302 ac_unrecognized_sep
=', ';;
1304 eval with_
$ac_useropt=\
$ac_optarg ;;
1306 -without-* |
--without-*)
1307 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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--without-$ac_useropt_orig"
1318 ac_unrecognized_sep
=', ';;
1320 eval with_
$ac_useropt=no
;;
1323 # Obsolete; use --with-x.
1326 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1327 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1328 ac_prev
=x_includes
;;
1329 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1330 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1331 x_includes
=$ac_optarg ;;
1333 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1334 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1335 ac_prev
=x_libraries
;;
1336 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1337 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1338 x_libraries
=$ac_optarg ;;
1340 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1341 Try \`$0 --help' for more information"
1345 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1346 # Reject names that are not valid shell variable names.
1347 case $ac_envvar in #(
1348 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1349 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1351 eval $ac_envvar=\
$ac_optarg
1352 export $ac_envvar ;;
1355 # FIXME: should be removed in autoconf 3.0.
1356 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1357 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1358 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1359 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1365 if test -n "$ac_prev"; then
1366 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1367 as_fn_error $?
"missing argument to $ac_option"
1370 if test -n "$ac_unrecognized_opts"; then
1371 case $enable_option_checking in
1373 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1374 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1378 # Check all directory arguments for consistency.
1379 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1380 datadir sysconfdir sharedstatedir localstatedir includedir \
1381 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1382 libdir localedir mandir
1384 eval ac_val
=\$
$ac_var
1385 # Remove trailing slashes.
1388 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1389 eval $ac_var=\
$ac_val;;
1391 # Be sure to have absolute directory names.
1393 [\\/$
]* | ?
:[\\/]* ) continue;;
1394 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1396 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1399 # There might be people who depend on the old broken behavior: `$host'
1400 # used to hold the argument of --host etc.
1401 # FIXME: To remove some day.
1404 target
=$target_alias
1406 # FIXME: To remove some day.
1407 if test "x$host_alias" != x
; then
1408 if test "x$build_alias" = x
; then
1409 cross_compiling
=maybe
1410 elif test "x$build_alias" != "x$host_alias"; then
1416 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1418 test "$silent" = yes && exec 6>/dev
/null
1421 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1422 ac_ls_di
=`ls -di .` &&
1423 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1424 as_fn_error $?
"working directory cannot be determined"
1425 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1426 as_fn_error $?
"pwd does not report name of working directory"
1429 # Find the source files, if location was not specified.
1430 if test -z "$srcdir"; then
1431 ac_srcdir_defaulted
=yes
1432 # Try the directory containing this script, then the parent directory.
1433 ac_confdir
=`$as_dirname -- "$as_myself" ||
1434 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1435 X"$as_myself" : 'X\(//\)[^/]' \| \
1436 X"$as_myself" : 'X\(//\)$' \| \
1437 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1438 $as_echo X"$as_myself" |
1439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1457 if test ! -r "$srcdir/$ac_unique_file"; then
1461 ac_srcdir_defaulted
=no
1463 if test ! -r "$srcdir/$ac_unique_file"; then
1464 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1465 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1467 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1469 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1471 # When building in place, set srcdir=.
1472 if test "$ac_abs_confdir" = "$ac_pwd"; then
1475 # Remove unnecessary trailing slashes from srcdir.
1476 # Double slashes in file names in object file debugging info
1477 # mess up M-x gdb in Emacs.
1479 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1481 for ac_var
in $ac_precious_vars; do
1482 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1483 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1484 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1485 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1489 # Report the --help message.
1491 if test "$ac_init_help" = "long"; then
1492 # Omit some internal or obsolete options to make the list less imposing.
1493 # This message is too long to be a string in the A/UX 3.1 sh.
1495 \`configure' configures this package to adapt to many kinds of systems.
1497 Usage: $0 [OPTION]... [VAR=VALUE]...
1499 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1500 VAR=VALUE. See below for descriptions of some of the useful variables.
1502 Defaults for the options are specified in brackets.
1505 -h, --help display this help and exit
1506 --help=short display options specific to this package
1507 --help=recursive display the short help of all the included packages
1508 -V, --version display version information and exit
1509 -q, --quiet, --silent do not print \`checking ...' messages
1510 --cache-file=FILE cache test results in FILE [disabled]
1511 -C, --config-cache alias for \`--cache-file=config.cache'
1512 -n, --no-create do not create output files
1513 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1515 Installation directories:
1516 --prefix=PREFIX install architecture-independent files in PREFIX
1517 [$ac_default_prefix]
1518 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1521 By default, \`make install' will install all the files in
1522 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1523 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1524 for instance \`--prefix=\$HOME'.
1526 For better control, use the options below.
1528 Fine tuning of the installation directories:
1529 --bindir=DIR user executables [EPREFIX/bin]
1530 --sbindir=DIR system admin executables [EPREFIX/sbin]
1531 --libexecdir=DIR program executables [EPREFIX/libexec]
1532 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1533 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1534 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1535 --libdir=DIR object code libraries [EPREFIX/lib]
1536 --includedir=DIR C header files [PREFIX/include]
1537 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1538 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1539 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1540 --infodir=DIR info documentation [DATAROOTDIR/info]
1541 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1542 --mandir=DIR man documentation [DATAROOTDIR/man]
1543 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1544 --htmldir=DIR html documentation [DOCDIR]
1545 --dvidir=DIR dvi documentation [DOCDIR]
1546 --pdfdir=DIR pdf documentation [DOCDIR]
1547 --psdir=DIR ps documentation [DOCDIR]
1553 --program-prefix=PREFIX prepend PREFIX to installed program names
1554 --program-suffix=SUFFIX append SUFFIX to installed program names
1555 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1558 --x-includes=DIR X include files are
in DIR
1559 --x-libraries=DIR X library files are
in DIR
1562 --build=BUILD configure
for building on BUILD
[guessed
]
1563 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1564 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1568 if test -n "$ac_init_help"; then
1573 --disable-option-checking ignore unrecognized
--enable/--with options
1574 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1575 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1576 --enable-maintainer-mode
1577 enable make rules and dependencies not useful
(and
1578 sometimes confusing
) to the casual installer
1579 --enable-plugins Enable support
for plugins
1580 --disable-largefile omit support
for large files
1581 --enable-targets=TARGETS
1582 alternative target configurations
1583 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1584 --disable-gdbmi disable machine-interface
(MI
)
1585 --enable-tui enable full-screen terminal user interface
(TUI
)
1586 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1587 --enable-profiling enable profiling of GDB
1588 --enable-codesign=CERT sign gdb with
'codesign -s CERT'
1589 --disable-rpath do not hardcode runtime library paths
1590 --enable-source-highlight
1591 enable source-highlight
for source listings
1592 --enable-werror treat compile warnings as errors
1593 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1594 --enable-gdb-build-warnings
1595 enable GDB specific build-time compiler warnings
if
1597 --enable-ubsan enable undefined behavior sanitizer
(auto
/yes
/no
)
1598 --enable-sim link gdb with simulator
1599 --enable-libctf Handle .ctf type-info sections
[default
=yes]
1600 --enable-unit-tests Enable the inclusion of unit tests when compiling
1604 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1605 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1606 --with-separate-debug-dir=PATH
1607 look for global separate debug info
in this path
1609 --with-gdb-datadir=PATH
look for global separate data files
in this path
1611 --with-relocated-sources=PATH
1612 automatically relocate this path
for source files
1613 --with-auto-load-dir=PATH
1614 directories from
which to load auto-loaded scripts
1615 [$debugdir:$datadir/auto-load
]
1616 --with-auto-load-safe-path=PATH
1617 directories safe to hold auto-loaded files
1618 [--with-auto-load-dir]
1619 --without-auto-load-safe-path
1620 do not restrict auto-loaded files locations
1621 --with-debuginfod Enable debuginfo lookups with debuginfod
1623 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1624 --with-curses use the curses library instead of the termcap
1626 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1627 --with-bugurl=URL Direct users to URL to report a bug
1628 --with-system-zlib use installed libz
1629 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1630 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1631 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1632 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1633 --with-iconv-bin=PATH specify where to find the iconv program
1634 --with-system-readline use installed readline library
1635 --with-jit-reader-dir=PATH
1636 directory to load the JIT readers from
1637 --with-expat include expat support (auto/yes/no)
1638 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1639 --without-libexpat-prefix don't search
for libexpat
in includedir and libdir
1640 --with-libexpat-type=TYPE
type of library to search
for (auto
/static
/shared
)
1641 --with-mpfr include MPFR support
(auto
/yes
/no
)
1642 --with-libmpfr-prefix[=DIR
] search
for libmpfr
in DIR
/include and DIR
/lib
1643 --without-libmpfr-prefix don
't search for libmpfr in includedir and libdir
1644 --with-libmpfr-type=TYPE type of library to search for (auto/static/shared)
1645 --with-python[=PYTHON] include python support
1646 (auto/yes/no/<python-program>)
1647 --with-python-libdir[=DIR]
1648 search for python's libraries
in DIR
1649 --with-guile[=GUILE
] include guile support
1650 (auto
/yes
/no
/<guile-version
>/<pkg-config-program
>)
1651 --with-intel-pt include Intel Processor Trace support
(auto
/yes
/no
)
1652 --with-libipt-prefix[=DIR
] search
for libipt
in DIR
/include and DIR
/lib
1653 --without-libipt-prefix don
't search for libipt in includedir and libdir
1654 --with-libipt-type=TYPE type of library to search for (auto/static/shared)
1655 --without-included-regex
1656 don't use included regex
; this is the default on
1657 systems with version
2 of the GNU C library
(use
1658 with caution on other system
)
1659 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1660 --with-system-gdbinit=PATH
1661 automatically load a system-wide gdbinit
file
1662 --with-system-gdbinit-dir=PATH
1663 automatically load system-wide gdbinit files from
1665 --with-lzma support lzma compression
(auto
/yes
/no
)
1666 --with-liblzma-prefix[=DIR
] search
for liblzma
in DIR
/include and DIR
/lib
1667 --without-liblzma-prefix don
't search for liblzma in includedir and libdir
1668 --with-liblzma-type=TYPE type of library to search for (auto/static/shared)
1669 --with-tcl directory containing tcl configuration (tclConfig.sh)
1670 --with-tk directory containing tk configuration (tkConfig.sh)
1671 --with-x use the X Window System
1672 --with-babeltrace include babeltrace support (auto/yes/no)
1673 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1674 --without-libbabeltrace-prefix don't search
for libbabeltrace
in includedir and libdir
1675 --with-libbabeltrace-type=TYPE
type of library to search
for (auto
/static
/shared
)
1676 --with-xxhash use libxxhash
for hashing
(faster
) (auto
/yes
/no
)
1677 --with-libxxhash-prefix[=DIR
] search
for libxxhash
in DIR
/include and DIR
/lib
1678 --without-libxxhash-prefix don
't search for libxxhash in includedir and libdir
1679 --with-libxxhash-type=TYPE type of library to search for (auto/static/shared)
1681 Some influential environment variables:
1682 CC C compiler command
1683 CFLAGS C compiler flags
1684 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1685 nonstandard directory <lib dir>
1686 LIBS libraries to pass to the linker, e.g. -l<library>
1687 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1688 you have headers in a nonstandard directory <include dir>
1689 CXX C++ compiler command
1690 CXXFLAGS C++ compiler flags
1692 MAKEINFO Parent configure detects if it is of sufficient version.
1694 Parameters for MAKEINFO.
1695 PKG_CONFIG path to pkg-config utility
1697 directories to add to pkg-config's search path
1699 path overriding pkg-config
's built-in search path
1701 C compiler flags for DEBUGINFOD, overriding pkg-config
1703 linker flags for DEBUGINFOD, overriding pkg-config
1704 YACC The `Yet Another Compiler Compiler' implementation to use.
1705 Defaults to the first program found out of
: `bison -y', `byacc
',
1707 YFLAGS The list of arguments that will be passed by default to
$YACC.
1708 This
script will default YFLAGS to the empty string to avoid a
1709 default value of
`-d' given by some make applications.
1710 XMKMF Path to xmkmf, Makefile generator for X Window System
1712 Use these variables to override the choices made by `configure
' or to help
1713 it to find libraries and programs with nonstandard names/locations.
1715 Report bugs to the package provider.
1720 if test "$ac_init_help" = "recursive"; then
1721 # If there are subdirs, report their specific --help.
1722 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1723 test -d "$ac_dir" ||
1724 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1729 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1731 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.
[\\/]||
'`
1732 # A ".." for each directory in $ac_dir_suffix.
1733 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|
/[^
\\/]*|
/..|g
;s|
/||
'`
1734 case $ac_top_builddir_sub in
1735 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1736 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1739 ac_abs_top_builddir=$ac_pwd
1740 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1741 # for backward compatibility:
1742 ac_top_builddir=$ac_top_build_prefix
1745 .) # We are building in place.
1747 ac_top_srcdir=$ac_top_builddir_sub
1748 ac_abs_top_srcdir=$ac_pwd ;;
1749 [\\/]* | ?:[\\/]* ) # Absolute name.
1750 ac_srcdir=$srcdir$ac_dir_suffix;
1751 ac_top_srcdir=$srcdir
1752 ac_abs_top_srcdir=$srcdir ;;
1754 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1755 ac_top_srcdir=$ac_top_build_prefix$srcdir
1756 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1758 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1760 cd "$ac_dir" || { ac_status=$?; continue; }
1761 # Check for guested configure.
1762 if test -f "$ac_srcdir/configure.gnu"; then
1764 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1765 elif test -f "$ac_srcdir/configure"; then
1767 $SHELL "$ac_srcdir/configure" --help=recursive
1769 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1771 cd "$ac_pwd" || { ac_status=$?; break; }
1775 test -n "$ac_init_help" && exit $ac_status
1776 if $ac_init_version; then
1779 generated by GNU Autoconf 2.69
1781 Copyright (C) 2012 Free Software Foundation, Inc.
1782 This configure script is free software; the Free Software Foundation
1783 gives unlimited permission to copy, distribute and modify it.
1788 ## ------------------------ ##
1789 ## Autoconf initialization. ##
1790 ## ------------------------ ##
1792 # ac_fn_c_try_compile LINENO
1793 # --------------------------
1794 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1795 ac_fn_c_try_compile ()
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 rm -f conftest.$ac_objext
1799 if { { ac_try="$ac_compile"
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_compile") 2>conftest.err
1808 if test -s conftest.err; then
1809 grep -v '^
*+' conftest.err >conftest.er1
1810 cat conftest.er1 >&5
1811 mv -f conftest.er1 conftest.err
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; } && {
1815 test -z "$ac_c_werror_flag" ||
1816 test ! -s conftest.err
1817 } && test -s conftest.$ac_objext; then :
1820 $as_echo "$as_me: failed program was:" >&5
1821 sed 's
/^
/|
/' conftest.$ac_ext >&5
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826 as_fn_set_status $ac_retval
1828 } # ac_fn_c_try_compile
1830 # ac_fn_cxx_try_compile LINENO
1831 # ----------------------------
1832 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1833 ac_fn_cxx_try_compile ()
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 rm -f conftest.$ac_objext
1837 if { { ac_try="$ac_compile"
1839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840 *) ac_try_echo=$ac_try;;
1842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843 $as_echo "$ac_try_echo"; } >&5
1844 (eval "$ac_compile") 2>conftest.err
1846 if test -s conftest.err; then
1847 grep -v '^
*+' conftest.err >conftest.er1
1848 cat conftest.er1 >&5
1849 mv -f conftest.er1 conftest.err
1851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1852 test $ac_status = 0; } && {
1853 test -z "$ac_cxx_werror_flag" ||
1854 test ! -s conftest.err
1855 } && test -s conftest.$ac_objext; then :
1858 $as_echo "$as_me: failed program was:" >&5
1859 sed 's
/^
/|
/' conftest.$ac_ext >&5
1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864 as_fn_set_status $ac_retval
1866 } # ac_fn_cxx_try_compile
1868 # ac_fn_c_try_cpp LINENO
1869 # ----------------------
1870 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 if { { ac_try="$ac_cpp conftest.$ac_ext"
1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1883 if test -s conftest.err; then
1884 grep -v '^
*+' conftest.err >conftest.er1
1885 cat conftest.er1 >&5
1886 mv -f conftest.er1 conftest.err
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; } > conftest.i && {
1890 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1891 test ! -s conftest.err
1895 $as_echo "$as_me: failed program was:" >&5
1896 sed 's
/^
/|
/' conftest.$ac_ext >&5
1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901 as_fn_set_status $ac_retval
1905 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1906 # -------------------------------------------------------
1907 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1908 # the include files in INCLUDES and setting the cache variable VAR
1910 ac_fn_c_check_header_mongrel ()
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 if eval \${$3+:} false; then :
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915 $as_echo_n "checking for $2... " >&6; }
1916 if eval \${$3+:} false; then :
1917 $as_echo_n "(cached) " >&6
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921 $as_echo "$ac_res" >&6; }
1923 # Is the header compilable?
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1925 $as_echo_n "checking $2 usability... " >&6; }
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1931 if ac_fn_c_try_compile "$LINENO"; then :
1932 ac_header_compiler=yes
1934 ac_header_compiler=no
1936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1938 $as_echo "$ac_header_compiler" >&6; }
1940 # Is the header present?
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1942 $as_echo_n "checking $2 presence... " >&6; }
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1947 if ac_fn_c_try_cpp "$LINENO"; then :
1948 ac_header_preproc=yes
1950 ac_header_preproc=no
1952 rm -f conftest.err conftest.i conftest.$ac_ext
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1954 $as_echo "$ac_header_preproc" >&6; }
1956 # So? What about this header?
1957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1960 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1962 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1966 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1968 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1970 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1972 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1974 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1978 $as_echo_n "checking for $2... " >&6; }
1979 if eval \${$3+:} false; then :
1980 $as_echo_n "(cached) " >&6
1982 eval "$3=\$ac_header_compiler"
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986 $as_echo "$ac_res" >&6; }
1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1990 } # ac_fn_c_check_header_mongrel
1992 # ac_fn_c_try_run LINENO
1993 # ----------------------
1994 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1995 # that executables *can* be run.
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 if { { ac_try="$ac_link"
2001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2002 *) ac_try_echo=$ac_try;;
2004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2005 $as_echo "$ac_try_echo"; } >&5
2006 (eval "$ac_link") 2>&5
2008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009 test $ac_status = 0; } && { ac_try='.
/conftest
$ac_exeext'
2010 { { case "(($ac_try" in
2011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2012 *) ac_try_echo=$ac_try;;
2014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2015 $as_echo "$ac_try_echo"; } >&5
2016 (eval "$ac_try") 2>&5
2018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2019 test $ac_status = 0; }; }; then :
2022 $as_echo "$as_me: program exited with status $ac_status" >&5
2023 $as_echo "$as_me: failed program was:" >&5
2024 sed 's
/^
/|
/' conftest.$ac_ext >&5
2026 ac_retval=$ac_status
2028 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2029 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2030 as_fn_set_status $ac_retval
2034 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2035 # -------------------------------------------------------
2036 # Tests whether HEADER exists and can be compiled using the include files in
2037 # INCLUDES, setting the cache variable VAR accordingly.
2038 ac_fn_c_check_header_compile ()
2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2042 $as_echo_n "checking for $2... " >&6; }
2043 if eval \${$3+:} false; then :
2044 $as_echo_n "(cached) " >&6
2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h. */
2051 if ac_fn_c_try_compile "$LINENO"; then :
2056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2060 $as_echo "$ac_res" >&6; }
2061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2063 } # ac_fn_c_check_header_compile
2065 # ac_fn_c_try_link LINENO
2066 # -----------------------
2067 # Try to link conftest.$ac_ext, and return whether this succeeded.
2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071 rm -f conftest.$ac_objext conftest$ac_exeext
2072 if { { ac_try="$ac_link"
2074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2075 *) ac_try_echo=$ac_try;;
2077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2078 $as_echo "$ac_try_echo"; } >&5
2079 (eval "$ac_link") 2>conftest.err
2081 if test -s conftest.err; then
2082 grep -v '^
*+' conftest.err >conftest.er1
2083 cat conftest.er1 >&5
2084 mv -f conftest.er1 conftest.err
2086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2087 test $ac_status = 0; } && {
2088 test -z "$ac_c_werror_flag" ||
2089 test ! -s conftest.err
2090 } && test -s conftest$ac_exeext && {
2091 test "$cross_compiling" = yes ||
2092 test -x conftest$ac_exeext
2096 $as_echo "$as_me: failed program was:" >&5
2097 sed 's
/^
/|
/' conftest.$ac_ext >&5
2101 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2102 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2103 # interfere with the next link command; also delete a directory that is
2104 # left behind by Apple's compiler. We
do this before executing the actions.
2105 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2106 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2107 as_fn_set_status
$ac_retval
2109 } # ac_fn_c_try_link
2111 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2112 # --------------------------------------------
2113 # Tries to find the compile-time value of EXPR in a program that includes
2114 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2116 ac_fn_c_compute_int
()
2118 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2119 if test "$cross_compiling" = yes; then
2120 # Depending upon the size, compute the lo and hi bounds.
2121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h. */
2127 static int test_array [1 - 2 * !(($2) >= 0)];
2129 return test_array [0];
2135 if ac_fn_c_try_compile
"$LINENO"; then :
2138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2139 /* end confdefs.h. */
2144 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2146 return test_array [0];
2152 if ac_fn_c_try_compile
"$LINENO"; then :
2153 ac_hi
=$ac_mid; break
2155 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2156 if test $ac_lo -le $ac_mid; then
2160 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2162 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2171 static int test_array [1 - 2 * !(($2) < 0)];
2173 return test_array [0];
2179 if ac_fn_c_try_compile
"$LINENO"; then :
2182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2188 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2190 return test_array [0];
2196 if ac_fn_c_try_compile
"$LINENO"; then :
2197 ac_lo
=$ac_mid; break
2199 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2200 if test $ac_mid -le $ac_hi; then
2204 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2206 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2211 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2213 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2214 # Binary search between lo and hi bounds.
2215 while test "x$ac_lo" != "x$ac_hi"; do
2216 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2223 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2225 return test_array [0];
2231 if ac_fn_c_try_compile
"$LINENO"; then :
2234 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2236 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2239 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h. */
2246 static long int longval () { return $2; }
2247 static unsigned long int ulongval () { return $2; }
2254 FILE *f = fopen ("conftest.val", "w");
2259 long int i = longval ();
2262 fprintf (f, "%ld", i);
2266 unsigned long int i = ulongval ();
2269 fprintf (f, "%lu", i);
2271 /* Do not output a trailing newline, as this causes \r\n confusion
2272 on some platforms. */
2273 return ferror (f) || fclose (f) != 0;
2279 if ac_fn_c_try_run
"$LINENO"; then :
2280 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2284 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2285 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2289 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2290 as_fn_set_status
$ac_retval
2292 } # ac_fn_c_compute_int
2294 # ac_fn_c_check_func LINENO FUNC VAR
2295 # ----------------------------------
2296 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2297 ac_fn_c_check_func
()
2299 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2301 $as_echo_n "checking for $2... " >&6; }
2302 if eval \
${$3+:} false
; then :
2303 $as_echo_n "(cached) " >&6
2305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2306 /* end confdefs.h. */
2307 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2309 #define $2 innocuous_$2
2311 /* System header to define __stub macros and hopefully few prototypes,
2312 which can conflict with char $2 (); below.
2313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2314 <limits.h> exists even on freestanding compilers. */
2317 # include <limits.h>
2319 # include <assert.h>
2324 /* Override any GCC internal prototype to avoid an error.
2325 Use char because int might match the return type of a GCC
2326 builtin and then its argument prototype would still apply. */
2331 /* The GNU C library defines this for functions which it implements
2332 to always fail with ENOSYS. Some functions are actually named
2333 something starting with __ and the normal name is an alias. */
2334 #if defined __stub_$2 || defined __stub___$2
2346 if ac_fn_c_try_link
"$LINENO"; then :
2351 rm -f core conftest.err conftest.
$ac_objext \
2352 conftest
$ac_exeext conftest.
$ac_ext
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2356 $as_echo "$ac_res" >&6; }
2357 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2359 } # ac_fn_c_check_func
2361 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2362 # -------------------------------------------
2363 # Tests whether TYPE exists after having included INCLUDES, setting cache
2364 # variable VAR accordingly.
2365 ac_fn_c_check_type
()
2367 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2369 $as_echo_n "checking for $2... " >&6; }
2370 if eval \
${$3+:} false
; then :
2371 $as_echo_n "(cached) " >&6
2374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2375 /* end confdefs.h. */
2386 if ac_fn_c_try_compile
"$LINENO"; then :
2387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2388 /* end confdefs.h. */
2399 if ac_fn_c_try_compile
"$LINENO"; then :
2404 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2406 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2410 $as_echo "$ac_res" >&6; }
2411 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2413 } # ac_fn_c_check_type
2415 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2416 # ---------------------------------------------
2417 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2419 ac_fn_c_check_decl
()
2421 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2422 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2423 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2425 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2426 if eval \
${$3+:} false
; then :
2427 $as_echo_n "(cached) " >&6
2429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2430 /* end confdefs.h. */
2435 #ifndef $as_decl_name
2437 (void) $as_decl_use;
2439 (void) $as_decl_name;
2447 if ac_fn_c_try_compile
"$LINENO"; then :
2452 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2456 $as_echo "$ac_res" >&6; }
2457 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2459 } # ac_fn_c_check_decl
2461 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2462 # ----------------------------------------------------
2463 # Tries to find if the field MEMBER exists in type AGGR, after including
2464 # INCLUDES, setting cache variable VAR accordingly.
2465 ac_fn_c_check_member
()
2467 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2469 $as_echo_n "checking for $2.$3... " >&6; }
2470 if eval \
${$4+:} false
; then :
2471 $as_echo_n "(cached) " >&6
2473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2474 /* end confdefs.h. */
2486 if ac_fn_c_try_compile
"$LINENO"; then :
2489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2490 /* end confdefs.h. */
2496 if (sizeof ac_aggr.$3)
2502 if ac_fn_c_try_compile
"$LINENO"; then :
2507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2509 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2513 $as_echo "$ac_res" >&6; }
2514 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2516 } # ac_fn_c_check_member
2518 # ac_fn_cxx_try_link LINENO
2519 # -------------------------
2520 # Try to link conftest.$ac_ext, and return whether this succeeded.
2521 ac_fn_cxx_try_link
()
2523 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2524 rm -f conftest.
$ac_objext conftest
$ac_exeext
2525 if { { ac_try
="$ac_link"
2527 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2528 *) ac_try_echo=$ac_try;;
2530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2531 $as_echo "$ac_try_echo"; } >&5
2532 (eval "$ac_link") 2>conftest.err
2534 if test -s conftest.err; then
2535 grep -v '^ *+' conftest.err >conftest.er1
2536 cat conftest.er1 >&5
2537 mv -f conftest.er1 conftest.err
2539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2540 test $ac_status = 0; } && {
2541 test -z "$ac_cxx_werror_flag" ||
2542 test ! -s conftest.err
2543 } && test -s conftest$ac_exeext && {
2544 test "$cross_compiling" = yes ||
2545 test -x conftest$ac_exeext
2549 $as_echo "$as_me: failed program was:" >&5
2550 sed 's/^/| /' conftest.$ac_ext >&5
2554 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2555 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2556 # interfere with the next link command; also delete a directory that is
2557 # left behind by Apple's compiler. We do this before executing the actions.
2558 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2559 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2560 as_fn_set_status $ac_retval
2562 } # ac_fn_cxx_try_link
2564 # ac_fn_cxx_check_func LINENO FUNC VAR
2565 # ------------------------------------
2566 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2567 ac_fn_cxx_check_func ()
2569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2571 $as_echo_n "checking for $2... " >&6; }
2572 if eval \${$3+:} false; then :
2573 $as_echo_n "(cached) " >&6
2575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2576 /* end confdefs.h. */
2577 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2579 #define $2 innocuous_$2
2581 /* System header to define __stub macros and hopefully few prototypes,
2582 which can conflict with char $2 (); below.
2583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2584 <limits.h> exists even on freestanding compilers. */
2587 # include <limits.h>
2589 # include <assert.h>
2594 /* Override any GCC internal prototype to avoid an error.
2595 Use char because int might match the return type of a GCC
2596 builtin and then its argument prototype would still apply. */
2601 /* The GNU C library defines this for functions which it implements
2602 to always fail with ENOSYS. Some functions are actually named
2603 something starting with __ and the normal name is an alias. */
2604 #if defined __stub_$2 || defined __stub___$2
2616 if ac_fn_cxx_try_link "$LINENO"; then :
2621 rm -f core conftest.err conftest.$ac_objext \
2622 conftest$ac_exeext conftest.$ac_ext
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2626 $as_echo "$ac_res" >&6; }
2627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2629 } # ac_fn_cxx_check_func
2630 cat >config.log <<_ACEOF
2631 This file contains any messages produced by compilers while
2632 running configure, to aid debugging if configure makes a mistake.
2634 It was created by $as_me, which was
2635 generated by GNU Autoconf 2.69. Invocation command line was
2647 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2648 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2649 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2650 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2651 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2653 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2654 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2656 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2657 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2658 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2659 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2660 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2661 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2662 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 test -z "$as_dir" && as_dir=.
2671 $as_echo "PATH: $as_dir"
2687 # Keep a trace of the command line.
2688 # Strip out --no-create and --no-recursion so they do not pile up.
2689 # Strip out --silent because we don't want to record it for future runs.
2690 # Also quote any args containing shell meta-characters.
2691 # Make two passes to allow for proper duplicate-argument suppression.
2695 ac_must_keep_next=false
2701 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2702 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2703 | -silent | --silent | --silen | --sile | --sil)
2706 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2709 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2711 as_fn_append ac_configure_args1 " '$ac_arg'"
2712 if test $ac_must_keep_next = true; then
2713 ac_must_keep_next=false # Got value, back to normal.
2716 *=* | --config-cache | -C | -disable-* | --disable-* \
2717 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2718 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2719 | -with-* | --with-* | -without-* | --without-* | --x)
2720 case "$ac_configure_args0 " in
2721 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2724 -* ) ac_must_keep_next=true ;;
2727 as_fn_append ac_configure_args " '$ac_arg'"
2732 { ac_configure_args0=; unset ac_configure_args0;}
2733 { ac_configure_args1=; unset ac_configure_args1;}
2735 # When interrupted or exit'd, cleanup temporary files, and complete
2736 # config.log. We remove comments because anyway the quotes in there
2737 # would cause problems or look ugly.
2738 # WARNING: Use '\'' to represent an apostrophe within the trap.
2739 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2740 trap 'exit_status=$?
2741 # Save into config.log some information that might help in debugging.
2745 $as_echo "## ---------------- ##
2746 ## Cache variables. ##
2747 ## ---------------- ##"
2749 # The following way of writing the cache mishandles newlines in values,
2751 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2752 eval ac_val=\$$ac_var
2756 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2757 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2760 _ | IFS | as_nl) ;; #(
2761 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2762 *) { eval $ac_var=; unset $ac_var;} ;;
2767 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2768 *${as_nl}ac_space=\ *)
2770 "s/'\''/'\''\\\\'\'''\''/g;
2771 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2774 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2781 $as_echo "## ----------------- ##
2782 ## Output variables. ##
2783 ## ----------------- ##"
2785 for ac_var in $ac_subst_vars
2787 eval ac_val=\$$ac_var
2789 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2791 $as_echo "$ac_var='\''$ac_val'\''"
2795 if test -n "$ac_subst_files"; then
2796 $as_echo "## ------------------- ##
2797 ## File substitutions. ##
2798 ## ------------------- ##"
2800 for ac_var in $ac_subst_files
2802 eval ac_val=\$$ac_var
2804 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2806 $as_echo "$ac_var='\''$ac_val'\''"
2811 if test -s confdefs.h; then
2812 $as_echo "## ----------- ##
2819 test "$ac_signal" != 0 &&
2820 $as_echo "$as_me: caught signal $ac_signal"
2821 $as_echo "$as_me: exit $exit_status"
2823 rm -f core *.core core.conftest.* &&
2824 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2827 for ac_signal in 1 2 13 15; do
2828 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2832 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2833 rm -f -r conftest* confdefs.h
2835 $as_echo "/* confdefs.h */" > confdefs.h
2837 # Predefined preprocessor variables.
2839 cat >>confdefs.h <<_ACEOF
2840 #define PACKAGE_NAME "$PACKAGE_NAME"
2843 cat >>confdefs.h <<_ACEOF
2844 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2847 cat >>confdefs.h <<_ACEOF
2848 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2851 cat >>confdefs.h <<_ACEOF
2852 #define PACKAGE_STRING "$PACKAGE_STRING"
2855 cat >>confdefs.h <<_ACEOF
2856 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2859 cat >>confdefs.h <<_ACEOF
2860 #define PACKAGE_URL "$PACKAGE_URL"
2864 # Let the site file select an alternate cache file if it wants to.
2865 # Prefer an explicitly selected file to automatically selected ones.
2868 if test -n "$CONFIG_SITE"; then
2869 # We do not want a PATH search for config.site.
2870 case $CONFIG_SITE in #((
2871 -*) ac_site_file1=./$CONFIG_SITE;;
2872 */*) ac_site_file1=$CONFIG_SITE;;
2873 *) ac_site_file1=./$CONFIG_SITE;;
2875 elif test "x$prefix" != xNONE; then
2876 ac_site_file1=$prefix/share/config.site
2877 ac_site_file2=$prefix/etc/config.site
2879 ac_site_file1=$ac_default_prefix/share/config.site
2880 ac_site_file2=$ac_default_prefix/etc/config.site
2882 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2884 test "x$ac_site_file" = xNONE && continue
2885 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2887 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2888 sed 's/^/| /' "$ac_site_file" >&5
2890 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2892 as_fn_error $? "failed to load site
script $ac_site_file
2893 See \
`config.log' for more details" "$LINENO" 5; }
2897 if test -r "$cache_file"; then
2898 # Some versions of bash will fail to source /dev/null (special files
2899 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2900 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2902 $as_echo "$as_me: loading cache $cache_file" >&6;}
2904 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2905 *) . "./$cache_file";;
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2910 $as_echo "$as_me: creating cache $cache_file" >&6;}
2914 as_fn_append ac_header_list " stdlib.h"
2915 as_fn_append ac_header_list " unistd.h"
2916 as_fn_append ac_header_list " sys/param.h"
2917 # Check that the precious variables saved in the cache have kept the same
2919 ac_cache_corrupted=false
2920 for ac_var in $ac_precious_vars; do
2921 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2922 eval ac_new_set=\$ac_env_${ac_var}_set
2923 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2924 eval ac_new_val=\$ac_env_${ac_var}_value
2925 case $ac_old_set,$ac_new_set in
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2928 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2929 ac_cache_corrupted=: ;;
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2932 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2933 ac_cache_corrupted=: ;;
2936 if test "x$ac_old_val" != "x$ac_new_val"; then
2937 # differences in whitespace do not lead to failure.
2938 ac_old_val_w=`echo x
$ac_old_val`
2939 ac_new_val_w=`echo x
$ac_new_val`
2940 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2942 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2943 ac_cache_corrupted=:
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2946 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2947 eval $ac_var=\$ac_old_val
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2950 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2952 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2955 # Pass precious variables to config.status.
2956 if test "$ac_new_set" = set; then
2958 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2959 *) ac_arg=$ac_var=$ac_new_val ;;
2961 case " $ac_configure_args " in
2962 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2963 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2967 if $ac_cache_corrupted; then
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2971 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2972 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2974 ## -------------------- ##
2975 ## Main body of script. ##
2976 ## -------------------- ##
2979 ac_cpp='$CPP $CPPFLAGS'
2980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2988 ac_config_headers="$ac_config_headers config.h:config.in"
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2992 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2993 # Check whether --enable-maintainer-mode was given.
2994 if test "${enable_maintainer_mode+set}" = set; then :
2995 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2997 USE_MAINTAINER_MODE=no
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3001 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3002 if test $USE_MAINTAINER_MODE = yes; then
3003 MAINTAINER_MODE_TRUE=
3004 MAINTAINER_MODE_FALSE='#'
3006 MAINTAINER_MODE_TRUE='#'
3007 MAINTAINER_MODE_FALSE=
3010 MAINT=$MAINTAINER_MODE_TRUE
3015 ac_cpp='$CPP $CPPFLAGS'
3016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3019 if test -n "$ac_tool_prefix"; then
3020 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3021 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3023 $as_echo_n "checking for $ac_word... " >&6; }
3024 if ${ac_cv_prog_CC+:} false; then :
3025 $as_echo_n "(cached) " >&6
3027 if test -n "$CC"; then
3028 ac_cv_prog_CC="$CC" # Let the user override the test.
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 test -z "$as_dir" && as_dir=.
3035 for ac_exec_ext in '' $ac_executable_extensions; do
3036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3037 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3048 if test -n "$CC"; then
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3050 $as_echo "$CC" >&6; }
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053 $as_echo "no" >&6; }
3058 if test -z "$ac_cv_prog_CC"; then
3060 # Extract the first word of "gcc", so it can be a program name with args.
3061 set dummy gcc; ac_word=$2
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3063 $as_echo_n "checking for $ac_word... " >&6; }
3064 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3065 $as_echo_n "(cached) " >&6
3067 if test -n "$ac_ct_CC"; then
3068 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074 test -z "$as_dir" && as_dir=.
3075 for ac_exec_ext in '' $ac_executable_extensions; do
3076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3077 ac_cv_prog_ac_ct_CC="gcc"
3078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3087 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3088 if test -n "$ac_ct_CC"; then
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3090 $as_echo "$ac_ct_CC" >&6; }
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093 $as_echo "no" >&6; }
3096 if test "x$ac_ct_CC" = x; then
3099 case $cross_compiling:$ac_tool_warned in
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3103 ac_tool_warned=yes ;;
3111 if test -z "$CC"; then
3112 if test -n "$ac_tool_prefix"; then
3113 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3114 set dummy ${ac_tool_prefix}cc; ac_word=$2
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3116 $as_echo_n "checking for $ac_word... " >&6; }
3117 if ${ac_cv_prog_CC+:} false; then :
3118 $as_echo_n "(cached) " >&6
3120 if test -n "$CC"; then
3121 ac_cv_prog_CC="$CC" # Let the user override the test.
3123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 test -z "$as_dir" && as_dir=.
3128 for ac_exec_ext in '' $ac_executable_extensions; do
3129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3130 ac_cv_prog_CC="${ac_tool_prefix}cc"
3131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3141 if test -n "$CC"; then
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3143 $as_echo "$CC" >&6; }
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3146 $as_echo "no" >&6; }
3152 if test -z "$CC"; then
3153 # Extract the first word of "cc", so it can be a program name with args.
3154 set dummy cc; ac_word=$2
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3156 $as_echo_n "checking for $ac_word... " >&6; }
3157 if ${ac_cv_prog_CC+:} false; then :
3158 $as_echo_n "(cached) " >&6
3160 if test -n "$CC"; then
3161 ac_cv_prog_CC="$CC" # Let the user override the test.
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 test -z "$as_dir" && as_dir=.
3169 for ac_exec_ext in '' $ac_executable_extensions; do
3170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3171 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3172 ac_prog_rejected=yes
3176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3183 if test $ac_prog_rejected = yes; then
3184 # We found a bogon in the path, so make sure we never use it.
3185 set dummy $ac_cv_prog_CC
3187 if test $# != 0; then
3188 # We chose a different compiler from the bogus one.
3189 # However, it has the same basename, so the bogon will be chosen
3190 # first if we set CC to just the basename; use the full file name.
3192 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3198 if test -n "$CC"; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3200 $as_echo "$CC" >&6; }
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203 $as_echo "no" >&6; }
3208 if test -z "$CC"; then
3209 if test -n "$ac_tool_prefix"; then
3210 for ac_prog in cl.exe
3212 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3213 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3215 $as_echo_n "checking for $ac_word... " >&6; }
3216 if ${ac_cv_prog_CC+:} false; then :
3217 $as_echo_n "(cached) " >&6
3219 if test -n "$CC"; then
3220 ac_cv_prog_CC="$CC" # Let the user override the test.
3222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226 test -z "$as_dir" && as_dir=.
3227 for ac_exec_ext in '' $ac_executable_extensions; do
3228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3229 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3240 if test -n "$CC"; then
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3242 $as_echo "$CC" >&6; }
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245 $as_echo "no" >&6; }
3249 test -n "$CC" && break
3252 if test -z "$CC"; then
3254 for ac_prog in cl.exe
3256 # Extract the first word of "$ac_prog", so it can be a program name with args.
3257 set dummy $ac_prog; ac_word=$2
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3259 $as_echo_n "checking for $ac_word... " >&6; }
3260 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3261 $as_echo_n "(cached) " >&6
3263 if test -n "$ac_ct_CC"; then
3264 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270 test -z "$as_dir" && as_dir=.
3271 for ac_exec_ext in '' $ac_executable_extensions; do
3272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3273 ac_cv_prog_ac_ct_CC="$ac_prog"
3274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3283 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3284 if test -n "$ac_ct_CC"; then
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3286 $as_echo "$ac_ct_CC" >&6; }
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289 $as_echo "no" >&6; }
3293 test -n "$ac_ct_CC" && break
3296 if test "x$ac_ct_CC" = x; then
3299 case $cross_compiling:$ac_tool_warned in
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3302 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3303 ac_tool_warned=yes ;;
3312 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3314 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3315 See \
`config.log' for more details" "$LINENO" 5; }
3317 # Provide some information about the compiler.
3318 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3321 for ac_option in --version -v -V -qversion; do
3322 { { ac_try="$ac_compiler $ac_option >&5"
3324 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3325 *) ac_try_echo
=$ac_try;;
3327 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3328 $as_echo "$ac_try_echo"; } >&5
3329 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3331 if test -s conftest.err
; then
3333 ... rest of stderr output deleted ...
3334 10q' conftest.err
>conftest.er1
3335 cat conftest.er1
>&5
3337 rm -f conftest.er1 conftest.err
3338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3339 test $ac_status = 0; }
3342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3343 /* end confdefs.h. */
3353 ac_clean_files_save
=$ac_clean_files
3354 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3355 # Try to create an executable without -o first, disregard a.out.
3356 # It will help us diagnose broken compilers, and finding out an intuition
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3359 $as_echo_n "checking whether the C compiler works... " >&6; }
3360 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3362 # The possible output files:
3363 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3366 for ac_file
in $ac_files
3369 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3370 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3375 if { { ac_try
="$ac_link_default"
3377 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3378 *) ac_try_echo=$ac_try;;
3380 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3381 $as_echo "$ac_try_echo"; } >&5
3382 (eval "$ac_link_default") 2>&5
3384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3385 test $ac_status = 0; }; then :
3386 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3387 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3388 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3389 # so that the user can short-circuit this test for compilers unknown to
3391 for ac_file in $ac_files ''
3393 test -f "$ac_file" || continue
3395 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3398 # We found the default executable, but exeext='' is most
3402 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3404 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3406 # We set ac_cv_exeext here because the later test for it is not
3407 # safe: cross compilers may not add the suffix if given an `-o'
3408 # argument, so we may need to know it at that point already.
3409 # Even if this section looks crufty: it has the advantage of
3416 test "$ac_cv_exeext" = no && ac_cv_exeext=
3421 if test -z "$ac_file"; then :
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423 $as_echo "no" >&6; }
3424 $as_echo "$as_me: failed program was:" >&5
3425 sed 's
/^
/|
/' conftest.$ac_ext >&5
3427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3428 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3429 as_fn_error 77 "C compiler cannot create executables
3430 See \`config.log
' for more details" "$LINENO" 5; }
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3433 $as_echo "yes" >&6; }
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3436 $as_echo_n "checking for C compiler default output file name... " >&6; }
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3438 $as_echo "$ac_file" >&6; }
3439 ac_exeext=$ac_cv_exeext
3441 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3442 ac_clean_files=$ac_clean_files_save
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3444 $as_echo_n "checking for suffix of executables... " >&6; }
3445 if { { ac_try="$ac_link"
3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
3450 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3451 $as_echo "$ac_try_echo"; } >&5
3452 (eval "$ac_link") 2>&5
3454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3455 test $ac_status = 0; }; then :
3456 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3457 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3458 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3460 for ac_file
in conftest.exe conftest conftest.
*; do
3461 test -f "$ac_file" ||
continue
3463 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3464 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3472 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3473 See \`config.log' for more details" "$LINENO" 5; }
3475 rm -f conftest conftest
$ac_cv_exeext
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3477 $as_echo "$ac_cv_exeext" >&6; }
3479 rm -f conftest.
$ac_ext
3480 EXEEXT
=$ac_cv_exeext
3482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3483 /* end confdefs.h. */
3488 FILE *f = fopen ("conftest.out", "w");
3489 return ferror (f) || fclose (f) != 0;
3495 ac_clean_files
="$ac_clean_files conftest.out"
3496 # Check that the compiler produces executables we can run. If not, either
3497 # the compiler is broken, or we cross compile.
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3499 $as_echo_n "checking whether we are cross compiling... " >&6; }
3500 if test "$cross_compiling" != yes; then
3501 { { ac_try
="$ac_link"
3503 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3507 $as_echo "$ac_try_echo"; } >&5
3508 (eval "$ac_link") 2>&5
3510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3511 test $ac_status = 0; }
3512 if { ac_try='./conftest$ac_cv_exeext'
3513 { { case "(($ac_try" in
3514 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3515 *) ac_try_echo
=$ac_try;;
3517 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3518 $as_echo "$ac_try_echo"; } >&5
3519 (eval "$ac_try") 2>&5
3521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3522 test $ac_status = 0; }; }; then
3525 if test "$cross_compiling" = maybe
; then
3528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3530 as_fn_error $?
"cannot run C compiled programs.
3531 If you meant to cross compile, use \`--host'.
3532 See \`config.log' for more details" "$LINENO" 5; }
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3537 $as_echo "$cross_compiling" >&6; }
3539 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3540 ac_clean_files
=$ac_clean_files_save
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3542 $as_echo_n "checking for suffix of object files... " >&6; }
3543 if ${ac_cv_objext+:} false
; then :
3544 $as_echo_n "(cached) " >&6
3546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3547 /* end confdefs.h. */
3557 rm -f conftest.o conftest.obj
3558 if { { ac_try
="$ac_compile"
3560 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3564 $as_echo "$ac_try_echo"; } >&5
3565 (eval "$ac_compile") 2>&5
3567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3568 test $ac_status = 0; }; then :
3569 for ac_file in conftest.o conftest.obj conftest.*; do
3570 test -f "$ac_file" || continue;
3572 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3573 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3578 $as_echo "$as_me: failed program was:" >&5
3579 sed 's/^/| /' conftest.$ac_ext >&5
3581 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3582 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3583 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3584 See \
`config.log' for more details" "$LINENO" 5; }
3586 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3589 $as_echo "$ac_cv_objext" >&6; }
3590 OBJEXT=$ac_cv_objext
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3593 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3594 if ${ac_cv_c_compiler_gnu+:} false; then :
3595 $as_echo_n "(cached) " >&6
3597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598 /* end confdefs.h. */
3611 if ac_fn_c_try_compile "$LINENO"; then :
3616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3621 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3622 if test $ac_compiler_gnu = yes; then
3627 ac_test_CFLAGS=${CFLAGS+set}
3628 ac_save_CFLAGS=$CFLAGS
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3630 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3631 if ${ac_cv_prog_cc_g+:} false; then :
3632 $as_echo_n "(cached) " >&6
3634 ac_save_c_werror_flag=$ac_c_werror_flag
3635 ac_c_werror_flag=yes
3638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639 /* end confdefs.h. */
3649 if ac_fn_c_try_compile "$LINENO"; then :
3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h. */
3664 if ac_fn_c_try_compile "$LINENO"; then :
3667 ac_c_werror_flag=$ac_save_c_werror_flag
3669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670 /* end confdefs.h. */
3680 if ac_fn_c_try_compile "$LINENO"; then :
3683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3688 ac_c_werror_flag=$ac_save_c_werror_flag
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3691 $as_echo "$ac_cv_prog_cc_g" >&6; }
3692 if test "$ac_test_CFLAGS" = set; then
3693 CFLAGS=$ac_save_CFLAGS
3694 elif test $ac_cv_prog_cc_g = yes; then
3695 if test "$GCC" = yes; then
3701 if test "$GCC" = yes; then
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3708 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3709 if ${ac_cv_prog_cc_c89+:} false; then :
3710 $as_echo_n "(cached) " >&6
3712 ac_cv_prog_cc_c89=no
3714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715 /* end confdefs.h. */
3719 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3720 struct buf { int x; };
3721 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3722 static char *e (p, i)
3728 static char *f (char * (*g) (char **, int), char **p, ...)
3733 s = g (p, va_arg (v,int));
3738 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3739 function prototypes and stuff, but not '\xHH' hex character constants.
3740 These don't provoke an error unfortunately, instead are silently treated
3741 as 'x'. The following induces an error, until -std is added to get
3742 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3743 array size at least. It's necessary to write '\x00'==0 to get something
3744 that's true only with -std. */
3745 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3747 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3748 inside strings and character constants. */
3750 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3752 int test (int i, double x);
3753 struct s1 {int (*f) (int a);};
3754 struct s2 {int (*f) (double a);};
3755 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3761 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3766 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3767 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3769 CC="$ac_save_CC $ac_arg"
3770 if ac_fn_c_try_compile "$LINENO"; then :
3771 ac_cv_prog_cc_c89=$ac_arg
3773 rm -f core conftest.err conftest.$ac_objext
3774 test "x$ac_cv_prog_cc_c89" != "xno" && break
3776 rm -f conftest.$ac_ext
3781 case "x$ac_cv_prog_cc_c89" in
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3784 $as_echo "none needed" >&6; } ;;
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3787 $as_echo "unsupported" >&6; } ;;
3789 CC="$CC $ac_cv_prog_cc_c89"
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3791 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3793 if test "x$ac_cv_prog_cc_c89" != xno; then :
3798 ac_cpp='$CPP $CPPFLAGS'
3799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3804 ac_cpp='$CXXCPP $CPPFLAGS'
3805 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3806 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3807 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3808 if test -z "$CXX"; then
3809 if test -n "$CCC"; then
3812 if test -n "$ac_tool_prefix"; then
3813 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3815 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3816 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3818 $as_echo_n "checking for $ac_word... " >&6; }
3819 if ${ac_cv_prog_CXX+:} false; then :
3820 $as_echo_n "(cached) " >&6
3822 if test -n "$CXX"; then
3823 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829 test -z "$as_dir" && as_dir=.
3830 for ac_exec_ext in '' $ac_executable_extensions; do
3831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3832 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3843 if test -n "$CXX"; then
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3845 $as_echo "$CXX" >&6; }
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3848 $as_echo "no" >&6; }
3852 test -n "$CXX" && break
3855 if test -z "$CXX"; then
3857 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3859 # Extract the first word of "$ac_prog", so it can be a program name with args.
3860 set dummy $ac_prog; ac_word=$2
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3862 $as_echo_n "checking for $ac_word... " >&6; }
3863 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3864 $as_echo_n "(cached) " >&6
3866 if test -n "$ac_ct_CXX"; then
3867 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873 test -z "$as_dir" && as_dir=.
3874 for ac_exec_ext in '' $ac_executable_extensions; do
3875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3876 ac_cv_prog_ac_ct_CXX="$ac_prog"
3877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3886 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3887 if test -n "$ac_ct_CXX"; then
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3889 $as_echo "$ac_ct_CXX" >&6; }
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3892 $as_echo "no" >&6; }
3896 test -n "$ac_ct_CXX" && break
3899 if test "x$ac_ct_CXX" = x; then
3902 case $cross_compiling:$ac_tool_warned in
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3906 ac_tool_warned=yes ;;
3914 # Provide some information about the compiler.
3915 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3918 for ac_option in --version -v -V -qversion; do
3919 { { ac_try="$ac_compiler $ac_option >&5"
3921 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3922 *) ac_try_echo
=$ac_try;;
3924 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3925 $as_echo "$ac_try_echo"; } >&5
3926 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3928 if test -s conftest.err
; then
3930 ... rest of stderr output deleted ...
3931 10q' conftest.err
>conftest.er1
3932 cat conftest.er1
>&5
3934 rm -f conftest.er1 conftest.err
3935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3936 test $ac_status = 0; }
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3940 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3941 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3942 $as_echo_n "(cached) " >&6
3944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3945 /* end confdefs.h. */
3958 if ac_fn_cxx_try_compile
"$LINENO"; then :
3963 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3964 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3968 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3969 if test $ac_compiler_gnu = yes; then
3974 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3975 ac_save_CXXFLAGS
=$CXXFLAGS
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3977 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3978 if ${ac_cv_prog_cxx_g+:} false
; then :
3979 $as_echo_n "(cached) " >&6
3981 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3982 ac_cxx_werror_flag
=yes
3985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
3996 if ac_fn_cxx_try_compile
"$LINENO"; then :
3997 ac_cv_prog_cxx_g
=yes
4000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h. */
4011 if ac_fn_cxx_try_compile
"$LINENO"; then :
4014 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4017 /* end confdefs.h. */
4027 if ac_fn_cxx_try_compile
"$LINENO"; then :
4028 ac_cv_prog_cxx_g
=yes
4030 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4032 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4034 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4035 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4038 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4039 if test "$ac_test_CXXFLAGS" = set; then
4040 CXXFLAGS
=$ac_save_CXXFLAGS
4041 elif test $ac_cv_prog_cxx_g = yes; then
4042 if test "$GXX" = yes; then
4048 if test "$GXX" = yes; then
4055 ac_cpp
='$CPP $CPPFLAGS'
4056 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4057 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4058 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4063 ac_cpp
='$CPP $CPPFLAGS'
4064 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4065 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4066 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4068 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4069 # On Suns, sometimes $CPP names a directory.
4070 if test -n "$CPP" && test -d "$CPP"; then
4073 if test -z "$CPP"; then
4074 if ${ac_cv_prog_CPP+:} false
; then :
4075 $as_echo_n "(cached) " >&6
4077 # Double quotes because CPP needs to be expanded
4078 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4081 for ac_c_preproc_warn_flag
in '' yes
4083 # Use a header file that comes with gcc, so configuring glibc
4084 # with a fresh cross-compiler works.
4085 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4086 # <limits.h> exists even on freestanding compilers.
4087 # On the NeXT, cc -E runs the code through the compiler's parser,
4088 # not just through cpp. "Syntax error" is here to catch this case.
4089 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h. */
4092 # include <limits.h>
4094 # include <assert.h>
4098 if ac_fn_c_try_cpp
"$LINENO"; then :
4101 # Broken: fails on valid input.
4104 rm -f conftest.err conftest.i conftest.
$ac_ext
4106 # OK, works on sane cases. Now check whether nonexistent headers
4107 # can be detected and how.
4108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4110 #include <ac_nonexistent.h>
4112 if ac_fn_c_try_cpp
"$LINENO"; then :
4113 # Broken: success on invalid input.
4116 # Passes both tests.
4120 rm -f conftest.err conftest.i conftest.
$ac_ext
4123 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4124 rm -f conftest.i conftest.err conftest.
$ac_ext
4125 if $ac_preproc_ok; then :
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4138 $as_echo "$CPP" >&6; }
4140 for ac_c_preproc_warn_flag
in '' yes
4142 # Use a header file that comes with gcc, so configuring glibc
4143 # with a fresh cross-compiler works.
4144 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4145 # <limits.h> exists even on freestanding compilers.
4146 # On the NeXT, cc -E runs the code through the compiler's parser,
4147 # not just through cpp. "Syntax error" is here to catch this case.
4148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4149 /* end confdefs.h. */
4151 # include <limits.h>
4153 # include <assert.h>
4157 if ac_fn_c_try_cpp
"$LINENO"; then :
4160 # Broken: fails on valid input.
4163 rm -f conftest.err conftest.i conftest.
$ac_ext
4165 # OK, works on sane cases. Now check whether nonexistent headers
4166 # can be detected and how.
4167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4169 #include <ac_nonexistent.h>
4171 if ac_fn_c_try_cpp
"$LINENO"; then :
4172 # Broken: success on invalid input.
4175 # Passes both tests.
4179 rm -f conftest.err conftest.i conftest.
$ac_ext
4182 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4183 rm -f conftest.i conftest.err conftest.
$ac_ext
4184 if $ac_preproc_ok; then :
4187 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4189 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4190 See \`config.log' for more details" "$LINENO" 5; }
4194 ac_cpp
='$CPP $CPPFLAGS'
4195 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4201 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4202 if ${ac_cv_path_GREP+:} false
; then :
4203 $as_echo_n "(cached) " >&6
4205 if test -z "$GREP"; then
4206 ac_path_GREP_found
=false
4207 # Loop through the user's path and test for each of PROGNAME-LIST
4208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4209 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4212 test -z "$as_dir" && as_dir
=.
4213 for ac_prog
in grep ggrep
; do
4214 for ac_exec_ext
in '' $ac_executable_extensions; do
4215 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4216 as_fn_executable_p
"$ac_path_GREP" ||
continue
4217 # Check for GNU ac_path_GREP and select it if it is found.
4218 # Check for GNU $ac_path_GREP
4219 case `"$ac_path_GREP" --version 2>&1` in
4221 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4224 $as_echo_n 0123456789 >"conftest.in"
4227 cat "conftest.in" "conftest.in" >"conftest.tmp"
4228 mv "conftest.tmp" "conftest.in"
4229 cp "conftest.in" "conftest.nl"
4230 $as_echo 'GREP' >> "conftest.nl"
4231 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4232 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4233 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4234 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4235 # Best one so far, save it but keep looking for a better one
4236 ac_cv_path_GREP
="$ac_path_GREP"
4237 ac_path_GREP_max
=$ac_count
4239 # 10*(2^10) chars as input seems more than enough
4240 test $ac_count -gt 10 && break
4242 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4245 $ac_path_GREP_found && break 3
4250 if test -z "$ac_cv_path_GREP"; then
4251 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4254 ac_cv_path_GREP
=$GREP
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4259 $as_echo "$ac_cv_path_GREP" >&6; }
4260 GREP
="$ac_cv_path_GREP"
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4264 $as_echo_n "checking for egrep... " >&6; }
4265 if ${ac_cv_path_EGREP+:} false
; then :
4266 $as_echo_n "(cached) " >&6
4268 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4269 then ac_cv_path_EGREP
="$GREP -E"
4271 if test -z "$EGREP"; then
4272 ac_path_EGREP_found
=false
4273 # Loop through the user's path and test for each of PROGNAME-LIST
4274 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4275 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4278 test -z "$as_dir" && as_dir
=.
4279 for ac_prog
in egrep; do
4280 for ac_exec_ext
in '' $ac_executable_extensions; do
4281 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4282 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4283 # Check for GNU ac_path_EGREP and select it if it is found.
4284 # Check for GNU $ac_path_EGREP
4285 case `"$ac_path_EGREP" --version 2>&1` in
4287 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4290 $as_echo_n 0123456789 >"conftest.in"
4293 cat "conftest.in" "conftest.in" >"conftest.tmp"
4294 mv "conftest.tmp" "conftest.in"
4295 cp "conftest.in" "conftest.nl"
4296 $as_echo 'EGREP' >> "conftest.nl"
4297 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4298 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4299 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4300 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4301 # Best one so far, save it but keep looking for a better one
4302 ac_cv_path_EGREP
="$ac_path_EGREP"
4303 ac_path_EGREP_max
=$ac_count
4305 # 10*(2^10) chars as input seems more than enough
4306 test $ac_count -gt 10 && break
4308 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4311 $ac_path_EGREP_found && break 3
4316 if test -z "$ac_cv_path_EGREP"; then
4317 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4320 ac_cv_path_EGREP
=$EGREP
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4326 $as_echo "$ac_cv_path_EGREP" >&6; }
4327 EGREP
="$ac_cv_path_EGREP"
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4331 $as_echo_n "checking for ANSI C header files... " >&6; }
4332 if ${ac_cv_header_stdc+:} false
; then :
4333 $as_echo_n "(cached) " >&6
4335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4336 /* end confdefs.h. */
4350 if ac_fn_c_try_compile
"$LINENO"; then :
4351 ac_cv_header_stdc
=yes
4353 ac_cv_header_stdc
=no
4355 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4357 if test $ac_cv_header_stdc = yes; then
4358 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4360 /* end confdefs.h. */
4364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4365 $EGREP "memchr" >/dev
/null
2>&1; then :
4368 ac_cv_header_stdc
=no
4374 if test $ac_cv_header_stdc = yes; then
4375 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4377 /* end confdefs.h. */
4381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4382 $EGREP "free" >/dev
/null
2>&1; then :
4385 ac_cv_header_stdc
=no
4391 if test $ac_cv_header_stdc = yes; then
4392 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4393 if test "$cross_compiling" = yes; then :
4396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h. */
4400 #if ((' ' & 0x0FF) == 0x020)
4401 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4402 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4404 # define ISLOWER(c) \
4405 (('a' <= (c) && (c) <= 'i') \
4406 || ('j' <= (c) && (c) <= 'r') \
4407 || ('s' <= (c) && (c) <= 'z'))
4408 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4411 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4416 for (i = 0; i < 256; i++)
4417 if (XOR (islower (i), ISLOWER (i))
4418 || toupper (i) != TOUPPER (i))
4423 if ac_fn_c_try_run
"$LINENO"; then :
4426 ac_cv_header_stdc
=no
4428 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4429 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4435 $as_echo "$ac_cv_header_stdc" >&6; }
4436 if test $ac_cv_header_stdc = yes; then
4438 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4442 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4443 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4444 inttypes.h stdint.h unistd.h
4446 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4447 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4449 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4450 cat >>confdefs.h
<<_ACEOF
4451 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4460 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4461 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4468 if test "$MINIX" = yes; then
4470 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4473 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4476 $as_echo "#define _MINIX 1" >>confdefs.h
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4482 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4483 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4484 $as_echo_n "(cached) " >&6
4486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4487 /* end confdefs.h. */
4489 # define __EXTENSIONS__ 1
4490 $ac_includes_default
4499 if ac_fn_c_try_compile
"$LINENO"; then :
4500 ac_cv_safe_to_define___extensions__
=yes
4502 ac_cv_safe_to_define___extensions__
=no
4504 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4507 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4508 test $ac_cv_safe_to_define___extensions__ = yes &&
4509 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4511 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4513 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4515 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4517 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4521 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4522 if test -f "$ac_dir/install-sh"; then
4524 ac_install_sh
="$ac_aux_dir/install-sh -c"
4526 elif test -f "$ac_dir/install.sh"; then
4528 ac_install_sh
="$ac_aux_dir/install.sh -c"
4530 elif test -f "$ac_dir/shtool"; then
4532 ac_install_sh
="$ac_aux_dir/shtool install -c"
4536 if test -z "$ac_aux_dir"; then
4537 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4540 # These three variables are undocumented and unsupported,
4541 # and are intended to be withdrawn in a future Autoconf release.
4542 # They can cause serious problems if a builder's source tree is in a directory
4543 # whose full name contains unusual characters.
4544 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4545 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4546 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4549 # Make sure we can run config.sub.
4550 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4551 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4554 $as_echo_n "checking build system type... " >&6; }
4555 if ${ac_cv_build+:} false
; then :
4556 $as_echo_n "(cached) " >&6
4558 ac_build_alias
=$build_alias
4559 test "x$ac_build_alias" = x
&&
4560 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4561 test "x$ac_build_alias" = x
&&
4562 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4563 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4564 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4568 $as_echo "$ac_cv_build" >&6; }
4569 case $ac_cv_build in
4571 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4574 ac_save_IFS
=$IFS; IFS
='-'
4580 # Remember, the first character of IFS is used to create $*,
4581 # except with old shells:
4584 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4588 $as_echo_n "checking host system type... " >&6; }
4589 if ${ac_cv_host+:} false
; then :
4590 $as_echo_n "(cached) " >&6
4592 if test "x$host_alias" = x
; then
4593 ac_cv_host
=$ac_cv_build
4595 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4596 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4601 $as_echo "$ac_cv_host" >&6; }
4604 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4607 ac_save_IFS
=$IFS; IFS
='-'
4613 # Remember, the first character of IFS is used to create $*,
4614 # except with old shells:
4617 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4621 $as_echo_n "checking target system type... " >&6; }
4622 if ${ac_cv_target+:} false
; then :
4623 $as_echo_n "(cached) " >&6
4625 if test "x$target_alias" = x
; then
4626 ac_cv_target
=$ac_cv_host
4628 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4629 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4634 $as_echo "$ac_cv_target" >&6; }
4635 case $ac_cv_target in
4637 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4639 target
=$ac_cv_target
4640 ac_save_IFS
=$IFS; IFS
='-'
4646 # Remember, the first character of IFS is used to create $*,
4647 # except with old shells:
4650 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4653 # The aliases save the names the user supplied, while $host etc.
4654 # will get canonicalized.
4655 test -n "$target_alias" &&
4656 test "$program_prefix$program_suffix$program_transform_name" = \
4658 program_prefix
=${target_alias}-
4660 # The tests for host and target for $enable_largefile require
4665 # As the $enable_largefile decision depends on --enable-plugins we must set it
4666 # even in directories otherwise not depending on the $plugins option.
4670 for ac_header
in dlfcn.h
4672 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4674 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
4675 cat >>confdefs.h
<<_ACEOF
4676 #define HAVE_DLFCN_H 1
4683 for ac_header
in windows.h
4685 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4687 if test "x$ac_cv_header_windows_h" = xyes
; then :
4688 cat >>confdefs.h
<<_ACEOF
4689 #define HAVE_WINDOWS_H 1
4697 # Check whether --enable-plugins was given.
4698 if test "${enable_plugins+set}" = set; then :
4699 enableval
=$enable_plugins; case "${enableval}" in
4702 if test "$maybe_plugins" != "yes" ; then
4703 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4707 plugins
=$maybe_plugins
4711 if test "$plugins" = "yes"; then
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4713 $as_echo_n "checking for library containing dlsym... " >&6; }
4714 if ${ac_cv_search_dlsym+:} false
; then :
4715 $as_echo_n "(cached) " >&6
4717 ac_func_search_save_LIBS
=$LIBS
4718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h. */
4721 /* Override any GCC internal prototype to avoid an error.
4722 Use char because int might match the return type of a GCC
4723 builtin and then its argument prototype would still apply. */
4736 for ac_lib
in '' dl
; do
4737 if test -z "$ac_lib"; then
4738 ac_res
="none required"
4741 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4743 if ac_fn_c_try_link
"$LINENO"; then :
4744 ac_cv_search_dlsym
=$ac_res
4746 rm -f core conftest.err conftest.
$ac_objext \
4748 if ${ac_cv_search_dlsym+:} false
; then :
4752 if ${ac_cv_search_dlsym+:} false
; then :
4755 ac_cv_search_dlsym
=no
4758 LIBS
=$ac_func_search_save_LIBS
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4761 $as_echo "$ac_cv_search_dlsym" >&6; }
4762 ac_res
=$ac_cv_search_dlsym
4763 if test "$ac_res" != no
; then :
4764 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4772 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4773 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4774 # are mutually exclusive; and without procfs support, the bfd/ elf module
4775 # cannot provide certain routines such as elfcore_write_prpsinfo
4776 # or elfcore_write_prstatus. So unless the user explicitly requested
4777 # large-file support through the --enable-largefile switch, disable
4778 # large-file support in favor of procfs support.
4779 test "${target}" = "${host}" -a "x$plugins" = xno \
4780 && : ${enable_largefile="no"}
4784 # Check whether --enable-largefile was given.
4785 if test "${enable_largefile+set}" = set; then :
4786 enableval
=$enable_largefile;
4789 if test "$enable_largefile" != no
; then
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4792 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4793 if ${ac_cv_sys_largefile_CC+:} false
; then :
4794 $as_echo_n "(cached) " >&6
4796 ac_cv_sys_largefile_CC
=no
4797 if test "$GCC" != yes; then
4800 # IRIX 6.2 and later do not support large files by default,
4801 # so use the C compiler's -n32 option if that helps.
4802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4803 /* end confdefs.h. */
4804 #include <sys/types.h>
4805 /* Check that off_t can represent 2**63 - 1 correctly.
4806 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4807 since some C++ compilers masquerading as C compilers
4808 incorrectly reject 9223372036854775807. */
4809 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4810 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4811 && LARGE_OFF_T % 2147483647 == 1)
4821 if ac_fn_c_try_compile
"$LINENO"; then :
4824 rm -f core conftest.err conftest.
$ac_objext
4826 if ac_fn_c_try_compile
"$LINENO"; then :
4827 ac_cv_sys_largefile_CC
=' -n32'; break
4829 rm -f core conftest.err conftest.
$ac_objext
4833 rm -f conftest.
$ac_ext
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4837 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4838 if test "$ac_cv_sys_largefile_CC" != no
; then
4839 CC
=$CC$ac_cv_sys_largefile_CC
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4843 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4844 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4845 $as_echo_n "(cached) " >&6
4848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h. */
4850 #include <sys/types.h>
4851 /* Check that off_t can represent 2**63 - 1 correctly.
4852 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4853 since some C++ compilers masquerading as C compilers
4854 incorrectly reject 9223372036854775807. */
4855 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4856 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4857 && LARGE_OFF_T % 2147483647 == 1)
4867 if ac_fn_c_try_compile
"$LINENO"; then :
4868 ac_cv_sys_file_offset_bits
=no
; break
4870 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4872 /* end confdefs.h. */
4873 #define _FILE_OFFSET_BITS 64
4874 #include <sys/types.h>
4875 /* Check that off_t can represent 2**63 - 1 correctly.
4876 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4877 since some C++ compilers masquerading as C compilers
4878 incorrectly reject 9223372036854775807. */
4879 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4880 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4881 && LARGE_OFF_T % 2147483647 == 1)
4891 if ac_fn_c_try_compile
"$LINENO"; then :
4892 ac_cv_sys_file_offset_bits
=64; break
4894 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4895 ac_cv_sys_file_offset_bits
=unknown
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4900 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4901 case $ac_cv_sys_file_offset_bits in #(
4904 cat >>confdefs.h
<<_ACEOF
4905 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4910 if test $ac_cv_sys_file_offset_bits = unknown
; then
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4912 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4913 if ${ac_cv_sys_large_files+:} false
; then :
4914 $as_echo_n "(cached) " >&6
4917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4918 /* end confdefs.h. */
4919 #include <sys/types.h>
4920 /* Check that off_t can represent 2**63 - 1 correctly.
4921 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4922 since some C++ compilers masquerading as C compilers
4923 incorrectly reject 9223372036854775807. */
4924 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4925 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4926 && LARGE_OFF_T % 2147483647 == 1)
4936 if ac_fn_c_try_compile
"$LINENO"; then :
4937 ac_cv_sys_large_files
=no
; break
4939 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4941 /* end confdefs.h. */
4942 #define _LARGE_FILES 1
4943 #include <sys/types.h>
4944 /* Check that off_t can represent 2**63 - 1 correctly.
4945 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4946 since some C++ compilers masquerading as C compilers
4947 incorrectly reject 9223372036854775807. */
4948 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4949 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4950 && LARGE_OFF_T % 2147483647 == 1)
4960 if ac_fn_c_try_compile
"$LINENO"; then :
4961 ac_cv_sys_large_files
=1; break
4963 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4964 ac_cv_sys_large_files
=unknown
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4969 $as_echo "$ac_cv_sys_large_files" >&6; }
4970 case $ac_cv_sys_large_files in #(
4973 cat >>confdefs.h
<<_ACEOF
4974 #define _LARGE_FILES $ac_cv_sys_large_files
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4989 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4990 if ${am_cv_prog_cc_stdc+:} false
; then :
4991 $as_echo_n "(cached) " >&6
4993 am_cv_prog_cc_stdc
=no
4995 # Don't try gcc -ansi; that turns off useful extensions and
4996 # breaks some systems' header files.
4997 # AIX -qlanglvl=ansi
4998 # Ultrix and OSF/1 -std1
4999 # HP-UX 10.20 and later -Ae
5000 # HP-UX older versions -Aa -D_HPUX_SOURCE
5001 # SVR4 -Xc -D__EXTENSIONS__
5002 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5004 CC
="$ac_save_CC $ac_arg"
5005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5006 /* end confdefs.h. */
5009 #include <sys/types.h>
5010 #include <sys/stat.h>
5011 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5012 struct buf { int x; };
5013 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5014 static char *e (p, i)
5020 static char *f (char * (*g) (char **, int), char **p, ...)
5025 s = g (p, va_arg (v,int));
5029 int test (int i, double x);
5030 struct s1 {int (*f) (int a);};
5031 struct s2 {int (*f) (double a);};
5032 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5040 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5046 if ac_fn_c_try_compile
"$LINENO"; then :
5047 am_cv_prog_cc_stdc
="$ac_arg"; break
5049 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5055 if test -z "$am_cv_prog_cc_stdc"; then
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5057 $as_echo "none needed" >&6; }
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
5060 $as_echo "$am_cv_prog_cc_stdc" >&6; }
5062 case "x$am_cv_prog_cc_stdc" in
5064 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
5067 # Expand $ac_aux_dir to an absolute path.
5068 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
5070 if test x
"${install_sh+set}" != xset
; then
5073 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
5075 install_sh
="\${SHELL} $am_aux_dir/install-sh"
5079 # Installed binaries are usually stripped using 'strip' when the user
5080 # run "make install-strip". However 'strip' might not be the right
5081 # tool to use in cross-compilation environments, therefore Automake
5082 # will honor the 'STRIP' environment variable to overrule this program.
5083 if test "$cross_compiling" != no
; then
5084 if test -n "$ac_tool_prefix"; then
5085 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5086 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5088 $as_echo_n "checking for $ac_word... " >&6; }
5089 if ${ac_cv_prog_STRIP+:} false
; then :
5090 $as_echo_n "(cached) " >&6
5092 if test -n "$STRIP"; then
5093 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5095 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5099 test -z "$as_dir" && as_dir
=.
5100 for ac_exec_ext
in '' $ac_executable_extensions; do
5101 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5102 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5112 STRIP
=$ac_cv_prog_STRIP
5113 if test -n "$STRIP"; then
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5115 $as_echo "$STRIP" >&6; }
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; }
5123 if test -z "$ac_cv_prog_STRIP"; then
5125 # Extract the first word of "strip", so it can be a program name with args.
5126 set dummy strip
; ac_word
=$2
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5128 $as_echo_n "checking for $ac_word... " >&6; }
5129 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
5130 $as_echo_n "(cached) " >&6
5132 if test -n "$ac_ct_STRIP"; then
5133 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5135 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5139 test -z "$as_dir" && as_dir
=.
5140 for ac_exec_ext
in '' $ac_executable_extensions; do
5141 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5142 ac_cv_prog_ac_ct_STRIP
="strip"
5143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5152 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5153 if test -n "$ac_ct_STRIP"; then
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5155 $as_echo "$ac_ct_STRIP" >&6; }
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5158 $as_echo "no" >&6; }
5161 if test "x$ac_ct_STRIP" = x
; then
5164 case $cross_compiling:$ac_tool_warned in
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5168 ac_tool_warned
=yes ;;
5173 STRIP
="$ac_cv_prog_STRIP"
5177 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
5181 for ac_dir
in ..
"$srcdir"/..
; do
5182 if test -f "$ac_dir/install-sh"; then
5184 ac_install_sh
="$ac_aux_dir/install-sh -c"
5186 elif test -f "$ac_dir/install.sh"; then
5188 ac_install_sh
="$ac_aux_dir/install.sh -c"
5190 elif test -f "$ac_dir/shtool"; then
5192 ac_install_sh
="$ac_aux_dir/shtool install -c"
5196 if test -z "$ac_aux_dir"; then
5197 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
5200 # These three variables are undocumented and unsupported,
5201 # and are intended to be withdrawn in a future Autoconf release.
5202 # They can cause serious problems if a builder's source tree is in a directory
5203 # whose full name contains unusual characters.
5204 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5205 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5206 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5210 test "$program_prefix" != NONE
&&
5211 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
5212 # Use a double $ so make ignores it.
5213 test "$program_suffix" != NONE
&&
5214 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
5215 # Double any \ or $.
5216 # By default was `s,x,x', remove it if useless.
5217 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
5218 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
5221 # We require a C++11 compiler. Check if one is available, and if
5222 # necessary, set CXX_DIALECT to some -std=xxx switch.
5224 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5226 ac_cpp
='$CXXCPP $CPPFLAGS'
5227 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5228 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5229 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5233 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5234 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5235 $as_echo_n "(cached) " >&6
5237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h. */
5241 // If the compiler admits that it is not ready for C++11, why torture it?
5242 // Hopefully, this will speed up the test.
5246 #error "This is not a C++ compiler"
5248 #elif __cplusplus < 201103L
5250 #error "This is not a C++11 compiler"
5257 namespace test_static_assert
5260 template <typename T>
5263 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5268 namespace test_final_override
5276 struct Derived : public Base
5278 virtual void f() override {}
5283 namespace test_double_right_angle_brackets
5286 template < typename T >
5289 typedef check<void> single_type;
5290 typedef check<check<void>> double_type;
5291 typedef check<check<check<void>>> triple_type;
5292 typedef check<check<check<check<void>>>> quadruple_type;
5296 namespace test_decltype
5309 namespace test_type_deduction
5312 template < typename T1, typename T2 >
5315 static const bool value = false;
5318 template < typename T >
5319 struct is_same<T, T>
5321 static const bool value = true;
5324 template < typename T1, typename T2 >
5326 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5332 test(const int c, volatile int v)
5334 static_assert(is_same<int, decltype(0)>::value == true, "");
5335 static_assert(is_same<int, decltype(c)>::value == false, "");
5336 static_assert(is_same<int, decltype(v)>::value == false, "");
5339 auto sumi = ac + av + 'x';
5340 auto sumf = ac + av + 1.0;
5341 static_assert(is_same<int, decltype(ac)>::value == true, "");
5342 static_assert(is_same<int, decltype(av)>::value == true, "");
5343 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5344 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5345 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5346 return (sumf > 0.0) ? sumi : add(c, v);
5351 namespace test_noexcept
5354 int f() { return 0; }
5355 int g() noexcept { return 0; }
5357 static_assert(noexcept(f()) == false, "");
5358 static_assert(noexcept(g()) == true, "");
5362 namespace test_constexpr
5365 template < typename CharT >
5366 unsigned long constexpr
5367 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5369 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5372 template < typename CharT >
5373 unsigned long constexpr
5374 strlen_c(const CharT *const s) noexcept
5376 return strlen_c_r(s, 0UL);
5379 static_assert(strlen_c("") == 0UL, "");
5380 static_assert(strlen_c("1") == 1UL, "");
5381 static_assert(strlen_c("example") == 7UL, "");
5382 static_assert(strlen_c("another\0example") == 7UL, "");
5386 namespace test_rvalue_references
5392 static constexpr int value = N;
5395 answer<1> f(int&) { return answer<1>(); }
5396 answer<2> f(const int&) { return answer<2>(); }
5397 answer<3> f(int&&) { return answer<3>(); }
5404 static_assert(decltype(f(i))::value == 1, "");
5405 static_assert(decltype(f(c))::value == 2, "");
5406 static_assert(decltype(f(0))::value == 3, "");
5411 namespace test_uniform_initialization
5416 static const int zero {};
5417 static const int one {1};
5420 static_assert(test::zero == 0, "");
5421 static_assert(test::one == 1, "");
5425 namespace test_lambdas
5431 auto lambda1 = [](){};
5432 auto lambda2 = lambda1;
5440 auto a = [](int i, int j){ return i + j; }(1, 2);
5441 auto b = []() -> int { return '0'; }();
5442 auto c = [=](){ return a + b; }();
5443 auto d = [&](){ return c; }();
5444 auto e = [a, &b](int x) mutable {
5445 const auto identity = [](int y){ return y; };
5446 for (auto i = 0; i < a; ++i)
5448 return x + identity(a + b);
5450 return a + b + c + d + e;
5456 const auto nullary = [](){ return 0; };
5457 const auto unary = [](int x){ return x; };
5458 using nullary_t = decltype(nullary);
5459 using unary_t = decltype(unary);
5460 const auto higher1st = [](nullary_t f){ return f(); };
5461 const auto higher2nd = [unary](nullary_t f1){
5462 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5464 return higher1st(nullary) + higher2nd(nullary)(unary);
5469 namespace test_variadic_templates
5475 template <int N0, int... N1toN>
5476 struct sum<N0, N1toN...>
5478 static constexpr auto value = N0 + sum<N1toN...>::value;
5484 static constexpr auto value = 0;
5487 static_assert(sum<>::value == 0, "");
5488 static_assert(sum<1>::value == 1, "");
5489 static_assert(sum<23>::value == 23, "");
5490 static_assert(sum<1, 2>::value == 3, "");
5491 static_assert(sum<5, 5, 11>::value == 21, "");
5492 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5496 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5497 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5499 namespace test_template_alias_sfinae
5504 template<typename T>
5505 using member = typename T::member_type;
5507 template<typename T>
5510 template<typename T>
5511 void func(member<T>*) {}
5515 void test() { func<foo>(0); }
5519 } // namespace cxx11
5521 #endif // __cplusplus >= 201103L
5526 if ac_fn_cxx_try_compile
"$LINENO"; then :
5527 ax_cv_cxx_compile_cxx11
=yes
5529 ax_cv_cxx_compile_cxx11
=no
5531 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5534 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5535 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
5539 if test x
$ac_success = xno
; then
5540 for alternative
in ${ax_cxx_compile_alternatives}; do
5541 switch
="-std=gnu++${alternative}"
5542 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5544 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5545 if eval \
${$cachevar+:} false
; then :
5546 $as_echo_n "(cached) " >&6
5550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5551 /* end confdefs.h. */
5554 // If the compiler admits that it is not ready for C++11, why torture it?
5555 // Hopefully, this will speed up the test.
5559 #error "This is not a C++ compiler"
5561 #elif __cplusplus < 201103L
5563 #error "This is not a C++11 compiler"
5570 namespace test_static_assert
5573 template <typename T>
5576 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5581 namespace test_final_override
5589 struct Derived : public Base
5591 virtual void f() override {}
5596 namespace test_double_right_angle_brackets
5599 template < typename T >
5602 typedef check<void> single_type;
5603 typedef check<check<void>> double_type;
5604 typedef check<check<check<void>>> triple_type;
5605 typedef check<check<check<check<void>>>> quadruple_type;
5609 namespace test_decltype
5622 namespace test_type_deduction
5625 template < typename T1, typename T2 >
5628 static const bool value = false;
5631 template < typename T >
5632 struct is_same<T, T>
5634 static const bool value = true;
5637 template < typename T1, typename T2 >
5639 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5645 test(const int c, volatile int v)
5647 static_assert(is_same<int, decltype(0)>::value == true, "");
5648 static_assert(is_same<int, decltype(c)>::value == false, "");
5649 static_assert(is_same<int, decltype(v)>::value == false, "");
5652 auto sumi = ac + av + 'x';
5653 auto sumf = ac + av + 1.0;
5654 static_assert(is_same<int, decltype(ac)>::value == true, "");
5655 static_assert(is_same<int, decltype(av)>::value == true, "");
5656 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5657 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5658 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5659 return (sumf > 0.0) ? sumi : add(c, v);
5664 namespace test_noexcept
5667 int f() { return 0; }
5668 int g() noexcept { return 0; }
5670 static_assert(noexcept(f()) == false, "");
5671 static_assert(noexcept(g()) == true, "");
5675 namespace test_constexpr
5678 template < typename CharT >
5679 unsigned long constexpr
5680 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5682 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5685 template < typename CharT >
5686 unsigned long constexpr
5687 strlen_c(const CharT *const s) noexcept
5689 return strlen_c_r(s, 0UL);
5692 static_assert(strlen_c("") == 0UL, "");
5693 static_assert(strlen_c("1") == 1UL, "");
5694 static_assert(strlen_c("example") == 7UL, "");
5695 static_assert(strlen_c("another\0example") == 7UL, "");
5699 namespace test_rvalue_references
5705 static constexpr int value = N;
5708 answer<1> f(int&) { return answer<1>(); }
5709 answer<2> f(const int&) { return answer<2>(); }
5710 answer<3> f(int&&) { return answer<3>(); }
5717 static_assert(decltype(f(i))::value == 1, "");
5718 static_assert(decltype(f(c))::value == 2, "");
5719 static_assert(decltype(f(0))::value == 3, "");
5724 namespace test_uniform_initialization
5729 static const int zero {};
5730 static const int one {1};
5733 static_assert(test::zero == 0, "");
5734 static_assert(test::one == 1, "");
5738 namespace test_lambdas
5744 auto lambda1 = [](){};
5745 auto lambda2 = lambda1;
5753 auto a = [](int i, int j){ return i + j; }(1, 2);
5754 auto b = []() -> int { return '0'; }();
5755 auto c = [=](){ return a + b; }();
5756 auto d = [&](){ return c; }();
5757 auto e = [a, &b](int x) mutable {
5758 const auto identity = [](int y){ return y; };
5759 for (auto i = 0; i < a; ++i)
5761 return x + identity(a + b);
5763 return a + b + c + d + e;
5769 const auto nullary = [](){ return 0; };
5770 const auto unary = [](int x){ return x; };
5771 using nullary_t = decltype(nullary);
5772 using unary_t = decltype(unary);
5773 const auto higher1st = [](nullary_t f){ return f(); };
5774 const auto higher2nd = [unary](nullary_t f1){
5775 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5777 return higher1st(nullary) + higher2nd(nullary)(unary);
5782 namespace test_variadic_templates
5788 template <int N0, int... N1toN>
5789 struct sum<N0, N1toN...>
5791 static constexpr auto value = N0 + sum<N1toN...>::value;
5797 static constexpr auto value = 0;
5800 static_assert(sum<>::value == 0, "");
5801 static_assert(sum<1>::value == 1, "");
5802 static_assert(sum<23>::value == 23, "");
5803 static_assert(sum<1, 2>::value == 3, "");
5804 static_assert(sum<5, 5, 11>::value == 21, "");
5805 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5809 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5810 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5812 namespace test_template_alias_sfinae
5817 template<typename T>
5818 using member = typename T::member_type;
5820 template<typename T>
5823 template<typename T>
5824 void func(member<T>*) {}
5828 void test() { func<foo>(0); }
5832 } // namespace cxx11
5834 #endif // __cplusplus >= 201103L
5839 if ac_fn_cxx_try_compile
"$LINENO"; then :
5844 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5847 eval ac_res
=\$
$cachevar
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5849 $as_echo "$ac_res" >&6; }
5850 if eval test x\$
$cachevar = xyes
; then
5851 CXX_DIALECT
="$switch"
5858 if test x
$ac_success = xno
; then
5859 for alternative
in ${ax_cxx_compile_alternatives}; do
5860 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5861 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
5863 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
5864 if eval \${$cachevar+:} false; then :
5865 $as_echo_n "(cached
) " >&6
5869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5870 /* end confdefs.h. */
5873 // If the compiler admits that it is not ready for C++11, why torture it?
5874 // Hopefully, this will speed up the test.
5878 #error "This is not a C
++ compiler
"
5880 #elif __cplusplus < 201103L
5882 #error "This is not a C
++11 compiler
"
5889 namespace test_static_assert
5892 template <typename T>
5895 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
5900 namespace test_final_override
5908 struct Derived : public Base
5910 virtual void f() override {}
5915 namespace test_double_right_angle_brackets
5918 template < typename T >
5921 typedef check<void> single_type;
5922 typedef check<check<void>> double_type;
5923 typedef check<check<check<void>>> triple_type;
5924 typedef check<check<check<check<void>>>> quadruple_type;
5928 namespace test_decltype
5941 namespace test_type_deduction
5944 template < typename T1, typename T2 >
5947 static const bool value = false;
5950 template < typename T >
5951 struct is_same<T, T>
5953 static const bool value = true;
5956 template < typename T1, typename T2 >
5958 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5964 test(const int c, volatile int v)
5966 static_assert(is_same<int, decltype(0)>::value == true, "");
5967 static_assert(is_same<int, decltype(c)>::value == false, "");
5968 static_assert(is_same<int, decltype(v)>::value == false, "");
5971 auto sumi = ac + av + 'x';
5972 auto sumf = ac + av + 1.0;
5973 static_assert(is_same<int, decltype(ac)>::value == true, "");
5974 static_assert(is_same<int, decltype(av)>::value == true, "");
5975 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5976 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5977 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5978 return (sumf > 0.0) ? sumi : add(c, v);
5983 namespace test_noexcept
5986 int f() { return 0; }
5987 int g() noexcept { return 0; }
5989 static_assert(noexcept(f()) == false, "");
5990 static_assert(noexcept(g()) == true, "");
5994 namespace test_constexpr
5997 template < typename CharT >
5998 unsigned long constexpr
5999 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6001 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6004 template < typename CharT >
6005 unsigned long constexpr
6006 strlen_c(const CharT *const s) noexcept
6008 return strlen_c_r(s, 0UL);
6011 static_assert(strlen_c("") == 0UL, "");
6012 static_assert(strlen_c("1") == 1UL, "");
6013 static_assert(strlen_c("example
") == 7UL, "");
6014 static_assert(strlen_c("another\
0example
") == 7UL, "");
6018 namespace test_rvalue_references
6024 static constexpr int value = N;
6027 answer<1> f(int&) { return answer<1>(); }
6028 answer<2> f(const int&) { return answer<2>(); }
6029 answer<3> f(int&&) { return answer<3>(); }
6036 static_assert(decltype(f(i))::value == 1, "");
6037 static_assert(decltype(f(c))::value == 2, "");
6038 static_assert(decltype(f(0))::value == 3, "");
6043 namespace test_uniform_initialization
6048 static const int zero {};
6049 static const int one {1};
6052 static_assert(test::zero == 0, "");
6053 static_assert(test::one == 1, "");
6057 namespace test_lambdas
6063 auto lambda1 = [](){};
6064 auto lambda2 = lambda1;
6072 auto a = [](int i, int j){ return i + j; }(1, 2);
6073 auto b = []() -> int { return '0'; }();
6074 auto c = [=](){ return a + b; }();
6075 auto d = [&](){ return c; }();
6076 auto e = [a, &b](int x) mutable {
6077 const auto identity = [](int y){ return y; };
6078 for (auto i = 0; i < a; ++i)
6080 return x + identity(a + b);
6082 return a + b + c + d + e;
6088 const auto nullary = [](){ return 0; };
6089 const auto unary = [](int x){ return x; };
6090 using nullary_t = decltype(nullary);
6091 using unary_t = decltype(unary);
6092 const auto higher1st = [](nullary_t f){ return f(); };
6093 const auto higher2nd = [unary](nullary_t f1){
6094 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6096 return higher1st(nullary) + higher2nd(nullary)(unary);
6101 namespace test_variadic_templates
6107 template <int N0, int... N1toN>
6108 struct sum<N0, N1toN...>
6110 static constexpr auto value = N0 + sum<N1toN...>::value;
6116 static constexpr auto value = 0;
6119 static_assert(sum<>::value == 0, "");
6120 static_assert(sum<1>::value == 1, "");
6121 static_assert(sum<23>::value == 23, "");
6122 static_assert(sum<1, 2>::value == 3, "");
6123 static_assert(sum<5, 5, 11>::value == 21, "");
6124 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6128 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6129 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6131 namespace test_template_alias_sfinae
6136 template<typename T>
6137 using member = typename T::member_type;
6139 template<typename T>
6142 template<typename T>
6143 void func(member<T>*) {}
6147 void test() { func<foo>(0); }
6151 } // namespace cxx11
6153 #endif // __cplusplus >= 201103L
6158 if ac_fn_cxx_try_compile "$LINENO"; then :
6163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6166 eval ac_res=\$$cachevar
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6168 $as_echo "$ac_res" >&6; }
6169 if eval test x\$$cachevar = xyes; then
6170 CXX_DIALECT="$switch"
6175 if test x$ac_success = xyes; then
6181 ac_cpp='$CPP $CPPFLAGS'
6182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6186 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6187 if test x$ac_success = xno; then
6188 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6191 if test x$ac_success = xno; then
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6194 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6198 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6205 # Dependency checking.
6206 rm -rf .tst
2>/dev
/null
6207 mkdir .tst
2>/dev
/null
6208 if test -d .tst
; then
6213 rmdir .tst
2>/dev
/null
6215 DEPDIR
="${am__leading_dot}deps"
6217 ac_config_commands
="$ac_config_commands depdir"
6220 depcc
="$CC" am_compiler_list
=
6222 am_depcomp
=$ac_aux_dir/depcomp
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6224 $as_echo_n "checking dependency style of $depcc... " >&6; }
6225 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
6226 $as_echo_n "(cached) " >&6
6228 if test -f "$am_depcomp"; then
6229 # We make a subdir and do the tests there. Otherwise we can end up
6230 # making bogus files that we don't know about and never remove. For
6231 # instance it was reported that on HP-UX the gcc test will end up
6232 # making a dummy file named `D' -- because `-MD' means `put the output
6235 # Copy depcomp to subdir because otherwise we won't find it if we're
6236 # using a relative directory.
6237 cp "$am_depcomp" conftest.dir
6239 # We will build objects and dependencies in a subdirectory because
6240 # it helps to detect inapplicable dependency modes. For instance
6241 # both Tru64's cc and ICC support -MD to output dependencies as a
6242 # side effect of compilation, but ICC will put the dependencies in
6243 # the current directory while Tru64 will put them in the object
6247 am_cv_CC_dependencies_compiler_type
=none
6248 if test "$am_compiler_list" = ""; then
6249 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6251 for depmode
in $am_compiler_list; do
6252 if test $depmode = none
; then break; fi
6254 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6255 # Setup a source with many dependencies, because some compilers
6256 # like to wrap large dependency lists on column 80 (with \), and
6257 # we should not choose a depcomp mode which is confused by this.
6259 # We need to recreate these files for each test, as the compiler may
6260 # overwrite some of them when testing with obscure command lines.
6261 # This happens at least with the AIX C compiler.
6263 for i
in 1 2 3 4 5 6; do
6264 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6265 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6266 # Solaris 8's {/usr,}/bin/sh.
6267 touch sub
/conftst
$i.h
6269 echo "include sub/conftest.Po" > confmf
6271 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6272 # mode. It turns out that the SunPro C++ compiler does not properly
6273 # handle `-M -o', and we need to detect this.
6274 depcmd
="depmode=$depmode \
6275 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6276 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6277 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6278 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
6279 if env
$depcmd > conftest.err
2>&1 &&
6280 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
6281 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
6282 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
6283 # icc doesn't choke on unknown options, it will just issue warnings
6284 # or remarks (even with -Werror). So we grep stderr for any message
6285 # that says an option was ignored or not supported.
6286 # When given -MP, icc 7.0 and 7.1 complain thusly:
6287 # icc: Command line warning: ignoring option '-M'; no argument required
6288 # The diagnosis changed in icc 8.0:
6289 # icc: Command line remark: option '-MP' not supported
6290 if (grep 'ignoring option' conftest.err ||
6291 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6292 am_cv_CC_dependencies_compiler_type
=$depmode
6293 $as_echo "$as_me:$LINENO: success" >&5
6297 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6298 sed -e 's/^/| /' < conftest.err
>&5
6304 am_cv_CC_dependencies_compiler_type
=none
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6309 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6310 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
6311 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
6312 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
6328 # If we haven't got the data from the intl directory,
6329 # assume NLS is disabled.
6338 if test -f ..
/intl
/config.intl
; then
6339 . ..
/intl
/config.intl
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6342 $as_echo_n "checking whether NLS is requested... " >&6; }
6343 if test x
"$USE_NLS" != xyes
; then
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6345 $as_echo "no" >&6; }
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6348 $as_echo "yes" >&6; }
6350 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6354 $as_echo_n "checking for catalogs to be installed... " >&6; }
6355 # Look for .po and .gmo files in the source directory.
6358 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
6359 # If there aren't any .gmo files the shell will give us the
6360 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6362 case "$cat" in *\
**)
6365 # The quadruple backslash is collapsed to a double backslash
6366 # by the backticks, then collapsed again by the double quotes,
6367 # leaving us with one backslash in the sed expression (right
6368 # before the dot that mustn't act as a wildcard).
6369 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6370 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
6371 # The user is allowed to set LINGUAS to a list of languages to
6372 # install catalogs for. If it's empty that means "all of them."
6373 if test "x$LINGUAS" = x
; then
6374 CATALOGS
="$CATALOGS $cat"
6375 XLINGUAS
="$XLINGUAS $lang"
6377 case "$LINGUAS" in *$lang*)
6378 CATALOGS
="$CATALOGS $cat"
6379 XLINGUAS
="$XLINGUAS $lang"
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6386 $as_echo "$LINGUAS" >&6; }
6399 localedir
='${datadir}/locale'
6402 if test x
"$USE_NLS" = xyes
; then
6403 CONFIG_ALL
="$CONFIG_ALL all-po"
6404 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
6405 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
6406 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
6411 cat >>confdefs.h
<<_ACEOF
6412 #define PACKAGE "$PACKAGE"
6417 # We never need to detect it in this sub-configure.
6418 # But preserve it for config.status --recheck.
6422 MAKEINFO_EXTRA_FLAGS
=""
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
6424 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
6425 if ${gdb_cv_have_makeinfo_click+:} false
; then :
6426 $as_echo_n "(cached) " >&6
6428 echo '@clicksequence{a @click{} b}' >conftest.texinfo
6429 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
6430 gdb_cv_have_makeinfo_click
=yes
6432 gdb_cv_have_makeinfo_click
=no
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
6436 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
6437 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
6438 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
6444 # Check whether --with-separate-debug-dir was given.
6445 if test "${with_separate_debug_dir+set}" = set; then :
6446 withval
=$with_separate_debug_dir;
6449 DEBUGDIR
=${libdir}/debug
6453 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6454 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6455 ac_define_dir
=`eval echo $DEBUGDIR`
6456 ac_define_dir
=`eval echo $ac_define_dir`
6458 cat >>confdefs.h
<<_ACEOF
6459 #define DEBUGDIR "$ac_define_dir"
6465 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6466 if test "x$prefix" = xNONE
; then
6467 test_prefix
=/usr
/local
6472 test_prefix
=$exec_prefix
6475 case ${ac_define_dir} in
6476 "${test_prefix}"|
"${test_prefix}/"*|\
6477 '${exec_prefix}'|
'${exec_prefix}/'*)
6482 cat >>confdefs.h
<<_ACEOF
6483 #define DEBUGDIR_RELOCATABLE $value
6489 # We can't pass paths as command line arguments.
6490 # Mingw32 tries to be clever and will convert the paths for us.
6491 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
6492 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
6493 # This breaks GDB's relocatable path conversions since paths passed in
6494 # config.h would not get so translated, the path prefixes no longer match.
6496 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6497 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6498 ac_define_dir
=`eval echo $bindir`
6499 ac_define_dir
=`eval echo $ac_define_dir`
6501 cat >>confdefs.h
<<_ACEOF
6502 #define BINDIR "$ac_define_dir"
6507 # GDB's datadir relocation
6511 # Check whether --with-gdb-datadir was given.
6512 if test "${with_gdb_datadir+set}" = set; then :
6513 withval
=$with_gdb_datadir;
6514 GDB_DATADIR
=$withval
6516 GDB_DATADIR
=${datadir}/gdb
6520 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6521 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6522 ac_define_dir
=`eval echo $GDB_DATADIR`
6523 ac_define_dir
=`eval echo $ac_define_dir`
6525 cat >>confdefs.h
<<_ACEOF
6526 #define GDB_DATADIR "$ac_define_dir"
6532 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6533 if test "x$prefix" = xNONE
; then
6534 test_prefix
=/usr
/local
6539 test_prefix
=$exec_prefix
6542 case ${ac_define_dir} in
6543 "${test_prefix}"|
"${test_prefix}/"*|\
6544 '${exec_prefix}'|
'${exec_prefix}/'*)
6549 cat >>confdefs.h
<<_ACEOF
6550 #define GDB_DATADIR_RELOCATABLE $value
6557 # Check whether --with-relocated-sources was given.
6558 if test "${with_relocated_sources+set}" = set; then :
6559 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
6561 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6562 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6563 ac_define_dir
=`eval echo $reloc_srcdir`
6564 ac_define_dir
=`eval echo $ac_define_dir`
6566 cat >>confdefs.h
<<_ACEOF
6567 #define RELOC_SRCDIR "$ac_define_dir"
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
6576 $as_echo_n "checking for default auto-load directory... " >&6; }
6578 # Check whether --with-auto-load-dir was given.
6579 if test "${with_auto_load_dir+set}" = set; then :
6580 withval
=$with_auto_load_dir;
6582 with_auto_load_dir
='$debugdir:$datadir/auto-load'
6585 escape_dir
=`echo $with_auto_load_dir | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6587 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6588 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6589 ac_define_dir
=`eval echo $escape_dir`
6590 ac_define_dir
=`eval echo $ac_define_dir`
6592 cat >>confdefs.h
<<_ACEOF
6593 #define AUTO_LOAD_DIR "$ac_define_dir"
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
6598 $as_echo "$with_auto_load_dir" >&6; }
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
6601 $as_echo_n "checking for default auto-load safe-path... " >&6; }
6603 # Check whether --with-auto-load-safe-path was given.
6604 if test "${with_auto_load_safe_path+set}" = set; then :
6605 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
6606 with_auto_load_safe_path
="/"
6609 with_auto_load_safe_path
="$with_auto_load_dir"
6612 escape_dir
=`echo $with_auto_load_safe_path | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6614 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6615 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6616 ac_define_dir
=`eval echo $escape_dir`
6617 ac_define_dir
=`eval echo $ac_define_dir`
6619 cat >>confdefs.h
<<_ACEOF
6620 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
6625 $as_echo "$with_auto_load_safe_path" >&6; }
6629 subdirs
="$subdirs testsuite"
6632 # Check whether to support alternative target configurations
6633 # Check whether --enable-targets was given.
6634 if test "${enable_targets+set}" = set; then :
6635 enableval
=$enable_targets; case "${enableval}" in
6636 yes |
"") as_fn_error $?
"enable-targets option must specify target names or 'all'" "$LINENO" 5
6638 no
) enable_targets
= ;;
6639 *) enable_targets
=$enableval ;;
6644 # Check whether to enable 64-bit support on 32-bit hosts
6645 # Check whether --enable-64-bit-bfd was given.
6646 if test "${enable_64_bit_bfd+set}" = set; then :
6647 enableval
=$enable_64_bit_bfd; case "${enableval}" in
6650 *) as_fn_error $?
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
6656 # Provide defaults for some variables set by the per-host and per-target
6658 gdb_host_obs
=posix-hdep.o
6660 if test "${target}" = "${host}"; then
6666 .
$srcdir/configure.
host
6668 # Accumulate some settings from configure.tgt over all enabled targets
6672 HAVE_NATIVE_GCORE_TARGET
=
6674 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6676 if test "$targ_alias" = "all"; then
6679 # Canonicalize the secondary target names.
6680 result
=`$ac_config_sub $targ_alias 2>/dev/null`
6681 if test -n "$result"; then
6687 .
${srcdir}/configure.tgt
6689 if test -z "${gdb_target_obs}"; then :
6690 as_fn_error $?
"configuration ${targ} is unsupported." "$LINENO" 5
6693 # Target-specific object files
6694 for i
in ${gdb_target_obs}; do
6695 case " $TARGET_OBS " in
6698 TARGET_OBS
="$TARGET_OBS ${i}"
6703 # Check whether this target needs 64-bit CORE_ADDR
6704 if test x
${want64} = xfalse
; then
6705 .
${srcdir}/..
/bfd
/config.bfd
6708 # Check whether this target is native and supports gcore.
6709 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
6710 && $gdb_have_gcore; then
6711 HAVE_NATIVE_GCORE_TARGET
=1
6716 if test x
${all_targets} = xtrue
; then
6718 # We want all 64-bit targets if we either:
6719 # - run on a 64-bit host or
6720 # - already require 64-bit support for some other target or
6721 # - the --enable-64-bit-bfd option was supplied
6722 # Otherwise we only support all 32-bit targets.
6724 # NOTE: This test must be in sync with the corresponding
6727 if test x
${want64} = xfalse
; then
6728 # The cast to long int works around a bug in the HP C Compiler
6729 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6730 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6731 # This bug is HP SR number 8606223364.
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6733 $as_echo_n "checking size of long... " >&6; }
6734 if ${ac_cv_sizeof_long+:} false
; then :
6735 $as_echo_n "(cached) " >&6
6737 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6740 if test "$ac_cv_type_long" = yes; then
6741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6743 as_fn_error
77 "cannot compute sizeof (long)
6744 See \`config.log' for more details" "$LINENO" 5; }
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6752 $as_echo "$ac_cv_sizeof_long" >&6; }
6756 cat >>confdefs.h
<<_ACEOF
6757 #define SIZEOF_LONG $ac_cv_sizeof_long
6761 if test "x${ac_cv_sizeof_long}" = "x8"; then
6765 if test x
${want64} = xtrue
; then
6766 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
6768 TARGET_OBS
='$(ALL_TARGET_OBS)'
6775 # For other settings, only the main target counts.
6778 targ
=$target; .
${srcdir}/configure.tgt
6780 # Fetch the default architecture and default target vector from BFD.
6781 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
6783 # We only want the first architecture, so strip off the others if
6784 # there is more than one.
6785 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
6787 if test "x$targ_archs" != x
; then
6789 cat >>confdefs.h
<<_ACEOF
6790 #define DEFAULT_BFD_ARCH $targ_archs
6794 if test "x$targ_defvec" != x
; then
6796 cat >>confdefs.h
<<_ACEOF
6797 #define DEFAULT_BFD_VEC $targ_defvec
6803 # Check whether --enable-gdbmi was given.
6804 if test "${enable_gdbmi+set}" = set; then :
6805 enableval
=$enable_gdbmi; case $enableval in
6809 as_fn_error $?
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
6815 if test x
"$enable_gdbmi" = xyes
; then
6816 if test -d "$srcdir/mi"; then
6817 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6818 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6819 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6820 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6825 # Check whether --enable-tui was given.
6826 if test "${enable_tui+set}" = set; then :
6827 enableval
=$enable_tui; case $enableval in
6831 as_fn_error $?
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
6839 # Check whether --enable-gdbtk was given.
6840 if test "${enable_gdbtk+set}" = set; then :
6841 enableval
=$enable_gdbtk; case $enableval in
6845 as_fn_error $?
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
6848 if test -d "$srcdir/gdbtk"; then
6855 # We unconditionally disable gdbtk tests on selected platforms.
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
6859 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6863 # Handle optional debuginfod support
6871 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6872 if test -n "$ac_tool_prefix"; then
6873 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6874 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6876 $as_echo_n "checking for $ac_word... " >&6; }
6877 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
6878 $as_echo_n "(cached) " >&6
6882 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6885 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6889 test -z "$as_dir" && as_dir
=.
6890 for ac_exec_ext
in '' $ac_executable_extensions; do
6891 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6892 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6904 if test -n "$PKG_CONFIG"; then
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6906 $as_echo "$PKG_CONFIG" >&6; }
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909 $as_echo "no" >&6; }
6914 if test -z "$ac_cv_path_PKG_CONFIG"; then
6915 ac_pt_PKG_CONFIG
=$PKG_CONFIG
6916 # Extract the first word of "pkg-config", so it can be a program name with args.
6917 set dummy pkg-config
; ac_word
=$2
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6919 $as_echo_n "checking for $ac_word... " >&6; }
6920 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
6921 $as_echo_n "(cached) " >&6
6923 case $ac_pt_PKG_CONFIG in
6925 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6928 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6932 test -z "$as_dir" && as_dir
=.
6933 for ac_exec_ext
in '' $ac_executable_extensions; do
6934 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6935 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6946 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
6947 if test -n "$ac_pt_PKG_CONFIG"; then
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6949 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6952 $as_echo "no" >&6; }
6955 if test "x$ac_pt_PKG_CONFIG" = x
; then
6958 case $cross_compiling:$ac_tool_warned in
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6962 ac_tool_warned
=yes ;;
6964 PKG_CONFIG
=$ac_pt_PKG_CONFIG
6967 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
6971 if test -n "$PKG_CONFIG"; then
6972 _pkg_min_version
=0.9.0
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6974 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6975 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6977 $as_echo "yes" >&6; }
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6980 $as_echo "no" >&6; }
6985 # Handle optional debuginfod support
6987 # Check whether --with-debuginfod was given.
6988 if test "${with_debuginfod+set}" = set; then :
6989 withval
=$with_debuginfod;
6991 with_debuginfod
=auto
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
6995 $as_echo_n "checking whether to use debuginfod... " >&6; }
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
6997 $as_echo "$with_debuginfod" >&6; }
6999 if test "x$with_debuginfod" != xno
; then
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
7003 $as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
7005 if test -n "$DEBUGINFOD_CFLAGS"; then
7006 pkg_cv_DEBUGINFOD_CFLAGS
="$DEBUGINFOD_CFLAGS"
7007 elif test -n "$PKG_CONFIG"; then
7008 if test -n "$PKG_CONFIG" && \
7009 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
7010 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
7012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7013 test $ac_status = 0; }; then
7014 pkg_cv_DEBUGINFOD_CFLAGS
=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
7015 test "x$?" != "x0" && pkg_failed
=yes
7022 if test -n "$DEBUGINFOD_LIBS"; then
7023 pkg_cv_DEBUGINFOD_LIBS
="$DEBUGINFOD_LIBS"
7024 elif test -n "$PKG_CONFIG"; then
7025 if test -n "$PKG_CONFIG" && \
7026 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
7027 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
7029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7030 test $ac_status = 0; }; then
7031 pkg_cv_DEBUGINFOD_LIBS
=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
7032 test "x$?" != "x0" && pkg_failed
=yes
7042 if test $pkg_failed = yes; then
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7044 $as_echo "no" >&6; }
7046 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7047 _pkg_short_errors_supported
=yes
7049 _pkg_short_errors_supported
=no
7051 if test $_pkg_short_errors_supported = yes; then
7052 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
7054 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
7056 # Put the nasty error message in config.log where it belongs
7057 echo "$DEBUGINFOD_PKG_ERRORS" >&5
7059 if test "x$with_debuginfod" = xyes
; then
7060 as_fn_error $?
"\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
7063 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
7065 elif test $pkg_failed = untried
; then
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7067 $as_echo "no" >&6; }
7068 if test "x$with_debuginfod" = xyes
; then
7069 as_fn_error $?
"\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
7072 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
7075 DEBUGINFOD_CFLAGS
=$pkg_cv_DEBUGINFOD_CFLAGS
7076 DEBUGINFOD_LIBS
=$pkg_cv_DEBUGINFOD_LIBS
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7078 $as_echo "yes" >&6; }
7080 $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
7085 $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
7089 # Libunwind support for ia64.
7091 # Check whether --with-libunwind-ia64 was given.
7092 if test "${with_libunwind_ia64+set}" = set; then :
7093 withval
=$with_libunwind_ia64;
7095 with_libunwind_ia64
=auto
7099 # Backward compatibility option.
7100 if test "${with_libunwind+set}" = set; then
7101 if test x
"$with_libunwind_ia64" != xauto
; then
7102 as_fn_error $?
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
7105 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
7106 with_libunwind_ia64
="$with_libunwind"
7109 case "$with_libunwind_ia64" in
7113 for ac_header
in libunwind-ia64.h
7115 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
7116 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
7117 cat >>confdefs.h
<<_ACEOF
7118 #define HAVE_LIBUNWIND_IA64_H 1
7125 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
7128 as_fn_error $?
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
7132 if test x
"$with_libunwind_ia64" = xyes
; then
7133 for ac_header
in libunwind-ia64.h
7135 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
7136 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
7137 cat >>confdefs.h
<<_ACEOF
7138 #define HAVE_LIBUNWIND_IA64_H 1
7145 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
7146 as_fn_error $?
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
7148 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
7149 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
7150 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
7155 # Check whether --with-curses was given.
7156 if test "${with_curses+set}" = set; then :
7157 withval
=$with_curses; opt_curses
=$withval
7162 if test "$opt_curses" = "yes"; then
7166 # Profiling support.
7167 # Check whether --enable-profiling was given.
7168 if test "${enable_profiling+set}" = set; then :
7169 enableval
=$enable_profiling; case $enableval in
7173 as_fn_error $?
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
7180 for ac_func
in monstartup _mcleanup
7182 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7183 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7184 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7185 cat >>confdefs.h
<<_ACEOF
7186 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
7193 $as_echo_n "checking for _etext... " >&6; }
7194 if ${ac_cv_var__etext+:} false
; then :
7195 $as_echo_n "(cached) " >&6
7197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7198 /* end confdefs.h. */
7210 if ac_fn_c_try_link
"$LINENO"; then :
7211 ac_cv_var__etext
=yes
7215 rm -f core conftest.err conftest.
$ac_objext \
7216 conftest
$ac_exeext conftest.
$ac_ext
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
7219 $as_echo "$ac_cv_var__etext" >&6; }
7220 if test "$ac_cv_var__etext" = yes; then
7222 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
7226 $as_echo_n "checking for etext... " >&6; }
7227 if ${ac_cv_var_etext+:} false
; then :
7228 $as_echo_n "(cached) " >&6
7230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7231 /* end confdefs.h. */
7243 if ac_fn_c_try_link
"$LINENO"; then :
7248 rm -f core conftest.err conftest.
$ac_objext \
7249 conftest
$ac_exeext conftest.
$ac_ext
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
7252 $as_echo "$ac_cv_var_etext" >&6; }
7253 if test "$ac_cv_var_etext" = yes; then
7255 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
7258 if test "$enable_profiling" = yes ; then
7259 if test "$ac_cv_func_monstartup" = no ||
test "$ac_cv_func__mcleanup" = no
; then
7260 as_fn_error $?
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
7263 OLD_CFLAGS
="$CFLAGS"
7264 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
7267 $as_echo_n "checking whether $CC supports -pg... " >&6; }
7268 if ${ac_cv_cc_supports_pg+:} false
; then :
7269 $as_echo_n "(cached) " >&6
7271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7272 /* end confdefs.h. */
7282 if ac_fn_c_try_compile
"$LINENO"; then :
7283 ac_cv_cc_supports_pg
=yes
7285 ac_cv_cc_supports_pg
=no
7287 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
7290 $as_echo "$ac_cv_cc_supports_pg" >&6; }
7292 if test "$ac_cv_cc_supports_pg" = no
; then
7293 as_fn_error $?
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
7296 CFLAGS
="$OLD_CFLAGS"
7300 # Check whether --enable-codesign was given.
7301 if test "${enable_codesign+set}" = set; then :
7302 enableval
=$enable_codesign; CODESIGN_CERT
=$enableval
7309 # Check whether --with-pkgversion was given.
7310 if test "${with_pkgversion+set}" = set; then :
7311 withval
=$with_pkgversion; case "$withval" in
7312 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
7314 *) PKGVERSION
="($withval) " ;;
7325 # Check whether --with-bugurl was given.
7326 if test "${with_bugurl+set}" = set; then :
7327 withval
=$with_bugurl; case "$withval" in
7328 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
7331 *) BUGURL
="$withval"
7335 BUGURL
="https://www.gnu.org/software/gdb/bugs/"
7345 REPORT_BUGS_TO
="<$BUGURL>"
7346 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7353 cat >>confdefs.h
<<_ACEOF
7354 #define PKGVERSION "$PKGVERSION"
7358 cat >>confdefs.h
<<_ACEOF
7359 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7363 # --------------------- #
7364 # Checks for programs. #
7365 # --------------------- #
7367 for ac_prog
in gawk mawk nawk
awk
7369 # Extract the first word of "$ac_prog", so it can be a program name with args.
7370 set dummy
$ac_prog; ac_word
=$2
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7372 $as_echo_n "checking for $ac_word... " >&6; }
7373 if ${ac_cv_prog_AWK+:} false
; then :
7374 $as_echo_n "(cached) " >&6
7376 if test -n "$AWK"; then
7377 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7379 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7383 test -z "$as_dir" && as_dir
=.
7384 for ac_exec_ext
in '' $ac_executable_extensions; do
7385 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7386 ac_cv_prog_AWK
="$ac_prog"
7387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7397 if test -n "$AWK"; then
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7399 $as_echo "$AWK" >&6; }
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7402 $as_echo "no" >&6; }
7406 test -n "$AWK" && break
7409 # Find a good install program. We prefer a C program (faster),
7410 # so one script is as good as another. But avoid the broken or
7411 # incompatible versions:
7412 # SysV /etc/install, /usr/sbin/install
7413 # SunOS /usr/etc/install
7414 # IRIX /sbin/install
7416 # AmigaOS /C/install, which installs bootblocks on floppy discs
7417 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7418 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7419 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7420 # OS/2's system install, which has a completely different semantic
7421 # ./install, which can be erroneously created by make from ./install.sh.
7422 # Reject install programs that cannot install multiple files.
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7424 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7425 if test -z "$INSTALL"; then
7426 if ${ac_cv_path_install+:} false
; then :
7427 $as_echo_n "(cached) " >&6
7429 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7433 test -z "$as_dir" && as_dir
=.
7434 # Account for people who put trailing slashes in PATH elements.
7435 case $as_dir/ in #((
7436 .
/ | .
// |
/[cC
]/* | \
7437 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7438 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
7441 # OSF1 and SCO ODT 3.0 have their own names for install.
7442 # Don't use installbsd from OSF since it installs stuff as root
7444 for ac_prog
in ginstall scoinst
install; do
7445 for ac_exec_ext
in '' $ac_executable_extensions; do
7446 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
7447 if test $ac_prog = install &&
7448 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7449 # AIX install. It has an incompatible calling convention.
7451 elif test $ac_prog = install &&
7452 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7453 # program-specific install script used by HP pwplus--don't use.
7456 rm -rf conftest.one conftest.two conftest.dir
7457 echo one
> conftest.one
7458 echo two
> conftest.two
7460 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
7461 test -s conftest.one
&& test -s conftest.two
&&
7462 test -s conftest.dir
/conftest.one
&&
7463 test -s conftest.dir
/conftest.two
7465 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7478 rm -rf conftest.one conftest.two conftest.dir
7481 if test "${ac_cv_path_install+set}" = set; then
7482 INSTALL
=$ac_cv_path_install
7484 # As a last resort, use the slow shell script. Don't cache a
7485 # value for INSTALL within a source directory, because that will
7486 # break other packages using the cache if that directory is
7487 # removed, or if the value is a relative name.
7488 INSTALL
=$ac_install_sh
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7492 $as_echo "$INSTALL" >&6; }
7494 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7495 # It thinks the first close brace ends the variable substitution.
7496 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7498 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7500 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7503 $as_echo_n "checking whether ln -s works... " >&6; }
7505 if test "$LN_S" = "ln -s"; then
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7507 $as_echo "yes" >&6; }
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7510 $as_echo "no, using $LN_S" >&6; }
7513 if test -n "$ac_tool_prefix"; then
7514 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7515 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7517 $as_echo_n "checking for $ac_word... " >&6; }
7518 if ${ac_cv_prog_RANLIB+:} false
; then :
7519 $as_echo_n "(cached) " >&6
7521 if test -n "$RANLIB"; then
7522 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7524 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7528 test -z "$as_dir" && as_dir
=.
7529 for ac_exec_ext
in '' $ac_executable_extensions; do
7530 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7531 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7541 RANLIB
=$ac_cv_prog_RANLIB
7542 if test -n "$RANLIB"; then
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7544 $as_echo "$RANLIB" >&6; }
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547 $as_echo "no" >&6; }
7552 if test -z "$ac_cv_prog_RANLIB"; then
7553 ac_ct_RANLIB
=$RANLIB
7554 # Extract the first word of "ranlib", so it can be a program name with args.
7555 set dummy ranlib
; ac_word
=$2
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7557 $as_echo_n "checking for $ac_word... " >&6; }
7558 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
7559 $as_echo_n "(cached) " >&6
7561 if test -n "$ac_ct_RANLIB"; then
7562 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7564 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7568 test -z "$as_dir" && as_dir
=.
7569 for ac_exec_ext
in '' $ac_executable_extensions; do
7570 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7571 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7581 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7582 if test -n "$ac_ct_RANLIB"; then
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7584 $as_echo "$ac_ct_RANLIB" >&6; }
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7587 $as_echo "no" >&6; }
7590 if test "x$ac_ct_RANLIB" = x
; then
7593 case $cross_compiling:$ac_tool_warned in
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7597 ac_tool_warned
=yes ;;
7599 RANLIB
=$ac_ct_RANLIB
7602 RANLIB
="$ac_cv_prog_RANLIB"
7605 for ac_prog
in 'bison -y' byacc
7607 # Extract the first word of "$ac_prog", so it can be a program name with args.
7608 set dummy
$ac_prog; ac_word
=$2
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7610 $as_echo_n "checking for $ac_word... " >&6; }
7611 if ${ac_cv_prog_YACC+:} false
; then :
7612 $as_echo_n "(cached) " >&6
7614 if test -n "$YACC"; then
7615 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
7617 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7621 test -z "$as_dir" && as_dir
=.
7622 for ac_exec_ext
in '' $ac_executable_extensions; do
7623 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7624 ac_cv_prog_YACC
="$ac_prog"
7625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7634 YACC
=$ac_cv_prog_YACC
7635 if test -n "$YACC"; then
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7637 $as_echo "$YACC" >&6; }
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7640 $as_echo "no" >&6; }
7644 test -n "$YACC" && break
7646 test -n "$YACC" || YACC
="yacc"
7649 if test -n "$ac_tool_prefix"; then
7650 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7651 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7653 $as_echo_n "checking for $ac_word... " >&6; }
7654 if ${ac_cv_prog_AR+:} false
; then :
7655 $as_echo_n "(cached) " >&6
7657 if test -n "$AR"; then
7658 ac_cv_prog_AR
="$AR" # Let the user override the test.
7660 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7664 test -z "$as_dir" && as_dir
=.
7665 for ac_exec_ext
in '' $ac_executable_extensions; do
7666 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7667 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7678 if test -n "$AR"; then
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7680 $as_echo "$AR" >&6; }
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7683 $as_echo "no" >&6; }
7688 if test -z "$ac_cv_prog_AR"; then
7690 # Extract the first word of "ar", so it can be a program name with args.
7691 set dummy
ar; ac_word
=$2
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7693 $as_echo_n "checking for $ac_word... " >&6; }
7694 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
7695 $as_echo_n "(cached) " >&6
7697 if test -n "$ac_ct_AR"; then
7698 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7700 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7704 test -z "$as_dir" && as_dir
=.
7705 for ac_exec_ext
in '' $ac_executable_extensions; do
7706 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7707 ac_cv_prog_ac_ct_AR
="ar"
7708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7717 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7718 if test -n "$ac_ct_AR"; then
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7720 $as_echo "$ac_ct_AR" >&6; }
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7723 $as_echo "no" >&6; }
7726 if test "x$ac_ct_AR" = x
; then
7729 case $cross_compiling:$ac_tool_warned in
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7733 ac_tool_warned
=yes ;;
7741 if test -n "$ac_tool_prefix"; then
7742 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7743 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7745 $as_echo_n "checking for $ac_word... " >&6; }
7746 if ${ac_cv_prog_DLLTOOL+:} false
; then :
7747 $as_echo_n "(cached) " >&6
7749 if test -n "$DLLTOOL"; then
7750 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
7752 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7756 test -z "$as_dir" && as_dir
=.
7757 for ac_exec_ext
in '' $ac_executable_extensions; do
7758 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7759 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
7760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7769 DLLTOOL
=$ac_cv_prog_DLLTOOL
7770 if test -n "$DLLTOOL"; then
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7772 $as_echo "$DLLTOOL" >&6; }
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7775 $as_echo "no" >&6; }
7780 if test -z "$ac_cv_prog_DLLTOOL"; then
7781 ac_ct_DLLTOOL
=$DLLTOOL
7782 # Extract the first word of "dlltool", so it can be a program name with args.
7783 set dummy dlltool
; ac_word
=$2
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7785 $as_echo_n "checking for $ac_word... " >&6; }
7786 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
7787 $as_echo_n "(cached) " >&6
7789 if test -n "$ac_ct_DLLTOOL"; then
7790 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
7792 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7796 test -z "$as_dir" && as_dir
=.
7797 for ac_exec_ext
in '' $ac_executable_extensions; do
7798 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7799 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
7800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7809 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
7810 if test -n "$ac_ct_DLLTOOL"; then
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7812 $as_echo "$ac_ct_DLLTOOL" >&6; }
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7815 $as_echo "no" >&6; }
7818 if test "x$ac_ct_DLLTOOL" = x
; then
7821 case $cross_compiling:$ac_tool_warned in
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7825 ac_tool_warned
=yes ;;
7827 DLLTOOL
=$ac_ct_DLLTOOL
7830 DLLTOOL
="$ac_cv_prog_DLLTOOL"
7833 if test -n "$ac_tool_prefix"; then
7834 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7835 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7837 $as_echo_n "checking for $ac_word... " >&6; }
7838 if ${ac_cv_prog_WINDRES+:} false
; then :
7839 $as_echo_n "(cached) " >&6
7841 if test -n "$WINDRES"; then
7842 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
7844 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7848 test -z "$as_dir" && as_dir
=.
7849 for ac_exec_ext
in '' $ac_executable_extensions; do
7850 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7851 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
7852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7861 WINDRES
=$ac_cv_prog_WINDRES
7862 if test -n "$WINDRES"; then
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7864 $as_echo "$WINDRES" >&6; }
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7867 $as_echo "no" >&6; }
7872 if test -z "$ac_cv_prog_WINDRES"; then
7873 ac_ct_WINDRES
=$WINDRES
7874 # Extract the first word of "windres", so it can be a program name with args.
7875 set dummy windres
; ac_word
=$2
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7877 $as_echo_n "checking for $ac_word... " >&6; }
7878 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
7879 $as_echo_n "(cached) " >&6
7881 if test -n "$ac_ct_WINDRES"; then
7882 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
7884 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7888 test -z "$as_dir" && as_dir
=.
7889 for ac_exec_ext
in '' $ac_executable_extensions; do
7890 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7891 ac_cv_prog_ac_ct_WINDRES
="windres"
7892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7901 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
7902 if test -n "$ac_ct_WINDRES"; then
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7904 $as_echo "$ac_ct_WINDRES" >&6; }
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907 $as_echo "no" >&6; }
7910 if test "x$ac_ct_WINDRES" = x
; then
7913 case $cross_compiling:$ac_tool_warned in
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7917 ac_tool_warned
=yes ;;
7919 WINDRES
=$ac_ct_WINDRES
7922 WINDRES
="$ac_cv_prog_WINDRES"
7928 # Needed for GNU Hurd hosts.
7929 if test -n "$ac_tool_prefix"; then
7930 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7931 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7933 $as_echo_n "checking for $ac_word... " >&6; }
7934 if ${ac_cv_prog_MIG+:} false
; then :
7935 $as_echo_n "(cached) " >&6
7937 if test -n "$MIG"; then
7938 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
7940 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7944 test -z "$as_dir" && as_dir
=.
7945 for ac_exec_ext
in '' $ac_executable_extensions; do
7946 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7947 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
7948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7958 if test -n "$MIG"; then
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
7960 $as_echo "$MIG" >&6; }
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7963 $as_echo "no" >&6; }
7968 if test -z "$ac_cv_prog_MIG"; then
7970 # Extract the first word of "mig", so it can be a program name with args.
7971 set dummy mig
; ac_word
=$2
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7973 $as_echo_n "checking for $ac_word... " >&6; }
7974 if ${ac_cv_prog_ac_ct_MIG+:} false
; then :
7975 $as_echo_n "(cached) " >&6
7977 if test -n "$ac_ct_MIG"; then
7978 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
7980 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7984 test -z "$as_dir" && as_dir
=.
7985 for ac_exec_ext
in '' $ac_executable_extensions; do
7986 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7987 ac_cv_prog_ac_ct_MIG
="mig"
7988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7997 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
7998 if test -n "$ac_ct_MIG"; then
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
8000 $as_echo "$ac_ct_MIG" >&6; }
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8003 $as_echo "no" >&6; }
8006 if test "x$ac_ct_MIG" = x
; then
8009 case $cross_compiling:$ac_tool_warned in
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8012 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8013 ac_tool_warned
=yes ;;
8018 MIG
="$ac_cv_prog_MIG"
8021 if test x
"$MIG" = x
; then
8022 as_fn_error $?
"MIG not found but required for $host hosts" "$LINENO" 5
8027 # ---------------------- #
8028 # Checks for libraries. #
8029 # ---------------------- #
8031 # We might need to link with -lm; most simulators need it.
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
8033 $as_echo_n "checking for main in -lm... " >&6; }
8034 if ${ac_cv_lib_m_main+:} false
; then :
8035 $as_echo_n "(cached) " >&6
8037 ac_check_lib_save_LIBS
=$LIBS
8039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8040 /* end confdefs.h. */
8051 if ac_fn_c_try_link
"$LINENO"; then :
8052 ac_cv_lib_m_main
=yes
8056 rm -f core conftest.err conftest.
$ac_objext \
8057 conftest
$ac_exeext conftest.
$ac_ext
8058 LIBS
=$ac_check_lib_save_LIBS
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
8061 $as_echo "$ac_cv_lib_m_main" >&6; }
8062 if test "x$ac_cv_lib_m_main" = xyes
; then :
8063 cat >>confdefs.h
<<_ACEOF
8072 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
8074 $as_echo_n "checking for library containing gethostbyname... " >&6; }
8075 if ${ac_cv_search_gethostbyname+:} false
; then :
8076 $as_echo_n "(cached) " >&6
8078 ac_func_search_save_LIBS
=$LIBS
8079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8080 /* end confdefs.h. */
8082 /* Override any GCC internal prototype to avoid an error.
8083 Use char because int might match the return type of a GCC
8084 builtin and then its argument prototype would still apply. */
8088 char gethostbyname ();
8092 return gethostbyname ();
8097 for ac_lib
in '' nsl
; do
8098 if test -z "$ac_lib"; then
8099 ac_res
="none required"
8102 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8104 if ac_fn_c_try_link
"$LINENO"; then :
8105 ac_cv_search_gethostbyname
=$ac_res
8107 rm -f core conftest.err conftest.
$ac_objext \
8109 if ${ac_cv_search_gethostbyname+:} false
; then :
8113 if ${ac_cv_search_gethostbyname+:} false
; then :
8116 ac_cv_search_gethostbyname
=no
8119 LIBS
=$ac_func_search_save_LIBS
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
8122 $as_echo "$ac_cv_search_gethostbyname" >&6; }
8123 ac_res
=$ac_cv_search_gethostbyname
8124 if test "$ac_res" != no
; then :
8125 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8130 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
8132 $as_echo_n "checking for library containing socketpair... " >&6; }
8133 if ${ac_cv_search_socketpair+:} false
; then :
8134 $as_echo_n "(cached) " >&6
8136 ac_func_search_save_LIBS
=$LIBS
8137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8138 /* end confdefs.h. */
8140 /* Override any GCC internal prototype to avoid an error.
8141 Use char because int might match the return type of a GCC
8142 builtin and then its argument prototype would still apply. */
8150 return socketpair ();
8155 for ac_lib
in '' socket
; do
8156 if test -z "$ac_lib"; then
8157 ac_res
="none required"
8160 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8162 if ac_fn_c_try_link
"$LINENO"; then :
8163 ac_cv_search_socketpair
=$ac_res
8165 rm -f core conftest.err conftest.
$ac_objext \
8167 if ${ac_cv_search_socketpair+:} false
; then :
8171 if ${ac_cv_search_socketpair+:} false
; then :
8174 ac_cv_search_socketpair
=no
8177 LIBS
=$ac_func_search_save_LIBS
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
8180 $as_echo "$ac_cv_search_socketpair" >&6; }
8181 ac_res
=$ac_cv_search_socketpair
8182 if test "$ac_res" != no
; then :
8183 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8188 # Link in zlib if we can. This allows us to read compressed debug sections.
8190 # Use the system's zlib library.
8191 zlibdir
="-L\$(top_builddir)/../zlib"
8192 zlibinc
="-I\$(top_srcdir)/../zlib"
8194 # Check whether --with-system-zlib was given.
8195 if test "${with_system_zlib+set}" = set; then :
8196 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
8207 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
8208 # On GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
8210 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
8211 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
8212 $as_echo_n "(cached) " >&6
8214 ac_func_search_save_LIBS
=$LIBS
8215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8216 /* end confdefs.h. */
8218 /* Override any GCC internal prototype to avoid an error.
8219 Use char because int might match the return type of a GCC
8220 builtin and then its argument prototype would still apply. */
8224 char kinfo_getvmmap ();
8228 return kinfo_getvmmap ();
8233 for ac_lib
in '' util util-freebsd
; do
8234 if test -z "$ac_lib"; then
8235 ac_res
="none required"
8238 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8240 if ac_fn_c_try_link
"$LINENO"; then :
8241 ac_cv_search_kinfo_getvmmap
=$ac_res
8243 rm -f core conftest.err conftest.
$ac_objext \
8245 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
8249 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
8252 ac_cv_search_kinfo_getvmmap
=no
8255 LIBS
=$ac_func_search_save_LIBS
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
8258 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
8259 ac_res
=$ac_cv_search_kinfo_getvmmap
8260 if test "$ac_res" != no
; then :
8261 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8263 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
8269 if test "X$prefix" = "XNONE"; then
8270 acl_final_prefix
="$ac_default_prefix"
8272 acl_final_prefix
="$prefix"
8274 if test "X$exec_prefix" = "XNONE"; then
8275 acl_final_exec_prefix
='${prefix}'
8277 acl_final_exec_prefix
="$exec_prefix"
8279 acl_save_prefix
="$prefix"
8280 prefix
="$acl_final_prefix"
8281 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8282 prefix
="$acl_save_prefix"
8285 # Check whether --with-gnu-ld was given.
8286 if test "${with_gnu_ld+set}" = set; then :
8287 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8292 # Prepare PATH_SEPARATOR.
8293 # The user is always right.
8294 if test "${PATH_SEPARATOR+set}" != set; then
8295 echo "#! /bin/sh" >conf$$.sh
8296 echo "exit 0" >>conf$$.sh
8298 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8306 if test "$GCC" = yes; then
8307 # Check if gcc -print-prog-name=ld gives a path.
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8309 $as_echo_n "checking for ld used by GCC... " >&6; }
8312 # gcc leaves a trailing carriage return which upsets mingw
8313 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8315 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8318 # Accept absolute paths.
8319 [\\/]* |
[A-Za-z
]:[\\/]*)
8320 re_direlt
='/[^/][^/]*/\.\./'
8321 # Canonicalize the path of ld
8322 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8323 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8324 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8326 test -z "$LD" && LD
="$ac_prog"
8329 # If it fails, then pretend we aren't using GCC.
8333 # If it is relative, then search for the first ld in PATH.
8337 elif test "$with_gnu_ld" = yes; then
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8339 $as_echo_n "checking for GNU ld... " >&6; }
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8342 $as_echo_n "checking for non-GNU ld... " >&6; }
8344 if ${acl_cv_path_LD+:} false
; then :
8345 $as_echo_n "(cached) " >&6
8347 if test -z "$LD"; then
8348 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8349 for ac_dir
in $PATH; do
8350 test -z "$ac_dir" && ac_dir
=.
8351 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8352 acl_cv_path_LD
="$ac_dir/$ac_prog"
8353 # Check to see if the program is GNU ld. I'd rather use --version,
8354 # but apparently some GNU ld's only accept -v.
8355 # Break only if it was the GNU/non-GNU ld that we prefer.
8356 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
8357 test "$with_gnu_ld" != no
&& break
8359 test "$with_gnu_ld" != yes && break
8365 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8369 LD
="$acl_cv_path_LD"
8370 if test -n "$LD"; then
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8372 $as_echo "$LD" >&6; }
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8375 $as_echo "no" >&6; }
8377 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8379 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8380 if ${acl_cv_prog_gnu_ld+:} false
; then :
8381 $as_echo_n "(cached) " >&6
8383 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8384 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8385 acl_cv_prog_gnu_ld
=yes
8387 acl_cv_prog_gnu_ld
=no
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8391 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8392 with_gnu_ld
=$acl_cv_prog_gnu_ld
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8397 $as_echo_n "checking for shared library run path origin... " >&6; }
8398 if ${acl_cv_rpath+:} false
; then :
8399 $as_echo_n "(cached) " >&6
8402 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8403 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8410 $as_echo "$acl_cv_rpath" >&6; }
8412 libext
="$acl_cv_libext"
8413 shlibext
="$acl_cv_shlibext"
8414 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8415 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8416 hardcode_direct
="$acl_cv_hardcode_direct"
8417 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8418 # Check whether --enable-rpath was given.
8419 if test "${enable_rpath+set}" = set; then :
8420 enableval
=$enable_rpath; :
8434 acl_save_prefix
="$prefix"
8435 prefix
="$acl_final_prefix"
8436 acl_save_exec_prefix
="$exec_prefix"
8437 exec_prefix
="$acl_final_exec_prefix"
8439 eval additional_includedir
=\"$includedir\"
8440 eval additional_libdir
=\"$libdir\"
8442 exec_prefix
="$acl_save_exec_prefix"
8443 prefix
="$acl_save_prefix"
8446 # Check whether --with-libiconv-prefix was given.
8447 if test "${with_libiconv_prefix+set}" = set; then :
8448 withval
=$with_libiconv_prefix;
8449 if test "X$withval" = "Xno"; then
8452 if test "X$withval" = "X"; then
8454 acl_save_prefix
="$prefix"
8455 prefix
="$acl_final_prefix"
8456 acl_save_exec_prefix
="$exec_prefix"
8457 exec_prefix
="$acl_final_exec_prefix"
8459 eval additional_includedir
=\"$includedir\"
8460 eval additional_libdir
=\"$libdir\"
8462 exec_prefix
="$acl_save_exec_prefix"
8463 prefix
="$acl_save_prefix"
8466 additional_includedir
="$withval/include"
8467 additional_libdir
="$withval/lib"
8474 # Check whether --with-libiconv-type was given.
8475 if test "${with_libiconv_type+set}" = set; then :
8476 withval
=$with_libiconv_type; with_libiconv_type
=$withval
8478 with_libiconv_type
=auto
8481 lib_type
=`eval echo \$with_libiconv_type`
8488 names_already_handled
=
8489 names_next_round
='iconv '
8490 while test -n "$names_next_round"; do
8491 names_this_round
="$names_next_round"
8493 for name
in $names_this_round; do
8495 for n
in $names_already_handled; do
8496 if test "$n" = "$name"; then
8501 if test -z "$already_handled"; then
8502 names_already_handled
="$names_already_handled $name"
8503 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8504 eval value
=\"\
$HAVE_LIB$uppername\"
8505 if test -n "$value"; then
8506 if test "$value" = yes; then
8507 eval value
=\"\
$LIB$uppername\"
8508 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
8509 eval value
=\"\
$LTLIB$uppername\"
8510 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
8519 if test $use_additional = yes; then
8520 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8521 found_dir
="$additional_libdir"
8522 found_so
="$additional_libdir/lib$name.$shlibext"
8523 if test -f "$additional_libdir/lib$name.la"; then
8524 found_la
="$additional_libdir/lib$name.la"
8526 elif test x
$lib_type != xshared
; then
8527 if test -f "$additional_libdir/lib$name.$libext"; then
8528 found_dir
="$additional_libdir"
8529 found_a
="$additional_libdir/lib$name.$libext"
8530 if test -f "$additional_libdir/lib$name.la"; then
8531 found_la
="$additional_libdir/lib$name.la"
8536 if test "X$found_dir" = "X"; then
8537 for x
in $LDFLAGS $LTLIBICONV; do
8539 acl_save_prefix
="$prefix"
8540 prefix
="$acl_final_prefix"
8541 acl_save_exec_prefix
="$exec_prefix"
8542 exec_prefix
="$acl_final_exec_prefix"
8544 exec_prefix
="$acl_save_exec_prefix"
8545 prefix
="$acl_save_prefix"
8549 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8550 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8552 found_so
="$dir/lib$name.$shlibext"
8553 if test -f "$dir/lib$name.la"; then
8554 found_la
="$dir/lib$name.la"
8556 elif test x
$lib_type != xshared
; then
8557 if test -f "$dir/lib$name.$libext"; then
8559 found_a
="$dir/lib$name.$libext"
8560 if test -f "$dir/lib$name.la"; then
8561 found_la
="$dir/lib$name.la"
8567 if test "X$found_dir" != "X"; then
8572 if test "X$found_dir" != "X"; then
8573 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8574 if test "X$found_so" != "X"; then
8575 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8576 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8579 for x
in $ltrpathdirs; do
8580 if test "X$x" = "X$found_dir"; then
8585 if test -z "$haveit"; then
8586 ltrpathdirs
="$ltrpathdirs $found_dir"
8588 if test "$hardcode_direct" = yes; then
8589 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8591 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8592 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8594 for x
in $rpathdirs; do
8595 if test "X$x" = "X$found_dir"; then
8600 if test -z "$haveit"; then
8601 rpathdirs
="$rpathdirs $found_dir"
8605 for x
in $LDFLAGS $LIBICONV; do
8607 acl_save_prefix
="$prefix"
8608 prefix
="$acl_final_prefix"
8609 acl_save_exec_prefix
="$exec_prefix"
8610 exec_prefix
="$acl_final_exec_prefix"
8612 exec_prefix
="$acl_save_exec_prefix"
8613 prefix
="$acl_save_prefix"
8615 if test "X$x" = "X-L$found_dir"; then
8620 if test -z "$haveit"; then
8621 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8623 if test "$hardcode_minus_L" != no
; then
8624 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8626 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8632 if test "X$found_a" != "X"; then
8633 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
8635 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8638 additional_includedir
=
8639 case "$found_dir" in
8641 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8642 additional_includedir
="$basedir/include"
8645 if test "X$additional_includedir" != "X"; then
8646 if test "X$additional_includedir" != "X/usr/include"; then
8648 if test "X$additional_includedir" = "X/usr/local/include"; then
8649 if test -n "$GCC"; then
8651 linux
*) haveit
=yes;;
8655 if test -z "$haveit"; then
8656 for x
in $CPPFLAGS $INCICONV; do
8658 acl_save_prefix
="$prefix"
8659 prefix
="$acl_final_prefix"
8660 acl_save_exec_prefix
="$exec_prefix"
8661 exec_prefix
="$acl_final_exec_prefix"
8663 exec_prefix
="$acl_save_exec_prefix"
8664 prefix
="$acl_save_prefix"
8666 if test "X$x" = "X-I$additional_includedir"; then
8671 if test -z "$haveit"; then
8672 if test -d "$additional_includedir"; then
8673 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8679 if test -n "$found_la"; then
8680 save_libdir
="$libdir"
8682 */* |
*\\*) .
"$found_la" ;;
8683 *) .
"./$found_la" ;;
8685 libdir
="$save_libdir"
8686 for dep
in $dependency_libs; do
8689 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8690 if test "X$additional_libdir" != "X/usr/lib"; then
8692 if test "X$additional_libdir" = "X/usr/local/lib"; then
8693 if test -n "$GCC"; then
8695 linux
*) haveit
=yes;;
8699 if test -z "$haveit"; then
8701 for x
in $LDFLAGS $LIBICONV; do
8703 acl_save_prefix
="$prefix"
8704 prefix
="$acl_final_prefix"
8705 acl_save_exec_prefix
="$exec_prefix"
8706 exec_prefix
="$acl_final_exec_prefix"
8708 exec_prefix
="$acl_save_exec_prefix"
8709 prefix
="$acl_save_prefix"
8711 if test "X$x" = "X-L$additional_libdir"; then
8716 if test -z "$haveit"; then
8717 if test -d "$additional_libdir"; then
8718 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8722 for x
in $LDFLAGS $LTLIBICONV; do
8724 acl_save_prefix
="$prefix"
8725 prefix
="$acl_final_prefix"
8726 acl_save_exec_prefix
="$exec_prefix"
8727 exec_prefix
="$acl_final_exec_prefix"
8729 exec_prefix
="$acl_save_exec_prefix"
8730 prefix
="$acl_save_prefix"
8732 if test "X$x" = "X-L$additional_libdir"; then
8737 if test -z "$haveit"; then
8738 if test -d "$additional_libdir"; then
8739 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8746 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8747 if test "$enable_rpath" != no
; then
8749 for x
in $rpathdirs; do
8750 if test "X$x" = "X$dir"; then
8755 if test -z "$haveit"; then
8756 rpathdirs
="$rpathdirs $dir"
8759 for x
in $ltrpathdirs; do
8760 if test "X$x" = "X$dir"; then
8765 if test -z "$haveit"; then
8766 ltrpathdirs
="$ltrpathdirs $dir"
8771 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8774 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8777 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
8778 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8784 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
8785 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8786 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8788 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
8789 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
8796 if test "X$rpathdirs" != "X"; then
8797 if test -n "$hardcode_libdir_separator"; then
8799 for found_dir
in $rpathdirs; do
8800 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8802 acl_save_libdir
="$libdir"
8804 eval flag
=\"$hardcode_libdir_flag_spec\"
8805 libdir
="$acl_save_libdir"
8806 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8808 for found_dir
in $rpathdirs; do
8809 acl_save_libdir
="$libdir"
8811 eval flag
=\"$hardcode_libdir_flag_spec\"
8812 libdir
="$acl_save_libdir"
8813 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8817 if test "X$ltrpathdirs" != "X"; then
8818 for found_dir
in $ltrpathdirs; do
8819 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8830 $as_echo_n "checking for iconv... " >&6; }
8831 if ${am_cv_func_iconv+:} false
; then :
8832 $as_echo_n "(cached) " >&6
8835 am_cv_func_iconv
="no, consider installing GNU libiconv"
8837 am_save_CPPFLAGS
="$CPPFLAGS"
8838 CPPFLAGS
="$CPPFLAGS $INCICONV"
8839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8840 /* end confdefs.h. */
8846 iconv_t cd = iconv_open("","");
8847 iconv(cd,NULL,NULL,NULL,NULL);
8853 if ac_fn_c_try_link
"$LINENO"; then :
8854 am_cv_func_iconv
=yes
8856 rm -f core conftest.err conftest.
$ac_objext \
8857 conftest
$ac_exeext conftest.
$ac_ext
8858 CPPFLAGS
="$am_save_CPPFLAGS"
8860 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
8861 for _libs
in .libs _libs
; do
8862 am_save_CPPFLAGS
="$CPPFLAGS"
8863 am_save_LIBS
="$LIBS"
8864 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
8865 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
8866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8867 /* end confdefs.h. */
8873 iconv_t cd = iconv_open("","");
8874 iconv(cd,NULL,NULL,NULL,NULL);
8880 if ac_fn_c_try_link
"$LINENO"; then :
8881 INCICONV
="-I../libiconv/include"
8882 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
8883 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
8885 am_cv_func_iconv
=yes
8887 rm -f core conftest.err conftest.
$ac_objext \
8888 conftest
$ac_exeext conftest.
$ac_ext
8889 CPPFLAGS
="$am_save_CPPFLAGS"
8890 LIBS
="$am_save_LIBS"
8891 if test "$am_cv_func_iconv" = "yes"; then
8897 if test "$am_cv_func_iconv" != yes; then
8898 am_save_CPPFLAGS
="$CPPFLAGS"
8899 am_save_LIBS
="$LIBS"
8900 CPPFLAGS
="$CPPFLAGS $INCICONV"
8901 LIBS
="$LIBS $LIBICONV"
8902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8903 /* end confdefs.h. */
8909 iconv_t cd = iconv_open("","");
8910 iconv(cd,NULL,NULL,NULL,NULL);
8916 if ac_fn_c_try_link
"$LINENO"; then :
8918 am_cv_func_iconv
=yes
8920 rm -f core conftest.err conftest.
$ac_objext \
8921 conftest
$ac_exeext conftest.
$ac_ext
8922 CPPFLAGS
="$am_save_CPPFLAGS"
8923 LIBS
="$am_save_LIBS"
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8928 $as_echo "$am_cv_func_iconv" >&6; }
8929 if test "$am_cv_func_iconv" = yes; then
8931 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8934 if test "$am_cv_lib_iconv" = yes; then
8936 for element
in $INCICONV; do
8938 for x
in $CPPFLAGS; do
8940 acl_save_prefix
="$prefix"
8941 prefix
="$acl_final_prefix"
8942 acl_save_exec_prefix
="$exec_prefix"
8943 exec_prefix
="$acl_final_exec_prefix"
8945 exec_prefix
="$acl_save_exec_prefix"
8946 prefix
="$acl_save_prefix"
8948 if test "X$x" = "X$element"; then
8953 if test -z "$haveit"; then
8954 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8959 $as_echo_n "checking how to link with libiconv... " >&6; }
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8961 $as_echo "$LIBICONV" >&6; }
8969 if test "$am_cv_func_iconv" = yes; then
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8971 $as_echo_n "checking for iconv declaration... " >&6; }
8972 if ${am_cv_proto_iconv+:} false
; then :
8973 $as_echo_n "(cached) " >&6
8976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8977 /* end confdefs.h. */
8985 #if defined(__STDC__) || defined(__cplusplus)
8986 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8999 if ac_fn_c_try_compile
"$LINENO"; then :
9000 am_cv_proto_iconv_arg1
=""
9002 am_cv_proto_iconv_arg1
="const"
9004 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9005 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);"
9008 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9010 }$am_cv_proto_iconv" >&5
9012 }$am_cv_proto_iconv" >&6; }
9014 cat >>confdefs.h
<<_ACEOF
9015 #define ICONV_CONST $am_cv_proto_iconv_arg1
9021 # GDB may fork/exec the iconv program to get the list of supported character
9022 # sets. Allow the user to specify where to find it.
9023 # There are several factors affecting the choice of option name:
9024 # - There is already --with-libiconv-prefix but we can't use it, it specifies
9025 # the build-time location of libiconv files.
9026 # - The program we need to find is iconv, which comes with glibc. The user
9027 # doesn't necessarily have libiconv installed. Therefore naming this
9028 # --with-libiconv-foo feels wrong.
9029 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
9030 # defined to work on directories not files (though it really doesn't know
9032 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
9033 # with --with-libiconv-prefix.
9034 # Putting these together is why the option name is --with-iconv-bin.
9037 # Check whether --with-iconv-bin was given.
9038 if test "${with_iconv_bin+set}" = set; then :
9039 withval
=$with_iconv_bin; iconv_bin
="${withval}"
9041 cat >>confdefs.h
<<_ACEOF
9042 #define ICONV_BIN "${iconv_bin}"
9046 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9047 if test "x$prefix" = xNONE
; then
9048 test_prefix
=/usr
/local
9053 test_prefix
=$exec_prefix
9056 case ${iconv_bin} in
9057 "${test_prefix}"|
"${test_prefix}/"*|\
9058 '${exec_prefix}'|
'${exec_prefix}/'*)
9063 cat >>confdefs.h
<<_ACEOF
9064 #define ICONV_BIN_RELOCATABLE $value
9072 # For the TUI, we need enhanced curses functionality.
9073 if test x
"$enable_tui" != xno
; then
9078 if test x
"$prefer_curses" = xyes
; then
9079 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9080 # curses library because the latter might not provide all the
9081 # functionality we need. However, this leads to problems on systems
9082 # where the linker searches /usr/local/lib, but the compiler doesn't
9083 # search /usr/local/include, if ncurses is installed in /usr/local. A
9084 # default installation of ncurses on alpha*-dec-osf* will lead to such
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
9087 $as_echo_n "checking for library containing waddstr... " >&6; }
9088 if ${ac_cv_search_waddstr+:} false
; then :
9089 $as_echo_n "(cached) " >&6
9091 ac_func_search_save_LIBS
=$LIBS
9092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9093 /* end confdefs.h. */
9095 /* Override any GCC internal prototype to avoid an error.
9096 Use char because int might match the return type of a GCC
9097 builtin and then its argument prototype would still apply. */
9110 for ac_lib
in '' ncursesw ncurses cursesX curses
; do
9111 if test -z "$ac_lib"; then
9112 ac_res
="none required"
9115 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9117 if ac_fn_c_try_link
"$LINENO"; then :
9118 ac_cv_search_waddstr
=$ac_res
9120 rm -f core conftest.err conftest.
$ac_objext \
9122 if ${ac_cv_search_waddstr+:} false
; then :
9126 if ${ac_cv_search_waddstr+:} false
; then :
9129 ac_cv_search_waddstr
=no
9132 LIBS
=$ac_func_search_save_LIBS
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
9135 $as_echo "$ac_cv_search_waddstr" >&6; }
9136 ac_res
=$ac_cv_search_waddstr
9137 if test "$ac_res" != no
; then :
9138 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9143 if test "$ac_cv_search_waddstr" != no
; then
9148 # Check whether we should enable the TUI, but only do so if we really
9150 if test x
"$enable_tui" != xno
; then
9151 if test -d "$srcdir/tui"; then
9152 if test "$curses_found" != no
; then
9153 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
9154 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
9155 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9156 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
9158 if test x
"$enable_tui" = xyes
; then
9159 as_fn_error $?
"no enhanced curses library found; disable TUI" "$LINENO" 5
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
9162 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9168 # Since GDB uses Readline, we need termcap functionality. In many
9169 # cases this will be provided by the curses library, but some systems
9170 # have a separate termcap library, or no curses library at all.
9174 if test -d "$srcdir/libtermcap"; then
9175 LIBS
="../libtermcap/libtermcap.a $LIBS"
9176 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
9179 ac_cv_search_tgetent
="none required"
9183 # These are the libraries checked by Readline.
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9185 $as_echo_n "checking for library containing tgetent... " >&6; }
9186 if ${ac_cv_search_tgetent+:} false
; then :
9187 $as_echo_n "(cached) " >&6
9189 ac_func_search_save_LIBS
=$LIBS
9190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9191 /* end confdefs.h. */
9193 /* Override any GCC internal prototype to avoid an error.
9194 Use char because int might match the return type of a GCC
9195 builtin and then its argument prototype would still apply. */
9208 for ac_lib
in '' termcap tinfow tinfo curses ncursesw ncurses
; do
9209 if test -z "$ac_lib"; then
9210 ac_res
="none required"
9213 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9215 if ac_fn_c_try_link
"$LINENO"; then :
9216 ac_cv_search_tgetent
=$ac_res
9218 rm -f core conftest.err conftest.
$ac_objext \
9220 if ${ac_cv_search_tgetent+:} false
; then :
9224 if ${ac_cv_search_tgetent+:} false
; then :
9227 ac_cv_search_tgetent
=no
9230 LIBS
=$ac_func_search_save_LIBS
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9233 $as_echo "$ac_cv_search_tgetent" >&6; }
9234 ac_res
=$ac_cv_search_tgetent
9235 if test "$ac_res" != no
; then :
9236 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9241 if test "$ac_cv_search_tgetent" = no
; then
9242 CONFIG_OBS
="$CONFIG_OBS stub-termcap.o"
9246 # Check whether --with-system-readline was given.
9247 if test "${with_system_readline+set}" = set; then :
9248 withval
=$with_system_readline;
9252 if test "$with_system_readline" = yes; then
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system readline is new enough" >&5
9254 $as_echo_n "checking whether system readline is new enough... " >&6; }
9255 if ${gdb_cv_readline_ok+:} false
; then :
9256 $as_echo_n "(cached) " >&6
9258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9259 /* end confdefs.h. */
9261 #include <readline/readline.h>
9265 #if RL_VERSION_MAJOR < 7
9266 # error "readline version 7 required"
9272 if ac_fn_c_try_compile
"$LINENO"; then :
9273 gdb_cv_readline_ok
=yes
9275 gdb_cv_readline_ok
=no
9277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_readline_ok" >&5
9280 $as_echo "$gdb_cv_readline_ok" >&6; }
9281 if test "$gdb_cv_readline_ok" != yes; then
9282 as_fn_error $?
"system readline is not new enough" "$LINENO" 5
9288 READLINE_TEXI_INCFLAG
=
9290 READLINE
='$(READLINE_DIR)/libreadline.a'
9291 READLINE_DEPS
='$(READLINE)'
9292 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
9293 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
9300 # Generate jit-reader.h
9302 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
9305 # The cast to long int works around a bug in the HP C Compiler
9306 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9307 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9308 # This bug is HP SR number 8606223364.
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
9310 $as_echo_n "checking size of unsigned long long... " >&6; }
9311 if ${ac_cv_sizeof_unsigned_long_long+:} false
; then :
9312 $as_echo_n "(cached) " >&6
9314 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
9317 if test "$ac_cv_type_unsigned_long_long" = yes; then
9318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9320 as_fn_error
77 "cannot compute sizeof (unsigned long long)
9321 See \`config.log' for more details" "$LINENO" 5; }
9323 ac_cv_sizeof_unsigned_long_long
=0
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
9329 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
9333 cat >>confdefs.h
<<_ACEOF
9334 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
9338 # The cast to long int works around a bug in the HP C Compiler
9339 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9340 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9341 # This bug is HP SR number 8606223364.
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
9343 $as_echo_n "checking size of unsigned long... " >&6; }
9344 if ${ac_cv_sizeof_unsigned_long+:} false
; then :
9345 $as_echo_n "(cached) " >&6
9347 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
9350 if test "$ac_cv_type_unsigned_long" = yes; then
9351 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9353 as_fn_error
77 "cannot compute sizeof (unsigned long)
9354 See \`config.log' for more details" "$LINENO" 5; }
9356 ac_cv_sizeof_unsigned_long
=0
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
9362 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
9366 cat >>confdefs.h
<<_ACEOF
9367 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9371 # The cast to long int works around a bug in the HP C Compiler
9372 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9373 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9374 # This bug is HP SR number 8606223364.
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
9376 $as_echo_n "checking size of unsigned __int128... " >&6; }
9377 if ${ac_cv_sizeof_unsigned___int128+:} false
; then :
9378 $as_echo_n "(cached) " >&6
9380 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
9383 if test "$ac_cv_type_unsigned___int128" = yes; then
9384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9386 as_fn_error
77 "cannot compute sizeof (unsigned __int128)
9387 See \`config.log' for more details" "$LINENO" 5; }
9389 ac_cv_sizeof_unsigned___int128
=0
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
9395 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
9399 cat >>confdefs.h
<<_ACEOF
9400 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
9405 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9406 TARGET_PTR
="unsigned long"
9407 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9408 TARGET_PTR
="unsigned long long"
9409 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
9410 TARGET_PTR
="unsigned __int128"
9412 TARGET_PTR
="unsigned long"
9416 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9420 $as_echo_n "checking for library containing dlopen... " >&6; }
9421 if ${ac_cv_search_dlopen+:} false
; then :
9422 $as_echo_n "(cached) " >&6
9424 ac_func_search_save_LIBS
=$LIBS
9425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9426 /* end confdefs.h. */
9428 /* Override any GCC internal prototype to avoid an error.
9429 Use char because int might match the return type of a GCC
9430 builtin and then its argument prototype would still apply. */
9443 for ac_lib
in '' dl
; do
9444 if test -z "$ac_lib"; then
9445 ac_res
="none required"
9448 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9450 if ac_fn_c_try_link
"$LINENO"; then :
9451 ac_cv_search_dlopen
=$ac_res
9453 rm -f core conftest.err conftest.
$ac_objext \
9455 if ${ac_cv_search_dlopen+:} false
; then :
9459 if ${ac_cv_search_dlopen+:} false
; then :
9462 ac_cv_search_dlopen
=no
9465 LIBS
=$ac_func_search_save_LIBS
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9468 $as_echo "$ac_cv_search_dlopen" >&6; }
9469 ac_res
=$ac_cv_search_dlopen
9470 if test "$ac_res" != no
; then :
9471 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9478 # Check whether --with-jit-reader-dir was given.
9479 if test "${with_jit_reader_dir+set}" = set; then :
9480 withval
=$with_jit_reader_dir;
9481 JIT_READER_DIR
=$withval
9483 JIT_READER_DIR
=${libdir}/gdb
9487 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9488 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9489 ac_define_dir
=`eval echo $JIT_READER_DIR`
9490 ac_define_dir
=`eval echo $ac_define_dir`
9492 cat >>confdefs.h
<<_ACEOF
9493 #define JIT_READER_DIR "$ac_define_dir"
9499 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9500 if test "x$prefix" = xNONE
; then
9501 test_prefix
=/usr
/local
9506 test_prefix
=$exec_prefix
9509 case ${ac_define_dir} in
9510 "${test_prefix}"|
"${test_prefix}/"*|\
9511 '${exec_prefix}'|
'${exec_prefix}/'*)
9516 cat >>confdefs.h
<<_ACEOF
9517 #define JIT_READER_DIR_RELOCATABLE $value
9524 # Check whether --with-expat was given.
9525 if test "${with_expat+set}" = set; then :
9526 withval
=$with_expat;
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9532 $as_echo_n "checking whether to use expat... " >&6; }
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9534 $as_echo "$with_expat" >&6; }
9536 if test "${with_expat}" = no
; then
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9538 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9551 acl_save_prefix
="$prefix"
9552 prefix
="$acl_final_prefix"
9553 acl_save_exec_prefix
="$exec_prefix"
9554 exec_prefix
="$acl_final_exec_prefix"
9556 eval additional_includedir
=\"$includedir\"
9557 eval additional_libdir
=\"$libdir\"
9559 exec_prefix
="$acl_save_exec_prefix"
9560 prefix
="$acl_save_prefix"
9563 # Check whether --with-libexpat-prefix was given.
9564 if test "${with_libexpat_prefix+set}" = set; then :
9565 withval
=$with_libexpat_prefix;
9566 if test "X$withval" = "Xno"; then
9569 if test "X$withval" = "X"; then
9571 acl_save_prefix
="$prefix"
9572 prefix
="$acl_final_prefix"
9573 acl_save_exec_prefix
="$exec_prefix"
9574 exec_prefix
="$acl_final_exec_prefix"
9576 eval additional_includedir
=\"$includedir\"
9577 eval additional_libdir
=\"$libdir\"
9579 exec_prefix
="$acl_save_exec_prefix"
9580 prefix
="$acl_save_prefix"
9583 additional_includedir
="$withval/include"
9584 additional_libdir
="$withval/lib"
9591 # Check whether --with-libexpat-type was given.
9592 if test "${with_libexpat_type+set}" = set; then :
9593 withval
=$with_libexpat_type; with_libexpat_type
=$withval
9595 with_libexpat_type
=auto
9598 lib_type
=`eval echo \$with_libexpat_type`
9605 names_already_handled
=
9606 names_next_round
='expat '
9607 while test -n "$names_next_round"; do
9608 names_this_round
="$names_next_round"
9610 for name
in $names_this_round; do
9612 for n
in $names_already_handled; do
9613 if test "$n" = "$name"; then
9618 if test -z "$already_handled"; then
9619 names_already_handled
="$names_already_handled $name"
9620 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9621 eval value
=\"\
$HAVE_LIB$uppername\"
9622 if test -n "$value"; then
9623 if test "$value" = yes; then
9624 eval value
=\"\
$LIB$uppername\"
9625 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
9626 eval value
=\"\
$LTLIB$uppername\"
9627 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
9636 if test $use_additional = yes; then
9637 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9638 found_dir
="$additional_libdir"
9639 found_so
="$additional_libdir/lib$name.$shlibext"
9640 if test -f "$additional_libdir/lib$name.la"; then
9641 found_la
="$additional_libdir/lib$name.la"
9643 elif test x
$lib_type != xshared
; then
9644 if test -f "$additional_libdir/lib$name.$libext"; then
9645 found_dir
="$additional_libdir"
9646 found_a
="$additional_libdir/lib$name.$libext"
9647 if test -f "$additional_libdir/lib$name.la"; then
9648 found_la
="$additional_libdir/lib$name.la"
9653 if test "X$found_dir" = "X"; then
9654 for x
in $LDFLAGS $LTLIBEXPAT; do
9656 acl_save_prefix
="$prefix"
9657 prefix
="$acl_final_prefix"
9658 acl_save_exec_prefix
="$exec_prefix"
9659 exec_prefix
="$acl_final_exec_prefix"
9661 exec_prefix
="$acl_save_exec_prefix"
9662 prefix
="$acl_save_prefix"
9666 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9667 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9669 found_so
="$dir/lib$name.$shlibext"
9670 if test -f "$dir/lib$name.la"; then
9671 found_la
="$dir/lib$name.la"
9673 elif test x
$lib_type != xshared
; then
9674 if test -f "$dir/lib$name.$libext"; then
9676 found_a
="$dir/lib$name.$libext"
9677 if test -f "$dir/lib$name.la"; then
9678 found_la
="$dir/lib$name.la"
9684 if test "X$found_dir" != "X"; then
9689 if test "X$found_dir" != "X"; then
9690 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
9691 if test "X$found_so" != "X"; then
9692 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9693 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9696 for x
in $ltrpathdirs; do
9697 if test "X$x" = "X$found_dir"; then
9702 if test -z "$haveit"; then
9703 ltrpathdirs
="$ltrpathdirs $found_dir"
9705 if test "$hardcode_direct" = yes; then
9706 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9708 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9709 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9711 for x
in $rpathdirs; do
9712 if test "X$x" = "X$found_dir"; then
9717 if test -z "$haveit"; then
9718 rpathdirs
="$rpathdirs $found_dir"
9722 for x
in $LDFLAGS $LIBEXPAT; do
9724 acl_save_prefix
="$prefix"
9725 prefix
="$acl_final_prefix"
9726 acl_save_exec_prefix
="$exec_prefix"
9727 exec_prefix
="$acl_final_exec_prefix"
9729 exec_prefix
="$acl_save_exec_prefix"
9730 prefix
="$acl_save_prefix"
9732 if test "X$x" = "X-L$found_dir"; then
9737 if test -z "$haveit"; then
9738 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
9740 if test "$hardcode_minus_L" != no
; then
9741 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9743 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9749 if test "X$found_a" != "X"; then
9750 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
9752 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
9755 additional_includedir
=
9756 case "$found_dir" in
9758 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9759 additional_includedir
="$basedir/include"
9762 if test "X$additional_includedir" != "X"; then
9763 if test "X$additional_includedir" != "X/usr/include"; then
9765 if test "X$additional_includedir" = "X/usr/local/include"; then
9766 if test -n "$GCC"; then
9768 linux
*) haveit
=yes;;
9772 if test -z "$haveit"; then
9773 for x
in $CPPFLAGS $INCEXPAT; do
9775 acl_save_prefix
="$prefix"
9776 prefix
="$acl_final_prefix"
9777 acl_save_exec_prefix
="$exec_prefix"
9778 exec_prefix
="$acl_final_exec_prefix"
9780 exec_prefix
="$acl_save_exec_prefix"
9781 prefix
="$acl_save_prefix"
9783 if test "X$x" = "X-I$additional_includedir"; then
9788 if test -z "$haveit"; then
9789 if test -d "$additional_includedir"; then
9790 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
9796 if test -n "$found_la"; then
9797 save_libdir
="$libdir"
9799 */* |
*\\*) .
"$found_la" ;;
9800 *) .
"./$found_la" ;;
9802 libdir
="$save_libdir"
9803 for dep
in $dependency_libs; do
9806 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9807 if test "X$additional_libdir" != "X/usr/lib"; then
9809 if test "X$additional_libdir" = "X/usr/local/lib"; then
9810 if test -n "$GCC"; then
9812 linux
*) haveit
=yes;;
9816 if test -z "$haveit"; then
9818 for x
in $LDFLAGS $LIBEXPAT; do
9820 acl_save_prefix
="$prefix"
9821 prefix
="$acl_final_prefix"
9822 acl_save_exec_prefix
="$exec_prefix"
9823 exec_prefix
="$acl_final_exec_prefix"
9825 exec_prefix
="$acl_save_exec_prefix"
9826 prefix
="$acl_save_prefix"
9828 if test "X$x" = "X-L$additional_libdir"; then
9833 if test -z "$haveit"; then
9834 if test -d "$additional_libdir"; then
9835 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
9839 for x
in $LDFLAGS $LTLIBEXPAT; do
9841 acl_save_prefix
="$prefix"
9842 prefix
="$acl_final_prefix"
9843 acl_save_exec_prefix
="$exec_prefix"
9844 exec_prefix
="$acl_final_exec_prefix"
9846 exec_prefix
="$acl_save_exec_prefix"
9847 prefix
="$acl_save_prefix"
9849 if test "X$x" = "X-L$additional_libdir"; then
9854 if test -z "$haveit"; then
9855 if test -d "$additional_libdir"; then
9856 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
9863 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9864 if test "$enable_rpath" != no
; then
9866 for x
in $rpathdirs; do
9867 if test "X$x" = "X$dir"; then
9872 if test -z "$haveit"; then
9873 rpathdirs
="$rpathdirs $dir"
9876 for x
in $ltrpathdirs; do
9877 if test "X$x" = "X$dir"; then
9882 if test -z "$haveit"; then
9883 ltrpathdirs
="$ltrpathdirs $dir"
9888 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9891 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9894 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
9895 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
9901 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
9902 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9903 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
9905 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l:lib$name.$libext"
9906 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l:lib$name.$libext"
9913 if test "X$rpathdirs" != "X"; then
9914 if test -n "$hardcode_libdir_separator"; then
9916 for found_dir
in $rpathdirs; do
9917 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9919 acl_save_libdir
="$libdir"
9921 eval flag
=\"$hardcode_libdir_flag_spec\"
9922 libdir
="$acl_save_libdir"
9923 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9925 for found_dir
in $rpathdirs; do
9926 acl_save_libdir
="$libdir"
9928 eval flag
=\"$hardcode_libdir_flag_spec\"
9929 libdir
="$acl_save_libdir"
9930 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9934 if test "X$ltrpathdirs" != "X"; then
9935 for found_dir
in $ltrpathdirs; do
9936 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9941 ac_save_CPPFLAGS
="$CPPFLAGS"
9943 for element
in $INCEXPAT; do
9945 for x
in $CPPFLAGS; do
9947 acl_save_prefix
="$prefix"
9948 prefix
="$acl_final_prefix"
9949 acl_save_exec_prefix
="$exec_prefix"
9950 exec_prefix
="$acl_final_exec_prefix"
9952 exec_prefix
="$acl_save_exec_prefix"
9953 prefix
="$acl_save_prefix"
9955 if test "X$x" = "X$element"; then
9960 if test -z "$haveit"; then
9961 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9967 $as_echo_n "checking for libexpat... " >&6; }
9968 if ${ac_cv_libexpat+:} false
; then :
9969 $as_echo_n "(cached) " >&6
9972 ac_save_LIBS
="$LIBS"
9973 LIBS
="$LIBS $LIBEXPAT"
9974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9975 /* end confdefs.h. */
9980 XML_Parser p = XML_ParserCreate (0);
9985 if ac_fn_c_try_link
"$LINENO"; then :
9990 rm -f core conftest.err conftest.
$ac_objext \
9991 conftest
$ac_exeext conftest.
$ac_ext
9992 LIBS
="$ac_save_LIBS"
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
9996 $as_echo "$ac_cv_libexpat" >&6; }
9997 if test "$ac_cv_libexpat" = yes; then
10000 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
10003 $as_echo_n "checking how to link with libexpat... " >&6; }
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
10005 $as_echo "$LIBEXPAT" >&6; }
10008 CPPFLAGS
="$ac_save_CPPFLAGS"
10018 if test "$HAVE_LIBEXPAT" != yes; then
10019 if test "$with_expat" = yes; then
10020 as_fn_error $?
"expat is missing or unusable" "$LINENO" 5
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
10023 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
10027 LIBS
="$LIBS $LIBEXPAT"
10028 for ac_func
in XML_StopParser
10030 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
10031 if test "x$ac_cv_func_XML_StopParser" = xyes
; then :
10032 cat >>confdefs.h
<<_ACEOF
10033 #define HAVE_XML_STOPPARSER 1
10044 # Check whether --with-mpfr was given.
10045 if test "${with_mpfr+set}" = set; then :
10046 withval
=$with_mpfr;
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5
10052 $as_echo_n "checking whether to use MPFR... " >&6; }
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5
10054 $as_echo "$with_mpfr" >&6; }
10056 if test "${with_mpfr}" = no
; then
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5
10058 $as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;}
10071 acl_save_prefix
="$prefix"
10072 prefix
="$acl_final_prefix"
10073 acl_save_exec_prefix
="$exec_prefix"
10074 exec_prefix
="$acl_final_exec_prefix"
10076 eval additional_includedir
=\"$includedir\"
10077 eval additional_libdir
=\"$libdir\"
10079 exec_prefix
="$acl_save_exec_prefix"
10080 prefix
="$acl_save_prefix"
10083 # Check whether --with-libmpfr-prefix was given.
10084 if test "${with_libmpfr_prefix+set}" = set; then :
10085 withval
=$with_libmpfr_prefix;
10086 if test "X$withval" = "Xno"; then
10089 if test "X$withval" = "X"; then
10091 acl_save_prefix
="$prefix"
10092 prefix
="$acl_final_prefix"
10093 acl_save_exec_prefix
="$exec_prefix"
10094 exec_prefix
="$acl_final_exec_prefix"
10096 eval additional_includedir
=\"$includedir\"
10097 eval additional_libdir
=\"$libdir\"
10099 exec_prefix
="$acl_save_exec_prefix"
10100 prefix
="$acl_save_prefix"
10103 additional_includedir
="$withval/include"
10104 additional_libdir
="$withval/lib"
10111 # Check whether --with-libmpfr-type was given.
10112 if test "${with_libmpfr_type+set}" = set; then :
10113 withval
=$with_libmpfr_type; with_libmpfr_type
=$withval
10115 with_libmpfr_type
=auto
10118 lib_type
=`eval echo \$with_libmpfr_type`
10125 names_already_handled
=
10126 names_next_round
='mpfr gmp'
10127 while test -n "$names_next_round"; do
10128 names_this_round
="$names_next_round"
10130 for name
in $names_this_round; do
10132 for n
in $names_already_handled; do
10133 if test "$n" = "$name"; then
10134 already_handled
=yes
10138 if test -z "$already_handled"; then
10139 names_already_handled
="$names_already_handled $name"
10140 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10141 eval value
=\"\
$HAVE_LIB$uppername\"
10142 if test -n "$value"; then
10143 if test "$value" = yes; then
10144 eval value
=\"\
$LIB$uppername\"
10145 test -z "$value" || LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$value"
10146 eval value
=\"\
$LTLIB$uppername\"
10147 test -z "$value" || LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$value"
10156 if test $use_additional = yes; then
10157 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10158 found_dir
="$additional_libdir"
10159 found_so
="$additional_libdir/lib$name.$shlibext"
10160 if test -f "$additional_libdir/lib$name.la"; then
10161 found_la
="$additional_libdir/lib$name.la"
10163 elif test x
$lib_type != xshared
; then
10164 if test -f "$additional_libdir/lib$name.$libext"; then
10165 found_dir
="$additional_libdir"
10166 found_a
="$additional_libdir/lib$name.$libext"
10167 if test -f "$additional_libdir/lib$name.la"; then
10168 found_la
="$additional_libdir/lib$name.la"
10173 if test "X$found_dir" = "X"; then
10174 for x
in $LDFLAGS $LTLIBMPFR; do
10176 acl_save_prefix
="$prefix"
10177 prefix
="$acl_final_prefix"
10178 acl_save_exec_prefix
="$exec_prefix"
10179 exec_prefix
="$acl_final_exec_prefix"
10181 exec_prefix
="$acl_save_exec_prefix"
10182 prefix
="$acl_save_prefix"
10186 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10187 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10189 found_so
="$dir/lib$name.$shlibext"
10190 if test -f "$dir/lib$name.la"; then
10191 found_la
="$dir/lib$name.la"
10193 elif test x
$lib_type != xshared
; then
10194 if test -f "$dir/lib$name.$libext"; then
10196 found_a
="$dir/lib$name.$libext"
10197 if test -f "$dir/lib$name.la"; then
10198 found_la
="$dir/lib$name.la"
10204 if test "X$found_dir" != "X"; then
10209 if test "X$found_dir" != "X"; then
10210 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$found_dir -l$name"
10211 if test "X$found_so" != "X"; then
10212 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10213 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10216 for x
in $ltrpathdirs; do
10217 if test "X$x" = "X$found_dir"; then
10222 if test -z "$haveit"; then
10223 ltrpathdirs
="$ltrpathdirs $found_dir"
10225 if test "$hardcode_direct" = yes; then
10226 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10228 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10229 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10231 for x
in $rpathdirs; do
10232 if test "X$x" = "X$found_dir"; then
10237 if test -z "$haveit"; then
10238 rpathdirs
="$rpathdirs $found_dir"
10242 for x
in $LDFLAGS $LIBMPFR; do
10244 acl_save_prefix
="$prefix"
10245 prefix
="$acl_final_prefix"
10246 acl_save_exec_prefix
="$exec_prefix"
10247 exec_prefix
="$acl_final_exec_prefix"
10249 exec_prefix
="$acl_save_exec_prefix"
10250 prefix
="$acl_save_prefix"
10252 if test "X$x" = "X-L$found_dir"; then
10257 if test -z "$haveit"; then
10258 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir"
10260 if test "$hardcode_minus_L" != no
; then
10261 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10263 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10269 if test "X$found_a" != "X"; then
10270 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_a"
10272 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir -l$name"
10275 additional_includedir
=
10276 case "$found_dir" in
10278 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10279 additional_includedir
="$basedir/include"
10282 if test "X$additional_includedir" != "X"; then
10283 if test "X$additional_includedir" != "X/usr/include"; then
10285 if test "X$additional_includedir" = "X/usr/local/include"; then
10286 if test -n "$GCC"; then
10288 linux
*) haveit
=yes;;
10292 if test -z "$haveit"; then
10293 for x
in $CPPFLAGS $INCMPFR; do
10295 acl_save_prefix
="$prefix"
10296 prefix
="$acl_final_prefix"
10297 acl_save_exec_prefix
="$exec_prefix"
10298 exec_prefix
="$acl_final_exec_prefix"
10300 exec_prefix
="$acl_save_exec_prefix"
10301 prefix
="$acl_save_prefix"
10303 if test "X$x" = "X-I$additional_includedir"; then
10308 if test -z "$haveit"; then
10309 if test -d "$additional_includedir"; then
10310 INCMPFR
="${INCMPFR}${INCMPFR:+ }-I$additional_includedir"
10316 if test -n "$found_la"; then
10317 save_libdir
="$libdir"
10318 case "$found_la" in
10319 */* |
*\\*) .
"$found_la" ;;
10320 *) .
"./$found_la" ;;
10322 libdir
="$save_libdir"
10323 for dep
in $dependency_libs; do
10326 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10327 if test "X$additional_libdir" != "X/usr/lib"; then
10329 if test "X$additional_libdir" = "X/usr/local/lib"; then
10330 if test -n "$GCC"; then
10332 linux
*) haveit
=yes;;
10336 if test -z "$haveit"; then
10338 for x
in $LDFLAGS $LIBMPFR; do
10340 acl_save_prefix
="$prefix"
10341 prefix
="$acl_final_prefix"
10342 acl_save_exec_prefix
="$exec_prefix"
10343 exec_prefix
="$acl_final_exec_prefix"
10345 exec_prefix
="$acl_save_exec_prefix"
10346 prefix
="$acl_save_prefix"
10348 if test "X$x" = "X-L$additional_libdir"; then
10353 if test -z "$haveit"; then
10354 if test -d "$additional_libdir"; then
10355 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$additional_libdir"
10359 for x
in $LDFLAGS $LTLIBMPFR; do
10361 acl_save_prefix
="$prefix"
10362 prefix
="$acl_final_prefix"
10363 acl_save_exec_prefix
="$exec_prefix"
10364 exec_prefix
="$acl_final_exec_prefix"
10366 exec_prefix
="$acl_save_exec_prefix"
10367 prefix
="$acl_save_prefix"
10369 if test "X$x" = "X-L$additional_libdir"; then
10374 if test -z "$haveit"; then
10375 if test -d "$additional_libdir"; then
10376 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$additional_libdir"
10383 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10384 if test "$enable_rpath" != no
; then
10386 for x
in $rpathdirs; do
10387 if test "X$x" = "X$dir"; then
10392 if test -z "$haveit"; then
10393 rpathdirs
="$rpathdirs $dir"
10396 for x
in $ltrpathdirs; do
10397 if test "X$x" = "X$dir"; then
10402 if test -z "$haveit"; then
10403 ltrpathdirs
="$ltrpathdirs $dir"
10408 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10411 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10414 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$dep"
10415 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$dep"
10421 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
10422 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10423 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l$name"
10425 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l:lib$name.$libext"
10426 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l:lib$name.$libext"
10433 if test "X$rpathdirs" != "X"; then
10434 if test -n "$hardcode_libdir_separator"; then
10436 for found_dir
in $rpathdirs; do
10437 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10439 acl_save_libdir
="$libdir"
10441 eval flag
=\"$hardcode_libdir_flag_spec\"
10442 libdir
="$acl_save_libdir"
10443 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10445 for found_dir
in $rpathdirs; do
10446 acl_save_libdir
="$libdir"
10447 libdir
="$found_dir"
10448 eval flag
=\"$hardcode_libdir_flag_spec\"
10449 libdir
="$acl_save_libdir"
10450 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10454 if test "X$ltrpathdirs" != "X"; then
10455 for found_dir
in $ltrpathdirs; do
10456 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-R$found_dir"
10461 ac_save_CPPFLAGS
="$CPPFLAGS"
10463 for element
in $INCMPFR; do
10465 for x
in $CPPFLAGS; do
10467 acl_save_prefix
="$prefix"
10468 prefix
="$acl_final_prefix"
10469 acl_save_exec_prefix
="$exec_prefix"
10470 exec_prefix
="$acl_final_exec_prefix"
10472 exec_prefix
="$acl_save_exec_prefix"
10473 prefix
="$acl_save_prefix"
10475 if test "X$x" = "X$element"; then
10480 if test -z "$haveit"; then
10481 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpfr" >&5
10487 $as_echo_n "checking for libmpfr... " >&6; }
10488 if ${ac_cv_libmpfr+:} false
; then :
10489 $as_echo_n "(cached) " >&6
10492 ac_save_LIBS
="$LIBS"
10493 LIBS
="$LIBS $LIBMPFR"
10494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10495 /* end confdefs.h. */
10500 mpfr_exp_t exp; mpfr_t x;
10501 mpfr_frexp (&exp, x, x, MPFR_RNDN);
10506 if ac_fn_c_try_link
"$LINENO"; then :
10511 rm -f core conftest.err conftest.
$ac_objext \
10512 conftest
$ac_exeext conftest.
$ac_ext
10513 LIBS
="$ac_save_LIBS"
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmpfr" >&5
10517 $as_echo "$ac_cv_libmpfr" >&6; }
10518 if test "$ac_cv_libmpfr" = yes; then
10521 $as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libmpfr" >&5
10524 $as_echo_n "checking how to link with libmpfr... " >&6; }
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPFR" >&5
10526 $as_echo "$LIBMPFR" >&6; }
10529 CPPFLAGS
="$ac_save_CPPFLAGS"
10539 if test "$HAVE_LIBMPFR" != yes; then
10540 if test "$with_mpfr" = yes; then
10541 as_fn_error $?
"MPFR is missing or unusable" "$LINENO" 5
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR is missing or unusable; some features may be unavailable." >&5
10544 $as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;}
10549 # --------------------- #
10550 # Check for libpython. #
10551 # --------------------- #
10558 # Check whether --with-python was given.
10559 if test "${with_python+set}" = set; then :
10560 withval
=$with_python;
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10566 $as_echo_n "checking whether to use python... " >&6; }
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10568 $as_echo "$with_python" >&6; }
10570 if test "${with_python}" = no
; then
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10572 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10575 case "${with_python}" in
10577 if test -d "${with_python}"; then
10578 # Assume the python binary is ${with_python}/bin/python.
10579 python_prog
="${with_python}/bin/python"
10581 # If python does not exit ${with_python}/bin, then try in
10582 # ${with_python}. On Windows/MinGW, this is where the Python
10584 if test ! -x "${python_prog}"; then
10585 python_prog
="${with_python}/python"
10588 if test ! -x "${python_prog}"; then
10589 # Fall back to gdb 7.0/7.1 behaviour.
10590 python_prog
=missing
10591 python_prefix
=${with_python}
10593 elif test -x "${with_python}"; then
10594 # While we can't run python compiled for $host (unless host == build),
10595 # the user could write a script that provides the needed information,
10596 # so we support that.
10597 python_prog
=${with_python}
10600 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
10604 # Disallow --with-python=foo/bar.
10605 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
10608 # The user has either specified auto, yes, or the name of the python
10609 # program assumed to be in $PATH.
10611 case "${with_python}" in
10613 if test "${build}" = "${host}"; then
10614 # Extract the first word of "python", so it can be a program name with args.
10615 set dummy python
; ac_word
=$2
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10617 $as_echo_n "checking for $ac_word... " >&6; }
10618 if ${ac_cv_path_python_prog_path+:} false
; then :
10619 $as_echo_n "(cached) " >&6
10621 case $python_prog_path in
10623 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10626 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10627 for as_dir
in $PATH
10630 test -z "$as_dir" && as_dir
=.
10631 for ac_exec_ext
in '' $ac_executable_extensions; do
10632 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10633 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10641 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10645 python_prog_path
=$ac_cv_path_python_prog_path
10646 if test -n "$python_prog_path"; then
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10648 $as_echo "$python_prog_path" >&6; }
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10651 $as_echo "no" >&6; }
10655 if test "${python_prog_path}" = missing
; then
10656 python_prog
=missing
10658 python_prog
=${python_prog_path}
10661 # Not much we can do except assume the cross-compiler will find the
10663 python_prog
=missing
10667 # While we can't run python compiled for $host (unless host == build),
10668 # the user could write a script that provides the needed information,
10669 # so we support that.
10670 python_prog
="${with_python}"
10671 # Extract the first word of "${python_prog}", so it can be a program name with args.
10672 set dummy
${python_prog}; ac_word
=$2
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10674 $as_echo_n "checking for $ac_word... " >&6; }
10675 if ${ac_cv_path_python_prog_path+:} false
; then :
10676 $as_echo_n "(cached) " >&6
10678 case $python_prog_path in
10680 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10683 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10684 for as_dir
in $PATH
10687 test -z "$as_dir" && as_dir
=.
10688 for ac_exec_ext
in '' $ac_executable_extensions; do
10689 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10690 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10698 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10702 python_prog_path
=$ac_cv_path_python_prog_path
10703 if test -n "$python_prog_path"; then
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10705 $as_echo "$python_prog_path" >&6; }
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10708 $as_echo "no" >&6; }
10712 if test "${python_prog_path}" = missing
; then
10713 as_fn_error $?
"unable to find python program ${python_prog}" "$LINENO" 5
10719 if test "${python_prog}" != missing
; then
10720 # We have a python program to use, but it may be too old.
10721 # Don't flag an error for --with-python=auto (the default).
10722 have_python_config
=yes
10723 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
10724 if test $?
!= 0; then
10725 have_python_config
=failed
10726 if test "${with_python}" != auto
; then
10727 as_fn_error $?
"failure running python-config --includes" "$LINENO" 5
10730 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10731 if test $?
!= 0; then
10732 have_python_config
=failed
10733 if test "${with_python}" != auto
; then
10734 as_fn_error $?
"failure running python-config --ldflags" "$LINENO" 5
10737 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10738 if test $?
!= 0; then
10739 have_python_config
=failed
10740 if test "${with_python}" != auto
; then
10741 as_fn_error $?
"failure running python-config --exec-prefix" "$LINENO" 5
10745 # We do not have a python executable we can use to determine where
10746 # to find the Python headers and libs. We cannot guess the include
10747 # path from the python_prefix either, because that include path
10748 # depends on the Python version. So, there is nothing much we can
10749 # do except assume that the compiler will be able to find those files.
10752 have_python_config
=no
10755 # If we have python-config, only try the configuration it provides.
10756 # Otherwise fallback on the old way of trying different versions of
10760 if test "${have_python_config}" = yes; then
10763 new_CPPFLAGS
=${python_includes}
10764 new_LIBS
=${python_libs}
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
10766 $as_echo_n "checking for python... " >&6; }
10767 save_CPPFLAGS
=$CPPFLAGS
10769 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10770 LIBS
="$new_LIBS $LIBS"
10771 found_usable_python
=no
10772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10773 /* end confdefs.h. */
10774 #include "Python.h"
10783 if ac_fn_c_try_link
"$LINENO"; then :
10785 found_usable_python
=yes
10786 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10787 PYTHON_LIBS
=$new_LIBS
10789 rm -f core conftest.err conftest.
$ac_objext \
10790 conftest
$ac_exeext conftest.
$ac_ext
10791 CPPFLAGS
=$save_CPPFLAGS
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10794 $as_echo "${found_usable_python}" >&6; }
10796 elif test "${have_python_config}" != failed
; then
10797 if test "${have_libpython}" = no
; then
10800 new_CPPFLAGS
=${python_includes}
10801 new_LIBS
="-lpython2.7 ${python_libs}"
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
10803 $as_echo_n "checking for python... " >&6; }
10804 save_CPPFLAGS
=$CPPFLAGS
10806 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10807 LIBS
="$new_LIBS $LIBS"
10808 found_usable_python
=no
10809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10810 /* end confdefs.h. */
10811 #include "Python.h"
10820 if ac_fn_c_try_link
"$LINENO"; then :
10822 found_usable_python
=yes
10823 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10824 PYTHON_LIBS
=$new_LIBS
10826 rm -f core conftest.err conftest.
$ac_objext \
10827 conftest
$ac_exeext conftest.
$ac_ext
10828 CPPFLAGS
=$save_CPPFLAGS
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10831 $as_echo "${found_usable_python}" >&6; }
10834 if test "${have_libpython}" = no
; then
10837 new_CPPFLAGS
=${python_includes}
10838 new_LIBS
="-lpython2.6 ${python_libs}"
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
10840 $as_echo_n "checking for python... " >&6; }
10841 save_CPPFLAGS
=$CPPFLAGS
10843 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10844 LIBS
="$new_LIBS $LIBS"
10845 found_usable_python
=no
10846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10847 /* end confdefs.h. */
10848 #include "Python.h"
10857 if ac_fn_c_try_link
"$LINENO"; then :
10859 found_usable_python
=yes
10860 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10861 PYTHON_LIBS
=$new_LIBS
10863 rm -f core conftest.err conftest.
$ac_objext \
10864 conftest
$ac_exeext conftest.
$ac_ext
10865 CPPFLAGS
=$save_CPPFLAGS
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10868 $as_echo "${found_usable_python}" >&6; }
10873 if test "${have_libpython}" = no
; then
10874 case "${with_python}" in
10876 as_fn_error $?
"python is missing or unusable" "$LINENO" 5
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10880 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10883 as_fn_error $?
"no usable python found at ${with_python}" "$LINENO" 5
10887 if test -n "${python_prefix}"; then
10889 cat >>confdefs.h
<<_ACEOF
10890 #define WITH_PYTHON_PATH "${python_prefix}"
10894 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
10895 if test "x$prefix" = xNONE
; then
10896 test_prefix
=/usr
/local
10898 test_prefix
=$prefix
10901 test_prefix
=$exec_prefix
10904 case ${python_prefix} in
10905 "${test_prefix}"|
"${test_prefix}/"*|\
10906 '${exec_prefix}'|
'${exec_prefix}/'*)
10911 cat >>confdefs.h
<<_ACEOF
10912 #define PYTHON_PATH_RELOCATABLE $value
10921 # Check whether --with-python-libdir was given.
10922 if test "${with_python_libdir+set}" = set; then :
10923 withval
=$with_python_libdir;
10926 # If no python libdir is specified then select one based on
10927 # python's prefix path.
10928 if test -n "${python_prefix}"; then
10929 with_python_libdir
=${python_prefix}/lib
10935 if test "${have_libpython}" != no
; then
10937 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10939 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10940 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10941 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
10942 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
10943 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
10945 if test -n "${with_python_libdir}"; then
10947 cat >>confdefs.h
<<_ACEOF
10948 #define WITH_PYTHON_LIBDIR "${with_python_libdir}"
10952 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
10953 if test "x$prefix" = xNONE
; then
10954 test_prefix
=/usr
/local
10956 test_prefix
=$prefix
10959 test_prefix
=$exec_prefix
10962 case ${with_python_libdir} in
10963 "${test_prefix}"|
"${test_prefix}/"*|\
10964 '${exec_prefix}'|
'${exec_prefix}/'*)
10969 cat >>confdefs.h
<<_ACEOF
10970 #define PYTHON_LIBDIR_RELOCATABLE $value
10976 # Flags needed to compile Python code (taken from python-config --cflags).
10977 # We cannot call python-config directly because it will output whatever was
10978 # used when compiling the Python interpreter itself, including flags which
10979 # would make the python-related objects be compiled differently from the
10980 # rest of GDB (e.g., -O2 and -fPIC).
10981 if test "${GCC}" = yes; then
10982 tentative_python_cflags
="-fno-strict-aliasing -fwrapv"
10983 # Python headers recommend -DNDEBUG, but it's unclear if that just
10984 # refers to building Python itself. In release mode, though, it
10985 # doesn't hurt for the Python code in gdb to follow.
10986 $development || tentative_python_cflags
="$tentative_python_cflags -DNDEBUG"
10989 if test "x${tentative_python_cflags}" != x
; then
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10991 $as_echo_n "checking compiler flags for python code... " >&6; }
10992 for flag
in ${tentative_python_cflags}; do
10993 # Check that the compiler accepts it
10994 saved_CFLAGS
="$CFLAGS"
10995 CFLAGS
="$CFLAGS $flag"
10996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10997 /* end confdefs.h. */
11007 if ac_fn_c_try_compile
"$LINENO"; then :
11008 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
11010 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11011 CFLAGS
="$saved_CFLAGS"
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
11014 $as_echo "${PYTHON_CFLAGS}" >&6; }
11017 # On x64 Windows, Python's include headers, and pyconfig.h in
11018 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
11019 # version of Windows. Unfortunately, MS_WIN64 is only defined if
11020 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
11021 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
11022 # The issue was reported to the Python community, but still isn't
11023 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
11025 case "$gdb_host" in
11027 if test "${GCC}" = yes; then
11028 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
11033 # Even if Python support is not compiled in, we need to have this file
11034 # included so that the "python" command, et.al., still exists.
11035 CONFIG_OBS
="$CONFIG_OBS python/python.o"
11036 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
11039 # Work around Python http://bugs.python.org/issue10112. See also
11040 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
11041 # no effect. Note that the only test after this that uses Python is
11042 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
11043 # run without -export-dynamic too.
11044 PYTHON_LIBS
=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
11049 if test "${have_libpython}" != no
; then
11051 HAVE_PYTHON_FALSE
='#'
11053 HAVE_PYTHON_TRUE
='#'
11058 # -------------------- #
11059 # Check for libguile. #
11060 # -------------------- #
11067 # Check whether --with-guile was given.
11068 if test "${with_guile+set}" = set; then :
11069 withval
=$with_guile;
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
11075 $as_echo_n "checking whether to use guile... " >&6; }
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
11077 $as_echo "$with_guile" >&6; }
11079 # Extract the first word of "pkg-config", so it can be a program name with args.
11080 set dummy pkg-config
; ac_word
=$2
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11082 $as_echo_n "checking for $ac_word... " >&6; }
11083 if ${ac_cv_path_pkg_config_prog_path+:} false
; then :
11084 $as_echo_n "(cached) " >&6
11086 case $pkg_config_prog_path in
11088 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
11091 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11092 for as_dir
in $PATH
11095 test -z "$as_dir" && as_dir
=.
11096 for ac_exec_ext
in '' $ac_executable_extensions; do
11097 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11098 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
11099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11106 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
11110 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
11111 if test -n "$pkg_config_prog_path"; then
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
11113 $as_echo "$pkg_config_prog_path" >&6; }
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11116 $as_echo "no" >&6; }
11121 try_guile_versions
="guile-3.0 guile-2.2 guile-2.0"
11123 case "${with_guile}" in
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
11126 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
11129 if test "${pkg_config_prog_path}" = "missing"; then
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
11131 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
11134 pkg_config
=${pkg_config_prog_path}
11135 guile_version_list
=${try_guile_versions}
11138 found_usable_guile
=checking
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11140 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11141 for guile_version
in ${guile_version_list}; do
11142 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11143 if test $?
!= 0; then
11146 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11147 if test $?
!= 0; then
11148 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11150 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11151 if test $?
!= 0; then
11152 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11154 found_usable_guile
=${guile_version}
11157 if test "${found_usable_guile}" = "checking"; then
11158 if test "${flag_errors}" = "yes"; then
11159 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11161 found_usable_guile
=no
11164 if test "${found_usable_guile}" != no
; then
11165 save_CPPFLAGS
=$CPPFLAGS
11167 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11168 LIBS
="$LIBS $new_LIBS"
11169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11170 /* end confdefs.h. */
11171 #include "libguile.h"
11180 if ac_fn_c_try_link
"$LINENO"; then :
11182 GUILE_CPPFLAGS
=$new_CPPFLAGS
11183 GUILE_LIBS
=$new_LIBS
11185 found_usable_guile
=no
11187 rm -f core conftest.err conftest.
$ac_objext \
11188 conftest
$ac_exeext conftest.
$ac_ext
11189 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11190 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11192 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11197 CPPFLAGS
=$save_CPPFLAGS
11199 if test "${found_usable_guile}" = no
; then
11200 if test "${flag_errors}" = yes; then
11201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11203 as_fn_error $?
"linking guile version ${guile_version} test program failed
11204 See \`config.log' for more details" "$LINENO" 5; }
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11209 $as_echo "${found_usable_guile}" >&6; }
11214 if test "${pkg_config_prog_path}" = "missing"; then
11215 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11218 pkg_config
=${pkg_config_prog_path}
11219 guile_version_list
=${try_guile_versions}
11222 found_usable_guile
=checking
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11224 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11225 for guile_version
in ${guile_version_list}; do
11226 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11227 if test $?
!= 0; then
11230 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11231 if test $?
!= 0; then
11232 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11234 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11235 if test $?
!= 0; then
11236 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11238 found_usable_guile
=${guile_version}
11241 if test "${found_usable_guile}" = "checking"; then
11242 if test "${flag_errors}" = "yes"; then
11243 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11245 found_usable_guile
=no
11248 if test "${found_usable_guile}" != no
; then
11249 save_CPPFLAGS
=$CPPFLAGS
11251 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11252 LIBS
="$LIBS $new_LIBS"
11253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11254 /* end confdefs.h. */
11255 #include "libguile.h"
11264 if ac_fn_c_try_link
"$LINENO"; then :
11266 GUILE_CPPFLAGS
=$new_CPPFLAGS
11267 GUILE_LIBS
=$new_LIBS
11269 found_usable_guile
=no
11271 rm -f core conftest.err conftest.
$ac_objext \
11272 conftest
$ac_exeext conftest.
$ac_ext
11273 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11274 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11276 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11281 CPPFLAGS
=$save_CPPFLAGS
11283 if test "${found_usable_guile}" = no
; then
11284 if test "${flag_errors}" = yes; then
11285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11287 as_fn_error $?
"linking guile version ${guile_version} test program failed
11288 See \`config.log' for more details" "$LINENO" 5; }
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11293 $as_echo "${found_usable_guile}" >&6; }
11297 if test -x "${with_guile}"; then
11299 pkg_config
=${with_guile}
11300 guile_version_list
=${try_guile_versions}
11303 found_usable_guile
=checking
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11305 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11306 for guile_version
in ${guile_version_list}; do
11307 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11308 if test $?
!= 0; then
11311 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11312 if test $?
!= 0; then
11313 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11315 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11316 if test $?
!= 0; then
11317 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11319 found_usable_guile
=${guile_version}
11322 if test "${found_usable_guile}" = "checking"; then
11323 if test "${flag_errors}" = "yes"; then
11324 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11326 found_usable_guile
=no
11329 if test "${found_usable_guile}" != no
; then
11330 save_CPPFLAGS
=$CPPFLAGS
11332 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11333 LIBS
="$LIBS $new_LIBS"
11334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11335 /* end confdefs.h. */
11336 #include "libguile.h"
11345 if ac_fn_c_try_link
"$LINENO"; then :
11347 GUILE_CPPFLAGS
=$new_CPPFLAGS
11348 GUILE_LIBS
=$new_LIBS
11350 found_usable_guile
=no
11352 rm -f core conftest.err conftest.
$ac_objext \
11353 conftest
$ac_exeext conftest.
$ac_ext
11354 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11355 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11357 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11362 CPPFLAGS
=$save_CPPFLAGS
11364 if test "${found_usable_guile}" = no
; then
11365 if test "${flag_errors}" = yes; then
11366 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11368 as_fn_error $?
"linking guile version ${guile_version} test program failed
11369 See \`config.log' for more details" "$LINENO" 5; }
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11374 $as_echo "${found_usable_guile}" >&6; }
11377 as_fn_error $?
"Guile config program not executable: ${with_guile}" "$LINENO" 5
11381 # Disallow --with=guile="" and --with-guile=foo/bar.
11382 as_fn_error $?
"invalid value for --with-guile" "$LINENO" 5
11385 # A space separate list of guile versions to try, in order.
11386 if test "${pkg_config_prog_path}" = "missing"; then
11387 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11390 pkg_config
=${pkg_config_prog_path}
11391 guile_version_list
=${with_guile}
11394 found_usable_guile
=checking
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11396 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11397 for guile_version
in ${guile_version_list}; do
11398 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11399 if test $?
!= 0; then
11402 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11403 if test $?
!= 0; then
11404 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11406 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11407 if test $?
!= 0; then
11408 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11410 found_usable_guile
=${guile_version}
11413 if test "${found_usable_guile}" = "checking"; then
11414 if test "${flag_errors}" = "yes"; then
11415 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11417 found_usable_guile
=no
11420 if test "${found_usable_guile}" != no
; then
11421 save_CPPFLAGS
=$CPPFLAGS
11423 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11424 LIBS
="$LIBS $new_LIBS"
11425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11426 /* end confdefs.h. */
11427 #include "libguile.h"
11436 if ac_fn_c_try_link
"$LINENO"; then :
11438 GUILE_CPPFLAGS
=$new_CPPFLAGS
11439 GUILE_LIBS
=$new_LIBS
11441 found_usable_guile
=no
11443 rm -f core conftest.err conftest.
$ac_objext \
11444 conftest
$ac_exeext conftest.
$ac_ext
11445 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11446 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11448 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11453 CPPFLAGS
=$save_CPPFLAGS
11455 if test "${found_usable_guile}" = no
; then
11456 if test "${flag_errors}" = yes; then
11457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11459 as_fn_error $?
"linking guile version ${guile_version} test program failed
11460 See \`config.log' for more details" "$LINENO" 5; }
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11465 $as_echo "${found_usable_guile}" >&6; }
11470 if test "${have_libguile}" != no
; then
11471 case "${with_guile}" in
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11475 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11476 if ${ac_cv_guild_program_name+:} false
; then :
11477 $as_echo_n "(cached) " >&6
11479 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
11481 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11482 # the 'guild' and 'bindir' variables. In that case, try to guess
11483 # what the program name is, at the risk of getting it wrong if
11484 # Guile was configured with '--program-suffix' or similar.
11485 if test "x$ac_cv_guild_program_name" = "x"; then
11486 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
11487 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11492 $as_echo "$ac_cv_guild_program_name" >&6; }
11494 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11495 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11498 GUILD
="$ac_cv_guild_program_name"
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11505 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11506 if ${ac_cv_guild_program_name+:} false
; then :
11507 $as_echo_n "(cached) " >&6
11509 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
11511 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11512 # the 'guild' and 'bindir' variables. In that case, try to guess
11513 # what the program name is, at the risk of getting it wrong if
11514 # Guile was configured with '--program-suffix' or similar.
11515 if test "x$ac_cv_guild_program_name" = "x"; then
11516 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
11517 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11522 $as_echo "$ac_cv_guild_program_name" >&6; }
11524 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11525 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11528 GUILD
="$ac_cv_guild_program_name"
11535 if test "$cross_compiling" = no
; then
11538 GUILD_TARGET_FLAG
="--target=$host"
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
11545 $as_echo_n "checking whether guild supports this host... " >&6; }
11546 if ${ac_cv_guild_ok+:} false
; then :
11547 $as_echo_n "(cached) " >&6
11549 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
11550 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
11557 $as_echo "$ac_cv_guild_ok" >&6; }
11559 if test "$ac_cv_guild_ok" = no
; then
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
11562 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
11566 if test "${have_libguile}" != no
; then
11568 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
11570 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
11571 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
11572 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
11573 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
11574 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
11577 save_CPPFLAGS
="$CPPFLAGS"
11579 CPPFLAGS
="$GUILE_CPPFLAGS"
11580 for ac_func
in scm_new_smob
11582 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
11583 if test "x$ac_cv_func_scm_new_smob" = xyes
; then :
11584 cat >>confdefs.h
<<_ACEOF
11585 #define HAVE_SCM_NEW_SMOB 1
11592 CPPFLAGS
="$save_CPPFLAGS"
11594 # Even if Guile support is not compiled in, we need to have these files
11596 CONFIG_OBS
="$CONFIG_OBS guile/guile.o"
11597 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
11601 if test "${have_libguile}" != no
; then
11603 HAVE_GUILE_FALSE
='#'
11605 HAVE_GUILE_TRUE
='#'
11610 # ---------------------------- #
11611 # Check for source highlight. #
11612 # ---------------------------- #
11617 # Check whether --enable-source-highlight was given.
11618 if test "${enable_source_highlight+set}" = set; then :
11619 enableval
=$enable_source_highlight; case "${enableval}" in
11620 yes) enable_source_highlight
=yes ;;
11621 no
) enable_source_highlight
=no
;;
11622 *) as_fn_error $?
"bad value ${enableval} for source-highlight option" "$LINENO" 5 ;;
11625 enable_source_highlight
=auto
11629 if test "${enable_source_highlight}" != "no"; then
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
11631 $as_echo_n "checking for the source-highlight library... " >&6; }
11632 if test "${pkg_config_prog_path}" = "missing"; then
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
11634 $as_echo "no - pkg-config not found" >&6; }
11635 if test "${enable_source_highlight}" = "yes"; then
11636 as_fn_error $?
"pkg-config was not found in your system" "$LINENO" 5
11641 as_fn_error $?
"source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
11645 if ${pkg_config_prog_path} --exists source-highlight
; then
11646 SRCHIGH_CFLAGS
=`${pkg_config_prog_path} --cflags source-highlight`
11647 SRCHIGH_LIBS
=`${pkg_config_prog_path} --libs source-highlight`
11649 $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11652 $as_echo "yes" >&6; }
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11655 $as_echo "no" >&6; }
11656 if test "${enable_source_highlight}" = "yes"; then
11657 as_fn_error $?
"source-highlight was not found in your system" "$LINENO" 5
11665 # ------------------------- #
11666 # Checks for header files. #
11667 # ------------------------- #
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11670 $as_echo_n "checking for ANSI C header files... " >&6; }
11671 if ${ac_cv_header_stdc+:} false
; then :
11672 $as_echo_n "(cached) " >&6
11674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11675 /* end confdefs.h. */
11676 #include <stdlib.h>
11677 #include <stdarg.h>
11678 #include <string.h>
11689 if ac_fn_c_try_compile
"$LINENO"; then :
11690 ac_cv_header_stdc
=yes
11692 ac_cv_header_stdc
=no
11694 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11696 if test $ac_cv_header_stdc = yes; then
11697 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11699 /* end confdefs.h. */
11700 #include <string.h>
11703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11704 $EGREP "memchr" >/dev
/null
2>&1; then :
11707 ac_cv_header_stdc
=no
11713 if test $ac_cv_header_stdc = yes; then
11714 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11716 /* end confdefs.h. */
11717 #include <stdlib.h>
11720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11721 $EGREP "free" >/dev
/null
2>&1; then :
11724 ac_cv_header_stdc
=no
11730 if test $ac_cv_header_stdc = yes; then
11731 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11732 if test "$cross_compiling" = yes; then :
11735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11736 /* end confdefs.h. */
11738 #include <stdlib.h>
11739 #if ((' ' & 0x0FF) == 0x020)
11740 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11741 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11743 # define ISLOWER(c) \
11744 (('a' <= (c) && (c) <= 'i') \
11745 || ('j' <= (c) && (c) <= 'r') \
11746 || ('s' <= (c) && (c) <= 'z'))
11747 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11750 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11755 for (i = 0; i < 256; i++)
11756 if (XOR (islower (i), ISLOWER (i))
11757 || toupper (i) != TOUPPER (i))
11762 if ac_fn_c_try_run
"$LINENO"; then :
11765 ac_cv_header_stdc
=no
11767 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11768 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11774 $as_echo "$ac_cv_header_stdc" >&6; }
11775 if test $ac_cv_header_stdc = yes; then
11777 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11781 # elf_hp.h is for HP/UX 64-bit shared library support.
11782 for ac_header
in nlist.h machine
/reg.h \
11784 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
11785 sys
/resource.h sys
/ptrace.h ptrace.h \
11786 sys
/reg.h sys
/debugreg.h \
11789 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11790 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11791 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
11792 cat >>confdefs.h
<<_ACEOF
11793 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11800 for ac_header
in sys
/user.h
11802 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
11803 # include <sys/param.h>
11807 if test "x$ac_cv_header_sys_user_h" = xyes
; then :
11808 cat >>confdefs.h
<<_ACEOF
11809 #define HAVE_SYS_USER_H 1
11817 for ac_header
in curses.h cursesX.h ncurses.h ncursesw
/ncurses.h ncurses
/ncurses.h ncurses
/term.h
11819 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11820 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11821 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
11822 cat >>confdefs.h
<<_ACEOF
11823 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11830 for ac_header
in term.h
11832 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
11833 # include <curses.h>
11837 if test "x$ac_cv_header_term_h" = xyes
; then :
11838 cat >>confdefs.h
<<_ACEOF
11839 #define HAVE_TERM_H 1
11847 for ac_header
in sys
/sockets.h
11849 ac_fn_c_check_header_mongrel
"$LINENO" "sys/sockets.h" "ac_cv_header_sys_sockets_h" "$ac_includes_default"
11850 if test "x$ac_cv_header_sys_sockets_h" = xyes
; then :
11851 cat >>confdefs.h
<<_ACEOF
11852 #define HAVE_SYS_SOCKETS_H 1
11859 for ac_header
in ws2tcpip.h
11861 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
11862 if test "x$ac_cv_header_ws2tcpip_h" = xyes
; then :
11863 cat >>confdefs.h
<<_ACEOF
11864 #define HAVE_WS2TCPIP_H 1
11872 # ------------------------- #
11873 # Checks for declarations. #
11874 # ------------------------- #
11877 # Check for presence and size of long long.
11878 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
11879 if test "x$ac_cv_type_long_long" = xyes
; then :
11881 cat >>confdefs.h
<<_ACEOF
11882 #define HAVE_LONG_LONG 1
11885 # The cast to long int works around a bug in the HP C Compiler
11886 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11887 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11888 # This bug is HP SR number 8606223364.
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
11890 $as_echo_n "checking size of long long... " >&6; }
11891 if ${ac_cv_sizeof_long_long+:} false
; then :
11892 $as_echo_n "(cached) " >&6
11894 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
11897 if test "$ac_cv_type_long_long" = yes; then
11898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11900 as_fn_error
77 "cannot compute sizeof (long long)
11901 See \`config.log' for more details" "$LINENO" 5; }
11903 ac_cv_sizeof_long_long
=0
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
11909 $as_echo "$ac_cv_sizeof_long_long" >&6; }
11913 cat >>confdefs.h
<<_ACEOF
11914 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11921 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
11922 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
11923 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
11929 cat >>confdefs.h
<<_ACEOF
11930 #define HAVE_DECL_BASENAME $ac_have_decl
11932 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
11933 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
11939 cat >>confdefs.h
<<_ACEOF
11940 #define HAVE_DECL_FFS $ac_have_decl
11942 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
11943 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
11949 cat >>confdefs.h
<<_ACEOF
11950 #define HAVE_DECL_ASPRINTF $ac_have_decl
11952 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
11953 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
11959 cat >>confdefs.h
<<_ACEOF
11960 #define HAVE_DECL_VASPRINTF $ac_have_decl
11962 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11963 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
11969 cat >>confdefs.h
<<_ACEOF
11970 #define HAVE_DECL_SNPRINTF $ac_have_decl
11972 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
11973 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
11979 cat >>confdefs.h
<<_ACEOF
11980 #define HAVE_DECL_VSNPRINTF $ac_have_decl
11983 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
11984 if test "x$ac_cv_have_decl_strtol" = xyes
; then :
11990 cat >>confdefs.h
<<_ACEOF
11991 #define HAVE_DECL_STRTOL $ac_have_decl
11993 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
11994 if test "x$ac_cv_have_decl_strtoul" = xyes
; then :
12000 cat >>confdefs.h
<<_ACEOF
12001 #define HAVE_DECL_STRTOUL $ac_have_decl
12003 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
12004 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
12010 cat >>confdefs.h
<<_ACEOF
12011 #define HAVE_DECL_STRTOLL $ac_have_decl
12013 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
12014 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
12020 cat >>confdefs.h
<<_ACEOF
12021 #define HAVE_DECL_STRTOULL $ac_have_decl
12024 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12025 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
12031 cat >>confdefs.h
<<_ACEOF
12032 #define HAVE_DECL_STRVERSCMP $ac_have_decl
12037 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12038 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12044 cat >>confdefs.h
<<_ACEOF
12045 #define HAVE_DECL_SNPRINTF $ac_have_decl
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12050 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12051 if ${am_cv_val_LC_MESSAGES+:} false
; then :
12052 $as_echo_n "(cached) " >&6
12054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12055 /* end confdefs.h. */
12056 #include <locale.h>
12065 if ac_fn_c_try_link
"$LINENO"; then :
12066 am_cv_val_LC_MESSAGES
=yes
12068 am_cv_val_LC_MESSAGES
=no
12070 rm -f core conftest.err conftest.
$ac_objext \
12071 conftest
$ac_exeext conftest.
$ac_ext
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12074 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12075 if test $am_cv_val_LC_MESSAGES = yes; then
12077 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12082 # ------------------ #
12083 # Checks for types. #
12084 # ------------------ #
12086 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12087 #if HAVE_SYS_SOCKET_H
12088 # include <sys/socket.h>
12089 #elif HAVE_WS2TCPIP_H
12090 # include <ws2tcpip.h>
12094 if test "x$ac_cv_type_socklen_t" = xyes
; then :
12096 cat >>confdefs.h
<<_ACEOF
12097 #define HAVE_SOCKLEN_T 1
12104 # ------------------------------------- #
12105 # Checks for compiler characteristics. #
12106 # ------------------------------------- #
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12109 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12110 if ${ac_cv_c_const+:} false
; then :
12111 $as_echo_n "(cached) " >&6
12113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12114 /* end confdefs.h. */
12120 #ifndef __cplusplus
12121 /* Ultrix mips cc rejects this sort of thing. */
12122 typedef int charset[2];
12123 const charset cs = { 0, 0 };
12124 /* SunOS 4.1.1 cc rejects this. */
12125 char const *const *pcpcc;
12127 /* NEC SVR4.0.2 mips cc rejects this. */
12128 struct point {int x, y;};
12129 static struct point const zero = {0,0};
12130 /* AIX XL C 1.02.0.0 rejects this.
12131 It does not let you subtract one const X* pointer from another in
12132 an arm of an if-expression whose if-part is not a constant
12134 const char *g = "string";
12135 pcpcc = &g + (g ? g-g : 0);
12136 /* HPUX 7.0 cc rejects these. */
12138 ppc = (char**) pcpcc;
12139 pcpcc = (char const *const *) ppc;
12140 { /* SCO 3.2v4 cc rejects this sort of thing. */
12143 char const *s = 0 ? (char *) 0 : (char const *) 0;
12148 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12149 int x[] = {25, 17};
12150 const int *foo = &x[0];
12153 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12154 typedef const int *iptr;
12158 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12159 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12160 struct s { int j; const int *ap[3]; } bx;
12161 struct s *b = &bx; b->j = 5;
12163 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12164 const int foo = 10;
12165 if (!foo) return 0;
12167 return !cs[0] && !zero.x;
12174 if ac_fn_c_try_compile
"$LINENO"; then :
12179 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12182 $as_echo "$ac_cv_c_const" >&6; }
12183 if test $ac_cv_c_const = no
; then
12185 $as_echo "#define const /**/" >>confdefs.h
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12190 $as_echo_n "checking for inline... " >&6; }
12191 if ${ac_cv_c_inline+:} false
; then :
12192 $as_echo_n "(cached) " >&6
12195 for ac_kw
in inline __inline__ __inline
; do
12196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12197 /* end confdefs.h. */
12198 #ifndef __cplusplus
12200 static $ac_kw foo_t static_foo () {return 0; }
12201 $ac_kw foo_t foo () {return 0; }
12205 if ac_fn_c_try_compile
"$LINENO"; then :
12206 ac_cv_c_inline
=$ac_kw
12208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12209 test "$ac_cv_c_inline" != no
&& break
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12214 $as_echo "$ac_cv_c_inline" >&6; }
12216 case $ac_cv_c_inline in
12219 case $ac_cv_c_inline in
12221 *) ac_val
=$ac_cv_c_inline;;
12223 cat >>confdefs.h
<<_ACEOF
12224 #ifndef __cplusplus
12225 #define inline $ac_val
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12232 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12233 if ${ac_cv_c_bigendian+:} false
; then :
12234 $as_echo_n "(cached) " >&6
12236 ac_cv_c_bigendian
=unknown
12237 # See if we're dealing with a universal compiler.
12238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12239 /* end confdefs.h. */
12240 #ifndef __APPLE_CC__
12241 not a universal capable compiler
12246 if ac_fn_c_try_compile
"$LINENO"; then :
12248 # Check for potential -arch flags. It is not universal unless
12249 # there are at least two -arch flags with different values.
12252 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12253 if test -n "$ac_prev"; then
12255 i?
86 | x86_64 | ppc | ppc64
)
12256 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12259 ac_cv_c_bigendian
=universal
12265 elif test "x$ac_word" = "x-arch"; then
12270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12271 if test $ac_cv_c_bigendian = unknown
; then
12272 # See if sys/param.h defines the BYTE_ORDER macro.
12273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12274 /* end confdefs.h. */
12275 #include <sys/types.h>
12276 #include <sys/param.h>
12281 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12282 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12284 bogus endian macros
12291 if ac_fn_c_try_compile
"$LINENO"; then :
12292 # It does; now see whether it defined to BIG_ENDIAN or not.
12293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12294 /* end confdefs.h. */
12295 #include <sys/types.h>
12296 #include <sys/param.h>
12301 #if BYTE_ORDER != BIG_ENDIAN
12309 if ac_fn_c_try_compile
"$LINENO"; then :
12310 ac_cv_c_bigendian
=yes
12312 ac_cv_c_bigendian
=no
12314 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12318 if test $ac_cv_c_bigendian = unknown
; then
12319 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12321 /* end confdefs.h. */
12322 #include <limits.h>
12327 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12328 bogus endian macros
12335 if ac_fn_c_try_compile
"$LINENO"; then :
12336 # It does; now see whether it defined to _BIG_ENDIAN or not.
12337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12338 /* end confdefs.h. */
12339 #include <limits.h>
12344 #ifndef _BIG_ENDIAN
12352 if ac_fn_c_try_compile
"$LINENO"; then :
12353 ac_cv_c_bigendian
=yes
12355 ac_cv_c_bigendian
=no
12357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12359 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12361 if test $ac_cv_c_bigendian = unknown
; then
12362 # Compile a test program.
12363 if test "$cross_compiling" = yes; then :
12364 # Try to guess by grepping values from an object file.
12365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12366 /* end confdefs.h. */
12367 short int ascii_mm[] =
12368 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12369 short int ascii_ii[] =
12370 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12371 int use_ascii (int i) {
12372 return ascii_mm[i] + ascii_ii[i];
12374 short int ebcdic_ii[] =
12375 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12376 short int ebcdic_mm[] =
12377 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12378 int use_ebcdic (int i) {
12379 return ebcdic_mm[i] + ebcdic_ii[i];
12386 return use_ascii (foo) == use_ebcdic (foo);
12391 if ac_fn_c_try_compile
"$LINENO"; then :
12392 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12393 ac_cv_c_bigendian
=yes
12395 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12396 if test "$ac_cv_c_bigendian" = unknown
; then
12397 ac_cv_c_bigendian
=no
12399 # finding both strings is unlikely to happen, but who knows?
12400 ac_cv_c_bigendian
=unknown
12404 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12407 /* end confdefs.h. */
12408 $ac_includes_default
12413 /* Are we little or big endian? From Harbison&Steele. */
12417 char c[sizeof (long int)];
12420 return u.c[sizeof (long int) - 1] == 1;
12426 if ac_fn_c_try_run
"$LINENO"; then :
12427 ac_cv_c_bigendian
=no
12429 ac_cv_c_bigendian
=yes
12431 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12432 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12438 $as_echo "$ac_cv_c_bigendian" >&6; }
12439 case $ac_cv_c_bigendian in #(
12441 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12447 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12451 as_fn_error $?
"unknown endianness
12452 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12456 # ------------------------------ #
12457 # Checks for library functions. #
12458 # ------------------------------ #
12460 for ac_func
in getuid getgid \
12461 pipe pread pread64 pwrite resize_term \
12463 sigaction sigsetmask socketpair \
12464 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
12465 setrlimit getrlimit posix_madvise waitpid \
12468 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12469 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12470 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12471 cat >>confdefs.h
<<_ACEOF
12472 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12480 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12481 if ${am_cv_langinfo_codeset+:} false
; then :
12482 $as_echo_n "(cached) " >&6
12484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12485 /* end confdefs.h. */
12486 #include <langinfo.h>
12490 char* cs = nl_langinfo(CODESET);
12495 if ac_fn_c_try_link
"$LINENO"; then :
12496 am_cv_langinfo_codeset
=yes
12498 am_cv_langinfo_codeset
=no
12500 rm -f core conftest.err conftest.
$ac_objext \
12501 conftest
$ac_exeext conftest.
$ac_ext
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12505 $as_echo "$am_cv_langinfo_codeset" >&6; }
12506 if test $am_cv_langinfo_codeset = yes; then
12508 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12512 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12513 if test "x$ac_cv_type_size_t" = xyes
; then :
12517 cat >>confdefs.h
<<_ACEOF
12518 #define size_t unsigned int
12526 for ac_header
in $ac_header_list
12528 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12529 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12531 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12532 cat >>confdefs.h
<<_ACEOF
12533 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12546 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12547 if test "x$ac_cv_type_pid_t" = xyes
; then :
12551 cat >>confdefs.h
<<_ACEOF
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12558 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12559 if ${ac_cv_path_SED+:} false
; then :
12560 $as_echo_n "(cached) " >&6
12562 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
12563 for ac_i
in 1 2 3 4 5 6 7; do
12564 ac_script
="$ac_script$as_nl$ac_script"
12566 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
12567 { ac_script
=; unset ac_script
;}
12568 if test -z "$SED"; then
12569 ac_path_SED_found
=false
12570 # Loop through the user's path and test for each of PROGNAME-LIST
12571 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12572 for as_dir
in $PATH
12575 test -z "$as_dir" && as_dir
=.
12576 for ac_prog
in sed gsed
; do
12577 for ac_exec_ext
in '' $ac_executable_extensions; do
12578 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12579 as_fn_executable_p
"$ac_path_SED" ||
continue
12580 # Check for GNU ac_path_SED and select it if it is found.
12581 # Check for GNU $ac_path_SED
12582 case `"$ac_path_SED" --version 2>&1` in
12584 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12587 $as_echo_n 0123456789 >"conftest.in"
12590 cat "conftest.in" "conftest.in" >"conftest.tmp"
12591 mv "conftest.tmp" "conftest.in"
12592 cp "conftest.in" "conftest.nl"
12593 $as_echo '' >> "conftest.nl"
12594 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12595 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12596 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12597 if test $ac_count -gt ${ac_path_SED_max-0}; then
12598 # Best one so far, save it but keep looking for a better one
12599 ac_cv_path_SED
="$ac_path_SED"
12600 ac_path_SED_max
=$ac_count
12602 # 10*(2^10) chars as input seems more than enough
12603 test $ac_count -gt 10 && break
12605 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12608 $ac_path_SED_found && break 3
12613 if test -z "$ac_cv_path_SED"; then
12614 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12617 ac_cv_path_SED
=$SED
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12622 $as_echo "$ac_cv_path_SED" >&6; }
12623 SED
="$ac_cv_path_SED"
12627 # Set the 'development' global.
12628 .
$srcdir/..
/bfd
/development.sh
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12631 $as_echo_n "checking for ANSI C header files... " >&6; }
12632 if ${ac_cv_header_stdc+:} false
; then :
12633 $as_echo_n "(cached) " >&6
12635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12636 /* end confdefs.h. */
12637 #include <stdlib.h>
12638 #include <stdarg.h>
12639 #include <string.h>
12650 if ac_fn_c_try_compile
"$LINENO"; then :
12651 ac_cv_header_stdc
=yes
12653 ac_cv_header_stdc
=no
12655 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12657 if test $ac_cv_header_stdc = yes; then
12658 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12660 /* end confdefs.h. */
12661 #include <string.h>
12664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12665 $EGREP "memchr" >/dev
/null
2>&1; then :
12668 ac_cv_header_stdc
=no
12674 if test $ac_cv_header_stdc = yes; then
12675 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12677 /* end confdefs.h. */
12678 #include <stdlib.h>
12681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12682 $EGREP "free" >/dev
/null
2>&1; then :
12685 ac_cv_header_stdc
=no
12691 if test $ac_cv_header_stdc = yes; then
12692 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12693 if test "$cross_compiling" = yes; then :
12696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12697 /* end confdefs.h. */
12699 #include <stdlib.h>
12700 #if ((' ' & 0x0FF) == 0x020)
12701 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12702 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12704 # define ISLOWER(c) \
12705 (('a' <= (c) && (c) <= 'i') \
12706 || ('j' <= (c) && (c) <= 'r') \
12707 || ('s' <= (c) && (c) <= 'z'))
12708 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12711 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12716 for (i = 0; i < 256; i++)
12717 if (XOR (islower (i), ISLOWER (i))
12718 || toupper (i) != TOUPPER (i))
12723 if ac_fn_c_try_run
"$LINENO"; then :
12726 ac_cv_header_stdc
=no
12728 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12729 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12735 $as_echo "$ac_cv_header_stdc" >&6; }
12736 if test $ac_cv_header_stdc = yes; then
12738 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12742 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12743 # for constant arguments. Useless!
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12745 $as_echo_n "checking for working alloca.h... " >&6; }
12746 if ${ac_cv_working_alloca_h+:} false
; then :
12747 $as_echo_n "(cached) " >&6
12749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12750 /* end confdefs.h. */
12751 #include <alloca.h>
12755 char *p = (char *) alloca (2 * sizeof (int));
12761 if ac_fn_c_try_link
"$LINENO"; then :
12762 ac_cv_working_alloca_h
=yes
12764 ac_cv_working_alloca_h
=no
12766 rm -f core conftest.err conftest.
$ac_objext \
12767 conftest
$ac_exeext conftest.
$ac_ext
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12770 $as_echo "$ac_cv_working_alloca_h" >&6; }
12771 if test $ac_cv_working_alloca_h = yes; then
12773 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12778 $as_echo_n "checking for alloca... " >&6; }
12779 if ${ac_cv_func_alloca_works+:} false
; then :
12780 $as_echo_n "(cached) " >&6
12782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12783 /* end confdefs.h. */
12785 # define alloca __builtin_alloca
12788 # include <malloc.h>
12789 # define alloca _alloca
12791 # ifdef HAVE_ALLOCA_H
12792 # include <alloca.h>
12797 # ifndef alloca /* predefined by HP cc +Olibcalls */
12798 void *alloca (size_t);
12808 char *p = (char *) alloca (1);
12814 if ac_fn_c_try_link
"$LINENO"; then :
12815 ac_cv_func_alloca_works
=yes
12817 ac_cv_func_alloca_works
=no
12819 rm -f core conftest.err conftest.
$ac_objext \
12820 conftest
$ac_exeext conftest.
$ac_ext
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12823 $as_echo "$ac_cv_func_alloca_works" >&6; }
12825 if test $ac_cv_func_alloca_works = yes; then
12827 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12830 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12831 # that cause trouble. Some versions do not even contain alloca or
12832 # contain a buggy version. If you still want to use their alloca,
12833 # use ar to extract alloca.o from them instead of compiling alloca.c.
12835 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
12837 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12841 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12842 if ${ac_cv_os_cray+:} false
; then :
12843 $as_echo_n "(cached) " >&6
12845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12846 /* end confdefs.h. */
12847 #if defined CRAY && ! defined CRAY2
12854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12855 $EGREP "webecray" >/dev
/null
2>&1; then :
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12864 $as_echo "$ac_cv_os_cray" >&6; }
12865 if test $ac_cv_os_cray = yes; then
12866 for ac_func
in _getb67 GETB67 getb67
; do
12867 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12868 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12869 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12871 cat >>confdefs.h
<<_ACEOF
12872 #define CRAY_STACKSEG_END $ac_func
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12882 $as_echo_n "checking stack direction for C alloca... " >&6; }
12883 if ${ac_cv_c_stack_direction+:} false
; then :
12884 $as_echo_n "(cached) " >&6
12886 if test "$cross_compiling" = yes; then :
12887 ac_cv_c_stack_direction
=0
12889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12890 /* end confdefs.h. */
12891 $ac_includes_default
12893 find_stack_direction (int *addr, int depth)
12895 int dir, dummy = 0;
12898 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
12899 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
12900 return dir + dummy;
12904 main (int argc, char **argv)
12906 return find_stack_direction (0, argc + !argv + 20) < 0;
12909 if ac_fn_c_try_run
"$LINENO"; then :
12910 ac_cv_c_stack_direction
=1
12912 ac_cv_c_stack_direction
=-1
12914 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12915 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12920 $as_echo "$ac_cv_c_stack_direction" >&6; }
12921 cat >>confdefs.h
<<_ACEOF
12922 #define STACK_DIRECTION $ac_cv_c_stack_direction
12933 $as_echo "#define USE_WIN32API 1" >>confdefs.h
12935 WIN32APILIBS
="-lws2_32"
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12941 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12942 if ${am_cv_langinfo_codeset+:} false
; then :
12943 $as_echo_n "(cached) " >&6
12945 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12946 /* end confdefs.h. */
12947 #include <langinfo.h>
12951 char* cs = nl_langinfo(CODESET);
12956 if ac_fn_c_try_link
"$LINENO"; then :
12957 am_cv_langinfo_codeset
=yes
12959 am_cv_langinfo_codeset
=no
12961 rm -f core conftest.err conftest.
$ac_objext \
12962 conftest
$ac_exeext conftest.
$ac_ext
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12966 $as_echo "$am_cv_langinfo_codeset" >&6; }
12967 if test $am_cv_langinfo_codeset = yes; then
12969 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12974 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 sys
/procfs.h proc_service.h poll.h sys
/poll.h sys
/select.h
12976 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12977 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12978 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12979 cat >>confdefs.h
<<_ACEOF
12980 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12989 for ac_func
in getpagesize
12991 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12992 if test "x$ac_cv_func_getpagesize" = xyes
; then :
12993 cat >>confdefs.h
<<_ACEOF
12994 #define HAVE_GETPAGESIZE 1
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13001 $as_echo_n "checking for working mmap... " >&6; }
13002 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
13003 $as_echo_n "(cached) " >&6
13005 if test "$cross_compiling" = yes; then :
13006 ac_cv_func_mmap_fixed_mapped
=no
13008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13009 /* end confdefs.h. */
13010 $ac_includes_default
13011 /* malloc might have been renamed as rpl_malloc. */
13014 /* Thanks to Mike Haertel and Jim Avera for this test.
13015 Here is a matrix of mmap possibilities:
13016 mmap private not fixed
13017 mmap private fixed at somewhere currently unmapped
13018 mmap private fixed at somewhere already mapped
13019 mmap shared not fixed
13020 mmap shared fixed at somewhere currently unmapped
13021 mmap shared fixed at somewhere already mapped
13022 For private mappings, we should verify that changes cannot be read()
13023 back from the file, nor mmap's back from the file at a different
13024 address. (There have been systems where private was not correctly
13025 implemented like the infamous i386 svr4.0, and systems where the
13026 VM page cache was not coherent with the file system buffer cache
13027 like early versions of FreeBSD and possibly contemporary NetBSD.)
13028 For shared mappings, we should conversely verify that changes get
13029 propagated back to all the places they're supposed to be.
13031 Grep wants private fixed already mapped.
13032 The main things grep needs to know about mmap are:
13033 * does it exist and is it safe to write into the mmap'd area
13034 * how to use it (BSD variants) */
13037 #include <sys/mman.h>
13039 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13043 /* This mess was copied from the GNU getpagesize.h. */
13044 #ifndef HAVE_GETPAGESIZE
13045 # ifdef _SC_PAGESIZE
13046 # define getpagesize() sysconf(_SC_PAGESIZE)
13047 # else /* no _SC_PAGESIZE */
13048 # ifdef HAVE_SYS_PARAM_H
13049 # include <sys/param.h>
13050 # ifdef EXEC_PAGESIZE
13051 # define getpagesize() EXEC_PAGESIZE
13052 # else /* no EXEC_PAGESIZE */
13054 # define getpagesize() NBPG * CLSIZE
13057 # endif /* no CLSIZE */
13058 # else /* no NBPG */
13060 # define getpagesize() NBPC
13061 # else /* no NBPC */
13063 # define getpagesize() PAGESIZE
13064 # endif /* PAGESIZE */
13065 # endif /* no NBPC */
13066 # endif /* no NBPG */
13067 # endif /* no EXEC_PAGESIZE */
13068 # else /* no HAVE_SYS_PARAM_H */
13069 # define getpagesize() 8192 /* punt totally */
13070 # endif /* no HAVE_SYS_PARAM_H */
13071 # endif /* no _SC_PAGESIZE */
13073 #endif /* no HAVE_GETPAGESIZE */
13078 char *data, *data2, *data3;
13079 const char *cdata2;
13083 pagesize = getpagesize ();
13085 /* First, make a file with some known garbage in it. */
13086 data = (char *) malloc (pagesize);
13089 for (i = 0; i < pagesize; ++i)
13090 *(data + i) = rand ();
13092 fd = creat ("conftest.mmap", 0600);
13095 if (write (fd, data, pagesize) != pagesize)
13099 /* Next, check that the tail of a page is zero-filled. File must have
13100 non-zero length, otherwise we risk SIGBUS for entire page. */
13101 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13105 if (write (fd2, cdata2, 1) != 1)
13107 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13108 if (data2 == MAP_FAILED)
13110 for (i = 0; i < pagesize; ++i)
13114 if (munmap (data2, pagesize))
13117 /* Next, try to mmap the file at a fixed address which already has
13118 something else allocated at it. If we can, also make sure that
13119 we see the same garbage. */
13120 fd = open ("conftest.mmap", O_RDWR);
13123 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13124 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13126 for (i = 0; i < pagesize; ++i)
13127 if (*(data + i) != *(data2 + i))
13130 /* Finally, make sure that changes to the mapped area do not
13131 percolate back to the file as seen by read(). (This is a bug on
13132 some variants of i386 svr4.0.) */
13133 for (i = 0; i < pagesize; ++i)
13134 *(data2 + i) = *(data2 + i) + 1;
13135 data3 = (char *) malloc (pagesize);
13138 if (read (fd, data3, pagesize) != pagesize)
13140 for (i = 0; i < pagesize; ++i)
13141 if (*(data + i) != *(data3 + i))
13147 if ac_fn_c_try_run
"$LINENO"; then :
13148 ac_cv_func_mmap_fixed_mapped
=yes
13150 ac_cv_func_mmap_fixed_mapped
=no
13152 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13153 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13158 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13159 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13161 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13164 rm -f conftest.mmap conftest.txt
13166 for ac_header
in vfork.h
13168 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13169 if test "x$ac_cv_header_vfork_h" = xyes
; then :
13170 cat >>confdefs.h
<<_ACEOF
13171 #define HAVE_VFORK_H 1
13178 for ac_func
in fork vfork
13180 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13181 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13182 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13183 cat >>confdefs.h
<<_ACEOF
13184 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13190 if test "x$ac_cv_func_fork" = xyes
; then
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13192 $as_echo_n "checking for working fork... " >&6; }
13193 if ${ac_cv_func_fork_works+:} false
; then :
13194 $as_echo_n "(cached) " >&6
13196 if test "$cross_compiling" = yes; then :
13197 ac_cv_func_fork_works
=cross
13199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13200 /* end confdefs.h. */
13201 $ac_includes_default
13206 /* By Ruediger Kuhlmann. */
13207 return fork () < 0;
13213 if ac_fn_c_try_run
"$LINENO"; then :
13214 ac_cv_func_fork_works
=yes
13216 ac_cv_func_fork_works
=no
13218 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13219 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13224 $as_echo "$ac_cv_func_fork_works" >&6; }
13227 ac_cv_func_fork_works
=$ac_cv_func_fork
13229 if test "x$ac_cv_func_fork_works" = xcross
; then
13231 *-*-amigaos* |
*-*-msdosdjgpp*)
13232 # Override, as these systems have only a dummy fork() stub
13233 ac_cv_func_fork_works
=no
13236 ac_cv_func_fork_works
=yes
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13240 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13242 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13243 if test "x$ac_cv_func_vfork" = xyes
; then
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13245 $as_echo_n "checking for working vfork... " >&6; }
13246 if ${ac_cv_func_vfork_works+:} false
; then :
13247 $as_echo_n "(cached) " >&6
13249 if test "$cross_compiling" = yes; then :
13250 ac_cv_func_vfork_works
=cross
13252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13253 /* end confdefs.h. */
13254 /* Thanks to Paul Eggert for this test. */
13255 $ac_includes_default
13256 #include <sys/wait.h>
13257 #ifdef HAVE_VFORK_H
13258 # include <vfork.h>
13260 /* On some sparc systems, changes by the child to local and incoming
13261 argument registers are propagated back to the parent. The compiler
13262 is told about this with #include <vfork.h>, but some compilers
13263 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13264 static variable whose address is put into a register that is
13265 clobbered by the vfork. */
13268 sparc_address_test (int arg)
13270 sparc_address_test (arg) int arg;
13273 static pid_t child;
13291 pid_t parent = getpid ();
13294 sparc_address_test (0);
13299 /* Here is another test for sparc vfork register problems. This
13300 test uses lots of local variables, at least as many local
13301 variables as main has allocated so far including compiler
13302 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13303 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13304 reuse the register of parent for one of the local variables,
13305 since it will think that parent can't possibly be used any more
13306 in this routine. Assigning to the local variable will thus
13307 munge parent in the parent process. */
13309 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13310 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13311 /* Convince the compiler that p..p7 are live; otherwise, it might
13312 use the same hardware register for all 8 local variables. */
13313 if (p != p1 || p != p2 || p != p3 || p != p4
13314 || p != p5 || p != p6 || p != p7)
13317 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13318 from child file descriptors. If the child closes a descriptor
13319 before it execs or exits, this munges the parent's descriptor
13320 as well. Test for this by closing stdout in the child. */
13321 _exit(close(fileno(stdout)) != 0);
13326 while (wait(&status) != child)
13329 /* Was there some problem with vforking? */
13332 /* Did the child fail? (This shouldn't happen.) */
13335 /* Did the vfork/compiler bug occur? */
13336 || parent != getpid()
13338 /* Did the file descriptor bug occur? */
13339 || fstat(fileno(stdout), &st) != 0
13344 if ac_fn_c_try_run
"$LINENO"; then :
13345 ac_cv_func_vfork_works
=yes
13347 ac_cv_func_vfork_works
=no
13349 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13350 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13355 $as_echo "$ac_cv_func_vfork_works" >&6; }
13358 if test "x$ac_cv_func_fork_works" = xcross
; then
13359 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13361 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13364 if test "x$ac_cv_func_vfork_works" = xyes
; then
13366 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13370 $as_echo "#define vfork fork" >>confdefs.h
13373 if test "x$ac_cv_func_fork_works" = xyes
; then
13375 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13379 for ac_func
in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
13380 ptrace64 sbrk setns sigaltstack sigprocmask \
13381 setpgid setpgrp getrusage getauxval
13383 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13384 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13385 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13386 cat >>confdefs.h
<<_ACEOF
13387 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13394 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
13396 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
13402 cat >>confdefs.h
<<_ACEOF
13403 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
13407 if test "$cross_compiling" = yes; then :
13408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13409 /* end confdefs.h. */
13410 #include <sys/personality.h>
13415 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
13416 # define ADDR_NO_RANDOMIZE 0x0040000
13418 /* Test the flag could be set and stays set. */
13419 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13420 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13426 if ac_fn_c_try_link
"$LINENO"; then :
13427 have_personality
=true
13429 have_personality
=false
13431 rm -f core conftest.err conftest.
$ac_objext \
13432 conftest
$ac_exeext conftest.
$ac_ext
13434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13435 /* end confdefs.h. */
13436 #include <sys/personality.h>
13441 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
13442 # define ADDR_NO_RANDOMIZE 0x0040000
13444 /* Test the flag could be set and stays set. */
13445 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13446 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13452 if ac_fn_c_try_run
"$LINENO"; then :
13453 have_personality
=true
13455 have_personality
=false
13457 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13458 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13461 if $have_personality
13464 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
13468 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13469 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
13475 cat >>confdefs.h
<<_ACEOF
13476 #define HAVE_DECL_STRSTR $ac_have_decl
13480 # ----------------------- #
13481 # Checks for structures. #
13482 # ----------------------- #
13484 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13485 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
13487 cat >>confdefs.h
<<_ACEOF
13488 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13493 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
13494 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
13496 cat >>confdefs.h
<<_ACEOF
13497 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
13505 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
13506 if ${ac_cv_search_kinfo_getfile+:} false
; then :
13507 $as_echo_n "(cached) " >&6
13509 ac_func_search_save_LIBS
=$LIBS
13510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13511 /* end confdefs.h. */
13513 /* Override any GCC internal prototype to avoid an error.
13514 Use char because int might match the return type of a GCC
13515 builtin and then its argument prototype would still apply. */
13519 char kinfo_getfile ();
13523 return kinfo_getfile ();
13528 for ac_lib
in '' util util-freebsd
; do
13529 if test -z "$ac_lib"; then
13530 ac_res
="none required"
13533 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13535 if ac_fn_c_try_link
"$LINENO"; then :
13536 ac_cv_search_kinfo_getfile
=$ac_res
13538 rm -f core conftest.err conftest.
$ac_objext \
13540 if ${ac_cv_search_kinfo_getfile+:} false
; then :
13544 if ${ac_cv_search_kinfo_getfile+:} false
; then :
13547 ac_cv_search_kinfo_getfile
=no
13549 rm conftest.
$ac_ext
13550 LIBS
=$ac_func_search_save_LIBS
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
13553 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
13554 ac_res
=$ac_cv_search_kinfo_getfile
13555 if test "$ac_res" != no
; then :
13556 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13558 $as_echo "#define HAVE_KINFO_GETFILE 1" >>confdefs.h
13563 # Check for std::thread. This does not work on some platforms, like
13566 ac_cpp
='$CXXCPP $CPPFLAGS'
13567 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13568 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13569 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
13576 ac_cpp
='$CPP $CPPFLAGS'
13577 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13578 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13579 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13583 # We used to check for pthread.h first, but this fails if pthread.h
13584 # requires special compiler flags (e.g. on Tru64 or Sequent).
13585 # It gets checked for in the link test anyway.
13587 # First of all, check if the user has set any of the PTHREAD_LIBS,
13588 # etcetera environment variables, and if threads linking works using
13590 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
13591 ax_pthread_save_CC
="$CC"
13592 ax_pthread_save_CFLAGS
="$CFLAGS"
13593 ax_pthread_save_LIBS
="$LIBS"
13594 if test "x$PTHREAD_CC" != "x"; then :
13597 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
13598 LIBS
="$PTHREAD_LIBS $LIBS"
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
13600 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
13601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13602 /* end confdefs.h. */
13604 /* Override any GCC internal prototype to avoid an error.
13605 Use char because int might match the return type of a GCC
13606 builtin and then its argument prototype would still apply. */
13610 char pthread_join ();
13614 return pthread_join ();
13619 if ac_fn_c_try_link
"$LINENO"; then :
13622 rm -f core conftest.err conftest.
$ac_objext \
13623 conftest
$ac_exeext conftest.
$ac_ext
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
13625 $as_echo "$ax_pthread_ok" >&6; }
13626 if test "x$ax_pthread_ok" = "xno"; then
13630 CC
="$ax_pthread_save_CC"
13631 CFLAGS
="$ax_pthread_save_CFLAGS"
13632 LIBS
="$ax_pthread_save_LIBS"
13635 # We must check for the threads library under a number of different
13636 # names; the ordering is very important because some systems
13637 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
13638 # libraries is broken (non-POSIX).
13640 # Create a list of thread flags to try. Items starting with a "-" are
13641 # C compiler flags, and other items are library names, except for "none"
13642 # which indicates that we try without any flags at all, and "pthread-config"
13643 # which is a program returning the flags for the Pth emulation library.
13645 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
13647 # The ordering *is* (sometimes) important. Some notes on the
13648 # individual items follow:
13650 # pthreads: AIX (must check this before -lpthread)
13651 # none: in case threads are in libc; should be tried before -Kthread and
13652 # other compiler flags to prevent continual compiler warnings
13653 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
13654 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
13655 # (Note: HP C rejects this with "bad form for `-t' option")
13656 # -pthreads: Solaris/gcc (Note: HP C also rejects)
13657 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
13658 # doesn't hurt to check since this sometimes defines pthreads and
13659 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
13660 # is present but should not be used directly; and before -mthreads,
13661 # because the compiler interprets this as "-mt" + "-hreads")
13662 # -mthreads: Mingw32/gcc, Lynx/gcc
13663 # pthread: Linux, etcetera
13664 # --thread-safe: KAI C++
13665 # pthread-config: use pthread-config program (for GNU Pth library)
13671 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
13672 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
13674 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
13679 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
13680 # multi-threading and also sets -lpthread."
13682 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
13687 # IBM z/OS requires a feature-test macro to be defined in order to
13688 # enable POSIX threads at all, so give the user a hint if this is
13689 # not set. (We don't define these ourselves, as they can affect
13690 # other portions of the system API in unpredictable ways.)
13692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13693 /* end confdefs.h. */
13695 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
13696 AX_PTHREAD_ZOS_MISSING
13700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13701 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
13703 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
13711 # On Solaris (at least, for some versions), libc contains stubbed
13712 # (non-functional) versions of the pthreads routines, so link-based
13713 # tests will erroneously succeed. (N.B.: The stubs are missing
13714 # pthread_cleanup_push, or rather a function called by this macro,
13715 # so we could check for that, but who knows whether they'll stub
13716 # that too in a future libc.) So we'll check first for the
13717 # standard Solaris way of linking pthreads (-mt -lpthread).
13719 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
13723 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
13725 if test "x$GCC" = "xyes"; then :
13726 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
13729 # The presence of a feature test macro requesting re-entrant function
13730 # definitions is, on some systems, a strong hint that pthreads support is
13731 # correctly enabled
13734 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
13735 ax_pthread_check_macro
="_REENTRANT"
13739 ax_pthread_check_macro
="_THREAD_SAFE"
13743 ax_pthread_check_macro
="--"
13746 if test "x$ax_pthread_check_macro" = "x--"; then :
13747 ax_pthread_check_cond
=0
13749 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
13752 # Are we compiling with Clang?
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
13755 $as_echo_n "checking whether $CC is Clang... " >&6; }
13756 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
13757 $as_echo_n "(cached) " >&6
13759 ax_cv_PTHREAD_CLANG
=no
13760 # Note that Autoconf sets GCC=yes for Clang as well as GCC
13761 if test "x$GCC" = "xyes"; then
13762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13763 /* end confdefs.h. */
13764 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
13765 # if defined(__clang__) && defined(__llvm__)
13766 AX_PTHREAD_CC_IS_CLANG
13770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13771 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
13772 ax_cv_PTHREAD_CLANG
=yes
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
13780 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
13781 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
13783 ax_pthread_clang_warning
=no
13785 # Clang needs special handling, because older versions handle the -pthread
13786 # option in a rather... idiosyncratic way
13788 if test "x$ax_pthread_clang" = "xyes"; then
13790 # Clang takes -pthread; it has never supported any other flag
13792 # (Note 1: This will need to be revisited if a system that Clang
13793 # supports has POSIX threads in a separate library. This tends not
13794 # to be the way of modern systems, but it's conceivable.)
13796 # (Note 2: On some systems, notably Darwin, -pthread is not needed
13797 # to get POSIX threads support; the API is always present and
13798 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
13799 # -pthread does define _REENTRANT, and while the Darwin headers
13800 # ignore this macro, third-party headers might not.)
13802 PTHREAD_CFLAGS
="-pthread"
13807 # However, older versions of Clang make a point of warning the user
13808 # that, in an invocation where only linking and no compilation is
13809 # taking place, the -pthread option has no effect ("argument unused
13810 # during compilation"). They expect -pthread to be passed in only
13811 # when source code is being compiled.
13813 # Problem is, this is at odds with the way Automake and most other
13814 # C build frameworks function, which is that the same flags used in
13815 # compilation (CFLAGS) are also used in linking. Many systems
13816 # supported by AX_PTHREAD require exactly this for POSIX threads
13817 # support, and in fact it is often not straightforward to specify a
13818 # flag that is used only in the compilation phase and not in
13819 # linking. Such a scenario is extremely rare in practice.
13821 # Even though use of the -pthread flag in linking would only print
13822 # a warning, this can be a nuisance for well-run software projects
13823 # that build with -Werror. So if the active version of Clang has
13824 # this misfeature, we search for an option to squash it.
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
13827 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
13828 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
13829 $as_echo_n "(cached) " >&6
13831 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
13832 # Create an alternate version of $ac_link that compiles and
13833 # links in two steps (.c -> .o, .o -> exe) instead of one
13834 # (.c -> exe), because the warning occurs only in the second
13836 ax_pthread_save_ac_link
="$ac_link"
13837 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
13838 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
13839 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
13840 ax_pthread_save_CFLAGS
="$CFLAGS"
13841 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
13842 if test "x$ax_pthread_try" = "xunknown"; then :
13845 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
13846 ac_link
="$ax_pthread_save_ac_link"
13847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13848 /* end confdefs.h. */
13849 int main(void){return 0;}
13851 if ac_fn_c_try_link
"$LINENO"; then :
13852 ac_link
="$ax_pthread_2step_ac_link"
13853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13854 /* end confdefs.h. */
13855 int main(void){return 0;}
13857 if ac_fn_c_try_link
"$LINENO"; then :
13860 rm -f core conftest.err conftest.
$ac_objext \
13861 conftest
$ac_exeext conftest.
$ac_ext
13864 rm -f core conftest.err conftest.
$ac_objext \
13865 conftest
$ac_exeext conftest.
$ac_ext
13867 ac_link
="$ax_pthread_save_ac_link"
13868 CFLAGS
="$ax_pthread_save_CFLAGS"
13869 if test "x$ax_pthread_try" = "x"; then :
13872 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
13876 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
13878 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
13880 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
13883 fi # $ax_pthread_clang = yes
13885 if test "x$ax_pthread_ok" = "xno"; then
13886 for ax_pthread_try_flag
in $ax_pthread_flags; do
13888 case $ax_pthread_try_flag in
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
13891 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
13896 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
13897 PTHREAD_CFLAGS
="-mt"
13898 PTHREAD_LIBS
="-lpthread"
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
13903 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
13904 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
13908 # Extract the first word of "pthread-config", so it can be a program name with args.
13909 set dummy pthread-config
; ac_word
=$2
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13911 $as_echo_n "checking for $ac_word... " >&6; }
13912 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
13913 $as_echo_n "(cached) " >&6
13915 if test -n "$ax_pthread_config"; then
13916 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
13918 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13919 for as_dir
in $PATH
13922 test -z "$as_dir" && as_dir
=.
13923 for ac_exec_ext
in '' $ac_executable_extensions; do
13924 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13925 ac_cv_prog_ax_pthread_config
="yes"
13926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13933 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
13936 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
13937 if test -n "$ax_pthread_config"; then
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
13939 $as_echo "$ax_pthread_config" >&6; }
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13942 $as_echo "no" >&6; }
13946 if test "x$ax_pthread_config" = "xno"; then :
13949 PTHREAD_CFLAGS
="`pthread-config --cflags`"
13950 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
13955 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
13956 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
13960 ax_pthread_save_CFLAGS
="$CFLAGS"
13961 ax_pthread_save_LIBS
="$LIBS"
13962 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
13963 LIBS
="$PTHREAD_LIBS $LIBS"
13965 # Check for various functions. We must include pthread.h,
13966 # since some functions may be macros. (On the Sequent, we
13967 # need a special flag -Kthread to make this header compile.)
13968 # We check for pthread_join because it is in -lpthread on IRIX
13969 # while pthread_create is in libc. We check for pthread_attr_init
13970 # due to DEC craziness with -lpthreads. We check for
13971 # pthread_cleanup_push because it is one of the few pthread
13972 # functions on Solaris that doesn't have a non-functional libc stub.
13973 # We try pthread_create on general principles.
13975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13976 /* end confdefs.h. */
13977 #include <pthread.h>
13978 # if $ax_pthread_check_cond
13979 # error "$ax_pthread_check_macro must be defined"
13981 static void routine(void *a) { a = 0; }
13982 static void *start_routine(void *a) { return a; }
13986 pthread_t th; pthread_attr_t attr;
13987 pthread_create(&th, 0, start_routine, 0);
13988 pthread_join(th, 0);
13989 pthread_attr_init(&attr);
13990 pthread_cleanup_push(routine, 0);
13991 pthread_cleanup_pop(0) /* ; */
13996 if ac_fn_c_try_link
"$LINENO"; then :
13999 rm -f core conftest.err conftest.
$ac_objext \
14000 conftest
$ac_exeext conftest.
$ac_ext
14002 CFLAGS
="$ax_pthread_save_CFLAGS"
14003 LIBS
="$ax_pthread_save_LIBS"
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14006 $as_echo "$ax_pthread_ok" >&6; }
14007 if test "x$ax_pthread_ok" = "xyes"; then :
14016 # Various other checks:
14017 if test "x$ax_pthread_ok" = "xyes"; then
14018 ax_pthread_save_CFLAGS
="$CFLAGS"
14019 ax_pthread_save_LIBS
="$LIBS"
14020 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
14021 LIBS
="$PTHREAD_LIBS $LIBS"
14023 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14025 $as_echo_n "checking for joinable pthread attribute... " >&6; }
14026 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
14027 $as_echo_n "(cached) " >&6
14029 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
14030 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
14031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14032 /* end confdefs.h. */
14033 #include <pthread.h>
14037 int attr = $ax_pthread_attr; return attr /* ; */
14042 if ac_fn_c_try_link
"$LINENO"; then :
14043 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
14045 rm -f core conftest.err conftest.
$ac_objext \
14046 conftest
$ac_exeext conftest.
$ac_ext
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
14051 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
14052 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
14053 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
14054 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
14056 cat >>confdefs.h
<<_ACEOF
14057 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
14060 ax_pthread_joinable_attr_defined
=yes
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
14065 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
14066 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
14067 $as_echo_n "(cached) " >&6
14069 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
14072 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
14078 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
14079 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
14080 test "x$ax_pthread_special_flags_added" != "xyes"; then :
14081 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
14082 ax_pthread_special_flags_added
=yes
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
14086 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
14087 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
14088 $as_echo_n "(cached) " >&6
14090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14091 /* end confdefs.h. */
14092 #include <pthread.h>
14096 int i = PTHREAD_PRIO_INHERIT;
14101 if ac_fn_c_try_link
"$LINENO"; then :
14102 ax_cv_PTHREAD_PRIO_INHERIT
=yes
14104 ax_cv_PTHREAD_PRIO_INHERIT
=no
14106 rm -f core conftest.err conftest.
$ac_objext \
14107 conftest
$ac_exeext conftest.
$ac_ext
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
14111 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
14112 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
14113 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
14115 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
14117 ax_pthread_prio_inherit_defined
=yes
14121 CFLAGS
="$ax_pthread_save_CFLAGS"
14122 LIBS
="$ax_pthread_save_LIBS"
14124 # More AIX lossage: compile with *_r variant
14125 if test "x$GCC" != "xyes"; then
14129 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
14130 #handle absolute path differently from PATH based program lookup
14133 if as_fn_executable_p
${CC}_r
; then :
14134 PTHREAD_CC
="${CC}_r"
14137 for ac_prog
in ${CC}_r
14139 # Extract the first word of "$ac_prog", so it can be a program name with args.
14140 set dummy
$ac_prog; ac_word
=$2
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14142 $as_echo_n "checking for $ac_word... " >&6; }
14143 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
14144 $as_echo_n "(cached) " >&6
14146 if test -n "$PTHREAD_CC"; then
14147 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
14149 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14150 for as_dir
in $PATH
14153 test -z "$as_dir" && as_dir
=.
14154 for ac_exec_ext
in '' $ac_executable_extensions; do
14155 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14156 ac_cv_prog_PTHREAD_CC
="$ac_prog"
14157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14166 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
14167 if test -n "$PTHREAD_CC"; then
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14169 $as_echo "$PTHREAD_CC" >&6; }
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14172 $as_echo "no" >&6; }
14176 test -n "$PTHREAD_CC" && break
14178 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
14189 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
14195 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14196 if test "x$ax_pthread_ok" = "xyes"; then
14204 ac_cpp
='$CXXCPP $CPPFLAGS'
14205 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14206 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14207 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
14210 if test "$threads" = "yes"; then
14212 LIBS
="$PTHREAD_LIBS $LIBS"
14213 save_CXXFLAGS
="$CXXFLAGS"
14214 CXXFLAGS
="$PTHREAD_CFLAGS $save_CXXFLAGS"
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
14216 $as_echo_n "checking for std::thread... " >&6; }
14217 if ${gdb_cv_cxx_std_thread+:} false
; then :
14218 $as_echo_n "(cached) " >&6
14220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14221 /* end confdefs.h. */
14223 void callback() { }
14227 std::thread t(callback);
14232 if ac_fn_cxx_try_compile
"$LINENO"; then :
14233 gdb_cv_cxx_std_thread
=yes
14235 gdb_cv_cxx_std_thread
=no
14237 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
14240 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
14242 # This check must be here, while LIBS includes any necessary
14243 # threading library.
14244 for ac_func
in pthread_sigmask pthread_setname_np
14246 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14247 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14248 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14249 cat >>confdefs.h
<<_ACEOF
14250 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14258 CXXFLAGS
="$save_CXXFLAGS"
14260 if test "$gdb_cv_cxx_std_thread" = "yes"; then
14262 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
14266 ac_cpp
='$CPP $CPPFLAGS'
14267 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14268 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14269 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
14273 $as_echo_n "checking for sigsetjmp... " >&6; }
14274 if ${gdb_cv_func_sigsetjmp+:} false
; then :
14275 $as_echo_n "(cached) " >&6
14277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14278 /* end confdefs.h. */
14280 #include <setjmp.h>
14285 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
14290 if ac_fn_c_try_compile
"$LINENO"; then :
14291 gdb_cv_func_sigsetjmp
=yes
14293 gdb_cv_func_sigsetjmp
=no
14295 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
14298 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
14299 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
14301 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
14306 # Check whether --with-intel_pt was given.
14307 if test "${with_intel_pt+set}" = set; then :
14308 withval
=$with_intel_pt;
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
14314 $as_echo_n "checking whether to use intel pt... " >&6; }
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
14316 $as_echo "$with_intel_pt" >&6; }
14318 if test "${with_intel_pt}" = no
; then
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
14320 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
14323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14324 /* end confdefs.h. */
14326 #include <linux/perf_event.h>
14327 #ifndef PERF_ATTR_SIZE_VER5
14332 if ac_fn_c_try_cpp
"$LINENO"; then :
14337 rm -f conftest.err conftest.i conftest.
$ac_ext
14338 if test "$perf_event" != yes; then
14339 if test "$with_intel_pt" = yes; then
14340 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
14343 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
14357 acl_save_prefix
="$prefix"
14358 prefix
="$acl_final_prefix"
14359 acl_save_exec_prefix
="$exec_prefix"
14360 exec_prefix
="$acl_final_exec_prefix"
14362 eval additional_includedir
=\"$includedir\"
14363 eval additional_libdir
=\"$libdir\"
14365 exec_prefix
="$acl_save_exec_prefix"
14366 prefix
="$acl_save_prefix"
14369 # Check whether --with-libipt-prefix was given.
14370 if test "${with_libipt_prefix+set}" = set; then :
14371 withval
=$with_libipt_prefix;
14372 if test "X$withval" = "Xno"; then
14375 if test "X$withval" = "X"; then
14377 acl_save_prefix
="$prefix"
14378 prefix
="$acl_final_prefix"
14379 acl_save_exec_prefix
="$exec_prefix"
14380 exec_prefix
="$acl_final_exec_prefix"
14382 eval additional_includedir
=\"$includedir\"
14383 eval additional_libdir
=\"$libdir\"
14385 exec_prefix
="$acl_save_exec_prefix"
14386 prefix
="$acl_save_prefix"
14389 additional_includedir
="$withval/include"
14390 additional_libdir
="$withval/lib"
14397 # Check whether --with-libipt-type was given.
14398 if test "${with_libipt_type+set}" = set; then :
14399 withval
=$with_libipt_type; with_libipt_type
=$withval
14401 with_libipt_type
=auto
14404 lib_type
=`eval echo \$with_libipt_type`
14411 names_already_handled
=
14412 names_next_round
='ipt '
14413 while test -n "$names_next_round"; do
14414 names_this_round
="$names_next_round"
14416 for name
in $names_this_round; do
14418 for n
in $names_already_handled; do
14419 if test "$n" = "$name"; then
14420 already_handled
=yes
14424 if test -z "$already_handled"; then
14425 names_already_handled
="$names_already_handled $name"
14426 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14427 eval value
=\"\
$HAVE_LIB$uppername\"
14428 if test -n "$value"; then
14429 if test "$value" = yes; then
14430 eval value
=\"\
$LIB$uppername\"
14431 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
14432 eval value
=\"\
$LTLIB$uppername\"
14433 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
14442 if test $use_additional = yes; then
14443 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
14444 found_dir
="$additional_libdir"
14445 found_so
="$additional_libdir/lib$name.$shlibext"
14446 if test -f "$additional_libdir/lib$name.la"; then
14447 found_la
="$additional_libdir/lib$name.la"
14449 elif test x
$lib_type != xshared
; then
14450 if test -f "$additional_libdir/lib$name.$libext"; then
14451 found_dir
="$additional_libdir"
14452 found_a
="$additional_libdir/lib$name.$libext"
14453 if test -f "$additional_libdir/lib$name.la"; then
14454 found_la
="$additional_libdir/lib$name.la"
14459 if test "X$found_dir" = "X"; then
14460 for x
in $LDFLAGS $LTLIBIPT; do
14462 acl_save_prefix
="$prefix"
14463 prefix
="$acl_final_prefix"
14464 acl_save_exec_prefix
="$exec_prefix"
14465 exec_prefix
="$acl_final_exec_prefix"
14467 exec_prefix
="$acl_save_exec_prefix"
14468 prefix
="$acl_save_prefix"
14472 dir
=`echo "X$x" | sed -e 's/^X-L//'`
14473 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
14475 found_so
="$dir/lib$name.$shlibext"
14476 if test -f "$dir/lib$name.la"; then
14477 found_la
="$dir/lib$name.la"
14479 elif test x
$lib_type != xshared
; then
14480 if test -f "$dir/lib$name.$libext"; then
14482 found_a
="$dir/lib$name.$libext"
14483 if test -f "$dir/lib$name.la"; then
14484 found_la
="$dir/lib$name.la"
14490 if test "X$found_dir" != "X"; then
14495 if test "X$found_dir" != "X"; then
14496 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
14497 if test "X$found_so" != "X"; then
14498 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
14499 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14502 for x
in $ltrpathdirs; do
14503 if test "X$x" = "X$found_dir"; then
14508 if test -z "$haveit"; then
14509 ltrpathdirs
="$ltrpathdirs $found_dir"
14511 if test "$hardcode_direct" = yes; then
14512 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14514 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
14515 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14517 for x
in $rpathdirs; do
14518 if test "X$x" = "X$found_dir"; then
14523 if test -z "$haveit"; then
14524 rpathdirs
="$rpathdirs $found_dir"
14528 for x
in $LDFLAGS $LIBIPT; do
14530 acl_save_prefix
="$prefix"
14531 prefix
="$acl_final_prefix"
14532 acl_save_exec_prefix
="$exec_prefix"
14533 exec_prefix
="$acl_final_exec_prefix"
14535 exec_prefix
="$acl_save_exec_prefix"
14536 prefix
="$acl_save_prefix"
14538 if test "X$x" = "X-L$found_dir"; then
14543 if test -z "$haveit"; then
14544 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
14546 if test "$hardcode_minus_L" != no
; then
14547 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14549 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
14555 if test "X$found_a" != "X"; then
14556 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
14558 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
14561 additional_includedir
=
14562 case "$found_dir" in
14564 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14565 additional_includedir
="$basedir/include"
14568 if test "X$additional_includedir" != "X"; then
14569 if test "X$additional_includedir" != "X/usr/include"; then
14571 if test "X$additional_includedir" = "X/usr/local/include"; then
14572 if test -n "$GCC"; then
14574 linux
*) haveit
=yes;;
14578 if test -z "$haveit"; then
14579 for x
in $CPPFLAGS $INCIPT; do
14581 acl_save_prefix
="$prefix"
14582 prefix
="$acl_final_prefix"
14583 acl_save_exec_prefix
="$exec_prefix"
14584 exec_prefix
="$acl_final_exec_prefix"
14586 exec_prefix
="$acl_save_exec_prefix"
14587 prefix
="$acl_save_prefix"
14589 if test "X$x" = "X-I$additional_includedir"; then
14594 if test -z "$haveit"; then
14595 if test -d "$additional_includedir"; then
14596 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
14602 if test -n "$found_la"; then
14603 save_libdir
="$libdir"
14604 case "$found_la" in
14605 */* |
*\\*) .
"$found_la" ;;
14606 *) .
"./$found_la" ;;
14608 libdir
="$save_libdir"
14609 for dep
in $dependency_libs; do
14612 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
14613 if test "X$additional_libdir" != "X/usr/lib"; then
14615 if test "X$additional_libdir" = "X/usr/local/lib"; then
14616 if test -n "$GCC"; then
14618 linux
*) haveit
=yes;;
14622 if test -z "$haveit"; then
14624 for x
in $LDFLAGS $LIBIPT; do
14626 acl_save_prefix
="$prefix"
14627 prefix
="$acl_final_prefix"
14628 acl_save_exec_prefix
="$exec_prefix"
14629 exec_prefix
="$acl_final_exec_prefix"
14631 exec_prefix
="$acl_save_exec_prefix"
14632 prefix
="$acl_save_prefix"
14634 if test "X$x" = "X-L$additional_libdir"; then
14639 if test -z "$haveit"; then
14640 if test -d "$additional_libdir"; then
14641 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
14645 for x
in $LDFLAGS $LTLIBIPT; do
14647 acl_save_prefix
="$prefix"
14648 prefix
="$acl_final_prefix"
14649 acl_save_exec_prefix
="$exec_prefix"
14650 exec_prefix
="$acl_final_exec_prefix"
14652 exec_prefix
="$acl_save_exec_prefix"
14653 prefix
="$acl_save_prefix"
14655 if test "X$x" = "X-L$additional_libdir"; then
14660 if test -z "$haveit"; then
14661 if test -d "$additional_libdir"; then
14662 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
14669 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
14670 if test "$enable_rpath" != no
; then
14672 for x
in $rpathdirs; do
14673 if test "X$x" = "X$dir"; then
14678 if test -z "$haveit"; then
14679 rpathdirs
="$rpathdirs $dir"
14682 for x
in $ltrpathdirs; do
14683 if test "X$x" = "X$dir"; then
14688 if test -z "$haveit"; then
14689 ltrpathdirs
="$ltrpathdirs $dir"
14694 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14697 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14700 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
14701 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
14707 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
14708 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
14709 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
14711 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
14712 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
14719 if test "X$rpathdirs" != "X"; then
14720 if test -n "$hardcode_libdir_separator"; then
14722 for found_dir
in $rpathdirs; do
14723 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14725 acl_save_libdir
="$libdir"
14727 eval flag
=\"$hardcode_libdir_flag_spec\"
14728 libdir
="$acl_save_libdir"
14729 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
14731 for found_dir
in $rpathdirs; do
14732 acl_save_libdir
="$libdir"
14733 libdir
="$found_dir"
14734 eval flag
=\"$hardcode_libdir_flag_spec\"
14735 libdir
="$acl_save_libdir"
14736 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
14740 if test "X$ltrpathdirs" != "X"; then
14741 for found_dir
in $ltrpathdirs; do
14742 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
14747 ac_save_CPPFLAGS
="$CPPFLAGS"
14749 for element
in $INCIPT; do
14751 for x
in $CPPFLAGS; do
14753 acl_save_prefix
="$prefix"
14754 prefix
="$acl_final_prefix"
14755 acl_save_exec_prefix
="$exec_prefix"
14756 exec_prefix
="$acl_final_exec_prefix"
14758 exec_prefix
="$acl_save_exec_prefix"
14759 prefix
="$acl_save_prefix"
14761 if test "X$x" = "X$element"; then
14766 if test -z "$haveit"; then
14767 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
14773 $as_echo_n "checking for libipt... " >&6; }
14774 if ${ac_cv_libipt+:} false
; then :
14775 $as_echo_n "(cached) " >&6
14778 ac_save_LIBS
="$LIBS"
14779 LIBS
="$LIBS $LIBIPT"
14780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14781 /* end confdefs.h. */
14782 #include "intel-pt.h"
14786 pt_insn_alloc_decoder (0);
14791 if ac_fn_c_try_link
"$LINENO"; then :
14796 rm -f core conftest.err conftest.
$ac_objext \
14797 conftest
$ac_exeext conftest.
$ac_ext
14798 LIBS
="$ac_save_LIBS"
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
14802 $as_echo "$ac_cv_libipt" >&6; }
14803 if test "$ac_cv_libipt" = yes; then
14806 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
14809 $as_echo_n "checking how to link with libipt... " >&6; }
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
14811 $as_echo "$LIBIPT" >&6; }
14814 CPPFLAGS
="$ac_save_CPPFLAGS"
14824 if test "$HAVE_LIBIPT" != yes; then
14825 if test "$with_intel_pt" = yes; then
14826 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
14829 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
14833 LIBS
="$LIBS $LIBIPT"
14834 for ac_func
in pt_insn_event
14836 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
14837 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
14838 cat >>confdefs.h
<<_ACEOF
14839 #define HAVE_PT_INSN_EVENT 1
14845 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
14847 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
14849 cat >>confdefs.h
<<_ACEOF
14850 #define HAVE_STRUCT_PT_INSN_ENABLED 1
14855 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
14857 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
14859 cat >>confdefs.h
<<_ACEOF
14860 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
14870 if test "$ac_cv_header_sys_procfs_h" = yes; then
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
14872 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
14873 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
14874 $as_echo_n "(cached) " >&6
14876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14877 /* end confdefs.h. */
14880 /* Needed for new procfs interface on sparc-solaris. */
14881 #define _STRUCTURED_PROC 1
14882 #include <sys/procfs.h>
14891 if ac_fn_c_try_compile
"$LINENO"; then :
14892 bfd_cv_have_sys_procfs_type_gregset_t
=yes
14894 bfd_cv_have_sys_procfs_type_gregset_t
=no
14897 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14900 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
14902 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
14906 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
14909 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
14910 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
14911 $as_echo_n "(cached) " >&6
14913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14914 /* end confdefs.h. */
14917 /* Needed for new procfs interface on sparc-solaris. */
14918 #define _STRUCTURED_PROC 1
14919 #include <sys/procfs.h>
14928 if ac_fn_c_try_compile
"$LINENO"; then :
14929 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
14931 bfd_cv_have_sys_procfs_type_fpregset_t
=no
14934 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14937 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
14939 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
14943 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
14946 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
14947 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
14948 $as_echo_n "(cached) " >&6
14950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14951 /* end confdefs.h. */
14954 /* Needed for new procfs interface on sparc-solaris. */
14955 #define _STRUCTURED_PROC 1
14956 #include <sys/procfs.h>
14965 if ac_fn_c_try_compile
"$LINENO"; then :
14966 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
14968 bfd_cv_have_sys_procfs_type_prgregset_t
=no
14971 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14974 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
14976 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
14980 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
14983 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
14984 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
14985 $as_echo_n "(cached) " >&6
14987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14988 /* end confdefs.h. */
14991 /* Needed for new procfs interface on sparc-solaris. */
14992 #define _STRUCTURED_PROC 1
14993 #include <sys/procfs.h>
15002 if ac_fn_c_try_compile
"$LINENO"; then :
15003 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
15005 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
15008 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15011 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
15013 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
15017 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
15020 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
15021 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
15022 $as_echo_n "(cached) " >&6
15024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15025 /* end confdefs.h. */
15028 /* Needed for new procfs interface on sparc-solaris. */
15029 #define _STRUCTURED_PROC 1
15030 #include <sys/procfs.h>
15039 if ac_fn_c_try_compile
"$LINENO"; then :
15040 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
15042 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
15045 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15048 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
15050 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
15054 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
15057 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
15058 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
15059 $as_echo_n "(cached) " >&6
15061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15062 /* end confdefs.h. */
15065 /* Needed for new procfs interface on sparc-solaris. */
15066 #define _STRUCTURED_PROC 1
15067 #include <sys/procfs.h>
15076 if ac_fn_c_try_compile
"$LINENO"; then :
15077 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
15079 bfd_cv_have_sys_procfs_type_lwpid_t
=no
15082 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15085 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
15087 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
15091 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
15094 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
15095 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
15096 $as_echo_n "(cached) " >&6
15098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15099 /* end confdefs.h. */
15102 /* Needed for new procfs interface on sparc-solaris. */
15103 #define _STRUCTURED_PROC 1
15104 #include <sys/procfs.h>
15113 if ac_fn_c_try_compile
"$LINENO"; then :
15114 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
15116 bfd_cv_have_sys_procfs_type_psaddr_t
=no
15119 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15122 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
15124 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
15128 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
15131 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
15132 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
15133 $as_echo_n "(cached) " >&6
15135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15136 /* end confdefs.h. */
15139 /* Needed for new procfs interface on sparc-solaris. */
15140 #define _STRUCTURED_PROC 1
15141 #include <sys/procfs.h>
15145 elf_fpregset_t avar
15150 if ac_fn_c_try_compile
"$LINENO"; then :
15151 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
15153 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
15156 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15159 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
15161 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
15165 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
15170 # Check the return and argument types of ptrace.
15173 for ac_header
in sys
/ptrace.h ptrace.h
15175 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15176 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15177 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
15178 cat >>confdefs.h
<<_ACEOF
15179 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15187 gdb_ptrace_headers
='
15188 #include <sys/types.h>
15189 #if HAVE_SYS_PTRACE_H
15190 # include <sys/ptrace.h>
15193 # include <unistd.h>
15197 # Check return type. Varargs (used on GNU/Linux) conflict with the
15198 # empty argument list, so check for that explicitly.
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
15200 $as_echo_n "checking return type of ptrace... " >&6; }
15201 if ${gdb_cv_func_ptrace_ret+:} false
; then :
15202 $as_echo_n "(cached) " >&6
15204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15205 /* end confdefs.h. */
15206 $gdb_ptrace_headers
15210 extern long ptrace (enum __ptrace_request, ...);
15215 if ac_fn_c_try_compile
"$LINENO"; then :
15216 gdb_cv_func_ptrace_ret
='long'
15218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15219 /* end confdefs.h. */
15220 $gdb_ptrace_headers
15224 extern int ptrace ();
15229 if ac_fn_c_try_compile
"$LINENO"; then :
15230 gdb_cv_func_ptrace_ret
='int'
15232 gdb_cv_func_ptrace_ret
='long'
15234 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15236 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
15239 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
15241 cat >>confdefs.h
<<_ACEOF
15242 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
15245 # Check argument types.
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
15247 $as_echo_n "checking types of arguments for ptrace... " >&6; }
15248 if ${gdb_cv_func_ptrace_args+:} false
; then :
15249 $as_echo_n "(cached) " >&6
15252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15253 /* end confdefs.h. */
15254 $gdb_ptrace_headers
15258 extern long ptrace (enum __ptrace_request, ...);
15263 if ac_fn_c_try_compile
"$LINENO"; then :
15264 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
15267 for gdb_arg1
in 'int' 'long'; do
15268 for gdb_arg2
in 'pid_t' 'int' 'long'; do
15269 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
15270 for gdb_arg4
in 'int' 'long' 'void *'; do
15271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15272 /* end confdefs.h. */
15273 $gdb_ptrace_headers
15278 extern $gdb_cv_func_ptrace_ret
15279 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
15285 if ac_fn_c_try_compile
"$LINENO"; then :
15286 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
15289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15290 for gdb_arg5
in 'int *' 'int' 'long'; do
15291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15292 /* end confdefs.h. */
15293 $gdb_ptrace_headers
15298 extern $gdb_cv_func_ptrace_ret
15299 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
15305 if ac_fn_c_try_compile
"$LINENO"; then :
15307 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
15310 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15316 # Provide a safe default value.
15317 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
15320 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
15323 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
15324 ac_save_IFS
=$IFS; IFS
=','
15325 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
15329 cat >>confdefs.h
<<_ACEOF
15330 #define PTRACE_TYPE_ARG1 $1
15334 cat >>confdefs.h
<<_ACEOF
15335 #define PTRACE_TYPE_ARG3 $3
15339 cat >>confdefs.h
<<_ACEOF
15340 #define PTRACE_TYPE_ARG4 $4
15343 if test -n "$5"; then
15345 cat >>confdefs.h
<<_ACEOF
15346 #define PTRACE_TYPE_ARG5 $5
15352 if test "$cross_compiling" = no
; then
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
15354 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
15355 if ${ac_cv_func_setpgrp_void+:} false
; then :
15356 $as_echo_n "(cached) " >&6
15358 if test "$cross_compiling" = yes; then :
15359 as_fn_error $?
"cannot check setpgrp when cross compiling" "$LINENO" 5
15361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15362 /* end confdefs.h. */
15363 $ac_includes_default
15367 /* If this system has a BSD-style setpgrp which takes arguments,
15368 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
15369 exit successfully. */
15370 return setpgrp (1,1) != -1;
15375 if ac_fn_c_try_run
"$LINENO"; then :
15376 ac_cv_func_setpgrp_void
=no
15378 ac_cv_func_setpgrp_void
=yes
15380 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15381 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
15386 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
15387 if test $ac_cv_func_setpgrp_void = yes; then
15389 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
15395 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
15396 if ${ac_cv_func_setpgrp_void+:} false
; then :
15397 $as_echo_n "(cached) " >&6
15399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15400 /* end confdefs.h. */
15402 #include <unistd.h>
15408 if (setpgrp(1,1) == -1)
15417 if ac_fn_c_try_compile
"$LINENO"; then :
15418 ac_cv_func_setpgrp_void
=no
15420 ac_cv_func_setpgrp_void
=yes
15422 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
15425 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
15426 if test "$ac_cv_func_setpgrp_void" = yes; then
15427 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
15432 # Assume we'll default to using the included libiberty regex.
15433 gdb_use_included_regex
=yes
15435 # However, if the system regex is GNU regex, then default to *not*
15436 # using the included regex.
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
15438 $as_echo_n "checking for GNU regex... " >&6; }
15439 if ${gdb_cv_have_gnu_regex+:} false
; then :
15440 $as_echo_n "(cached) " >&6
15442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15443 /* end confdefs.h. */
15444 #include <gnu-versions.h>
15448 #define REGEX_INTERFACE_VERSION 1
15449 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
15450 # error "Version mismatch"
15456 if ac_fn_c_try_compile
"$LINENO"; then :
15457 gdb_cv_have_gnu_regex
=yes
15459 gdb_cv_have_gnu_regex
=no
15461 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
15464 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
15465 if test "$gdb_cv_have_gnu_regex" = yes; then
15466 gdb_use_included_regex
=no
15470 # Check whether --with-included-regex was given.
15471 if test "${with_included_regex+set}" = set; then :
15472 withval
=$with_included_regex; gdb_with_regex
=$withval
15474 gdb_with_regex
=$gdb_use_included_regex
15477 if test "$gdb_with_regex" = yes; then
15479 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
15483 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
15484 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
15485 #include <sys/proc.h>
15488 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes
; then :
15490 cat >>confdefs.h
<<_ACEOF
15491 #define HAVE_STRUCT_THREAD_TD_PCB 1
15498 # See if <sys/lwp.h> defines `struct lwp`.
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
15500 $as_echo_n "checking for struct lwp... " >&6; }
15501 if ${gdb_cv_struct_lwp+:} false
; then :
15502 $as_echo_n "(cached) " >&6
15504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15505 /* end confdefs.h. */
15506 #include <sys/param.h>
15508 #include <sys/lwp.h>
15517 if ac_fn_c_try_compile
"$LINENO"; then :
15518 gdb_cv_struct_lwp
=yes
15520 gdb_cv_struct_lwp
=no
15522 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
15525 $as_echo "$gdb_cv_struct_lwp" >&6; }
15526 if test "$gdb_cv_struct_lwp" = yes; then
15528 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
15532 # See if <machine/reg.h> degines `struct reg'.
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
15534 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
15535 if ${gdb_cv_struct_reg+:} false
; then :
15536 $as_echo_n "(cached) " >&6
15538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15539 /* end confdefs.h. */
15540 #include <sys/types.h>
15541 #include <machine/reg.h>
15550 if ac_fn_c_try_compile
"$LINENO"; then :
15551 gdb_cv_struct_reg
=yes
15553 gdb_cv_struct_reg
=no
15555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
15558 $as_echo "$gdb_cv_struct_reg" >&6; }
15559 if test "$gdb_cv_struct_reg" = yes; then
15561 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
15565 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
15566 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
15567 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
15568 #include <machine/reg.h>
15570 if test "x$ac_cv_member_struct_reg_r_fs" = xyes
; then :
15572 cat >>confdefs.h
<<_ACEOF
15573 #define HAVE_STRUCT_REG_R_FS 1
15578 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
15579 #include <machine/reg.h>
15581 if test "x$ac_cv_member_struct_reg_r_gs" = xyes
; then :
15583 cat >>confdefs.h
<<_ACEOF
15584 #define HAVE_STRUCT_REG_R_GS 1
15591 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
15593 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
15594 if ${gdb_cv_have_ptrace_getregs+:} false
; then :
15595 $as_echo_n "(cached) " >&6
15597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15598 /* end confdefs.h. */
15599 #include <sys/ptrace.h>
15608 if ac_fn_c_try_compile
"$LINENO"; then :
15609 gdb_cv_have_ptrace_getregs
=yes
15611 gdb_cv_have_ptrace_getregs
=no
15613 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
15617 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
15618 if test "$gdb_cv_have_ptrace_getregs" = yes; then
15620 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
15624 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
15626 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
15627 if ${gdb_cv_have_ptrace_getfpxregs+:} false
; then :
15628 $as_echo_n "(cached) " >&6
15630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15631 /* end confdefs.h. */
15632 #include <sys/ptrace.h>
15641 if ac_fn_c_try_compile
"$LINENO"; then :
15642 gdb_cv_have_ptrace_getfpxregs
=yes
15644 gdb_cv_have_ptrace_getfpxregs
=no
15646 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
15650 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
15651 if test "$gdb_cv_have_ptrace_getfpxregs" = yes; then
15653 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
15657 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
15659 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
15660 if ${gdb_cv_have_pt_getdbregs+:} false
; then :
15661 $as_echo_n "(cached) " >&6
15663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15664 /* end confdefs.h. */
15665 #include <sys/types.h>
15666 #include <sys/ptrace.h>
15675 if ac_fn_c_try_compile
"$LINENO"; then :
15676 gdb_cv_have_pt_getdbregs
=yes
15678 gdb_cv_have_pt_getdbregs
=no
15680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
15684 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
15685 if test "$gdb_cv_have_pt_getdbregs" = yes; then
15687 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
15691 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
15693 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
15694 if ${gdb_cv_have_pt_getxmmregs+:} false
; then :
15695 $as_echo_n "(cached) " >&6
15697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15698 /* end confdefs.h. */
15699 #include <sys/types.h>
15700 #include <sys/ptrace.h>
15709 if ac_fn_c_try_compile
"$LINENO"; then :
15710 gdb_cv_have_pt_getxmmregs
=yes
15712 gdb_cv_have_pt_getxmmregs
=no
15714 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
15718 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
15719 if test "$gdb_cv_have_pt_getxmmregs" = yes; then
15721 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
15725 # See if <sys/ptrace.h> supports LWP names on FreeBSD
15726 # Older FreeBSD versions don't have the pl_tdname member of
15727 # `struct ptrace_lwpinfo'.
15728 ac_fn_c_check_member
"$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
15730 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes
; then :
15732 cat >>confdefs.h
<<_ACEOF
15733 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
15740 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
15741 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
15743 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>
15745 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes
; then :
15747 cat >>confdefs.h
<<_ACEOF
15748 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
15755 # Check if the compiler supports the `long long' type.
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
15758 $as_echo_n "checking for long long support in compiler... " >&6; }
15759 if ${gdb_cv_c_long_long+:} false
; then :
15760 $as_echo_n "(cached) " >&6
15762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15763 /* end confdefs.h. */
15764 extern long long foo;
15768 switch (foo & 2) { case 0: return 1; }
15773 if ac_fn_c_try_compile
"$LINENO"; then :
15774 gdb_cv_c_long_long
=yes
15776 gdb_cv_c_long_long
=no
15778 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
15781 $as_echo "$gdb_cv_c_long_long" >&6; }
15782 if test "$gdb_cv_c_long_long" != yes; then
15783 # libdecnumber requires long long.
15784 as_fn_error $?
"Compiler must support long long for GDB." "$LINENO" 5
15787 # Check if the compiler and runtime support printing long longs.
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
15790 $as_echo_n "checking for long long support in printf... " >&6; }
15791 if ${gdb_cv_printf_has_long_long+:} false
; then :
15792 $as_echo_n "(cached) " >&6
15794 if test "$cross_compiling" = yes; then :
15795 gdb_cv_printf_has_long_long
=no
15797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15798 /* end confdefs.h. */
15799 $ac_includes_default
15805 l = (l << 16) + 0x0123;
15806 l = (l << 16) + 0x4567;
15807 l = (l << 16) + 0x89ab;
15808 l = (l << 16) + 0xcdef;
15809 sprintf (buf, "0x%016llx", l);
15810 return (strcmp ("0x0123456789abcdef", buf));
15815 if ac_fn_c_try_run
"$LINENO"; then :
15816 gdb_cv_printf_has_long_long
=yes
15818 gdb_cv_printf_has_long_long
=no
15820 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15821 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
15826 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
15827 if test "$gdb_cv_printf_has_long_long" = yes; then
15829 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
15833 # Check if the compiler and runtime support printing decfloats.
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
15836 $as_echo_n "checking for decfloat support in printf... " >&6; }
15837 if ${gdb_cv_printf_has_decfloat+:} false
; then :
15838 $as_echo_n "(cached) " >&6
15840 if test "$cross_compiling" = yes; then :
15841 gdb_cv_printf_has_decfloat
=no
15843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15844 /* end confdefs.h. */
15845 $ac_includes_default
15850 _Decimal32 d32 = 1.2345df;
15851 _Decimal64 d64 = 1.2345dd;
15852 _Decimal128 d128 = 1.2345dl;
15853 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
15854 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
15859 if ac_fn_c_try_run
"$LINENO"; then :
15860 gdb_cv_printf_has_decfloat
=yes
15862 gdb_cv_printf_has_decfloat
=no
15864 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15865 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
15870 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
15871 if test "$gdb_cv_printf_has_decfloat" = yes; then
15873 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
15877 # Check if the compiler supports the `long double' type. We can't use
15878 # AC_C_LONG_DOUBLE because that one does additional checks on the
15879 # constants defined in <float.h> that fail on some systems,
15880 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
15883 $as_echo_n "checking for long double support in compiler... " >&6; }
15884 if ${gdb_cv_c_long_double+:} false
; then :
15885 $as_echo_n "(cached) " >&6
15887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15888 /* end confdefs.h. */
15891 if ac_fn_c_try_compile
"$LINENO"; then :
15892 gdb_cv_c_long_double
=yes
15894 gdb_cv_c_long_double
=no
15896 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
15899 $as_echo "$gdb_cv_c_long_double" >&6; }
15900 if test "$gdb_cv_c_long_double" = yes; then
15902 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
15906 # Check if the compiler and runtime support printing long doubles.
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
15909 $as_echo_n "checking for long double support in printf... " >&6; }
15910 if ${gdb_cv_printf_has_long_double+:} false
; then :
15911 $as_echo_n "(cached) " >&6
15913 if test "$cross_compiling" = yes; then :
15914 gdb_cv_printf_has_long_double
=no
15916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15917 /* end confdefs.h. */
15918 $ac_includes_default
15923 long double f = 3.141592653;
15924 sprintf (buf, "%Lg", f);
15925 return (strncmp ("3.14159", buf, 7));
15930 if ac_fn_c_try_run
"$LINENO"; then :
15931 gdb_cv_printf_has_long_double
=yes
15933 gdb_cv_printf_has_long_double
=no
15935 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15936 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
15941 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
15942 if test "$gdb_cv_printf_has_long_double" = yes; then
15944 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
15948 # Check if the compiler and runtime support scanning long doubles.
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
15951 $as_echo_n "checking for long double support in scanf... " >&6; }
15952 if ${gdb_cv_scanf_has_long_double+:} false
; then :
15953 $as_echo_n "(cached) " >&6
15955 if test "$cross_compiling" = yes; then :
15956 gdb_cv_scanf_has_long_double
=no
15958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15959 /* end confdefs.h. */
15964 char *buf = "3.141592653";
15966 sscanf (buf, "%Lg", &f);
15967 return !(f > 3.14159 && f < 3.14160);
15972 if ac_fn_c_try_run
"$LINENO"; then :
15973 gdb_cv_scanf_has_long_double
=yes
15975 gdb_cv_scanf_has_long_double
=no
15977 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15978 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
15983 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
15984 if test "$gdb_cv_scanf_has_long_double" = yes; then
15986 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
15993 $as_echo_n "checking for -bbigtoc option... " >&6; }
15994 if ${gdb_cv_bigtoc+:} false
; then :
15995 $as_echo_n "(cached) " >&6
15998 SAVE_LDFLAGS
=$LDFLAGS
16001 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
16002 *) gdb_cv_bigtoc
=-bbigtoc ;;
16005 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
16006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16007 /* end confdefs.h. */
16017 if ac_fn_c_try_link
"$LINENO"; then :
16022 rm -f core conftest.err conftest.
$ac_objext \
16023 conftest
$ac_exeext conftest.
$ac_ext
16024 LDFLAGS
="${SAVE_LDFLAGS}"
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
16028 $as_echo "$gdb_cv_bigtoc" >&6; }
16029 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
16034 $as_echo_n "checking for the dynamic export flag... " >&6; }
16036 if test "${gdb_native}" = yes; then
16037 # The dynamically loaded libthread_db needs access to symbols in the gdb
16038 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
16039 # may not be supported there.
16040 old_LDFLAGS
="$LDFLAGS"
16041 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
16042 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
16043 LDFLAGS
="$LDFLAGS $RDYNAMIC"
16044 if test "${have_libpython}" = no
; then
16045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16046 /* end confdefs.h. */
16056 if ac_fn_c_try_link
"$LINENO"; then :
16059 rm -f core conftest.err conftest.
$ac_objext \
16060 conftest
$ac_exeext conftest.
$ac_ext
16062 # Workaround http://bugs.python.org/issue4434 where static
16063 # libpythonX.Y.a would get its symbols required for
16064 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
16065 # Problem does not happen for the recommended libpythonX.Y.so linkage.
16067 # Note the workaround for Python
16068 # http://bugs.python.org/issue10112 earlier has removed
16069 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
16070 # here too, as otherwise it'd make this -Wl,--dynamic-list test
16072 old_CFLAGS
="$CFLAGS"
16073 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
16075 LIBS
="$LIBS $PYTHON_LIBS"
16076 old_CPPFLAGS
="$CPPFLAGS"
16077 CPPFLAGS
="$CPPFLAGS $PYTHON_CPPFLAGS"
16078 if test "$cross_compiling" = yes; then :
16081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16082 /* end confdefs.h. */
16083 #include "Python.h"
16089 err = PyRun_SimpleString ("import itertools\n");
16091 return err == 0 ? 0 : 1;
16096 if ac_fn_c_try_run
"$LINENO"; then :
16099 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16100 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16104 CFLAGS
="$old_CFLAGS"
16105 CPPFLAGS
="$old_CPPFLAGS"
16107 LDFLAGS
="$old_LDFLAGS"
16109 if $dynamic_list; then
16110 found
="-Wl,--dynamic-list"
16111 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
16114 RDYNAMIC
="-rdynamic"
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
16118 $as_echo "$found" >&6; }
16121 if test "${build}" = "${host}" -a "${host}" = "${target}" ; then
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
16125 $as_echo_n "checking for AiX thread debugging library... " >&6; }
16126 if ${gdb_cv_have_aix_thread_debug+:} false
; then :
16127 $as_echo_n "(cached) " >&6
16129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16130 /* end confdefs.h. */
16131 #include <sys/pthdebug.h>
16135 #ifndef PTHDB_VERSION_3
16142 if ac_fn_c_try_compile
"$LINENO"; then :
16143 gdb_cv_have_aix_thread_debug
=yes
16145 gdb_cv_have_aix_thread_debug
=no
16147 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
16151 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
16152 if test "$gdb_cv_have_aix_thread_debug" = yes; then
16153 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
16154 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
16155 LIBS
="$LIBS -lpthdebug"
16157 # Older versions of AIX do not provide the declaration for
16158 # the getthrds function (it appears that it was introduced
16160 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
16162 if test "x$ac_cv_have_decl_getthrds" = xyes
; then :
16168 cat >>confdefs.h
<<_ACEOF
16169 #define HAVE_DECL_GETTHRDS $ac_have_decl
16178 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
16180 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
16181 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false
; then :
16182 $as_echo_n "(cached) " >&6
16184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16185 /* end confdefs.h. */
16186 #include <thread_db.h>
16190 int i = TD_NOTALLOC;
16195 if ac_fn_c_try_compile
"$LINENO"; then :
16196 gdb_cv_thread_db_h_has_td_notalloc
=yes
16198 gdb_cv_thread_db_h_has_td_notalloc
=no
16201 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
16205 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
16207 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
16208 if ${gdb_cv_thread_db_h_has_td_version+:} false
; then :
16209 $as_echo_n "(cached) " >&6
16211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16212 /* end confdefs.h. */
16213 #include <thread_db.h>
16217 int i = TD_VERSION;
16222 if ac_fn_c_try_compile
"$LINENO"; then :
16223 gdb_cv_thread_db_h_has_td_version
=yes
16225 gdb_cv_thread_db_h_has_td_version
=no
16228 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
16232 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
16234 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
16235 if ${gdb_cv_thread_db_h_has_td_notls+:} false
; then :
16236 $as_echo_n "(cached) " >&6
16238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16239 /* end confdefs.h. */
16240 #include <thread_db.h>
16249 if ac_fn_c_try_compile
"$LINENO"; then :
16250 gdb_cv_thread_db_h_has_td_notls
=yes
16252 gdb_cv_thread_db_h_has_td_notls
=no
16255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
16259 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
16261 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
16263 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
16266 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
16268 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
16271 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
16273 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
16286 cat >>confdefs.h
<<_ACEOF
16287 #define GDBINIT "$gdbinit"
16292 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
16293 # except that the argument to --with-sysroot is optional.
16294 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
16295 if test "x$with_sysroot" = xyes
; then
16296 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
16299 # Check whether --with-sysroot was given.
16300 if test "${with_sysroot+set}" = set; then :
16301 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
16303 TARGET_SYSTEM_ROOT
=
16307 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16308 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16309 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
16310 ac_define_dir
=`eval echo $ac_define_dir`
16312 cat >>confdefs.h
<<_ACEOF
16313 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
16319 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16320 if test "x$prefix" = xNONE
; then
16321 test_prefix
=/usr
/local
16323 test_prefix
=$prefix
16326 test_prefix
=$exec_prefix
16329 case ${ac_define_dir} in
16330 "${test_prefix}"|
"${test_prefix}/"*|\
16331 '${exec_prefix}'|
'${exec_prefix}/'*)
16336 cat >>confdefs.h
<<_ACEOF
16337 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
16344 # Check whether --with-system-gdbinit was given.
16345 if test "${with_system_gdbinit+set}" = set; then :
16346 withval
=$with_system_gdbinit;
16347 SYSTEM_GDBINIT
=$withval
16353 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16354 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16355 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
16356 ac_define_dir
=`eval echo $ac_define_dir`
16358 cat >>confdefs.h
<<_ACEOF
16359 #define SYSTEM_GDBINIT "$ac_define_dir"
16365 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16366 if test "x$prefix" = xNONE
; then
16367 test_prefix
=/usr
/local
16369 test_prefix
=$prefix
16372 test_prefix
=$exec_prefix
16375 case ${ac_define_dir} in
16376 "${test_prefix}"|
"${test_prefix}/"*|\
16377 '${exec_prefix}'|
'${exec_prefix}/'*)
16382 cat >>confdefs.h
<<_ACEOF
16383 #define SYSTEM_GDBINIT_RELOCATABLE $value
16390 # Check whether --with-system-gdbinit-dir was given.
16391 if test "${with_system_gdbinit_dir+set}" = set; then :
16392 withval
=$with_system_gdbinit_dir;
16393 SYSTEM_GDBINIT_DIR
=$withval
16395 SYSTEM_GDBINIT_DIR
=
16399 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16400 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16401 ac_define_dir
=`eval echo $SYSTEM_GDBINIT_DIR`
16402 ac_define_dir
=`eval echo $ac_define_dir`
16404 cat >>confdefs.h
<<_ACEOF
16405 #define SYSTEM_GDBINIT_DIR "$ac_define_dir"
16411 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16412 if test "x$prefix" = xNONE
; then
16413 test_prefix
=/usr
/local
16415 test_prefix
=$prefix
16418 test_prefix
=$exec_prefix
16421 case ${ac_define_dir} in
16422 "${test_prefix}"|
"${test_prefix}/"*|\
16423 '${exec_prefix}'|
'${exec_prefix}/'*)
16428 cat >>confdefs.h
<<_ACEOF
16429 #define SYSTEM_GDBINIT_DIR_RELOCATABLE $value
16436 # Check whether --enable-werror was given.
16437 if test "${enable_werror+set}" = set; then :
16438 enableval
=$enable_werror; case "${enableval}" in
16439 yes | y
) ERROR_ON_WARNING
="yes" ;;
16440 no | n
) ERROR_ON_WARNING
="no" ;;
16441 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16446 # Enable -Werror by default when using gcc. Turn it off for releases.
16447 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
16448 ERROR_ON_WARNING
=yes
16452 if test "${ERROR_ON_WARNING}" = yes ; then
16453 WERROR_CFLAGS
="-Werror"
16456 # The options we'll try to enable.
16457 build_warnings
="-Wall -Wpointer-arith \
16458 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
16459 -Wno-switch -Wno-char-subscripts \
16460 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
16461 -Wno-sign-compare -Wno-error=maybe-uninitialized \
16462 -Wno-mismatched-tags \
16463 -Wno-error=deprecated-register \
16464 -Wsuggest-override \
16465 -Wimplicit-fallthrough=3 \
16466 -Wduplicated-cond \
16468 -Wdeprecated-copy \
16469 -Wdeprecated-copy-dtor \
16471 -Wmissing-declarations \
16472 -Wmissing-prototypes \
16473 -Wstrict-null-sentinel \
16478 # Enable -Wno-format by default when using gcc on mingw since many
16479 # GCC versions complain about %I64.
16480 build_warnings
="$build_warnings -Wno-format" ;;
16482 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
16483 # doesn't understand.
16484 build_warnings
="$build_warnings -Wno-unknown-pragmas"
16485 # Solaris 11 <unistd.h> marks vfork deprecated.
16486 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
16488 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
16489 # but there's a special case for this below.
16490 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
16493 # Check whether --enable-build-warnings was given.
16494 if test "${enable_build_warnings+set}" = set; then :
16495 enableval
=$enable_build_warnings; case "${enableval}" in
16497 no
) build_warnings
="-w";;
16498 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16499 build_warnings
="${build_warnings} ${t}";;
16500 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16501 build_warnings
="${t} ${build_warnings}";;
16502 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16504 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
16505 echo "Setting compiler warning flags = $build_warnings" 6>&1
16508 # Check whether --enable-gdb-build-warnings was given.
16509 if test "${enable_gdb_build_warnings+set}" = set; then :
16510 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
16512 no
) build_warnings
="-w";;
16513 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16514 build_warnings
="${build_warnings} ${t}";;
16515 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16516 build_warnings
="${t} ${build_warnings}";;
16517 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16519 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
16520 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
16524 # The set of warnings supported by a C++ compiler is not the same as
16525 # of the C compiler.
16527 ac_cpp
='$CXXCPP $CPPFLAGS'
16528 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16529 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16530 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
16534 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
16537 $as_echo_n "checking compiler warning flags... " >&6; }
16538 # Separate out the -Werror flag as some files just cannot be
16539 # compiled with it enabled.
16540 for w
in ${build_warnings}; do
16541 # GCC does not complain about -Wno-unknown-warning. Invert
16542 # and test -Wunknown-warning instead.
16545 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
16546 -Wformat-nonliteral)
16547 # gcc requires -Wformat before -Wformat-nonliteral
16548 # will work, so stick them together.
16557 -Werr*) WERROR_CFLAGS
=-Werror ;;
16559 # Check whether GCC accepts it.
16560 saved_CFLAGS
="$CFLAGS"
16561 CFLAGS
="$CFLAGS -Werror $wtest"
16562 saved_CXXFLAGS
="$CXXFLAGS"
16563 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
16564 if test "x$w" = "x-Wunused-variable"; then
16565 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
16566 # fixed in GCC 4.9. This test is derived from the gdb
16567 # source code that triggered this bug in GCC.
16568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16569 /* end confdefs.h. */
16570 struct scoped_restore_base {};
16571 struct scoped_restore_tmpl : public scoped_restore_base {
16572 ~scoped_restore_tmpl() {}
16577 const scoped_restore_base &b = scoped_restore_tmpl();
16582 if ac_fn_cxx_try_compile
"$LINENO"; then :
16583 WARN_CFLAGS
="${WARN_CFLAGS} $w"
16585 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16588 /* end confdefs.h. */
16598 if ac_fn_cxx_try_compile
"$LINENO"; then :
16599 WARN_CFLAGS
="${WARN_CFLAGS} $w"
16601 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16603 CFLAGS
="$saved_CFLAGS"
16604 CXXFLAGS
="$saved_CXXFLAGS"
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
16608 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
16614 ac_cpp='$CPP $CPPFLAGS'
16615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16621 # Check whether --enable-ubsan was given.
16622 if test "${enable_ubsan+set}" = set; then :
16623 enableval=$enable_ubsan;
16628 if test "x
$enable_ubsan" = xauto; then
16629 if $development; then
16634 ac_cpp='$CXXCPP $CPPFLAGS'
16635 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16636 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16637 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16639 if test "x
$enable_ubsan" = xyes; then
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
-fsanitize=undefined is accepted
" >&5
16641 $as_echo_n "checking whether
-fsanitize=undefined is accepted...
" >&6; }
16642 saved_CXXFLAGS="$CXXFLAGS"
16643 CXXFLAGS="$CXXFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
16644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16645 /* end confdefs.h. */
16655 if ac_fn_cxx_try_link "$LINENO"; then :
16660 rm -f core conftest.err conftest.$ac_objext \
16661 conftest$ac_exeext conftest.$ac_ext
16662 CXXFLAGS="$saved_CXXFLAGS"
16663 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $enable_ubsan" >&5
16664 $as_echo "$enable_ubsan" >&6; }
16665 if test "x
$enable_ubsan" = xyes; then
16666 WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
16667 CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined
"
16671 ac_cpp='$CPP $CPPFLAGS'
16672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16678 # In the Cygwin environment, we need some additional flags.
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
16680 $as_echo_n "checking
for cygwin...
" >&6; }
16681 if ${gdb_cv_os_cygwin+:} false; then :
16682 $as_echo_n "(cached
) " >&6
16684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16685 /* end confdefs.h. */
16687 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
16691 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
16692 $EGREP "^lose$
" >/dev/null 2>&1; then :
16693 gdb_cv_os_cygwin=yes
16695 gdb_cv_os_cygwin=no
16700 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
16701 $as_echo "$gdb_cv_os_cygwin" >&6; }
16704 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
16706 *go32* ) SER_HARDWIRE=ser-go32.o ;;
16707 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
16708 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
16709 *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o
" ;;
16713 # libreadline needs libuser32.a in a cygwin environment
16715 if test x"$gdb_cv_os_cygwin" = xyes; then
16716 WIN32LIBS="-luser32"
16717 case "${target}" in
16718 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
16723 # The ser-tcp.c module requires sockets.
16724 # Note that WIN32APILIBS is set by GDB_AC_COMMON.
16725 WIN32LIBS="$WIN32LIBS $WIN32APILIBS"
16727 # Add ELF support to GDB, but only if BFD includes ELF support.
16730 OLD_LDFLAGS=$LDFLAGS
16732 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
16733 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
16734 # always want our bfd.
16735 CFLAGS="-I${srcdir}/..
/include
-I..
/bfd
-I${srcdir}/..
/bfd
$CFLAGS"
16736 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
16737 LDFLAGS="-L..
/bfd
-L..
/libiberty
$ZLIBDIR $LDFLAGS"
16738 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
16739 LIBS="-lbfd -liberty -lz $intl $LIBS"
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ELF support
in BFD
" >&5
16741 $as_echo_n "checking
for ELF support
in BFD...
" >&6; }
16742 if ${gdb_cv_var_elf+:} false; then :
16743 $as_echo_n "(cached
) " >&6
16745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16746 /* end confdefs.h. */
16747 #include <stdlib.h>
16749 #include "elf-bfd.h
"
16754 return bfd_get_elf_phdr_upper_bound (NULL);
16759 if ac_fn_c_try_link "$LINENO"; then :
16764 rm -f core conftest.err conftest.$ac_objext \
16765 conftest$ac_exeext conftest.$ac_ext
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_var_elf" >&5
16768 $as_echo "$gdb_cv_var_elf" >&6; }
16770 LDFLAGS=$OLD_LDFLAGS
16772 if test "$gdb_cv_var_elf" = yes; then
16773 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o
"
16775 $as_echo "#define HAVE_ELF 1" >>confdefs.h
16777 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
16778 if test "$plugins" = "yes"; then
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16780 $as_echo_n "checking for library containing dlopen... " >&6; }
16781 if ${ac_cv_search_dlopen+:} false
; then :
16782 $as_echo_n "(cached) " >&6
16784 ac_func_search_save_LIBS
=$LIBS
16785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16786 /* end confdefs.h. */
16788 /* Override any GCC internal prototype to avoid an error.
16789 Use char because int might match the return type of a GCC
16790 builtin and then its argument prototype would still apply. */
16803 for ac_lib
in '' dl
; do
16804 if test -z "$ac_lib"; then
16805 ac_res
="none required"
16808 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
16810 if ac_fn_c_try_link
"$LINENO"; then :
16811 ac_cv_search_dlopen
=$ac_res
16813 rm -f core conftest.err conftest.
$ac_objext \
16815 if ${ac_cv_search_dlopen+:} false
; then :
16819 if ${ac_cv_search_dlopen+:} false
; then :
16822 ac_cv_search_dlopen
=no
16824 rm conftest.
$ac_ext
16825 LIBS
=$ac_func_search_save_LIBS
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16828 $as_echo "$ac_cv_search_dlopen" >&6; }
16829 ac_res
=$ac_cv_search_dlopen
16830 if test "$ac_res" != no
; then :
16831 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
16838 # Add macho support to GDB, but only if BFD includes it.
16841 OLD_LDFLAGS
=$LDFLAGS
16843 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
16844 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
16845 # always want our bfd.
16846 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
16847 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
16848 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
16849 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
16850 LIBS
="-lbfd -liberty -lz $intl $LIBS"
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
16852 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
16853 if ${gdb_cv_var_macho+:} false
; then :
16854 $as_echo_n "(cached) " >&6
16856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16857 /* end confdefs.h. */
16858 #include <stdlib.h>
16860 #include "mach-o.h"
16865 return bfd_mach_o_lookup_command (NULL, 0, NULL);
16870 if ac_fn_c_try_link
"$LINENO"; then :
16871 gdb_cv_var_macho
=yes
16873 gdb_cv_var_macho
=no
16875 rm -f core conftest.err conftest.
$ac_objext \
16876 conftest
$ac_exeext conftest.
$ac_ext
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
16879 $as_echo "$gdb_cv_var_macho" >&6; }
16881 LDFLAGS
=$OLD_LDFLAGS
16883 if test "$gdb_cv_var_macho" = yes; then
16884 CONFIG_OBS
="$CONFIG_OBS machoread.o"
16887 # Add any host-specific objects to GDB.
16888 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
16890 # If building on ELF, look for lzma support for embedded compressed debug info.
16891 if test "$gdb_cv_var_elf" = yes; then
16893 # Check whether --with-lzma was given.
16894 if test "${with_lzma+set}" = set; then :
16895 withval
=$with_lzma;
16900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
16901 $as_echo_n "checking whether to use lzma... " >&6; }
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
16903 $as_echo "$with_lzma" >&6; }
16905 if test "${with_lzma}" != no
; then
16916 acl_save_prefix
="$prefix"
16917 prefix
="$acl_final_prefix"
16918 acl_save_exec_prefix
="$exec_prefix"
16919 exec_prefix
="$acl_final_exec_prefix"
16921 eval additional_includedir
=\"$includedir\"
16922 eval additional_libdir
=\"$libdir\"
16924 exec_prefix
="$acl_save_exec_prefix"
16925 prefix
="$acl_save_prefix"
16928 # Check whether --with-liblzma-prefix was given.
16929 if test "${with_liblzma_prefix+set}" = set; then :
16930 withval
=$with_liblzma_prefix;
16931 if test "X$withval" = "Xno"; then
16934 if test "X$withval" = "X"; then
16936 acl_save_prefix
="$prefix"
16937 prefix
="$acl_final_prefix"
16938 acl_save_exec_prefix
="$exec_prefix"
16939 exec_prefix
="$acl_final_exec_prefix"
16941 eval additional_includedir
=\"$includedir\"
16942 eval additional_libdir
=\"$libdir\"
16944 exec_prefix
="$acl_save_exec_prefix"
16945 prefix
="$acl_save_prefix"
16948 additional_includedir
="$withval/include"
16949 additional_libdir
="$withval/lib"
16956 # Check whether --with-liblzma-type was given.
16957 if test "${with_liblzma_type+set}" = set; then :
16958 withval
=$with_liblzma_type; with_liblzma_type
=$withval
16960 with_liblzma_type
=auto
16963 lib_type
=`eval echo \$with_liblzma_type`
16970 names_already_handled
=
16971 names_next_round
='lzma '
16972 while test -n "$names_next_round"; do
16973 names_this_round
="$names_next_round"
16975 for name
in $names_this_round; do
16977 for n
in $names_already_handled; do
16978 if test "$n" = "$name"; then
16979 already_handled
=yes
16983 if test -z "$already_handled"; then
16984 names_already_handled
="$names_already_handled $name"
16985 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16986 eval value
=\"\
$HAVE_LIB$uppername\"
16987 if test -n "$value"; then
16988 if test "$value" = yes; then
16989 eval value
=\"\
$LIB$uppername\"
16990 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
16991 eval value
=\"\
$LTLIB$uppername\"
16992 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
17001 if test $use_additional = yes; then
17002 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
17003 found_dir
="$additional_libdir"
17004 found_so
="$additional_libdir/lib$name.$shlibext"
17005 if test -f "$additional_libdir/lib$name.la"; then
17006 found_la
="$additional_libdir/lib$name.la"
17008 elif test x
$lib_type != xshared
; then
17009 if test -f "$additional_libdir/lib$name.$libext"; then
17010 found_dir
="$additional_libdir"
17011 found_a
="$additional_libdir/lib$name.$libext"
17012 if test -f "$additional_libdir/lib$name.la"; then
17013 found_la
="$additional_libdir/lib$name.la"
17018 if test "X$found_dir" = "X"; then
17019 for x
in $LDFLAGS $LTLIBLZMA; do
17021 acl_save_prefix
="$prefix"
17022 prefix
="$acl_final_prefix"
17023 acl_save_exec_prefix
="$exec_prefix"
17024 exec_prefix
="$acl_final_exec_prefix"
17026 exec_prefix
="$acl_save_exec_prefix"
17027 prefix
="$acl_save_prefix"
17031 dir
=`echo "X$x" | sed -e 's/^X-L//'`
17032 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
17034 found_so
="$dir/lib$name.$shlibext"
17035 if test -f "$dir/lib$name.la"; then
17036 found_la
="$dir/lib$name.la"
17038 elif test x
$lib_type != xshared
; then
17039 if test -f "$dir/lib$name.$libext"; then
17041 found_a
="$dir/lib$name.$libext"
17042 if test -f "$dir/lib$name.la"; then
17043 found_la
="$dir/lib$name.la"
17049 if test "X$found_dir" != "X"; then
17054 if test "X$found_dir" != "X"; then
17055 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
17056 if test "X$found_so" != "X"; then
17057 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
17058 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17061 for x
in $ltrpathdirs; do
17062 if test "X$x" = "X$found_dir"; then
17067 if test -z "$haveit"; then
17068 ltrpathdirs
="$ltrpathdirs $found_dir"
17070 if test "$hardcode_direct" = yes; then
17071 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17073 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
17074 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17076 for x
in $rpathdirs; do
17077 if test "X$x" = "X$found_dir"; then
17082 if test -z "$haveit"; then
17083 rpathdirs
="$rpathdirs $found_dir"
17087 for x
in $LDFLAGS $LIBLZMA; do
17089 acl_save_prefix
="$prefix"
17090 prefix
="$acl_final_prefix"
17091 acl_save_exec_prefix
="$exec_prefix"
17092 exec_prefix
="$acl_final_exec_prefix"
17094 exec_prefix
="$acl_save_exec_prefix"
17095 prefix
="$acl_save_prefix"
17097 if test "X$x" = "X-L$found_dir"; then
17102 if test -z "$haveit"; then
17103 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
17105 if test "$hardcode_minus_L" != no
; then
17106 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17108 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
17114 if test "X$found_a" != "X"; then
17115 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
17117 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
17120 additional_includedir
=
17121 case "$found_dir" in
17123 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17124 additional_includedir
="$basedir/include"
17127 if test "X$additional_includedir" != "X"; then
17128 if test "X$additional_includedir" != "X/usr/include"; then
17130 if test "X$additional_includedir" = "X/usr/local/include"; then
17131 if test -n "$GCC"; then
17133 linux
*) haveit
=yes;;
17137 if test -z "$haveit"; then
17138 for x
in $CPPFLAGS $INCLZMA; do
17140 acl_save_prefix
="$prefix"
17141 prefix
="$acl_final_prefix"
17142 acl_save_exec_prefix
="$exec_prefix"
17143 exec_prefix
="$acl_final_exec_prefix"
17145 exec_prefix
="$acl_save_exec_prefix"
17146 prefix
="$acl_save_prefix"
17148 if test "X$x" = "X-I$additional_includedir"; then
17153 if test -z "$haveit"; then
17154 if test -d "$additional_includedir"; then
17155 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
17161 if test -n "$found_la"; then
17162 save_libdir
="$libdir"
17163 case "$found_la" in
17164 */* |
*\\*) .
"$found_la" ;;
17165 *) .
"./$found_la" ;;
17167 libdir
="$save_libdir"
17168 for dep
in $dependency_libs; do
17171 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
17172 if test "X$additional_libdir" != "X/usr/lib"; then
17174 if test "X$additional_libdir" = "X/usr/local/lib"; then
17175 if test -n "$GCC"; then
17177 linux
*) haveit
=yes;;
17181 if test -z "$haveit"; then
17183 for x
in $LDFLAGS $LIBLZMA; do
17185 acl_save_prefix
="$prefix"
17186 prefix
="$acl_final_prefix"
17187 acl_save_exec_prefix
="$exec_prefix"
17188 exec_prefix
="$acl_final_exec_prefix"
17190 exec_prefix
="$acl_save_exec_prefix"
17191 prefix
="$acl_save_prefix"
17193 if test "X$x" = "X-L$additional_libdir"; then
17198 if test -z "$haveit"; then
17199 if test -d "$additional_libdir"; then
17200 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
17204 for x
in $LDFLAGS $LTLIBLZMA; do
17206 acl_save_prefix
="$prefix"
17207 prefix
="$acl_final_prefix"
17208 acl_save_exec_prefix
="$exec_prefix"
17209 exec_prefix
="$acl_final_exec_prefix"
17211 exec_prefix
="$acl_save_exec_prefix"
17212 prefix
="$acl_save_prefix"
17214 if test "X$x" = "X-L$additional_libdir"; then
17219 if test -z "$haveit"; then
17220 if test -d "$additional_libdir"; then
17221 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
17228 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
17229 if test "$enable_rpath" != no
; then
17231 for x
in $rpathdirs; do
17232 if test "X$x" = "X$dir"; then
17237 if test -z "$haveit"; then
17238 rpathdirs
="$rpathdirs $dir"
17241 for x
in $ltrpathdirs; do
17242 if test "X$x" = "X$dir"; then
17247 if test -z "$haveit"; then
17248 ltrpathdirs
="$ltrpathdirs $dir"
17253 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17256 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17259 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
17260 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
17266 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
17267 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
17268 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
17270 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l:lib$name.$libext"
17271 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l:lib$name.$libext"
17278 if test "X$rpathdirs" != "X"; then
17279 if test -n "$hardcode_libdir_separator"; then
17281 for found_dir
in $rpathdirs; do
17282 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17284 acl_save_libdir
="$libdir"
17286 eval flag
=\"$hardcode_libdir_flag_spec\"
17287 libdir
="$acl_save_libdir"
17288 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
17290 for found_dir
in $rpathdirs; do
17291 acl_save_libdir
="$libdir"
17292 libdir
="$found_dir"
17293 eval flag
=\"$hardcode_libdir_flag_spec\"
17294 libdir
="$acl_save_libdir"
17295 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
17299 if test "X$ltrpathdirs" != "X"; then
17300 for found_dir
in $ltrpathdirs; do
17301 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
17306 ac_save_CPPFLAGS
="$CPPFLAGS"
17308 for element
in $INCLZMA; do
17310 for x
in $CPPFLAGS; do
17312 acl_save_prefix
="$prefix"
17313 prefix
="$acl_final_prefix"
17314 acl_save_exec_prefix
="$exec_prefix"
17315 exec_prefix
="$acl_final_exec_prefix"
17317 exec_prefix
="$acl_save_exec_prefix"
17318 prefix
="$acl_save_prefix"
17320 if test "X$x" = "X$element"; then
17325 if test -z "$haveit"; then
17326 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
17332 $as_echo_n "checking for liblzma... " >&6; }
17333 if ${ac_cv_liblzma+:} false
; then :
17334 $as_echo_n "(cached) " >&6
17337 ac_save_LIBS
="$LIBS"
17338 LIBS
="$LIBS $LIBLZMA"
17339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17340 /* end confdefs.h. */
17345 lzma_index_iter iter;
17346 lzma_index_iter_init (&iter, 0);
17347 lzma_mf_is_supported (LZMA_MF_HC3);
17352 if ac_fn_c_try_link
"$LINENO"; then :
17357 rm -f core conftest.err conftest.
$ac_objext \
17358 conftest
$ac_exeext conftest.
$ac_ext
17359 LIBS
="$ac_save_LIBS"
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
17363 $as_echo "$ac_cv_liblzma" >&6; }
17364 if test "$ac_cv_liblzma" = yes; then
17367 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
17370 $as_echo_n "checking how to link with liblzma... " >&6; }
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
17372 $as_echo "$LIBLZMA" >&6; }
17375 CPPFLAGS
="$ac_save_CPPFLAGS"
17385 if test "$HAVE_LIBLZMA" != yes; then
17386 if test "$with_lzma" = yes; then
17387 as_fn_error $?
"missing liblzma for --with-lzma" "$LINENO" 5
17393 LIBGUI
="../libgui/src/libgui.a"
17394 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
17403 *-*-cygwin* |
*-*-mingw* )
17412 if test "${enable_gdbtk}" = "yes"; then
17414 # Gdbtk must have an absolute path to srcdir in order to run
17415 # properly when not installed.
17418 GDBTK_SRC_DIR
=`pwd`
17423 # Ok, lets find the tcl configuration
17424 # First, look for one uninstalled.
17425 # the alternative search directory is invoked by --with-tcl
17428 if test x
"${no_tcl}" = x
; then
17429 # we reset no_tcl in case something fails here
17432 # Check whether --with-tcl was given.
17433 if test "${with_tcl+set}" = set; then :
17434 withval
=$with_tcl; with_tclconfig
=${withval}
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
17438 $as_echo_n "checking for Tcl configuration... " >&6; }
17439 if ${ac_cv_c_tclconfig+:} false
; then :
17440 $as_echo_n "(cached) " >&6
17444 # First check to see if --with-tcl was specified.
17446 *-*-cygwin*) platDir
="win" ;;
17447 *) platDir
="unix" ;;
17449 if test x
"${with_tclconfig}" != x
; then
17450 if test -f "${with_tclconfig}/tclConfig.sh" ; then
17451 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
17453 as_fn_error $?
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
17457 # then check for a private Tcl installation
17458 if test x
"${ac_cv_c_tclconfig}" = x
; then
17461 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17462 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
17463 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
17465 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17466 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
17467 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
17469 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17470 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
17471 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
17472 if test -f "$i/$platDir/tclConfig.sh" ; then
17473 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
17479 # on Darwin, check in Framework installation locations
17480 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
17481 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
17482 `ls -d /Library/Frameworks 2>/dev/null` \
17483 `ls -d /Network/Library/Frameworks 2>/dev/null` \
17484 `ls -d /System/Library/Frameworks 2>/dev/null` \
17486 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
17487 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
17493 # check in a few common install locations
17494 if test x
"${ac_cv_c_tclconfig}" = x
; then
17495 for i
in `ls -d ${libdir} 2>/dev/null` \
17496 `ls -d ${exec_prefix}/lib 2>/dev/null` \
17497 `ls -d ${prefix}/lib 2>/dev/null` \
17498 `ls -d /usr/local/lib 2>/dev/null` \
17499 `ls -d /usr/contrib/lib 2>/dev/null` \
17500 `ls -d /usr/lib 2>/dev/null` \
17502 if test -f "$i/tclConfig.sh" ; then
17503 ac_cv_c_tclconfig
=`(cd $i; pwd)`
17509 # check in a few other private locations
17510 if test x
"${ac_cv_c_tclconfig}" = x
; then
17513 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17514 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
17515 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
17516 if test -f "$i/$platDir/tclConfig.sh" ; then
17517 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
17526 if test x
"${ac_cv_c_tclconfig}" = x
; then
17527 TCL_BIN_DIR
="# no Tcl configs found"
17528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
17529 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
17532 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
17534 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
17539 # If $no_tk is nonempty, then we can't do Tk, and there is no
17540 # point to doing Tcl.
17543 # Ok, lets find the tk configuration
17544 # First, look for one uninstalled.
17545 # the alternative search directory is invoked by --with-tk
17548 if test x
"${no_tk}" = x
; then
17549 # we reset no_tk in case something fails here
17552 # Check whether --with-tk was given.
17553 if test "${with_tk+set}" = set; then :
17554 withval
=$with_tk; with_tkconfig
=${withval}
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
17558 $as_echo_n "checking for Tk configuration... " >&6; }
17559 if ${ac_cv_c_tkconfig+:} false
; then :
17560 $as_echo_n "(cached) " >&6
17564 # First check to see if --with-tkconfig was specified.
17565 if test x
"${with_tkconfig}" != x
; then
17566 if test -f "${with_tkconfig}/tkConfig.sh" ; then
17567 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
17569 as_fn_error $?
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
17573 # then check for a private Tk library
17575 *-*-cygwin*) platDir
="win" ;;
17576 *) platDir
="unix" ;;
17578 if test x
"${ac_cv_c_tkconfig}" = x
; then
17581 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17582 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
17583 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
17585 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17586 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
17587 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
17589 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17590 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
17591 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
17592 if test -f "$i/$platDir/tkConfig.sh" ; then
17593 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
17599 # on Darwin, check in Framework installation locations
17600 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
17601 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
17602 `ls -d /Library/Frameworks 2>/dev/null` \
17603 `ls -d /Network/Library/Frameworks 2>/dev/null` \
17604 `ls -d /System/Library/Frameworks 2>/dev/null` \
17606 if test -f "$i/Tk.framework/tkConfig.sh" ; then
17607 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
17613 # check in a few common install locations
17614 if test x
"${ac_cv_c_tkconfig}" = x
; then
17615 for i
in `ls -d ${libdir} 2>/dev/null` \
17616 `ls -d ${exec_prefix}/lib 2>/dev/null` \
17617 `ls -d ${prefix}/lib 2>/dev/null` \
17618 `ls -d /usr/local/lib 2>/dev/null` \
17619 `ls -d /usr/contrib/lib 2>/dev/null` \
17620 `ls -d /usr/lib 2>/dev/null` \
17622 if test -f "$i/tkConfig.sh" ; then
17623 ac_cv_c_tkconfig
=`(cd $i; pwd)`
17628 # check in a few other private locations
17629 if test x
"${ac_cv_c_tkconfig}" = x
; then
17632 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17633 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
17634 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
17635 if test -f "$i/$platDir/tkConfig.sh" ; then
17636 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
17645 if test x
"${ac_cv_c_tkconfig}" = x
; then
17646 TK_BIN_DIR
="# no Tk configs found"
17647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
17648 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
17651 TK_BIN_DIR
=${ac_cv_c_tkconfig}
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
17653 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
17658 if test -z "${no_tcl}" -a -z "${no_tk}"; then
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
17661 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
17663 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
17665 $as_echo "loading" >&6; }
17666 .
${TCL_BIN_DIR}/tclConfig.sh
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
17669 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
17672 # eval is required to do the TCL_DBGX substitution
17673 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
17674 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
17676 # If the TCL_BIN_DIR is the build directory (not the install directory),
17677 # then set the common variable name to the value of the build variables.
17678 # For example, the variable TCL_LIB_SPEC will be set to the value
17679 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
17680 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
17681 # installed and uninstalled version of Tcl.
17682 if test -f "${TCL_BIN_DIR}/Makefile" ; then
17683 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
17684 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
17685 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
17686 elif test "`uname -s`" = "Darwin"; then
17687 # If Tcl was built as a framework, attempt to use the libraries
17688 # from the framework at the given location so that linking works
17689 # against Tcl.framework installed in an arbitrary location.
17690 case ${TCL_DEFS} in
17692 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
17693 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
17694 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
17695 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
17696 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
17701 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
17702 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
17703 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
17709 # eval is required to do the TCL_DBGX substitution
17710 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
17711 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
17712 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
17713 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
17729 # Check for in-tree tcl
17736 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
17740 # Find Tcl private headers
17741 if test x
"${intree}" = xno
; then
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
17744 $as_echo_n "checking for Tcl private headers... " >&6; }
17746 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
17747 if test -f ${dir}/tclInt.h
; then
17751 if test x
"${private_dir}" = x
; then
17752 as_fn_error $?
"could not find private Tcl headers" "$LINENO" 5
17754 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
17756 $as_echo "${private_dir}" >&6; }
17759 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
17760 TCL_LIBRARY
="${TCL_LIB_SPEC}"
17763 # If building tcl in the same src tree, private headers
17764 # are not needed, but we need to be sure to use the right
17766 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
17767 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
17768 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
17776 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
17778 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
17779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
17780 $as_echo "loading" >&6; }
17781 .
${TK_BIN_DIR}/tkConfig.sh
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
17784 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
17787 # eval is required to do the TK_DBGX substitution
17788 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
17789 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
17791 # If the TK_BIN_DIR is the build directory (not the install directory),
17792 # then set the common variable name to the value of the build variables.
17793 # For example, the variable TK_LIB_SPEC will be set to the value
17794 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
17795 # instead of TK_BUILD_LIB_SPEC since it will work with both an
17796 # installed and uninstalled version of Tcl.
17797 if test -f "${TK_BIN_DIR}/Makefile" ; then
17798 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
17799 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
17800 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
17801 elif test "`uname -s`" = "Darwin"; then
17802 # If Tk was built as a framework, attempt to use the libraries
17803 # from the framework at the given location so that linking works
17804 # against Tk.framework installed in an arbitrary location.
17807 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
17808 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
17809 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
17810 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
17811 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
17816 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
17817 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
17818 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
17824 # eval is required to do the TK_DBGX substitution
17825 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
17826 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
17827 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
17828 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
17843 # Check for in-tree Tk
17845 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
17849 # Find Tk private headers
17850 if test x
"${intree}" = xno
; then
17852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
17853 $as_echo_n "checking for Tk private headers... " >&6; }
17855 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
17856 if test -f ${dir}/tkInt.h
; then
17860 if test x
"${private_dir}" = x
; then
17861 as_fn_error $?
"could not find Tk private headers" "$LINENO" 5
17863 TK_PRIVATE_INCLUDE
="-I${private_dir}"
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
17865 $as_echo "${private_dir}" >&6; }
17868 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
17869 TK_LIBRARY
=${TK_LIB_SPEC}
17872 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
17873 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
17874 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
17881 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
17883 # Include some libraries that Tcl and Tk want.
17884 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
17885 # Yes, the ordering seems wrong here. But it isn't.
17886 # TK_LIBS is the list of libraries that need to be linked
17887 # after Tcl/Tk. Note that this isn't put into LIBS. If it
17888 # were in LIBS then any link tests after this point would
17889 # try to include things like `$(LIBGUI)', which wouldn't work.
17890 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
17892 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
17893 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
17894 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
17895 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
17896 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
17897 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
17898 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
17900 if test x
"$gdb_cv_os_cygwin" = xyes
; then
17901 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
17902 WIN32LDAPP
="-Wl,--subsystem,console"
17903 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
17906 subdirs
="$subdirs gdbtk"
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
17919 $as_echo_n "checking for X... " >&6; }
17922 # Check whether --with-x was given.
17923 if test "${with_x+set}" = set; then :
17927 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17928 if test "x$with_x" = xno
; then
17929 # The user explicitly disabled X.
17932 case $x_includes,$x_libraries in #(
17933 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
17934 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
17935 $as_echo_n "(cached) " >&6
17937 # One or both of the vars are not set, and there is no cached value.
17938 ac_x_includes
=no ac_x_libraries
=no
17939 rm -f -r conftest.dir
17940 if mkdir conftest.dir
; then
17942 cat >Imakefile
<<'_ACEOF'
17944 @echo incroot='${INCROOT}'
17946 @echo usrlibdir='${USRLIBDIR}'
17948 @echo libdir='${LIBDIR}'
17950 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
17951 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17952 for ac_var
in incroot usrlibdir libdir
; do
17953 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
17955 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17956 for ac_extension
in a so sl dylib la dll
; do
17957 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
17958 test -f "$ac_im_libdir/libX11.$ac_extension"; then
17959 ac_im_usrlibdir
=$ac_im_libdir; break
17962 # Screen out bogus values from the imake configuration. They are
17963 # bogus both because they are the default anyway, and because
17964 # using them would break gcc on systems where it needs fixed includes.
17965 case $ac_im_incroot in
17966 /usr
/include
) ac_x_includes
= ;;
17967 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
17969 case $ac_im_usrlibdir in
17970 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
17971 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
17975 rm -f -r conftest.dir
17978 # Standard set of common directories for X headers.
17979 # Check X11 before X11Rn because it is often a symlink to the current release.
17993 /usr/local/X11/include
17994 /usr/local/X11R7/include
17995 /usr/local/X11R6/include
17996 /usr/local/X11R5/include
17997 /usr/local/X11R4/include
17999 /usr/local/include/X11
18000 /usr/local/include/X11R7
18001 /usr/local/include/X11R6
18002 /usr/local/include/X11R5
18003 /usr/local/include/X11R4
18007 /usr/XFree86/include/X11
18011 /usr/unsupported/include
18012 /usr/athena/include
18013 /usr/local/x11r5/include
18014 /usr/lpp/Xamples/include
18016 /usr/openwin/include
18017 /usr/openwin/share/include'
18019 if test "$ac_x_includes" = no
; then
18020 # Guess where to find include files, by looking for Xlib.h.
18021 # First, try using that file with no special directory specified.
18022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18023 /* end confdefs.h. */
18024 #include <X11/Xlib.h>
18026 if ac_fn_c_try_cpp
"$LINENO"; then :
18027 # We can compile using X headers with no special include directory.
18030 for ac_dir
in $ac_x_header_dirs; do
18031 if test -r "$ac_dir/X11/Xlib.h"; then
18032 ac_x_includes
=$ac_dir
18037 rm -f conftest.err conftest.i conftest.
$ac_ext
18038 fi # $ac_x_includes = no
18040 if test "$ac_x_libraries" = no
; then
18041 # Check for the libraries.
18042 # See if we find them without any special options.
18043 # Don't add to $LIBS permanently.
18046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18047 /* end confdefs.h. */
18048 #include <X11/Xlib.h>
18057 if ac_fn_c_try_link
"$LINENO"; then :
18059 # We can link X programs with no special library path.
18063 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18065 # Don't even attempt the hair of trying to link an X program!
18066 for ac_extension
in a so sl dylib la dll
; do
18067 if test -r "$ac_dir/libX11.$ac_extension"; then
18068 ac_x_libraries
=$ac_dir
18074 rm -f core conftest.err conftest.
$ac_objext \
18075 conftest
$ac_exeext conftest.
$ac_ext
18076 fi # $ac_x_libraries = no
18078 case $ac_x_includes,$ac_x_libraries in #(
18079 no
,* |
*,no |
*\'*)
18080 # Didn't find X, or a directory has "'" in its name.
18081 ac_cv_have_x
="have_x=no";; #(
18083 # Record where we found X for the cache.
18084 ac_cv_have_x
="have_x=yes\
18085 ac_x_includes='$ac_x_includes'\
18086 ac_x_libraries='$ac_x_libraries'"
18092 eval "$ac_cv_have_x"
18095 if test "$have_x" != yes; then
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
18097 $as_echo "$have_x" >&6; }
18100 # If each of the values was on the command line, it overrides each guess.
18101 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
18102 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
18103 # Update the cache value to reflect the command line values.
18104 ac_cv_have_x
="have_x=yes\
18105 ac_x_includes='$x_includes'\
18106 ac_x_libraries='$x_libraries'"
18107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
18108 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
18112 # Unlike the sim directory, whether a simulator is linked is controlled by
18113 # presence of a gdb_sim definition in the target configure.tgt entry.
18114 # This code just checks for a few cases where we'd like to ignore those
18115 # definitions, even when they're present in the '.mt' file. These cases
18116 # are when --disable-sim is specified, or if the simulator directory is
18117 # not part of the source tree.
18119 # Check whether --enable-sim was given.
18120 if test "${enable_sim+set}" = set; then :
18121 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
18122 echo "enableval = ${enableval}";
18123 case "${enableval}" in
18124 yes) ignore_sim
=false
;;
18125 no
) ignore_sim
=true
;;
18126 *) ignore_sim
=false
;;
18133 if test ! -d "${srcdir}/../sim"; then
18139 if test "${ignore_sim}" = "false"; then
18140 if test x
"${gdb_sim}" != x
; then
18142 SIM_OBS
="remote-sim.o"
18144 $as_echo "#define WITH_SIM 1" >>confdefs.h
18147 # Some tdep code should only be compiled in when the ppc sim is
18148 # built. PR sim/13418.
18152 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
18172 # List of host floatformats.
18174 cat >>confdefs.h
<<_ACEOF
18175 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
18179 cat >>confdefs.h
<<_ACEOF
18180 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
18184 cat >>confdefs.h
<<_ACEOF
18185 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
18189 # target_subdir is used by the testsuite to find the target libraries.
18191 if test "${host}" != "${target}"; then
18192 target_subdir
="${target_alias}/"
18196 # Import nat definitions.
18197 nat_makefile_frag
=/dev
/null
18198 if test "${gdb_native}" = "yes"; then
18199 .
${srcdir}/configure.nat
18200 nativefile
=$NAT_FILE
18213 if test x
"${gdb_osabi}" != x
; then
18215 cat >>confdefs.h
<<_ACEOF
18216 #define GDB_OSABI_DEFAULT $gdb_osabi
18221 # Check for babeltrace and babeltrace-ctf
18223 # Check whether --with-babeltrace was given.
18224 if test "${with_babeltrace+set}" = set; then :
18225 withval
=$with_babeltrace;
18227 with_babeltrace
=auto
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
18231 $as_echo_n "checking whether to use babeltrace... " >&6; }
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
18233 $as_echo "$with_babeltrace" >&6; }
18235 if test "x$with_babeltrace" = "xno"; then
18236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
18237 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
18239 # Append -Werror to CFLAGS so that configure can catch the warning
18240 # "assignment from incompatible pointer type", which is related to
18241 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
18242 # in GDB, while babeltrace 1.0.3 is broken.
18243 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
18244 # safe to save and restore CFLAGS here.
18245 saved_CFLAGS
=$CFLAGS
18246 CFLAGS
="$CFLAGS -Werror"
18257 acl_save_prefix
="$prefix"
18258 prefix
="$acl_final_prefix"
18259 acl_save_exec_prefix
="$exec_prefix"
18260 exec_prefix
="$acl_final_exec_prefix"
18262 eval additional_includedir
=\"$includedir\"
18263 eval additional_libdir
=\"$libdir\"
18265 exec_prefix
="$acl_save_exec_prefix"
18266 prefix
="$acl_save_prefix"
18269 # Check whether --with-libbabeltrace-prefix was given.
18270 if test "${with_libbabeltrace_prefix+set}" = set; then :
18271 withval
=$with_libbabeltrace_prefix;
18272 if test "X$withval" = "Xno"; then
18275 if test "X$withval" = "X"; then
18277 acl_save_prefix
="$prefix"
18278 prefix
="$acl_final_prefix"
18279 acl_save_exec_prefix
="$exec_prefix"
18280 exec_prefix
="$acl_final_exec_prefix"
18282 eval additional_includedir
=\"$includedir\"
18283 eval additional_libdir
=\"$libdir\"
18285 exec_prefix
="$acl_save_exec_prefix"
18286 prefix
="$acl_save_prefix"
18289 additional_includedir
="$withval/include"
18290 additional_libdir
="$withval/lib"
18297 # Check whether --with-libbabeltrace-type was given.
18298 if test "${with_libbabeltrace_type+set}" = set; then :
18299 withval
=$with_libbabeltrace_type; with_libbabeltrace_type
=$withval
18301 with_libbabeltrace_type
=auto
18304 lib_type
=`eval echo \$with_libbabeltrace_type`
18311 names_already_handled
=
18312 names_next_round
='babeltrace babeltrace-ctf'
18313 while test -n "$names_next_round"; do
18314 names_this_round
="$names_next_round"
18316 for name
in $names_this_round; do
18318 for n
in $names_already_handled; do
18319 if test "$n" = "$name"; then
18320 already_handled
=yes
18324 if test -z "$already_handled"; then
18325 names_already_handled
="$names_already_handled $name"
18326 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18327 eval value
=\"\
$HAVE_LIB$uppername\"
18328 if test -n "$value"; then
18329 if test "$value" = yes; then
18330 eval value
=\"\
$LIB$uppername\"
18331 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
18332 eval value
=\"\
$LTLIB$uppername\"
18333 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
18342 if test $use_additional = yes; then
18343 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18344 found_dir
="$additional_libdir"
18345 found_so
="$additional_libdir/lib$name.$shlibext"
18346 if test -f "$additional_libdir/lib$name.la"; then
18347 found_la
="$additional_libdir/lib$name.la"
18349 elif test x
$lib_type != xshared
; then
18350 if test -f "$additional_libdir/lib$name.$libext"; then
18351 found_dir
="$additional_libdir"
18352 found_a
="$additional_libdir/lib$name.$libext"
18353 if test -f "$additional_libdir/lib$name.la"; then
18354 found_la
="$additional_libdir/lib$name.la"
18359 if test "X$found_dir" = "X"; then
18360 for x
in $LDFLAGS $LTLIBBABELTRACE; do
18362 acl_save_prefix
="$prefix"
18363 prefix
="$acl_final_prefix"
18364 acl_save_exec_prefix
="$exec_prefix"
18365 exec_prefix
="$acl_final_exec_prefix"
18367 exec_prefix
="$acl_save_exec_prefix"
18368 prefix
="$acl_save_prefix"
18372 dir
=`echo "X$x" | sed -e 's/^X-L//'`
18373 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18375 found_so
="$dir/lib$name.$shlibext"
18376 if test -f "$dir/lib$name.la"; then
18377 found_la
="$dir/lib$name.la"
18379 elif test x
$lib_type != xshared
; then
18380 if test -f "$dir/lib$name.$libext"; then
18382 found_a
="$dir/lib$name.$libext"
18383 if test -f "$dir/lib$name.la"; then
18384 found_la
="$dir/lib$name.la"
18390 if test "X$found_dir" != "X"; then
18395 if test "X$found_dir" != "X"; then
18396 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
18397 if test "X$found_so" != "X"; then
18398 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
18399 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18402 for x
in $ltrpathdirs; do
18403 if test "X$x" = "X$found_dir"; then
18408 if test -z "$haveit"; then
18409 ltrpathdirs
="$ltrpathdirs $found_dir"
18411 if test "$hardcode_direct" = yes; then
18412 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18414 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
18415 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18417 for x
in $rpathdirs; do
18418 if test "X$x" = "X$found_dir"; then
18423 if test -z "$haveit"; then
18424 rpathdirs
="$rpathdirs $found_dir"
18428 for x
in $LDFLAGS $LIBBABELTRACE; do
18430 acl_save_prefix
="$prefix"
18431 prefix
="$acl_final_prefix"
18432 acl_save_exec_prefix
="$exec_prefix"
18433 exec_prefix
="$acl_final_exec_prefix"
18435 exec_prefix
="$acl_save_exec_prefix"
18436 prefix
="$acl_save_prefix"
18438 if test "X$x" = "X-L$found_dir"; then
18443 if test -z "$haveit"; then
18444 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
18446 if test "$hardcode_minus_L" != no
; then
18447 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18449 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
18455 if test "X$found_a" != "X"; then
18456 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
18458 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
18461 additional_includedir
=
18462 case "$found_dir" in
18464 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18465 additional_includedir
="$basedir/include"
18468 if test "X$additional_includedir" != "X"; then
18469 if test "X$additional_includedir" != "X/usr/include"; then
18471 if test "X$additional_includedir" = "X/usr/local/include"; then
18472 if test -n "$GCC"; then
18474 linux
*) haveit
=yes;;
18478 if test -z "$haveit"; then
18479 for x
in $CPPFLAGS $INCBABELTRACE; do
18481 acl_save_prefix
="$prefix"
18482 prefix
="$acl_final_prefix"
18483 acl_save_exec_prefix
="$exec_prefix"
18484 exec_prefix
="$acl_final_exec_prefix"
18486 exec_prefix
="$acl_save_exec_prefix"
18487 prefix
="$acl_save_prefix"
18489 if test "X$x" = "X-I$additional_includedir"; then
18494 if test -z "$haveit"; then
18495 if test -d "$additional_includedir"; then
18496 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
18502 if test -n "$found_la"; then
18503 save_libdir
="$libdir"
18504 case "$found_la" in
18505 */* |
*\\*) .
"$found_la" ;;
18506 *) .
"./$found_la" ;;
18508 libdir
="$save_libdir"
18509 for dep
in $dependency_libs; do
18512 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
18513 if test "X$additional_libdir" != "X/usr/lib"; then
18515 if test "X$additional_libdir" = "X/usr/local/lib"; then
18516 if test -n "$GCC"; then
18518 linux
*) haveit
=yes;;
18522 if test -z "$haveit"; then
18524 for x
in $LDFLAGS $LIBBABELTRACE; do
18526 acl_save_prefix
="$prefix"
18527 prefix
="$acl_final_prefix"
18528 acl_save_exec_prefix
="$exec_prefix"
18529 exec_prefix
="$acl_final_exec_prefix"
18531 exec_prefix
="$acl_save_exec_prefix"
18532 prefix
="$acl_save_prefix"
18534 if test "X$x" = "X-L$additional_libdir"; then
18539 if test -z "$haveit"; then
18540 if test -d "$additional_libdir"; then
18541 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
18545 for x
in $LDFLAGS $LTLIBBABELTRACE; do
18547 acl_save_prefix
="$prefix"
18548 prefix
="$acl_final_prefix"
18549 acl_save_exec_prefix
="$exec_prefix"
18550 exec_prefix
="$acl_final_exec_prefix"
18552 exec_prefix
="$acl_save_exec_prefix"
18553 prefix
="$acl_save_prefix"
18555 if test "X$x" = "X-L$additional_libdir"; then
18560 if test -z "$haveit"; then
18561 if test -d "$additional_libdir"; then
18562 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
18569 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
18570 if test "$enable_rpath" != no
; then
18572 for x
in $rpathdirs; do
18573 if test "X$x" = "X$dir"; then
18578 if test -z "$haveit"; then
18579 rpathdirs
="$rpathdirs $dir"
18582 for x
in $ltrpathdirs; do
18583 if test "X$x" = "X$dir"; then
18588 if test -z "$haveit"; then
18589 ltrpathdirs
="$ltrpathdirs $dir"
18594 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18597 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18600 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
18601 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
18607 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
18608 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
18609 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
18611 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l:lib$name.$libext"
18612 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l:lib$name.$libext"
18619 if test "X$rpathdirs" != "X"; then
18620 if test -n "$hardcode_libdir_separator"; then
18622 for found_dir
in $rpathdirs; do
18623 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18625 acl_save_libdir
="$libdir"
18627 eval flag
=\"$hardcode_libdir_flag_spec\"
18628 libdir
="$acl_save_libdir"
18629 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
18631 for found_dir
in $rpathdirs; do
18632 acl_save_libdir
="$libdir"
18633 libdir
="$found_dir"
18634 eval flag
=\"$hardcode_libdir_flag_spec\"
18635 libdir
="$acl_save_libdir"
18636 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
18640 if test "X$ltrpathdirs" != "X"; then
18641 for found_dir
in $ltrpathdirs; do
18642 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
18647 ac_save_CPPFLAGS
="$CPPFLAGS"
18649 for element
in $INCBABELTRACE; do
18651 for x
in $CPPFLAGS; do
18653 acl_save_prefix
="$prefix"
18654 prefix
="$acl_final_prefix"
18655 acl_save_exec_prefix
="$exec_prefix"
18656 exec_prefix
="$acl_final_exec_prefix"
18658 exec_prefix
="$acl_save_exec_prefix"
18659 prefix
="$acl_save_prefix"
18661 if test "X$x" = "X$element"; then
18666 if test -z "$haveit"; then
18667 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
18672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
18673 $as_echo_n "checking for libbabeltrace... " >&6; }
18674 if ${ac_cv_libbabeltrace+:} false
; then :
18675 $as_echo_n "(cached) " >&6
18678 ac_save_LIBS
="$LIBS"
18679 LIBS
="$LIBS $LIBBABELTRACE"
18680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18681 /* end confdefs.h. */
18682 #include <babeltrace/babeltrace.h>
18683 #include <babeltrace/ctf/events.h>
18684 #include <babeltrace/ctf/iterator.h>
18688 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
18689 struct bt_ctf_event *event = NULL;
18690 const struct bt_definition *scope;
18692 pos->type = BT_SEEK_BEGIN;
18693 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
18694 scope = bt_ctf_get_top_level_scope (event,
18695 BT_STREAM_EVENT_HEADER);
18696 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
18702 if ac_fn_c_try_link
"$LINENO"; then :
18703 ac_cv_libbabeltrace
=yes
18705 ac_cv_libbabeltrace
=no
18707 rm -f core conftest.err conftest.
$ac_objext \
18708 conftest
$ac_exeext conftest.
$ac_ext
18709 LIBS
="$ac_save_LIBS"
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
18713 $as_echo "$ac_cv_libbabeltrace" >&6; }
18714 if test "$ac_cv_libbabeltrace" = yes; then
18715 HAVE_LIBBABELTRACE
=yes
18717 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
18719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
18720 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
18721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
18722 $as_echo "$LIBBABELTRACE" >&6; }
18724 HAVE_LIBBABELTRACE
=no
18725 CPPFLAGS
="$ac_save_CPPFLAGS"
18735 CFLAGS
=$saved_CFLAGS
18737 if test "$HAVE_LIBBABELTRACE" != yes; then
18738 if test "$with_babeltrace" = yes; then
18739 as_fn_error $?
"babeltrace is missing or unusable" "$LINENO" 5
18741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
18742 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
18749 # Check whether --with-xxhash was given.
18750 if test "${with_xxhash+set}" = set; then :
18751 withval
=$with_xxhash;
18757 # Check whether --enable-libctf was given.
18758 if test "${enable_libctf+set}" = set; then :
18759 enableval
=$enable_libctf;
18760 case "$enableval" in
18762 *) as_fn_error $?
"Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
18770 if test x
${enable_static} = xno
; then
18771 LIBCTF
="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so"
18772 CTF_DEPS
="../libctf/.libs/libctf.so"
18774 LIBCTF
="../libctf/.libs/libctf.a"
18777 if test "${enable_libctf}" = yes; then
18779 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
18789 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
18792 if test "x$with_xxhash" != "xno"; then
18803 acl_save_prefix
="$prefix"
18804 prefix
="$acl_final_prefix"
18805 acl_save_exec_prefix
="$exec_prefix"
18806 exec_prefix
="$acl_final_exec_prefix"
18808 eval additional_includedir
=\"$includedir\"
18809 eval additional_libdir
=\"$libdir\"
18811 exec_prefix
="$acl_save_exec_prefix"
18812 prefix
="$acl_save_prefix"
18815 # Check whether --with-libxxhash-prefix was given.
18816 if test "${with_libxxhash_prefix+set}" = set; then :
18817 withval
=$with_libxxhash_prefix;
18818 if test "X$withval" = "Xno"; then
18821 if test "X$withval" = "X"; then
18823 acl_save_prefix
="$prefix"
18824 prefix
="$acl_final_prefix"
18825 acl_save_exec_prefix
="$exec_prefix"
18826 exec_prefix
="$acl_final_exec_prefix"
18828 eval additional_includedir
=\"$includedir\"
18829 eval additional_libdir
=\"$libdir\"
18831 exec_prefix
="$acl_save_exec_prefix"
18832 prefix
="$acl_save_prefix"
18835 additional_includedir
="$withval/include"
18836 additional_libdir
="$withval/lib"
18843 # Check whether --with-libxxhash-type was given.
18844 if test "${with_libxxhash_type+set}" = set; then :
18845 withval
=$with_libxxhash_type; with_libxxhash_type
=$withval
18847 with_libxxhash_type
=auto
18850 lib_type
=`eval echo \$with_libxxhash_type`
18857 names_already_handled
=
18858 names_next_round
='xxhash '
18859 while test -n "$names_next_round"; do
18860 names_this_round
="$names_next_round"
18862 for name
in $names_this_round; do
18864 for n
in $names_already_handled; do
18865 if test "$n" = "$name"; then
18866 already_handled
=yes
18870 if test -z "$already_handled"; then
18871 names_already_handled
="$names_already_handled $name"
18872 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18873 eval value
=\"\
$HAVE_LIB$uppername\"
18874 if test -n "$value"; then
18875 if test "$value" = yes; then
18876 eval value
=\"\
$LIB$uppername\"
18877 test -z "$value" || LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$value"
18878 eval value
=\"\
$LTLIB$uppername\"
18879 test -z "$value" || LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$value"
18888 if test $use_additional = yes; then
18889 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18890 found_dir
="$additional_libdir"
18891 found_so
="$additional_libdir/lib$name.$shlibext"
18892 if test -f "$additional_libdir/lib$name.la"; then
18893 found_la
="$additional_libdir/lib$name.la"
18895 elif test x
$lib_type != xshared
; then
18896 if test -f "$additional_libdir/lib$name.$libext"; then
18897 found_dir
="$additional_libdir"
18898 found_a
="$additional_libdir/lib$name.$libext"
18899 if test -f "$additional_libdir/lib$name.la"; then
18900 found_la
="$additional_libdir/lib$name.la"
18905 if test "X$found_dir" = "X"; then
18906 for x
in $LDFLAGS $LTLIBXXHASH; do
18908 acl_save_prefix
="$prefix"
18909 prefix
="$acl_final_prefix"
18910 acl_save_exec_prefix
="$exec_prefix"
18911 exec_prefix
="$acl_final_exec_prefix"
18913 exec_prefix
="$acl_save_exec_prefix"
18914 prefix
="$acl_save_prefix"
18918 dir
=`echo "X$x" | sed -e 's/^X-L//'`
18919 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18921 found_so
="$dir/lib$name.$shlibext"
18922 if test -f "$dir/lib$name.la"; then
18923 found_la
="$dir/lib$name.la"
18925 elif test x
$lib_type != xshared
; then
18926 if test -f "$dir/lib$name.$libext"; then
18928 found_a
="$dir/lib$name.$libext"
18929 if test -f "$dir/lib$name.la"; then
18930 found_la
="$dir/lib$name.la"
18936 if test "X$found_dir" != "X"; then
18941 if test "X$found_dir" != "X"; then
18942 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$found_dir -l$name"
18943 if test "X$found_so" != "X"; then
18944 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
18945 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
18948 for x
in $ltrpathdirs; do
18949 if test "X$x" = "X$found_dir"; then
18954 if test -z "$haveit"; then
18955 ltrpathdirs
="$ltrpathdirs $found_dir"
18957 if test "$hardcode_direct" = yes; then
18958 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
18960 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
18961 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
18963 for x
in $rpathdirs; do
18964 if test "X$x" = "X$found_dir"; then
18969 if test -z "$haveit"; then
18970 rpathdirs
="$rpathdirs $found_dir"
18974 for x
in $LDFLAGS $LIBXXHASH; do
18976 acl_save_prefix
="$prefix"
18977 prefix
="$acl_final_prefix"
18978 acl_save_exec_prefix
="$exec_prefix"
18979 exec_prefix
="$acl_final_exec_prefix"
18981 exec_prefix
="$acl_save_exec_prefix"
18982 prefix
="$acl_save_prefix"
18984 if test "X$x" = "X-L$found_dir"; then
18989 if test -z "$haveit"; then
18990 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir"
18992 if test "$hardcode_minus_L" != no
; then
18993 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
18995 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
19001 if test "X$found_a" != "X"; then
19002 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_a"
19004 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir -l$name"
19007 additional_includedir
=
19008 case "$found_dir" in
19010 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
19011 additional_includedir
="$basedir/include"
19014 if test "X$additional_includedir" != "X"; then
19015 if test "X$additional_includedir" != "X/usr/include"; then
19017 if test "X$additional_includedir" = "X/usr/local/include"; then
19018 if test -n "$GCC"; then
19020 linux
*) haveit
=yes;;
19024 if test -z "$haveit"; then
19025 for x
in $CPPFLAGS $INCXXHASH; do
19027 acl_save_prefix
="$prefix"
19028 prefix
="$acl_final_prefix"
19029 acl_save_exec_prefix
="$exec_prefix"
19030 exec_prefix
="$acl_final_exec_prefix"
19032 exec_prefix
="$acl_save_exec_prefix"
19033 prefix
="$acl_save_prefix"
19035 if test "X$x" = "X-I$additional_includedir"; then
19040 if test -z "$haveit"; then
19041 if test -d "$additional_includedir"; then
19042 INCXXHASH
="${INCXXHASH}${INCXXHASH:+ }-I$additional_includedir"
19048 if test -n "$found_la"; then
19049 save_libdir
="$libdir"
19050 case "$found_la" in
19051 */* |
*\\*) .
"$found_la" ;;
19052 *) .
"./$found_la" ;;
19054 libdir
="$save_libdir"
19055 for dep
in $dependency_libs; do
19058 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
19059 if test "X$additional_libdir" != "X/usr/lib"; then
19061 if test "X$additional_libdir" = "X/usr/local/lib"; then
19062 if test -n "$GCC"; then
19064 linux
*) haveit
=yes;;
19068 if test -z "$haveit"; then
19070 for x
in $LDFLAGS $LIBXXHASH; do
19072 acl_save_prefix
="$prefix"
19073 prefix
="$acl_final_prefix"
19074 acl_save_exec_prefix
="$exec_prefix"
19075 exec_prefix
="$acl_final_exec_prefix"
19077 exec_prefix
="$acl_save_exec_prefix"
19078 prefix
="$acl_save_prefix"
19080 if test "X$x" = "X-L$additional_libdir"; then
19085 if test -z "$haveit"; then
19086 if test -d "$additional_libdir"; then
19087 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$additional_libdir"
19091 for x
in $LDFLAGS $LTLIBXXHASH; do
19093 acl_save_prefix
="$prefix"
19094 prefix
="$acl_final_prefix"
19095 acl_save_exec_prefix
="$exec_prefix"
19096 exec_prefix
="$acl_final_exec_prefix"
19098 exec_prefix
="$acl_save_exec_prefix"
19099 prefix
="$acl_save_prefix"
19101 if test "X$x" = "X-L$additional_libdir"; then
19106 if test -z "$haveit"; then
19107 if test -d "$additional_libdir"; then
19108 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$additional_libdir"
19115 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
19116 if test "$enable_rpath" != no
; then
19118 for x
in $rpathdirs; do
19119 if test "X$x" = "X$dir"; then
19124 if test -z "$haveit"; then
19125 rpathdirs
="$rpathdirs $dir"
19128 for x
in $ltrpathdirs; do
19129 if test "X$x" = "X$dir"; then
19134 if test -z "$haveit"; then
19135 ltrpathdirs
="$ltrpathdirs $dir"
19140 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19143 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19146 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$dep"
19147 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$dep"
19153 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
19154 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
19155 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l$name"
19157 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l:lib$name.$libext"
19158 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l:lib$name.$libext"
19165 if test "X$rpathdirs" != "X"; then
19166 if test -n "$hardcode_libdir_separator"; then
19168 for found_dir
in $rpathdirs; do
19169 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
19171 acl_save_libdir
="$libdir"
19173 eval flag
=\"$hardcode_libdir_flag_spec\"
19174 libdir
="$acl_save_libdir"
19175 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
19177 for found_dir
in $rpathdirs; do
19178 acl_save_libdir
="$libdir"
19179 libdir
="$found_dir"
19180 eval flag
=\"$hardcode_libdir_flag_spec\"
19181 libdir
="$acl_save_libdir"
19182 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
19186 if test "X$ltrpathdirs" != "X"; then
19187 for found_dir
in $ltrpathdirs; do
19188 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-R$found_dir"
19193 ac_save_CPPFLAGS
="$CPPFLAGS"
19195 for element
in $INCXXHASH; do
19197 for x
in $CPPFLAGS; do
19199 acl_save_prefix
="$prefix"
19200 prefix
="$acl_final_prefix"
19201 acl_save_exec_prefix
="$exec_prefix"
19202 exec_prefix
="$acl_final_exec_prefix"
19204 exec_prefix
="$acl_save_exec_prefix"
19205 prefix
="$acl_save_prefix"
19207 if test "X$x" = "X$element"; then
19212 if test -z "$haveit"; then
19213 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
19218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5
19219 $as_echo_n "checking for libxxhash... " >&6; }
19220 if ${ac_cv_libxxhash+:} false
; then :
19221 $as_echo_n "(cached) " >&6
19224 ac_save_LIBS
="$LIBS"
19225 LIBS
="$LIBS $LIBXXHASH"
19226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19227 /* end confdefs.h. */
19228 #include <xxhash.h>
19232 XXH32("foo", 3, 0);
19238 if ac_fn_c_try_link
"$LINENO"; then :
19239 ac_cv_libxxhash
=yes
19243 rm -f core conftest.err conftest.
$ac_objext \
19244 conftest
$ac_exeext conftest.
$ac_ext
19245 LIBS
="$ac_save_LIBS"
19248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxxhash" >&5
19249 $as_echo "$ac_cv_libxxhash" >&6; }
19250 if test "$ac_cv_libxxhash" = yes; then
19253 $as_echo "#define HAVE_LIBXXHASH 1" >>confdefs.h
19255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libxxhash" >&5
19256 $as_echo_n "checking how to link with libxxhash... " >&6; }
19257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXXHASH" >&5
19258 $as_echo "$LIBXXHASH" >&6; }
19261 CPPFLAGS
="$ac_save_CPPFLAGS"
19271 if test "$HAVE_LIBXXHASH" != yes; then
19272 if test "$with_xxhash" = yes; then
19273 as_fn_error $?
"xxhash is missing or unusable" "$LINENO" 5
19276 if test "x$with_xxhash" = "xauto"; then
19277 with_xxhash
="$HAVE_LIBXXHASH"
19281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
19282 $as_echo_n "checking whether to use xxhash... " >&6; }
19283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
19284 $as_echo "$with_xxhash" >&6; }
19288 if test "${nativefile}" != ""; then
19289 case "${nativefile}" in
19290 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
19291 * ) GDB_NM_FILE
="${nativefile}"
19293 ac_config_links
="$ac_config_links nm.h:$GDB_NM_FILE"
19296 cat >>confdefs.h
<<_ACEOF
19297 #define GDB_NM_FILE "${GDB_NM_FILE}"
19305 for ac_prog
in xsltproc
19307 # Extract the first word of "$ac_prog", so it can be a program name with args.
19308 set dummy
$ac_prog; ac_word
=$2
19309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19310 $as_echo_n "checking for $ac_word... " >&6; }
19311 if ${ac_cv_path_XSLTPROC+:} false
; then :
19312 $as_echo_n "(cached) " >&6
19316 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
19319 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19320 for as_dir
in $PATH
19323 test -z "$as_dir" && as_dir
=.
19324 for ac_exec_ext
in '' $ac_executable_extensions; do
19325 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19326 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
19327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19337 XSLTPROC
=$ac_cv_path_XSLTPROC
19338 if test -n "$XSLTPROC"; then
19339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19340 $as_echo "$XSLTPROC" >&6; }
19342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19343 $as_echo "no" >&6; }
19347 test -n "$XSLTPROC" && break
19349 test -n "$XSLTPROC" || XSLTPROC
="missing"
19351 if test "x$USE_MAINTAINER_MODE" = xyes
; then
19352 if test "${XSLTPROC}" = missing
; then
19353 as_fn_error $?
"unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
19361 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
19365 # Check whether we will enable the inclusion of unit tests when
19368 # The default value of this option changes depending whether we're on
19369 # development mode (in which case it's "true") or not (in which case
19370 # it's "false"). The $development variable is set by the GDB_AC_COMMON
19371 # macro, which must therefore be used before GDB_AC_SELFTEST.
19373 if test "x$development" != xtrue
&& test "x$development" != xfalse
; then :
19374 as_fn_error $?
"Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
19377 # Check whether --enable-unit-tests was given.
19378 if test "${enable_unit_tests+set}" = set; then :
19379 enableval
=$enable_unit_tests; case "${enableval}" in
19380 yes) enable_unittests
=true
;;
19381 no
) enable_unittests
=false
;;
19382 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
19385 enable_unittests
=$development
19389 if $enable_unittests; then
19391 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
19394 CONFIG_OBS
="$CONFIG_OBS \$(SELFTESTS_OBS)"
19395 CONFIG_SRCS
="$CONFIG_SRCS \$(SELFTESTS_SRCS)"
19401 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19402 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
19403 if test "x$GDB_TRANSFORM_NAME" = x
; then
19404 GDB_TRANSFORM_NAME
=gdb
19409 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19410 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
19411 if test "x$GCORE_TRANSFORM_NAME" = x
; then
19412 GCORE_TRANSFORM_NAME
=gcore
19416 ac_config_files
="$ac_config_files gcore"
19418 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
19421 cat >confcache
<<\_ACEOF
19422 # This file is a shell script that caches the results of configure
19423 # tests run on this system so they can be shared between configure
19424 # scripts and configure runs, see configure's option --config-cache.
19425 # It is not useful on other systems. If it contains results you don't
19426 # want to keep, you may remove or edit it.
19428 # config.status only pays attention to the cache file if you give it
19429 # the --recheck option to rerun configure.
19431 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19432 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19433 # following values.
19437 # The following way of writing the cache mishandles newlines in values,
19438 # but we know of no workaround that is simple, portable, and efficient.
19439 # So, we kill variables containing newlines.
19440 # Ultrix sh set writes to stderr and can't be redirected directly,
19441 # and sets the high bit in the cache file unless we assign to the vars.
19443 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19444 eval ac_val
=\$
$ac_var
19448 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19449 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19452 _ | IFS | as_nl
) ;; #(
19453 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
19454 *) { eval $ac_var=; unset $ac_var;} ;;
19460 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19461 *${as_nl}ac_space
=\
*)
19462 # `set' does not quote correctly, so add quotes: double-quote
19463 # substitution turns \\\\ into \\, and sed turns \\ into \.
19466 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19469 # `set' quotes correctly as required by POSIX, so do not add quotes.
19470 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19479 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19481 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19483 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
19484 if test -w "$cache_file"; then
19485 if test "x$cache_file" != "x/dev/null"; then
19486 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19487 $as_echo "$as_me: updating cache $cache_file" >&6;}
19488 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
19489 cat confcache
>"$cache_file"
19491 case $cache_file in #(
19493 mv -f confcache
"$cache_file"$$
&&
19494 mv -f "$cache_file"$$
"$cache_file" ;; #(
19496 mv -f confcache
"$cache_file" ;;
19501 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19502 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19507 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19508 # Let make expand exec_prefix.
19509 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19511 DEFS
=-DHAVE_CONFIG_H
19516 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19517 # 1. Remove the extension, and $U if already installed.
19518 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
19519 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
19520 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19521 # will be set to the directory where LIBOBJS objects are built.
19522 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19523 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
19525 LIBOBJS
=$ac_libobjs
19527 LTLIBOBJS
=$ac_ltlibobjs
19530 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19531 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
19532 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19534 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
19535 as_fn_error $?
"conditional \"HAVE_PYTHON\" was never defined.
19536 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19538 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
19539 as_fn_error $?
"conditional \"HAVE_GUILE\" was never defined.
19540 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19544 : "${CONFIG_STATUS=./config.status}"
19546 ac_clean_files_save
=$ac_clean_files
19547 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19548 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19549 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19551 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19553 # Generated by $as_me.
19554 # Run this file to recreate the current configuration.
19555 # Compiler output produced by configure, useful for debugging
19556 # configure, is in config.log if it exists.
19559 ac_cs_recheck=false
19562 SHELL=\${CONFIG_SHELL-$SHELL}
19565 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
19566 ## -------------------- ##
19567 ## M4sh Initialization. ##
19568 ## -------------------- ##
19570 # Be more Bourne compatible
19571 DUALCASE
=1; export DUALCASE
# for MKS sh
19572 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
19575 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19576 # is contrary to our usage. Disable this feature.
19577 alias -g '${1+"$@"}'='"$@"'
19578 setopt NO_GLOB_SUBST
19580 case `(set -o) 2>/dev/null` in #(
19592 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19593 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19594 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19595 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19596 # Prefer a ksh shell builtin over an external printf program on Solaris,
19597 # but without wasting forks for bash or zsh.
19598 if test -z "$BASH_VERSION$ZSH_VERSION" \
19599 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19600 as_echo='print
-r --'
19601 as_echo_n='print
-rn --'
19602 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19603 as_echo='printf %s
\n'
19604 as_echo_n='printf %s
'
19606 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19607 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
19608 as_echo_n='/usr
/ucb
/echo -n'
19610 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19611 as_echo_n_body='eval
19615 expr "X$arg" : "X\\(.*\\)$as_nl";
19616 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19618 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
19620 export as_echo_n_body
19621 as_echo_n='sh
-c $as_echo_n_body as_echo
'
19623 export as_echo_body
19624 as_echo='sh
-c $as_echo_body as_echo
'
19627 # The user is always right.
19628 if test "${PATH_SEPARATOR+set}" != set; then
19630 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19631 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19638 # We need space, tab and new line, in precisely that order. Quoting is
19639 # there to prevent editors from complaining about space-tab.
19640 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19641 # splitting by setting IFS to empty value.)
19644 # Find who we are. Look in the path if we contain no directory separator.
19647 *[\\/]* ) as_myself=$0 ;;
19648 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19649 for as_dir in $PATH
19652 test -z "$as_dir" && as_dir=.
19653 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19659 # We did not find ourselves, most probably we were run as `sh COMMAND'
19660 # in which case we are not to be found in the path.
19661 if test "x$as_myself" = x
; then
19664 if test ! -f "$as_myself"; then
19665 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19669 # Unset variables that we do not need and which cause bugs (e.g. in
19670 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19671 # suppresses any "Segmentation fault" message there. '((' could
19672 # trigger a bug in pdksh 5.2.14.
19673 for as_var
in BASH_ENV ENV MAIL MAILPATH
19674 do eval test x\
${$as_var+set} = xset \
19675 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
19688 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
19691 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19692 # ----------------------------------------
19693 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19694 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19695 # script with STATUS, using 1 if that was 0.
19698 as_status
=$1; test $as_status -eq 0 && as_status
=1
19700 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
19701 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19703 $as_echo "$as_me: error: $2" >&2
19704 as_fn_exit
$as_status
19708 # as_fn_set_status STATUS
19709 # -----------------------
19710 # Set $? to STATUS, without forking.
19711 as_fn_set_status
()
19714 } # as_fn_set_status
19716 # as_fn_exit STATUS
19717 # -----------------
19718 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19722 as_fn_set_status
$1
19728 # Portably unset VAR.
19731 { eval $1=; unset $1;}
19733 as_unset
=as_fn_unset
19734 # as_fn_append VAR VALUE
19735 # ----------------------
19736 # Append the text in VALUE to the end of the definition contained in VAR. Take
19737 # advantage of any shell optimizations that allow amortized linear growth over
19738 # repeated appends, instead of the typical quadratic growth present in naive
19740 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
19741 eval 'as_fn_append ()
19752 # as_fn_arith ARG...
19753 # ------------------
19754 # Perform arithmetic evaluation on the ARGs, and store the result in the
19755 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19756 # must be portable across $(()) and expr.
19757 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
19758 eval 'as_fn_arith ()
19765 as_val
=`expr "$@" || test $? -eq 1`
19770 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
19771 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
19777 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19778 as_basename
=basename
19783 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
19789 as_me
=`$as_basename -- "$0" ||
19790 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19791 X"$0" : 'X\(//\)$' \| \
19792 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19794 sed '/^.*\/\([^/][^/]*\)\/*$/{
19808 # Avoid depending upon Character Ranges.
19809 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19810 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19811 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19812 as_cr_digits
='0123456789'
19813 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19815 ECHO_C
= ECHO_N
= ECHO_T
=
19816 case `echo -n x` in #(((((
19818 case `echo 'xy\c'` in
19819 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
19821 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
19828 rm -f conf$$ conf$$.exe conf$$.
file
19829 if test -d conf$$.dir
; then
19830 rm -f conf$$.dir
/conf$$.
file
19833 mkdir conf$$.dir
2>/dev
/null
19835 if (echo >conf$$.
file) 2>/dev
/null
; then
19836 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19838 # ... but there are two gotchas:
19839 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19840 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19841 # In both cases, we have to default to `cp -pR'.
19842 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
19844 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19852 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
19853 rmdir conf$$.dir
2>/dev
/null
19858 # Create "$as_dir" as a directory, including parents if necessary.
19863 -*) as_dir
=.
/$as_dir;;
19865 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
19869 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19870 *) as_qdir
=$as_dir;;
19872 as_dirs
="'$as_qdir' $as_dirs"
19873 as_dir
=`$as_dirname -- "$as_dir" ||
19874 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19875 X"$as_dir" : 'X\(//\)[^/]' \| \
19876 X"$as_dir" : 'X\(//\)$' \| \
19877 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19878 $as_echo X"$as_dir" |
19879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19883 /^X\(\/\/\)[^/].*/{
19896 test -d "$as_dir" && break
19898 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19899 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
19903 if mkdir
-p .
2>/dev
/null
; then
19904 as_mkdir_p
='mkdir -p "$as_dir"'
19906 test -d .
/-p && rmdir .
/-p
19911 # as_fn_executable_p FILE
19912 # -----------------------
19913 # Test if FILE is an executable regular file.
19914 as_fn_executable_p
()
19916 test -f "$1" && test -x "$1"
19917 } # as_fn_executable_p
19918 as_test_x
='test -x'
19919 as_executable_p
=as_fn_executable_p
19921 # Sed expression to map a string onto a valid CPP name.
19922 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19924 # Sed expression to map a string onto a valid variable name.
19925 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19929 ## ----------------------------------- ##
19930 ## Main body of $CONFIG_STATUS script. ##
19931 ## ----------------------------------- ##
19933 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
19935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19936 # Save the log message, to keep $0 and so on meaningful, and to
19937 # report actual input values of CONFIG_FILES etc. instead of their
19938 # values after options handling.
19940 This file was extended by $as_me, which was
19941 generated by GNU Autoconf 2.69. Invocation command line was
19943 CONFIG_FILES = $CONFIG_FILES
19944 CONFIG_HEADERS = $CONFIG_HEADERS
19945 CONFIG_LINKS = $CONFIG_LINKS
19946 CONFIG_COMMANDS = $CONFIG_COMMANDS
19949 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19954 case $ac_config_files in *"
19955 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
19958 case $ac_config_headers in *"
19959 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
19963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19964 # Files that config.status was made for.
19965 config_files="$ac_config_files"
19966 config_headers="$ac_config_headers"
19967 config_links="$ac_config_links"
19968 config_commands="$ac_config_commands"
19972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19974 \`$as_me' instantiates files and other configuration actions
19975 from templates according to the current configuration. Unless the files
19976 and actions are specified as TAGs, all are instantiated by default.
19978 Usage: $0 [OPTION]... [TAG]...
19980 -h, --help print this help, then exit
19981 -V, --version print version number and configuration settings, then exit
19982 --config print configuration, then exit
19983 -q, --quiet, --silent
19984 do not print progress messages
19985 -d, --debug don't remove temporary files
19986 --recheck update $as_me by reconfiguring in the same conditions
19987 --file=FILE[:TEMPLATE]
19988 instantiate the configuration file FILE
19989 --header=FILE[:TEMPLATE]
19990 instantiate the configuration header FILE
19992 Configuration files:
19995 Configuration headers:
19998 Configuration links:
20001 Configuration commands:
20004 Report bugs to the package provider."
20007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20008 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20011 configured by $0, generated by GNU Autoconf 2.69,
20012 with options \\"\$ac_cs_config\\"
20014 Copyright (C) 2012 Free Software Foundation, Inc.
20015 This config.status script is free software; the Free Software Foundation
20016 gives unlimited permission to copy, distribute and modify it."
20022 test -n "\$AWK" || AWK=awk
20025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20026 # The default lists apply if the user does not specify any file.
20032 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20033 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20037 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20049 # Handling of the options.
20050 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20052 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20053 $as_echo "$ac_cs_version"; exit ;;
20054 --config |
--confi |
--conf |
--con |
--co |
--c )
20055 $as_echo "$ac_cs_config"; exit ;;
20056 --debug |
--debu |
--deb |
--de |
--d |
-d )
20058 --file |
--fil |
--fi |
--f )
20061 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20062 '') as_fn_error $?
"missing file argument" ;;
20064 as_fn_append CONFIG_FILES
" '$ac_optarg'"
20065 ac_need_defaults
=false
;;
20066 --header |
--heade |
--head |
--hea )
20069 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20071 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
20072 ac_need_defaults
=false
;;
20074 # Conflict between --help and --header
20075 as_fn_error $?
"ambiguous option: \`$1'
20076 Try \`$0 --help' for more information.";;
20077 --help |
--hel |
-h )
20078 $as_echo "$ac_cs_usage"; exit ;;
20079 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20080 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20083 # This is an error.
20084 -*) as_fn_error $?
"unrecognized option: \`$1'
20085 Try \`$0 --help' for more information." ;;
20087 *) as_fn_append ac_config_targets
" $1"
20088 ac_need_defaults
=false
;;
20094 ac_configure_extra_args
=
20096 if $ac_cs_silent; then
20098 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20102 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20103 if \$ac_cs_recheck; then
20104 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20106 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20107 CONFIG_SHELL='$SHELL'
20108 export CONFIG_SHELL
20113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20117 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20118 ## Running $as_me. ##
20124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20128 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
20129 GDB_NM_FILE=$GDB_NM_FILE
20133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20135 # Handling of arguments.
20136 for ac_config_target
in $ac_config_targets
20138 case $ac_config_target in
20139 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
20140 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
20141 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
20142 "nm.h") CONFIG_LINKS
="$CONFIG_LINKS nm.h:$GDB_NM_FILE" ;;
20143 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
20144 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20145 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
20146 "gdb-gdb.py") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.py" ;;
20147 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
20148 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
20150 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20155 # If the user did not use the arguments to specify the items to instantiate,
20156 # then the envvar interface is used. Set only those that are not.
20157 # We use the long form for the default assignment because of an extremely
20158 # bizarre bug on SunOS 4.1.3.
20159 if $ac_need_defaults; then
20160 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20161 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20162 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
20163 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20166 # Have a temporary directory for convenience. Make it in the build tree
20167 # simply because there is no reason against having it here, and in addition,
20168 # creating and moving files from /tmp can sometimes cause problems.
20169 # Hook for its removal unless debugging.
20170 # Note that there is a small window in which the directory will not be cleaned:
20171 # after its creation but before its name has been assigned to `$tmp'.
20175 trap 'exit_status=$?
20176 : "${ac_tmp:=$tmp}"
20177 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20179 trap 'as_fn_exit 1' 1 2 13 15
20181 # Create a (secure) tmp directory for tmp files.
20184 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20188 tmp
=.
/conf$$
-$RANDOM
20189 (umask 077 && mkdir
"$tmp")
20190 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
20193 # Set up the scripts for CONFIG_FILES section.
20194 # No need to generate them if there are no CONFIG_FILES.
20195 # This happens for instance with `./config.status config.h'.
20196 if test -n "$CONFIG_FILES"; then
20198 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
20199 ac_cs_awk_getline
=:
20200 ac_cs_awk_pipe_init
=
20201 ac_cs_awk_read_file
='
20202 while ((getline aline < (F[key])) > 0)
20205 ac_cs_awk_pipe_fini
=
20207 ac_cs_awk_getline
=false
20208 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
20209 ac_cs_awk_read_file
='
20211 print "cat " F[key] " &&"
20212 '$ac_cs_awk_pipe_init
20213 # The final `:' finishes the AND list.
20214 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
20216 ac_cr
=`echo X | tr X '\015'`
20217 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20218 # But we know of no other shell where ac_cr would be empty at this
20219 # point, so we can use a bashism as a fallback.
20220 if test "x$ac_cr" = x
; then
20221 eval ac_cr
=\$
\'\\r
\'
20223 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20224 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20227 ac_cs_awk_cr
=$ac_cr
20230 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20233 # Create commands to substitute file output variables.
20235 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20236 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
20237 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
20240 } >conf$
$files.sh
&&
20241 . .
/conf$
$files.sh ||
20242 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
20243 rm -f conf$
$files.sh
20246 echo "cat >conf$$subs.awk <<_ACEOF" &&
20247 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20249 } >conf$$subs.sh ||
20250 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20251 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20253 for ac_last_try in false false false false false :; do
20254 . ./conf$$subs.sh ||
20255 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20257 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20258 if test $ac_delim_n = $ac_delim_num; then
20260 elif $ac_last_try; then
20261 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20263 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20266 rm -f conf$$subs.sh
20268 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20269 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
20273 s/^/S["/; s
/!.
*/"]=/
20283 s/\(.\{148\}\)..*/\1/
20285 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
20290 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20297 s/\(.\{148\}\)..*/\1/
20299 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
20303 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20308 ' <conf$$subs.awk | sed '
20313 ' >>$CONFIG_STATUS || ac_write_fail=1
20314 rm -f conf$$subs.awk
20315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20317 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
20318 for (key in S) S_is_set[key] = 1
20320 \$ac_cs_awk_pipe_init
20324 nfields = split(line, field, "@
")
20326 len = length(field[1])
20327 for (i = 2; i < nfields; i++) {
20329 keylen = length(key)
20330 if (S_is_set[key]) {
20332 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20333 len += length(value) + length(field[++i])
20338 if (nfields == 3 && !substed) {
20340 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
20341 \$ac_cs_awk_read_file
20347 \$ac_cs_awk_pipe_fini
20350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20351 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20352 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
20355 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
20356 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
20359 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20360 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
20361 # trailing colons and then remove the whole line if VPATH becomes empty
20362 # (actually we leave an empty line to preserve line numbers).
20363 if test "x
$srcdir" = x.; then
20364 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20382 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20383 fi # test -n "$CONFIG_FILES"
20385 # Set up the scripts for CONFIG_HEADERS section.
20386 # No need to generate them if there are no CONFIG_HEADERS.
20387 # This happens for instance with `./config.status Makefile'.
20388 if test -n "$CONFIG_HEADERS"; then
20389 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
20393 # Transform confdefs.h into an awk script `defines.awk', embedded as
20394 # here-document in config.status, that substitutes the proper values into
20395 # config.h.in to produce config.h.
20397 # Create a delimiter string that does not exist in confdefs.h, to ease
20398 # handling of long lines.
20400 for ac_last_try in false false :; do
20401 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
20402 if test -z "$ac_tt"; then
20404 elif $ac_last_try; then
20405 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
20407 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20411 # For the awk script, D is an array of macro values keyed by name,
20412 # likewise P contains macro parameters if any. Preserve backslash
20413 # newline sequences.
20415 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20417 s/.\{148\}/&'"$ac_delim"'/g
20420 s/^[ ]*#[ ]*define[ ][ ]*/ /
20427 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
20429 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
20433 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
20434 D["\
1"]=" \
3\\\\\\n
"\\/p
20436 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
20441 s/.\{148\}/&'"$ac_delim"'/g
20446 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
20449 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
20451 ' <confdefs.h | sed '
20452 s/'"$ac_delim"'/"\\\
20453 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20456 for (key in D) D_is_set[key] = 1
20459 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20461 split(line, arg, " ")
20462 if (arg[1] == "#") {
20466 defundef
= substr
(arg
[1], 2)
20469 split(mac1
, mac2
, "(") #)
20471 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
20472 if (D_is_set
[macro
]) {
20473 # Preserve the white space surrounding the "#".
20474 print prefix
"define", macro P
[macro
] D
[macro
]
20477 # Replace #undef with comments. This is necessary, for example,
20478 # in the case of _POSIX_SOURCE, which is predefined and required
20479 # on some systems where configure will not decide to define it.
20480 if (defundef
== "undef") {
20481 print
"/*", prefix defundef
, macro
, "*/"
20489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20490 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
20491 fi # test -n "$CONFIG_HEADERS"
20494 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
20499 :[FHLC
]) ac_mode
=$ac_tag; continue;;
20501 case $ac_mode$ac_tag in
20503 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
20504 :[FH
]-) ac_tag
=-:-;;
20505 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
20522 -) ac_f
="$ac_tmp/stdin";;
20523 *) # Look for the file first in the build tree, then in the source tree
20524 # (if the path is not absolute). The absolute path cannot be DOS-style,
20525 # because $ac_f cannot contain `:'.
20529 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
20531 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20533 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20534 as_fn_append ac_file_inputs
" '$ac_f'"
20537 # Let's still pretend it is `configure' which instantiates (i.e., don't
20538 # use $as_me), people would be surprised to read:
20539 # /* config.h. Generated by config.status. */
20540 configure_input
='Generated from '`
20541 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20543 if test x
"$ac_file" != x-
; then
20544 configure_input
="$ac_file. $configure_input"
20545 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20546 $as_echo "$as_me: creating $ac_file" >&6;}
20548 # Neutralize special characters interpreted by sed in replacement strings.
20549 case $configure_input in #(
20550 *\
&* |
*\|
* |
*\\* )
20551 ac_sed_conf_input
=`$as_echo "$configure_input" |
20552 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20553 *) ac_sed_conf_input
=$configure_input;;
20557 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
20558 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
20563 ac_dir
=`$as_dirname -- "$ac_file" ||
20564 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20565 X"$ac_file" : 'X\(//\)[^/]' \| \
20566 X"$ac_file" : 'X\(//\)$' \| \
20567 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20568 $as_echo X"$ac_file" |
20569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20573 /^X\(\/\/\)[^/].*/{
20586 as_dir
="$ac_dir"; as_fn_mkdir_p
20590 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20592 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20593 # A ".." for each directory in $ac_dir_suffix.
20594 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20595 case $ac_top_builddir_sub in
20596 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20597 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20600 ac_abs_top_builddir
=$ac_pwd
20601 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
20602 # for backward compatibility:
20603 ac_top_builddir
=$ac_top_build_prefix
20606 .
) # We are building in place.
20608 ac_top_srcdir
=$ac_top_builddir_sub
20609 ac_abs_top_srcdir
=$ac_pwd ;;
20610 [\\/]* | ?
:[\\/]* ) # Absolute name.
20611 ac_srcdir
=$srcdir$ac_dir_suffix;
20612 ac_top_srcdir
=$srcdir
20613 ac_abs_top_srcdir
=$srcdir ;;
20614 *) # Relative name.
20615 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
20616 ac_top_srcdir
=$ac_top_build_prefix$srcdir
20617 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
20619 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
20629 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20630 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
20634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20635 # If the template does not know about datarootdir, expand it.
20636 # FIXME: This hack should be removed a few years after 2.60.
20637 ac_datarootdir_hack
=; ac_datarootdir_seen
=
20648 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20649 *datarootdir
*) ac_datarootdir_seen
=yes;;
20650 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
20651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20652 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20655 ac_datarootdir_hack='
20656 s&@datadir@&$datadir&g
20657 s&@docdir@&$docdir&g
20658 s&@infodir@&$infodir&g
20659 s&@localedir@&$localedir&g
20660 s&@mandir@&$mandir&g
20661 s&\\\${datarootdir}&$datarootdir&g' ;;
20665 # Neutralize VPATH when `$srcdir' = `.'.
20666 # Shell code in configure.ac might set extrasub.
20667 # FIXME: do we really want to maintain this feature?
20668 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20669 ac_sed_extra="$ac_vpsub
20672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20674 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20675 s|@configure_input@|
$ac_sed_conf_input|
;t t
20676 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
20677 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
20678 s
&@srcdir@
&$ac_srcdir&;t t
20679 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
20680 s
&@top_srcdir@
&$ac_top_srcdir&;t t
20681 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
20682 s
&@builddir@
&$ac_builddir&;t t
20683 s
&@abs_builddir@
&$ac_abs_builddir&;t t
20684 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
20685 s
&@INSTALL@
&$ac_INSTALL&;t t
20686 $ac_datarootdir_hack
20688 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
20689 if $ac_cs_awk_getline; then
20690 $AWK -f "$ac_tmp/subs.
awk"
20692 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
20694 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
20696 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20697 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
20698 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20699 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
20700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
20701 which seems to be undefined. Please make sure it is defined" >&5
20702 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
20703 which seems to be undefined. Please make sure it is defined" >&2;}
20705 rm -f "$ac_tmp/stdin"
20707 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20708 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20710 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20716 if test x"$ac_file" != x-; then
20718 $as_echo "/* $configure_input */" \
20719 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20720 } >"$ac_tmp/config.h" \
20721 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20722 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20723 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20724 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20727 mv "$ac_tmp/config.h" "$ac_file" \
20728 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20731 $as_echo "/* $configure_input */" \
20732 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20733 || as_fn_error $? "could not create -" "$LINENO" 5
20741 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
20744 # Prefer the file from the source tree if names are identical.
20745 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
20746 ac_source=$srcdir/$ac_source
20749 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
20750 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
20752 if test ! -r "$ac_source"; then
20753 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
20757 # Try a relative symlink, then a hard link, then a copy.
20759 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
20760 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
20762 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
20763 ln "$ac_source" "$ac_file" 2>/dev/null ||
20764 cp -p "$ac_source" "$ac_file" ||
20765 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
20768 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20769 $as_echo "$as_me: executing $ac_file commands" >&6;}
20774 case $ac_file$ac_mode in
20775 "config.h":H) echo > stamp-h ;;
20776 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
20777 "nm.h":L) echo > stamp-nmh ;;
20778 "gcore":F) chmod +x gcore ;;
20786 ac_clean_files=$ac_clean_files_save
20788 test $ac_write_fail = 0 ||
20789 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20792 # configure is writing to config.log, and then calls config.status.
20793 # config.status does its own redirection, appending to config.log.
20794 # Unfortunately, on DOS this fails, as config.log is still kept open
20795 # by configure, so config.status won't be able to
write to it
; its
20796 # output is simply discarded. So we exec the FD to /dev/null,
20797 # effectively closing config.log, so it can be properly (re)opened and
20798 # appended to by config.status. When coming back to configure, we
20799 # need to make the FD available again.
20800 if test "$no_create" != yes; then
20802 ac_config_status_args
=
20803 test "$silent" = yes &&
20804 ac_config_status_args
="$ac_config_status_args --quiet"
20806 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20808 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20809 # would make configure fail if this is the last instruction.
20810 $ac_cs_success || as_fn_exit
1
20814 # CONFIG_SUBDIRS section.
20816 if test "$no_recursion" != yes; then
20818 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
20819 # so they do not pile up.
20820 ac_sub_configure_args
=
20822 eval "set x $ac_configure_args"
20826 if test -n "$ac_prev"; then
20831 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
20832 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
20833 ac_prev
=cache_file
;;
20834 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
20835 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
20838 --config-cache |
-C)
20840 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
20842 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
20844 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
20846 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
20848 --disable-option-checking)
20852 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20854 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
20858 # Always prepend --prefix to ensure using the same prefix
20859 # in subdir configurations.
20860 ac_arg
="--prefix=$prefix"
20862 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20864 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
20867 if test "$silent" = yes; then
20868 ac_sub_configure_args
="--silent $ac_sub_configure_args"
20871 # Always prepend --disable-option-checking to silence warnings, since
20872 # different subdirs can have different --enable and --with options.
20873 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
20876 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
20878 # Do not complain, so a configure script can configure whichever
20879 # parts of a large source tree are present.
20880 test -d "$srcdir/$ac_dir" ||
continue
20882 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20883 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
20884 $as_echo "$ac_msg" >&6
20885 as_dir
="$ac_dir"; as_fn_mkdir_p
20889 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20891 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20892 # A ".." for each directory in $ac_dir_suffix.
20893 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20894 case $ac_top_builddir_sub in
20895 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20896 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20899 ac_abs_top_builddir
=$ac_pwd
20900 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
20901 # for backward compatibility:
20902 ac_top_builddir
=$ac_top_build_prefix
20905 .
) # We are building in place.
20907 ac_top_srcdir
=$ac_top_builddir_sub
20908 ac_abs_top_srcdir
=$ac_pwd ;;
20909 [\\/]* | ?
:[\\/]* ) # Absolute name.
20910 ac_srcdir
=$srcdir$ac_dir_suffix;
20911 ac_top_srcdir
=$srcdir
20912 ac_abs_top_srcdir
=$srcdir ;;
20913 *) # Relative name.
20914 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
20915 ac_top_srcdir
=$ac_top_build_prefix$srcdir
20916 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
20918 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
20923 # Check for guested configure; otherwise get Cygnus style configure.
20924 if test -f "$ac_srcdir/configure.gnu"; then
20925 ac_sub_configure
=$ac_srcdir/configure.gnu
20926 elif test -f "$ac_srcdir/configure"; then
20927 ac_sub_configure
=$ac_srcdir/configure
20928 elif test -f "$ac_srcdir/configure.in"; then
20929 # This should be Cygnus configure.
20930 ac_sub_configure
=$ac_aux_dir/configure
20932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
20933 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20937 # The recursion is here.
20938 if test -n "$ac_sub_configure"; then
20939 # Make the cache file name correct relative to the subdirectory.
20940 case $cache_file in
20941 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
20942 *) # Relative name.
20943 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
20946 { $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
20947 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20948 # The eval makes quoting arguments work.
20949 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20950 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20951 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
20957 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
20958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20959 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}