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
7040 pkg_save_LDFLAGS
="$LDFLAGS"
7041 LDFLAGS
="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
7042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7043 /* end confdefs.h. */
7053 if ac_fn_c_try_link
"$LINENO"; then :
7058 rm -f core conftest.err conftest.
$ac_objext \
7059 conftest
$ac_exeext conftest.
$ac_ext
7060 LDFLAGS
=$pkg_save_LDFLAGS
7064 if test $pkg_failed = yes; then
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7066 $as_echo "no" >&6; }
7068 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7069 _pkg_short_errors_supported
=yes
7071 _pkg_short_errors_supported
=no
7073 if test $_pkg_short_errors_supported = yes; then
7074 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
7076 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
7078 # Put the nasty error message in config.log where it belongs
7079 echo "$DEBUGINFOD_PKG_ERRORS" >&5
7081 if test "x$with_debuginfod" = xyes
; then
7082 as_fn_error $?
"\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
7085 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
7087 elif test $pkg_failed = untried
; then
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7089 $as_echo "no" >&6; }
7090 if test "x$with_debuginfod" = xyes
; then
7091 as_fn_error $?
"\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
7094 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
7097 DEBUGINFOD_CFLAGS
=$pkg_cv_DEBUGINFOD_CFLAGS
7098 DEBUGINFOD_LIBS
=$pkg_cv_DEBUGINFOD_LIBS
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7100 $as_echo "yes" >&6; }
7102 $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
7107 $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
7111 # Libunwind support for ia64.
7113 # Check whether --with-libunwind-ia64 was given.
7114 if test "${with_libunwind_ia64+set}" = set; then :
7115 withval
=$with_libunwind_ia64;
7117 with_libunwind_ia64
=auto
7121 # Backward compatibility option.
7122 if test "${with_libunwind+set}" = set; then
7123 if test x
"$with_libunwind_ia64" != xauto
; then
7124 as_fn_error $?
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
7127 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
7128 with_libunwind_ia64
="$with_libunwind"
7131 case "$with_libunwind_ia64" in
7135 for ac_header
in libunwind-ia64.h
7137 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
7138 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
7139 cat >>confdefs.h
<<_ACEOF
7140 #define HAVE_LIBUNWIND_IA64_H 1
7147 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
7150 as_fn_error $?
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
7154 if test x
"$with_libunwind_ia64" = xyes
; then
7155 for ac_header
in libunwind-ia64.h
7157 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
7158 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
7159 cat >>confdefs.h
<<_ACEOF
7160 #define HAVE_LIBUNWIND_IA64_H 1
7167 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
7168 as_fn_error $?
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
7170 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
7171 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
7172 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
7177 # Check whether --with-curses was given.
7178 if test "${with_curses+set}" = set; then :
7179 withval
=$with_curses; opt_curses
=$withval
7184 if test "$opt_curses" = "yes"; then
7188 # Profiling support.
7189 # Check whether --enable-profiling was given.
7190 if test "${enable_profiling+set}" = set; then :
7191 enableval
=$enable_profiling; case $enableval in
7195 as_fn_error $?
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
7202 for ac_func
in monstartup _mcleanup
7204 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7205 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7206 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7207 cat >>confdefs.h
<<_ACEOF
7208 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
7215 $as_echo_n "checking for _etext... " >&6; }
7216 if ${ac_cv_var__etext+:} false
; then :
7217 $as_echo_n "(cached) " >&6
7219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7220 /* end confdefs.h. */
7232 if ac_fn_c_try_link
"$LINENO"; then :
7233 ac_cv_var__etext
=yes
7237 rm -f core conftest.err conftest.
$ac_objext \
7238 conftest
$ac_exeext conftest.
$ac_ext
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
7241 $as_echo "$ac_cv_var__etext" >&6; }
7242 if test "$ac_cv_var__etext" = yes; then
7244 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
7248 $as_echo_n "checking for etext... " >&6; }
7249 if ${ac_cv_var_etext+:} false
; then :
7250 $as_echo_n "(cached) " >&6
7252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7253 /* end confdefs.h. */
7265 if ac_fn_c_try_link
"$LINENO"; then :
7270 rm -f core conftest.err conftest.
$ac_objext \
7271 conftest
$ac_exeext conftest.
$ac_ext
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
7274 $as_echo "$ac_cv_var_etext" >&6; }
7275 if test "$ac_cv_var_etext" = yes; then
7277 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
7280 if test "$enable_profiling" = yes ; then
7281 if test "$ac_cv_func_monstartup" = no ||
test "$ac_cv_func__mcleanup" = no
; then
7282 as_fn_error $?
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
7285 OLD_CFLAGS
="$CFLAGS"
7286 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
7289 $as_echo_n "checking whether $CC supports -pg... " >&6; }
7290 if ${ac_cv_cc_supports_pg+:} false
; then :
7291 $as_echo_n "(cached) " >&6
7293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7294 /* end confdefs.h. */
7304 if ac_fn_c_try_compile
"$LINENO"; then :
7305 ac_cv_cc_supports_pg
=yes
7307 ac_cv_cc_supports_pg
=no
7309 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
7312 $as_echo "$ac_cv_cc_supports_pg" >&6; }
7314 if test "$ac_cv_cc_supports_pg" = no
; then
7315 as_fn_error $?
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
7318 CFLAGS
="$OLD_CFLAGS"
7322 # Check whether --enable-codesign was given.
7323 if test "${enable_codesign+set}" = set; then :
7324 enableval
=$enable_codesign; CODESIGN_CERT
=$enableval
7331 # Check whether --with-pkgversion was given.
7332 if test "${with_pkgversion+set}" = set; then :
7333 withval
=$with_pkgversion; case "$withval" in
7334 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
7336 *) PKGVERSION
="($withval) " ;;
7347 # Check whether --with-bugurl was given.
7348 if test "${with_bugurl+set}" = set; then :
7349 withval
=$with_bugurl; case "$withval" in
7350 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
7353 *) BUGURL
="$withval"
7357 BUGURL
="https://www.gnu.org/software/gdb/bugs/"
7367 REPORT_BUGS_TO
="<$BUGURL>"
7368 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7375 cat >>confdefs.h
<<_ACEOF
7376 #define PKGVERSION "$PKGVERSION"
7380 cat >>confdefs.h
<<_ACEOF
7381 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7385 # --------------------- #
7386 # Checks for programs. #
7387 # --------------------- #
7389 for ac_prog
in gawk mawk nawk
awk
7391 # Extract the first word of "$ac_prog", so it can be a program name with args.
7392 set dummy
$ac_prog; ac_word
=$2
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7394 $as_echo_n "checking for $ac_word... " >&6; }
7395 if ${ac_cv_prog_AWK+:} false
; then :
7396 $as_echo_n "(cached) " >&6
7398 if test -n "$AWK"; then
7399 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7401 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7405 test -z "$as_dir" && as_dir
=.
7406 for ac_exec_ext
in '' $ac_executable_extensions; do
7407 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7408 ac_cv_prog_AWK
="$ac_prog"
7409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7419 if test -n "$AWK"; then
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7421 $as_echo "$AWK" >&6; }
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7424 $as_echo "no" >&6; }
7428 test -n "$AWK" && break
7431 # Find a good install program. We prefer a C program (faster),
7432 # so one script is as good as another. But avoid the broken or
7433 # incompatible versions:
7434 # SysV /etc/install, /usr/sbin/install
7435 # SunOS /usr/etc/install
7436 # IRIX /sbin/install
7438 # AmigaOS /C/install, which installs bootblocks on floppy discs
7439 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7440 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7441 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7442 # OS/2's system install, which has a completely different semantic
7443 # ./install, which can be erroneously created by make from ./install.sh.
7444 # Reject install programs that cannot install multiple files.
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7446 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7447 if test -z "$INSTALL"; then
7448 if ${ac_cv_path_install+:} false
; then :
7449 $as_echo_n "(cached) " >&6
7451 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7455 test -z "$as_dir" && as_dir
=.
7456 # Account for people who put trailing slashes in PATH elements.
7457 case $as_dir/ in #((
7458 .
/ | .
// |
/[cC
]/* | \
7459 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7460 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
7463 # OSF1 and SCO ODT 3.0 have their own names for install.
7464 # Don't use installbsd from OSF since it installs stuff as root
7466 for ac_prog
in ginstall scoinst
install; do
7467 for ac_exec_ext
in '' $ac_executable_extensions; do
7468 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
7469 if test $ac_prog = install &&
7470 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7471 # AIX install. It has an incompatible calling convention.
7473 elif test $ac_prog = install &&
7474 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7475 # program-specific install script used by HP pwplus--don't use.
7478 rm -rf conftest.one conftest.two conftest.dir
7479 echo one
> conftest.one
7480 echo two
> conftest.two
7482 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
7483 test -s conftest.one
&& test -s conftest.two
&&
7484 test -s conftest.dir
/conftest.one
&&
7485 test -s conftest.dir
/conftest.two
7487 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7500 rm -rf conftest.one conftest.two conftest.dir
7503 if test "${ac_cv_path_install+set}" = set; then
7504 INSTALL
=$ac_cv_path_install
7506 # As a last resort, use the slow shell script. Don't cache a
7507 # value for INSTALL within a source directory, because that will
7508 # break other packages using the cache if that directory is
7509 # removed, or if the value is a relative name.
7510 INSTALL
=$ac_install_sh
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7514 $as_echo "$INSTALL" >&6; }
7516 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7517 # It thinks the first close brace ends the variable substitution.
7518 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7520 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7522 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7525 $as_echo_n "checking whether ln -s works... " >&6; }
7527 if test "$LN_S" = "ln -s"; then
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7529 $as_echo "yes" >&6; }
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7532 $as_echo "no, using $LN_S" >&6; }
7535 if test -n "$ac_tool_prefix"; then
7536 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7537 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7539 $as_echo_n "checking for $ac_word... " >&6; }
7540 if ${ac_cv_prog_RANLIB+:} false
; then :
7541 $as_echo_n "(cached) " >&6
7543 if test -n "$RANLIB"; then
7544 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7546 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7550 test -z "$as_dir" && as_dir
=.
7551 for ac_exec_ext
in '' $ac_executable_extensions; do
7552 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7553 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7563 RANLIB
=$ac_cv_prog_RANLIB
7564 if test -n "$RANLIB"; then
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7566 $as_echo "$RANLIB" >&6; }
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569 $as_echo "no" >&6; }
7574 if test -z "$ac_cv_prog_RANLIB"; then
7575 ac_ct_RANLIB
=$RANLIB
7576 # Extract the first word of "ranlib", so it can be a program name with args.
7577 set dummy ranlib
; ac_word
=$2
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7579 $as_echo_n "checking for $ac_word... " >&6; }
7580 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
7581 $as_echo_n "(cached) " >&6
7583 if test -n "$ac_ct_RANLIB"; then
7584 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7586 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7590 test -z "$as_dir" && as_dir
=.
7591 for ac_exec_ext
in '' $ac_executable_extensions; do
7592 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7593 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7603 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7604 if test -n "$ac_ct_RANLIB"; then
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7606 $as_echo "$ac_ct_RANLIB" >&6; }
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7609 $as_echo "no" >&6; }
7612 if test "x$ac_ct_RANLIB" = x
; then
7615 case $cross_compiling:$ac_tool_warned in
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7619 ac_tool_warned
=yes ;;
7621 RANLIB
=$ac_ct_RANLIB
7624 RANLIB
="$ac_cv_prog_RANLIB"
7627 for ac_prog
in 'bison -y' byacc
7629 # Extract the first word of "$ac_prog", so it can be a program name with args.
7630 set dummy
$ac_prog; ac_word
=$2
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7632 $as_echo_n "checking for $ac_word... " >&6; }
7633 if ${ac_cv_prog_YACC+:} false
; then :
7634 $as_echo_n "(cached) " >&6
7636 if test -n "$YACC"; then
7637 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
7639 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7643 test -z "$as_dir" && as_dir
=.
7644 for ac_exec_ext
in '' $ac_executable_extensions; do
7645 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7646 ac_cv_prog_YACC
="$ac_prog"
7647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7656 YACC
=$ac_cv_prog_YACC
7657 if test -n "$YACC"; then
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7659 $as_echo "$YACC" >&6; }
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662 $as_echo "no" >&6; }
7666 test -n "$YACC" && break
7668 test -n "$YACC" || YACC
="yacc"
7671 if test -n "$ac_tool_prefix"; then
7672 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7673 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7675 $as_echo_n "checking for $ac_word... " >&6; }
7676 if ${ac_cv_prog_AR+:} false
; then :
7677 $as_echo_n "(cached) " >&6
7679 if test -n "$AR"; then
7680 ac_cv_prog_AR
="$AR" # Let the user override the test.
7682 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7686 test -z "$as_dir" && as_dir
=.
7687 for ac_exec_ext
in '' $ac_executable_extensions; do
7688 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7689 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7700 if test -n "$AR"; then
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7702 $as_echo "$AR" >&6; }
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7705 $as_echo "no" >&6; }
7710 if test -z "$ac_cv_prog_AR"; then
7712 # Extract the first word of "ar", so it can be a program name with args.
7713 set dummy
ar; ac_word
=$2
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7715 $as_echo_n "checking for $ac_word... " >&6; }
7716 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
7717 $as_echo_n "(cached) " >&6
7719 if test -n "$ac_ct_AR"; then
7720 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7722 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7726 test -z "$as_dir" && as_dir
=.
7727 for ac_exec_ext
in '' $ac_executable_extensions; do
7728 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7729 ac_cv_prog_ac_ct_AR
="ar"
7730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7739 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7740 if test -n "$ac_ct_AR"; then
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7742 $as_echo "$ac_ct_AR" >&6; }
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7745 $as_echo "no" >&6; }
7748 if test "x$ac_ct_AR" = x
; then
7751 case $cross_compiling:$ac_tool_warned in
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7755 ac_tool_warned
=yes ;;
7763 if test -n "$ac_tool_prefix"; then
7764 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7765 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7767 $as_echo_n "checking for $ac_word... " >&6; }
7768 if ${ac_cv_prog_DLLTOOL+:} false
; then :
7769 $as_echo_n "(cached) " >&6
7771 if test -n "$DLLTOOL"; then
7772 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
7774 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7778 test -z "$as_dir" && as_dir
=.
7779 for ac_exec_ext
in '' $ac_executable_extensions; do
7780 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7781 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
7782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7791 DLLTOOL
=$ac_cv_prog_DLLTOOL
7792 if test -n "$DLLTOOL"; then
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7794 $as_echo "$DLLTOOL" >&6; }
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7797 $as_echo "no" >&6; }
7802 if test -z "$ac_cv_prog_DLLTOOL"; then
7803 ac_ct_DLLTOOL
=$DLLTOOL
7804 # Extract the first word of "dlltool", so it can be a program name with args.
7805 set dummy dlltool
; ac_word
=$2
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7807 $as_echo_n "checking for $ac_word... " >&6; }
7808 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
7809 $as_echo_n "(cached) " >&6
7811 if test -n "$ac_ct_DLLTOOL"; then
7812 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
7814 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7818 test -z "$as_dir" && as_dir
=.
7819 for ac_exec_ext
in '' $ac_executable_extensions; do
7820 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7821 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
7822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7831 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
7832 if test -n "$ac_ct_DLLTOOL"; then
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7834 $as_echo "$ac_ct_DLLTOOL" >&6; }
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7837 $as_echo "no" >&6; }
7840 if test "x$ac_ct_DLLTOOL" = x
; then
7843 case $cross_compiling:$ac_tool_warned in
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7847 ac_tool_warned
=yes ;;
7849 DLLTOOL
=$ac_ct_DLLTOOL
7852 DLLTOOL
="$ac_cv_prog_DLLTOOL"
7855 if test -n "$ac_tool_prefix"; then
7856 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7857 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7859 $as_echo_n "checking for $ac_word... " >&6; }
7860 if ${ac_cv_prog_WINDRES+:} false
; then :
7861 $as_echo_n "(cached) " >&6
7863 if test -n "$WINDRES"; then
7864 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
7866 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7870 test -z "$as_dir" && as_dir
=.
7871 for ac_exec_ext
in '' $ac_executable_extensions; do
7872 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7873 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
7874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7883 WINDRES
=$ac_cv_prog_WINDRES
7884 if test -n "$WINDRES"; then
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7886 $as_echo "$WINDRES" >&6; }
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7889 $as_echo "no" >&6; }
7894 if test -z "$ac_cv_prog_WINDRES"; then
7895 ac_ct_WINDRES
=$WINDRES
7896 # Extract the first word of "windres", so it can be a program name with args.
7897 set dummy windres
; ac_word
=$2
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7899 $as_echo_n "checking for $ac_word... " >&6; }
7900 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
7901 $as_echo_n "(cached) " >&6
7903 if test -n "$ac_ct_WINDRES"; then
7904 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
7906 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7910 test -z "$as_dir" && as_dir
=.
7911 for ac_exec_ext
in '' $ac_executable_extensions; do
7912 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7913 ac_cv_prog_ac_ct_WINDRES
="windres"
7914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7923 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
7924 if test -n "$ac_ct_WINDRES"; then
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7926 $as_echo "$ac_ct_WINDRES" >&6; }
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7929 $as_echo "no" >&6; }
7932 if test "x$ac_ct_WINDRES" = x
; then
7935 case $cross_compiling:$ac_tool_warned in
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7939 ac_tool_warned
=yes ;;
7941 WINDRES
=$ac_ct_WINDRES
7944 WINDRES
="$ac_cv_prog_WINDRES"
7950 # Needed for GNU Hurd hosts.
7951 if test -n "$ac_tool_prefix"; then
7952 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7953 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7955 $as_echo_n "checking for $ac_word... " >&6; }
7956 if ${ac_cv_prog_MIG+:} false
; then :
7957 $as_echo_n "(cached) " >&6
7959 if test -n "$MIG"; then
7960 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
7962 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7966 test -z "$as_dir" && as_dir
=.
7967 for ac_exec_ext
in '' $ac_executable_extensions; do
7968 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7969 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
7970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7980 if test -n "$MIG"; then
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
7982 $as_echo "$MIG" >&6; }
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7985 $as_echo "no" >&6; }
7990 if test -z "$ac_cv_prog_MIG"; then
7992 # Extract the first word of "mig", so it can be a program name with args.
7993 set dummy mig
; ac_word
=$2
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7995 $as_echo_n "checking for $ac_word... " >&6; }
7996 if ${ac_cv_prog_ac_ct_MIG+:} false
; then :
7997 $as_echo_n "(cached) " >&6
7999 if test -n "$ac_ct_MIG"; then
8000 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
8002 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8006 test -z "$as_dir" && as_dir
=.
8007 for ac_exec_ext
in '' $ac_executable_extensions; do
8008 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8009 ac_cv_prog_ac_ct_MIG
="mig"
8010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8019 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
8020 if test -n "$ac_ct_MIG"; then
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
8022 $as_echo "$ac_ct_MIG" >&6; }
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025 $as_echo "no" >&6; }
8028 if test "x$ac_ct_MIG" = x
; then
8031 case $cross_compiling:$ac_tool_warned in
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8035 ac_tool_warned
=yes ;;
8040 MIG
="$ac_cv_prog_MIG"
8043 if test x
"$MIG" = x
; then
8044 as_fn_error $?
"MIG not found but required for $host hosts" "$LINENO" 5
8049 # ---------------------- #
8050 # Checks for libraries. #
8051 # ---------------------- #
8053 # We might need to link with -lm; most simulators need it.
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
8055 $as_echo_n "checking for main in -lm... " >&6; }
8056 if ${ac_cv_lib_m_main+:} false
; then :
8057 $as_echo_n "(cached) " >&6
8059 ac_check_lib_save_LIBS
=$LIBS
8061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8062 /* end confdefs.h. */
8073 if ac_fn_c_try_link
"$LINENO"; then :
8074 ac_cv_lib_m_main
=yes
8078 rm -f core conftest.err conftest.
$ac_objext \
8079 conftest
$ac_exeext conftest.
$ac_ext
8080 LIBS
=$ac_check_lib_save_LIBS
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
8083 $as_echo "$ac_cv_lib_m_main" >&6; }
8084 if test "x$ac_cv_lib_m_main" = xyes
; then :
8085 cat >>confdefs.h
<<_ACEOF
8094 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
8096 $as_echo_n "checking for library containing gethostbyname... " >&6; }
8097 if ${ac_cv_search_gethostbyname+:} false
; then :
8098 $as_echo_n "(cached) " >&6
8100 ac_func_search_save_LIBS
=$LIBS
8101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8102 /* end confdefs.h. */
8104 /* Override any GCC internal prototype to avoid an error.
8105 Use char because int might match the return type of a GCC
8106 builtin and then its argument prototype would still apply. */
8110 char gethostbyname ();
8114 return gethostbyname ();
8119 for ac_lib
in '' nsl
; do
8120 if test -z "$ac_lib"; then
8121 ac_res
="none required"
8124 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8126 if ac_fn_c_try_link
"$LINENO"; then :
8127 ac_cv_search_gethostbyname
=$ac_res
8129 rm -f core conftest.err conftest.
$ac_objext \
8131 if ${ac_cv_search_gethostbyname+:} false
; then :
8135 if ${ac_cv_search_gethostbyname+:} false
; then :
8138 ac_cv_search_gethostbyname
=no
8141 LIBS
=$ac_func_search_save_LIBS
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
8144 $as_echo "$ac_cv_search_gethostbyname" >&6; }
8145 ac_res
=$ac_cv_search_gethostbyname
8146 if test "$ac_res" != no
; then :
8147 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8152 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
8154 $as_echo_n "checking for library containing socketpair... " >&6; }
8155 if ${ac_cv_search_socketpair+:} false
; then :
8156 $as_echo_n "(cached) " >&6
8158 ac_func_search_save_LIBS
=$LIBS
8159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8160 /* end confdefs.h. */
8162 /* Override any GCC internal prototype to avoid an error.
8163 Use char because int might match the return type of a GCC
8164 builtin and then its argument prototype would still apply. */
8172 return socketpair ();
8177 for ac_lib
in '' socket
; do
8178 if test -z "$ac_lib"; then
8179 ac_res
="none required"
8182 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8184 if ac_fn_c_try_link
"$LINENO"; then :
8185 ac_cv_search_socketpair
=$ac_res
8187 rm -f core conftest.err conftest.
$ac_objext \
8189 if ${ac_cv_search_socketpair+:} false
; then :
8193 if ${ac_cv_search_socketpair+:} false
; then :
8196 ac_cv_search_socketpair
=no
8199 LIBS
=$ac_func_search_save_LIBS
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
8202 $as_echo "$ac_cv_search_socketpair" >&6; }
8203 ac_res
=$ac_cv_search_socketpair
8204 if test "$ac_res" != no
; then :
8205 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8210 # Link in zlib if we can. This allows us to read compressed debug sections.
8212 # Use the system's zlib library.
8213 zlibdir
="-L\$(top_builddir)/../zlib"
8214 zlibinc
="-I\$(top_srcdir)/../zlib"
8216 # Check whether --with-system-zlib was given.
8217 if test "${with_system_zlib+set}" = set; then :
8218 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
8229 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
8230 # On GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
8232 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
8233 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
8234 $as_echo_n "(cached) " >&6
8236 ac_func_search_save_LIBS
=$LIBS
8237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8238 /* end confdefs.h. */
8240 /* Override any GCC internal prototype to avoid an error.
8241 Use char because int might match the return type of a GCC
8242 builtin and then its argument prototype would still apply. */
8246 char kinfo_getvmmap ();
8250 return kinfo_getvmmap ();
8255 for ac_lib
in '' util util-freebsd
; do
8256 if test -z "$ac_lib"; then
8257 ac_res
="none required"
8260 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8262 if ac_fn_c_try_link
"$LINENO"; then :
8263 ac_cv_search_kinfo_getvmmap
=$ac_res
8265 rm -f core conftest.err conftest.
$ac_objext \
8267 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
8271 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
8274 ac_cv_search_kinfo_getvmmap
=no
8277 LIBS
=$ac_func_search_save_LIBS
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
8280 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
8281 ac_res
=$ac_cv_search_kinfo_getvmmap
8282 if test "$ac_res" != no
; then :
8283 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8285 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
8291 if test "X$prefix" = "XNONE"; then
8292 acl_final_prefix
="$ac_default_prefix"
8294 acl_final_prefix
="$prefix"
8296 if test "X$exec_prefix" = "XNONE"; then
8297 acl_final_exec_prefix
='${prefix}'
8299 acl_final_exec_prefix
="$exec_prefix"
8301 acl_save_prefix
="$prefix"
8302 prefix
="$acl_final_prefix"
8303 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8304 prefix
="$acl_save_prefix"
8307 # Check whether --with-gnu-ld was given.
8308 if test "${with_gnu_ld+set}" = set; then :
8309 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8314 # Prepare PATH_SEPARATOR.
8315 # The user is always right.
8316 if test "${PATH_SEPARATOR+set}" != set; then
8317 echo "#! /bin/sh" >conf$$.sh
8318 echo "exit 0" >>conf$$.sh
8320 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8328 if test "$GCC" = yes; then
8329 # Check if gcc -print-prog-name=ld gives a path.
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8331 $as_echo_n "checking for ld used by GCC... " >&6; }
8334 # gcc leaves a trailing carriage return which upsets mingw
8335 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8337 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8340 # Accept absolute paths.
8341 [\\/]* |
[A-Za-z
]:[\\/]*)
8342 re_direlt
='/[^/][^/]*/\.\./'
8343 # Canonicalize the path of ld
8344 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8345 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8346 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8348 test -z "$LD" && LD
="$ac_prog"
8351 # If it fails, then pretend we aren't using GCC.
8355 # If it is relative, then search for the first ld in PATH.
8359 elif test "$with_gnu_ld" = yes; then
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8361 $as_echo_n "checking for GNU ld... " >&6; }
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8364 $as_echo_n "checking for non-GNU ld... " >&6; }
8366 if ${acl_cv_path_LD+:} false
; then :
8367 $as_echo_n "(cached) " >&6
8369 if test -z "$LD"; then
8370 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8371 for ac_dir
in $PATH; do
8372 test -z "$ac_dir" && ac_dir
=.
8373 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8374 acl_cv_path_LD
="$ac_dir/$ac_prog"
8375 # Check to see if the program is GNU ld. I'd rather use --version,
8376 # but apparently some GNU ld's only accept -v.
8377 # Break only if it was the GNU/non-GNU ld that we prefer.
8378 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
8379 test "$with_gnu_ld" != no
&& break
8381 test "$with_gnu_ld" != yes && break
8387 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8391 LD
="$acl_cv_path_LD"
8392 if test -n "$LD"; then
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8394 $as_echo "$LD" >&6; }
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8397 $as_echo "no" >&6; }
8399 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8401 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8402 if ${acl_cv_prog_gnu_ld+:} false
; then :
8403 $as_echo_n "(cached) " >&6
8405 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8406 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8407 acl_cv_prog_gnu_ld
=yes
8409 acl_cv_prog_gnu_ld
=no
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8413 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8414 with_gnu_ld
=$acl_cv_prog_gnu_ld
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8419 $as_echo_n "checking for shared library run path origin... " >&6; }
8420 if ${acl_cv_rpath+:} false
; then :
8421 $as_echo_n "(cached) " >&6
8424 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8425 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8432 $as_echo "$acl_cv_rpath" >&6; }
8434 libext
="$acl_cv_libext"
8435 shlibext
="$acl_cv_shlibext"
8436 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8437 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8438 hardcode_direct
="$acl_cv_hardcode_direct"
8439 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8440 # Check whether --enable-rpath was given.
8441 if test "${enable_rpath+set}" = set; then :
8442 enableval
=$enable_rpath; :
8456 acl_save_prefix
="$prefix"
8457 prefix
="$acl_final_prefix"
8458 acl_save_exec_prefix
="$exec_prefix"
8459 exec_prefix
="$acl_final_exec_prefix"
8461 eval additional_includedir
=\"$includedir\"
8462 eval additional_libdir
=\"$libdir\"
8464 exec_prefix
="$acl_save_exec_prefix"
8465 prefix
="$acl_save_prefix"
8468 # Check whether --with-libiconv-prefix was given.
8469 if test "${with_libiconv_prefix+set}" = set; then :
8470 withval
=$with_libiconv_prefix;
8471 if test "X$withval" = "Xno"; then
8474 if test "X$withval" = "X"; then
8476 acl_save_prefix
="$prefix"
8477 prefix
="$acl_final_prefix"
8478 acl_save_exec_prefix
="$exec_prefix"
8479 exec_prefix
="$acl_final_exec_prefix"
8481 eval additional_includedir
=\"$includedir\"
8482 eval additional_libdir
=\"$libdir\"
8484 exec_prefix
="$acl_save_exec_prefix"
8485 prefix
="$acl_save_prefix"
8488 additional_includedir
="$withval/include"
8489 additional_libdir
="$withval/lib"
8496 # Check whether --with-libiconv-type was given.
8497 if test "${with_libiconv_type+set}" = set; then :
8498 withval
=$with_libiconv_type; with_libiconv_type
=$withval
8500 with_libiconv_type
=auto
8503 lib_type
=`eval echo \$with_libiconv_type`
8510 names_already_handled
=
8511 names_next_round
='iconv '
8512 while test -n "$names_next_round"; do
8513 names_this_round
="$names_next_round"
8515 for name
in $names_this_round; do
8517 for n
in $names_already_handled; do
8518 if test "$n" = "$name"; then
8523 if test -z "$already_handled"; then
8524 names_already_handled
="$names_already_handled $name"
8525 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8526 eval value
=\"\
$HAVE_LIB$uppername\"
8527 if test -n "$value"; then
8528 if test "$value" = yes; then
8529 eval value
=\"\
$LIB$uppername\"
8530 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
8531 eval value
=\"\
$LTLIB$uppername\"
8532 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
8541 if test $use_additional = yes; then
8542 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8543 found_dir
="$additional_libdir"
8544 found_so
="$additional_libdir/lib$name.$shlibext"
8545 if test -f "$additional_libdir/lib$name.la"; then
8546 found_la
="$additional_libdir/lib$name.la"
8548 elif test x
$lib_type != xshared
; then
8549 if test -f "$additional_libdir/lib$name.$libext"; then
8550 found_dir
="$additional_libdir"
8551 found_a
="$additional_libdir/lib$name.$libext"
8552 if test -f "$additional_libdir/lib$name.la"; then
8553 found_la
="$additional_libdir/lib$name.la"
8558 if test "X$found_dir" = "X"; then
8559 for x
in $LDFLAGS $LTLIBICONV; do
8561 acl_save_prefix
="$prefix"
8562 prefix
="$acl_final_prefix"
8563 acl_save_exec_prefix
="$exec_prefix"
8564 exec_prefix
="$acl_final_exec_prefix"
8566 exec_prefix
="$acl_save_exec_prefix"
8567 prefix
="$acl_save_prefix"
8571 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8572 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8574 found_so
="$dir/lib$name.$shlibext"
8575 if test -f "$dir/lib$name.la"; then
8576 found_la
="$dir/lib$name.la"
8578 elif test x
$lib_type != xshared
; then
8579 if test -f "$dir/lib$name.$libext"; then
8581 found_a
="$dir/lib$name.$libext"
8582 if test -f "$dir/lib$name.la"; then
8583 found_la
="$dir/lib$name.la"
8589 if test "X$found_dir" != "X"; then
8594 if test "X$found_dir" != "X"; then
8595 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8596 if test "X$found_so" != "X"; then
8597 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8598 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8601 for x
in $ltrpathdirs; do
8602 if test "X$x" = "X$found_dir"; then
8607 if test -z "$haveit"; then
8608 ltrpathdirs
="$ltrpathdirs $found_dir"
8610 if test "$hardcode_direct" = yes; then
8611 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8613 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8614 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8616 for x
in $rpathdirs; do
8617 if test "X$x" = "X$found_dir"; then
8622 if test -z "$haveit"; then
8623 rpathdirs
="$rpathdirs $found_dir"
8627 for x
in $LDFLAGS $LIBICONV; do
8629 acl_save_prefix
="$prefix"
8630 prefix
="$acl_final_prefix"
8631 acl_save_exec_prefix
="$exec_prefix"
8632 exec_prefix
="$acl_final_exec_prefix"
8634 exec_prefix
="$acl_save_exec_prefix"
8635 prefix
="$acl_save_prefix"
8637 if test "X$x" = "X-L$found_dir"; then
8642 if test -z "$haveit"; then
8643 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8645 if test "$hardcode_minus_L" != no
; then
8646 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8648 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8654 if test "X$found_a" != "X"; then
8655 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
8657 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8660 additional_includedir
=
8661 case "$found_dir" in
8663 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8664 additional_includedir
="$basedir/include"
8667 if test "X$additional_includedir" != "X"; then
8668 if test "X$additional_includedir" != "X/usr/include"; then
8670 if test "X$additional_includedir" = "X/usr/local/include"; then
8671 if test -n "$GCC"; then
8673 linux
*) haveit
=yes;;
8677 if test -z "$haveit"; then
8678 for x
in $CPPFLAGS $INCICONV; do
8680 acl_save_prefix
="$prefix"
8681 prefix
="$acl_final_prefix"
8682 acl_save_exec_prefix
="$exec_prefix"
8683 exec_prefix
="$acl_final_exec_prefix"
8685 exec_prefix
="$acl_save_exec_prefix"
8686 prefix
="$acl_save_prefix"
8688 if test "X$x" = "X-I$additional_includedir"; then
8693 if test -z "$haveit"; then
8694 if test -d "$additional_includedir"; then
8695 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8701 if test -n "$found_la"; then
8702 save_libdir
="$libdir"
8704 */* |
*\\*) .
"$found_la" ;;
8705 *) .
"./$found_la" ;;
8707 libdir
="$save_libdir"
8708 for dep
in $dependency_libs; do
8711 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8712 if test "X$additional_libdir" != "X/usr/lib"; then
8714 if test "X$additional_libdir" = "X/usr/local/lib"; then
8715 if test -n "$GCC"; then
8717 linux
*) haveit
=yes;;
8721 if test -z "$haveit"; then
8723 for x
in $LDFLAGS $LIBICONV; do
8725 acl_save_prefix
="$prefix"
8726 prefix
="$acl_final_prefix"
8727 acl_save_exec_prefix
="$exec_prefix"
8728 exec_prefix
="$acl_final_exec_prefix"
8730 exec_prefix
="$acl_save_exec_prefix"
8731 prefix
="$acl_save_prefix"
8733 if test "X$x" = "X-L$additional_libdir"; then
8738 if test -z "$haveit"; then
8739 if test -d "$additional_libdir"; then
8740 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8744 for x
in $LDFLAGS $LTLIBICONV; do
8746 acl_save_prefix
="$prefix"
8747 prefix
="$acl_final_prefix"
8748 acl_save_exec_prefix
="$exec_prefix"
8749 exec_prefix
="$acl_final_exec_prefix"
8751 exec_prefix
="$acl_save_exec_prefix"
8752 prefix
="$acl_save_prefix"
8754 if test "X$x" = "X-L$additional_libdir"; then
8759 if test -z "$haveit"; then
8760 if test -d "$additional_libdir"; then
8761 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8768 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8769 if test "$enable_rpath" != no
; then
8771 for x
in $rpathdirs; do
8772 if test "X$x" = "X$dir"; then
8777 if test -z "$haveit"; then
8778 rpathdirs
="$rpathdirs $dir"
8781 for x
in $ltrpathdirs; do
8782 if test "X$x" = "X$dir"; then
8787 if test -z "$haveit"; then
8788 ltrpathdirs
="$ltrpathdirs $dir"
8793 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8796 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8799 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
8800 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8806 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
8807 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8808 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8810 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
8811 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
8818 if test "X$rpathdirs" != "X"; then
8819 if test -n "$hardcode_libdir_separator"; then
8821 for found_dir
in $rpathdirs; do
8822 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8824 acl_save_libdir
="$libdir"
8826 eval flag
=\"$hardcode_libdir_flag_spec\"
8827 libdir
="$acl_save_libdir"
8828 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8830 for found_dir
in $rpathdirs; do
8831 acl_save_libdir
="$libdir"
8833 eval flag
=\"$hardcode_libdir_flag_spec\"
8834 libdir
="$acl_save_libdir"
8835 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8839 if test "X$ltrpathdirs" != "X"; then
8840 for found_dir
in $ltrpathdirs; do
8841 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8852 $as_echo_n "checking for iconv... " >&6; }
8853 if ${am_cv_func_iconv+:} false
; then :
8854 $as_echo_n "(cached) " >&6
8857 am_cv_func_iconv
="no, consider installing GNU libiconv"
8859 am_save_CPPFLAGS
="$CPPFLAGS"
8860 CPPFLAGS
="$CPPFLAGS $INCICONV"
8861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8862 /* end confdefs.h. */
8868 iconv_t cd = iconv_open("","");
8869 iconv(cd,NULL,NULL,NULL,NULL);
8875 if ac_fn_c_try_link
"$LINENO"; then :
8876 am_cv_func_iconv
=yes
8878 rm -f core conftest.err conftest.
$ac_objext \
8879 conftest
$ac_exeext conftest.
$ac_ext
8880 CPPFLAGS
="$am_save_CPPFLAGS"
8882 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
8883 for _libs
in .libs _libs
; do
8884 am_save_CPPFLAGS
="$CPPFLAGS"
8885 am_save_LIBS
="$LIBS"
8886 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
8887 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
8888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8889 /* end confdefs.h. */
8895 iconv_t cd = iconv_open("","");
8896 iconv(cd,NULL,NULL,NULL,NULL);
8902 if ac_fn_c_try_link
"$LINENO"; then :
8903 INCICONV
="-I../libiconv/include"
8904 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
8905 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
8907 am_cv_func_iconv
=yes
8909 rm -f core conftest.err conftest.
$ac_objext \
8910 conftest
$ac_exeext conftest.
$ac_ext
8911 CPPFLAGS
="$am_save_CPPFLAGS"
8912 LIBS
="$am_save_LIBS"
8913 if test "$am_cv_func_iconv" = "yes"; then
8919 if test "$am_cv_func_iconv" != yes; then
8920 am_save_CPPFLAGS
="$CPPFLAGS"
8921 am_save_LIBS
="$LIBS"
8922 CPPFLAGS
="$CPPFLAGS $INCICONV"
8923 LIBS
="$LIBS $LIBICONV"
8924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8925 /* end confdefs.h. */
8931 iconv_t cd = iconv_open("","");
8932 iconv(cd,NULL,NULL,NULL,NULL);
8938 if ac_fn_c_try_link
"$LINENO"; then :
8940 am_cv_func_iconv
=yes
8942 rm -f core conftest.err conftest.
$ac_objext \
8943 conftest
$ac_exeext conftest.
$ac_ext
8944 CPPFLAGS
="$am_save_CPPFLAGS"
8945 LIBS
="$am_save_LIBS"
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8950 $as_echo "$am_cv_func_iconv" >&6; }
8951 if test "$am_cv_func_iconv" = yes; then
8953 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8956 if test "$am_cv_lib_iconv" = yes; then
8958 for element
in $INCICONV; do
8960 for x
in $CPPFLAGS; do
8962 acl_save_prefix
="$prefix"
8963 prefix
="$acl_final_prefix"
8964 acl_save_exec_prefix
="$exec_prefix"
8965 exec_prefix
="$acl_final_exec_prefix"
8967 exec_prefix
="$acl_save_exec_prefix"
8968 prefix
="$acl_save_prefix"
8970 if test "X$x" = "X$element"; then
8975 if test -z "$haveit"; then
8976 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8981 $as_echo_n "checking how to link with libiconv... " >&6; }
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8983 $as_echo "$LIBICONV" >&6; }
8991 if test "$am_cv_func_iconv" = yes; then
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8993 $as_echo_n "checking for iconv declaration... " >&6; }
8994 if ${am_cv_proto_iconv+:} false
; then :
8995 $as_echo_n "(cached) " >&6
8998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8999 /* end confdefs.h. */
9007 #if defined(__STDC__) || defined(__cplusplus)
9008 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9021 if ac_fn_c_try_compile
"$LINENO"; then :
9022 am_cv_proto_iconv_arg1
=""
9024 am_cv_proto_iconv_arg1
="const"
9026 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9027 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);"
9030 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9032 }$am_cv_proto_iconv" >&5
9034 }$am_cv_proto_iconv" >&6; }
9036 cat >>confdefs.h
<<_ACEOF
9037 #define ICONV_CONST $am_cv_proto_iconv_arg1
9043 # GDB may fork/exec the iconv program to get the list of supported character
9044 # sets. Allow the user to specify where to find it.
9045 # There are several factors affecting the choice of option name:
9046 # - There is already --with-libiconv-prefix but we can't use it, it specifies
9047 # the build-time location of libiconv files.
9048 # - The program we need to find is iconv, which comes with glibc. The user
9049 # doesn't necessarily have libiconv installed. Therefore naming this
9050 # --with-libiconv-foo feels wrong.
9051 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
9052 # defined to work on directories not files (though it really doesn't know
9054 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
9055 # with --with-libiconv-prefix.
9056 # Putting these together is why the option name is --with-iconv-bin.
9059 # Check whether --with-iconv-bin was given.
9060 if test "${with_iconv_bin+set}" = set; then :
9061 withval
=$with_iconv_bin; iconv_bin
="${withval}"
9063 cat >>confdefs.h
<<_ACEOF
9064 #define ICONV_BIN "${iconv_bin}"
9068 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9069 if test "x$prefix" = xNONE
; then
9070 test_prefix
=/usr
/local
9075 test_prefix
=$exec_prefix
9078 case ${iconv_bin} in
9079 "${test_prefix}"|
"${test_prefix}/"*|\
9080 '${exec_prefix}'|
'${exec_prefix}/'*)
9085 cat >>confdefs.h
<<_ACEOF
9086 #define ICONV_BIN_RELOCATABLE $value
9094 # For the TUI, we need enhanced curses functionality.
9095 if test x
"$enable_tui" != xno
; then
9100 if test x
"$prefer_curses" = xyes
; then
9101 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9102 # curses library because the latter might not provide all the
9103 # functionality we need. However, this leads to problems on systems
9104 # where the linker searches /usr/local/lib, but the compiler doesn't
9105 # search /usr/local/include, if ncurses is installed in /usr/local. A
9106 # default installation of ncurses on alpha*-dec-osf* will lead to such
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
9109 $as_echo_n "checking for library containing waddstr... " >&6; }
9110 if ${ac_cv_search_waddstr+:} false
; then :
9111 $as_echo_n "(cached) " >&6
9113 ac_func_search_save_LIBS
=$LIBS
9114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9115 /* end confdefs.h. */
9117 /* Override any GCC internal prototype to avoid an error.
9118 Use char because int might match the return type of a GCC
9119 builtin and then its argument prototype would still apply. */
9132 for ac_lib
in '' ncursesw ncurses cursesX curses
; do
9133 if test -z "$ac_lib"; then
9134 ac_res
="none required"
9137 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9139 if ac_fn_c_try_link
"$LINENO"; then :
9140 ac_cv_search_waddstr
=$ac_res
9142 rm -f core conftest.err conftest.
$ac_objext \
9144 if ${ac_cv_search_waddstr+:} false
; then :
9148 if ${ac_cv_search_waddstr+:} false
; then :
9151 ac_cv_search_waddstr
=no
9154 LIBS
=$ac_func_search_save_LIBS
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
9157 $as_echo "$ac_cv_search_waddstr" >&6; }
9158 ac_res
=$ac_cv_search_waddstr
9159 if test "$ac_res" != no
; then :
9160 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9165 if test "$ac_cv_search_waddstr" != no
; then
9170 # Check whether we should enable the TUI, but only do so if we really
9172 if test x
"$enable_tui" != xno
; then
9173 if test -d "$srcdir/tui"; then
9174 if test "$curses_found" != no
; then
9175 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
9176 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
9177 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9178 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
9180 if test x
"$enable_tui" = xyes
; then
9181 as_fn_error $?
"no enhanced curses library found; disable TUI" "$LINENO" 5
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
9184 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9190 # Since GDB uses Readline, we need termcap functionality. In many
9191 # cases this will be provided by the curses library, but some systems
9192 # have a separate termcap library, or no curses library at all.
9196 if test -d "$srcdir/libtermcap"; then
9197 LIBS
="../libtermcap/libtermcap.a $LIBS"
9198 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
9201 ac_cv_search_tgetent
="none required"
9205 # These are the libraries checked by Readline.
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9207 $as_echo_n "checking for library containing tgetent... " >&6; }
9208 if ${ac_cv_search_tgetent+:} false
; then :
9209 $as_echo_n "(cached) " >&6
9211 ac_func_search_save_LIBS
=$LIBS
9212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9213 /* end confdefs.h. */
9215 /* Override any GCC internal prototype to avoid an error.
9216 Use char because int might match the return type of a GCC
9217 builtin and then its argument prototype would still apply. */
9230 for ac_lib
in '' termcap tinfow tinfo curses ncursesw ncurses
; do
9231 if test -z "$ac_lib"; then
9232 ac_res
="none required"
9235 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9237 if ac_fn_c_try_link
"$LINENO"; then :
9238 ac_cv_search_tgetent
=$ac_res
9240 rm -f core conftest.err conftest.
$ac_objext \
9242 if ${ac_cv_search_tgetent+:} false
; then :
9246 if ${ac_cv_search_tgetent+:} false
; then :
9249 ac_cv_search_tgetent
=no
9252 LIBS
=$ac_func_search_save_LIBS
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9255 $as_echo "$ac_cv_search_tgetent" >&6; }
9256 ac_res
=$ac_cv_search_tgetent
9257 if test "$ac_res" != no
; then :
9258 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9263 if test "$ac_cv_search_tgetent" = no
; then
9264 CONFIG_OBS
="$CONFIG_OBS stub-termcap.o"
9268 # Check whether --with-system-readline was given.
9269 if test "${with_system_readline+set}" = set; then :
9270 withval
=$with_system_readline;
9274 if test "$with_system_readline" = yes; then
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system readline is new enough" >&5
9276 $as_echo_n "checking whether system readline is new enough... " >&6; }
9277 if ${gdb_cv_readline_ok+:} false
; then :
9278 $as_echo_n "(cached) " >&6
9280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9281 /* end confdefs.h. */
9283 #include <readline/readline.h>
9287 #if RL_VERSION_MAJOR < 7
9288 # error "readline version 7 required"
9294 if ac_fn_c_try_compile
"$LINENO"; then :
9295 gdb_cv_readline_ok
=yes
9297 gdb_cv_readline_ok
=no
9299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_readline_ok" >&5
9302 $as_echo "$gdb_cv_readline_ok" >&6; }
9303 if test "$gdb_cv_readline_ok" != yes; then
9304 as_fn_error $?
"system readline is not new enough" "$LINENO" 5
9310 READLINE_TEXI_INCFLAG
=
9312 READLINE
='$(READLINE_DIR)/libreadline.a'
9313 READLINE_DEPS
='$(READLINE)'
9314 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
9315 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
9322 # Generate jit-reader.h
9324 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
9327 # The cast to long int works around a bug in the HP C Compiler
9328 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9329 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9330 # This bug is HP SR number 8606223364.
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
9332 $as_echo_n "checking size of unsigned long long... " >&6; }
9333 if ${ac_cv_sizeof_unsigned_long_long+:} false
; then :
9334 $as_echo_n "(cached) " >&6
9336 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
9339 if test "$ac_cv_type_unsigned_long_long" = yes; then
9340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9342 as_fn_error
77 "cannot compute sizeof (unsigned long long)
9343 See \`config.log' for more details" "$LINENO" 5; }
9345 ac_cv_sizeof_unsigned_long_long
=0
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
9351 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
9355 cat >>confdefs.h
<<_ACEOF
9356 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
9360 # The cast to long int works around a bug in the HP C Compiler
9361 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9362 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9363 # This bug is HP SR number 8606223364.
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
9365 $as_echo_n "checking size of unsigned long... " >&6; }
9366 if ${ac_cv_sizeof_unsigned_long+:} false
; then :
9367 $as_echo_n "(cached) " >&6
9369 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
9372 if test "$ac_cv_type_unsigned_long" = yes; then
9373 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9375 as_fn_error
77 "cannot compute sizeof (unsigned long)
9376 See \`config.log' for more details" "$LINENO" 5; }
9378 ac_cv_sizeof_unsigned_long
=0
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
9384 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
9388 cat >>confdefs.h
<<_ACEOF
9389 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9393 # The cast to long int works around a bug in the HP C Compiler
9394 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9395 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9396 # This bug is HP SR number 8606223364.
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
9398 $as_echo_n "checking size of unsigned __int128... " >&6; }
9399 if ${ac_cv_sizeof_unsigned___int128+:} false
; then :
9400 $as_echo_n "(cached) " >&6
9402 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
9405 if test "$ac_cv_type_unsigned___int128" = yes; then
9406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9408 as_fn_error
77 "cannot compute sizeof (unsigned __int128)
9409 See \`config.log' for more details" "$LINENO" 5; }
9411 ac_cv_sizeof_unsigned___int128
=0
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
9417 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
9421 cat >>confdefs.h
<<_ACEOF
9422 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
9427 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9428 TARGET_PTR
="unsigned long"
9429 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9430 TARGET_PTR
="unsigned long long"
9431 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
9432 TARGET_PTR
="unsigned __int128"
9434 TARGET_PTR
="unsigned long"
9438 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9442 $as_echo_n "checking for library containing dlopen... " >&6; }
9443 if ${ac_cv_search_dlopen+:} false
; then :
9444 $as_echo_n "(cached) " >&6
9446 ac_func_search_save_LIBS
=$LIBS
9447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9448 /* end confdefs.h. */
9450 /* Override any GCC internal prototype to avoid an error.
9451 Use char because int might match the return type of a GCC
9452 builtin and then its argument prototype would still apply. */
9465 for ac_lib
in '' dl
; do
9466 if test -z "$ac_lib"; then
9467 ac_res
="none required"
9470 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9472 if ac_fn_c_try_link
"$LINENO"; then :
9473 ac_cv_search_dlopen
=$ac_res
9475 rm -f core conftest.err conftest.
$ac_objext \
9477 if ${ac_cv_search_dlopen+:} false
; then :
9481 if ${ac_cv_search_dlopen+:} false
; then :
9484 ac_cv_search_dlopen
=no
9487 LIBS
=$ac_func_search_save_LIBS
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9490 $as_echo "$ac_cv_search_dlopen" >&6; }
9491 ac_res
=$ac_cv_search_dlopen
9492 if test "$ac_res" != no
; then :
9493 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9500 # Check whether --with-jit-reader-dir was given.
9501 if test "${with_jit_reader_dir+set}" = set; then :
9502 withval
=$with_jit_reader_dir;
9503 JIT_READER_DIR
=$withval
9505 JIT_READER_DIR
=${libdir}/gdb
9509 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9510 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9511 ac_define_dir
=`eval echo $JIT_READER_DIR`
9512 ac_define_dir
=`eval echo $ac_define_dir`
9514 cat >>confdefs.h
<<_ACEOF
9515 #define JIT_READER_DIR "$ac_define_dir"
9521 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9522 if test "x$prefix" = xNONE
; then
9523 test_prefix
=/usr
/local
9528 test_prefix
=$exec_prefix
9531 case ${ac_define_dir} in
9532 "${test_prefix}"|
"${test_prefix}/"*|\
9533 '${exec_prefix}'|
'${exec_prefix}/'*)
9538 cat >>confdefs.h
<<_ACEOF
9539 #define JIT_READER_DIR_RELOCATABLE $value
9546 # Check whether --with-expat was given.
9547 if test "${with_expat+set}" = set; then :
9548 withval
=$with_expat;
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9554 $as_echo_n "checking whether to use expat... " >&6; }
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9556 $as_echo "$with_expat" >&6; }
9558 if test "${with_expat}" = no
; then
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9560 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9573 acl_save_prefix
="$prefix"
9574 prefix
="$acl_final_prefix"
9575 acl_save_exec_prefix
="$exec_prefix"
9576 exec_prefix
="$acl_final_exec_prefix"
9578 eval additional_includedir
=\"$includedir\"
9579 eval additional_libdir
=\"$libdir\"
9581 exec_prefix
="$acl_save_exec_prefix"
9582 prefix
="$acl_save_prefix"
9585 # Check whether --with-libexpat-prefix was given.
9586 if test "${with_libexpat_prefix+set}" = set; then :
9587 withval
=$with_libexpat_prefix;
9588 if test "X$withval" = "Xno"; then
9591 if test "X$withval" = "X"; then
9593 acl_save_prefix
="$prefix"
9594 prefix
="$acl_final_prefix"
9595 acl_save_exec_prefix
="$exec_prefix"
9596 exec_prefix
="$acl_final_exec_prefix"
9598 eval additional_includedir
=\"$includedir\"
9599 eval additional_libdir
=\"$libdir\"
9601 exec_prefix
="$acl_save_exec_prefix"
9602 prefix
="$acl_save_prefix"
9605 additional_includedir
="$withval/include"
9606 additional_libdir
="$withval/lib"
9613 # Check whether --with-libexpat-type was given.
9614 if test "${with_libexpat_type+set}" = set; then :
9615 withval
=$with_libexpat_type; with_libexpat_type
=$withval
9617 with_libexpat_type
=auto
9620 lib_type
=`eval echo \$with_libexpat_type`
9627 names_already_handled
=
9628 names_next_round
='expat '
9629 while test -n "$names_next_round"; do
9630 names_this_round
="$names_next_round"
9632 for name
in $names_this_round; do
9634 for n
in $names_already_handled; do
9635 if test "$n" = "$name"; then
9640 if test -z "$already_handled"; then
9641 names_already_handled
="$names_already_handled $name"
9642 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9643 eval value
=\"\
$HAVE_LIB$uppername\"
9644 if test -n "$value"; then
9645 if test "$value" = yes; then
9646 eval value
=\"\
$LIB$uppername\"
9647 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
9648 eval value
=\"\
$LTLIB$uppername\"
9649 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
9658 if test $use_additional = yes; then
9659 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9660 found_dir
="$additional_libdir"
9661 found_so
="$additional_libdir/lib$name.$shlibext"
9662 if test -f "$additional_libdir/lib$name.la"; then
9663 found_la
="$additional_libdir/lib$name.la"
9665 elif test x
$lib_type != xshared
; then
9666 if test -f "$additional_libdir/lib$name.$libext"; then
9667 found_dir
="$additional_libdir"
9668 found_a
="$additional_libdir/lib$name.$libext"
9669 if test -f "$additional_libdir/lib$name.la"; then
9670 found_la
="$additional_libdir/lib$name.la"
9675 if test "X$found_dir" = "X"; then
9676 for x
in $LDFLAGS $LTLIBEXPAT; do
9678 acl_save_prefix
="$prefix"
9679 prefix
="$acl_final_prefix"
9680 acl_save_exec_prefix
="$exec_prefix"
9681 exec_prefix
="$acl_final_exec_prefix"
9683 exec_prefix
="$acl_save_exec_prefix"
9684 prefix
="$acl_save_prefix"
9688 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9689 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9691 found_so
="$dir/lib$name.$shlibext"
9692 if test -f "$dir/lib$name.la"; then
9693 found_la
="$dir/lib$name.la"
9695 elif test x
$lib_type != xshared
; then
9696 if test -f "$dir/lib$name.$libext"; then
9698 found_a
="$dir/lib$name.$libext"
9699 if test -f "$dir/lib$name.la"; then
9700 found_la
="$dir/lib$name.la"
9706 if test "X$found_dir" != "X"; then
9711 if test "X$found_dir" != "X"; then
9712 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
9713 if test "X$found_so" != "X"; then
9714 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9715 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9718 for x
in $ltrpathdirs; do
9719 if test "X$x" = "X$found_dir"; then
9724 if test -z "$haveit"; then
9725 ltrpathdirs
="$ltrpathdirs $found_dir"
9727 if test "$hardcode_direct" = yes; then
9728 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9730 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9731 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9733 for x
in $rpathdirs; do
9734 if test "X$x" = "X$found_dir"; then
9739 if test -z "$haveit"; then
9740 rpathdirs
="$rpathdirs $found_dir"
9744 for x
in $LDFLAGS $LIBEXPAT; do
9746 acl_save_prefix
="$prefix"
9747 prefix
="$acl_final_prefix"
9748 acl_save_exec_prefix
="$exec_prefix"
9749 exec_prefix
="$acl_final_exec_prefix"
9751 exec_prefix
="$acl_save_exec_prefix"
9752 prefix
="$acl_save_prefix"
9754 if test "X$x" = "X-L$found_dir"; then
9759 if test -z "$haveit"; then
9760 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
9762 if test "$hardcode_minus_L" != no
; then
9763 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9765 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9771 if test "X$found_a" != "X"; then
9772 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
9774 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
9777 additional_includedir
=
9778 case "$found_dir" in
9780 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9781 additional_includedir
="$basedir/include"
9784 if test "X$additional_includedir" != "X"; then
9785 if test "X$additional_includedir" != "X/usr/include"; then
9787 if test "X$additional_includedir" = "X/usr/local/include"; then
9788 if test -n "$GCC"; then
9790 linux
*) haveit
=yes;;
9794 if test -z "$haveit"; then
9795 for x
in $CPPFLAGS $INCEXPAT; do
9797 acl_save_prefix
="$prefix"
9798 prefix
="$acl_final_prefix"
9799 acl_save_exec_prefix
="$exec_prefix"
9800 exec_prefix
="$acl_final_exec_prefix"
9802 exec_prefix
="$acl_save_exec_prefix"
9803 prefix
="$acl_save_prefix"
9805 if test "X$x" = "X-I$additional_includedir"; then
9810 if test -z "$haveit"; then
9811 if test -d "$additional_includedir"; then
9812 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
9818 if test -n "$found_la"; then
9819 save_libdir
="$libdir"
9821 */* |
*\\*) .
"$found_la" ;;
9822 *) .
"./$found_la" ;;
9824 libdir
="$save_libdir"
9825 for dep
in $dependency_libs; do
9828 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9829 if test "X$additional_libdir" != "X/usr/lib"; then
9831 if test "X$additional_libdir" = "X/usr/local/lib"; then
9832 if test -n "$GCC"; then
9834 linux
*) haveit
=yes;;
9838 if test -z "$haveit"; then
9840 for x
in $LDFLAGS $LIBEXPAT; do
9842 acl_save_prefix
="$prefix"
9843 prefix
="$acl_final_prefix"
9844 acl_save_exec_prefix
="$exec_prefix"
9845 exec_prefix
="$acl_final_exec_prefix"
9847 exec_prefix
="$acl_save_exec_prefix"
9848 prefix
="$acl_save_prefix"
9850 if test "X$x" = "X-L$additional_libdir"; then
9855 if test -z "$haveit"; then
9856 if test -d "$additional_libdir"; then
9857 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
9861 for x
in $LDFLAGS $LTLIBEXPAT; do
9863 acl_save_prefix
="$prefix"
9864 prefix
="$acl_final_prefix"
9865 acl_save_exec_prefix
="$exec_prefix"
9866 exec_prefix
="$acl_final_exec_prefix"
9868 exec_prefix
="$acl_save_exec_prefix"
9869 prefix
="$acl_save_prefix"
9871 if test "X$x" = "X-L$additional_libdir"; then
9876 if test -z "$haveit"; then
9877 if test -d "$additional_libdir"; then
9878 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
9885 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9886 if test "$enable_rpath" != no
; then
9888 for x
in $rpathdirs; do
9889 if test "X$x" = "X$dir"; then
9894 if test -z "$haveit"; then
9895 rpathdirs
="$rpathdirs $dir"
9898 for x
in $ltrpathdirs; do
9899 if test "X$x" = "X$dir"; then
9904 if test -z "$haveit"; then
9905 ltrpathdirs
="$ltrpathdirs $dir"
9910 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9913 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9916 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
9917 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
9923 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
9924 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9925 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
9927 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l:lib$name.$libext"
9928 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l:lib$name.$libext"
9935 if test "X$rpathdirs" != "X"; then
9936 if test -n "$hardcode_libdir_separator"; then
9938 for found_dir
in $rpathdirs; do
9939 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9941 acl_save_libdir
="$libdir"
9943 eval flag
=\"$hardcode_libdir_flag_spec\"
9944 libdir
="$acl_save_libdir"
9945 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9947 for found_dir
in $rpathdirs; do
9948 acl_save_libdir
="$libdir"
9950 eval flag
=\"$hardcode_libdir_flag_spec\"
9951 libdir
="$acl_save_libdir"
9952 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9956 if test "X$ltrpathdirs" != "X"; then
9957 for found_dir
in $ltrpathdirs; do
9958 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9963 ac_save_CPPFLAGS
="$CPPFLAGS"
9965 for element
in $INCEXPAT; do
9967 for x
in $CPPFLAGS; do
9969 acl_save_prefix
="$prefix"
9970 prefix
="$acl_final_prefix"
9971 acl_save_exec_prefix
="$exec_prefix"
9972 exec_prefix
="$acl_final_exec_prefix"
9974 exec_prefix
="$acl_save_exec_prefix"
9975 prefix
="$acl_save_prefix"
9977 if test "X$x" = "X$element"; then
9982 if test -z "$haveit"; then
9983 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9989 $as_echo_n "checking for libexpat... " >&6; }
9990 if ${ac_cv_libexpat+:} false
; then :
9991 $as_echo_n "(cached) " >&6
9994 ac_save_LIBS
="$LIBS"
9995 LIBS
="$LIBS $LIBEXPAT"
9996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9997 /* end confdefs.h. */
10002 XML_Parser p = XML_ParserCreate (0);
10007 if ac_fn_c_try_link
"$LINENO"; then :
10012 rm -f core conftest.err conftest.
$ac_objext \
10013 conftest
$ac_exeext conftest.
$ac_ext
10014 LIBS
="$ac_save_LIBS"
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
10018 $as_echo "$ac_cv_libexpat" >&6; }
10019 if test "$ac_cv_libexpat" = yes; then
10022 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
10025 $as_echo_n "checking how to link with libexpat... " >&6; }
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
10027 $as_echo "$LIBEXPAT" >&6; }
10030 CPPFLAGS
="$ac_save_CPPFLAGS"
10040 if test "$HAVE_LIBEXPAT" != yes; then
10041 if test "$with_expat" = yes; then
10042 as_fn_error $?
"expat is missing or unusable" "$LINENO" 5
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
10045 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
10049 LIBS
="$LIBS $LIBEXPAT"
10050 for ac_func
in XML_StopParser
10052 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
10053 if test "x$ac_cv_func_XML_StopParser" = xyes
; then :
10054 cat >>confdefs.h
<<_ACEOF
10055 #define HAVE_XML_STOPPARSER 1
10066 # Check whether --with-mpfr was given.
10067 if test "${with_mpfr+set}" = set; then :
10068 withval
=$with_mpfr;
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5
10074 $as_echo_n "checking whether to use MPFR... " >&6; }
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5
10076 $as_echo "$with_mpfr" >&6; }
10078 if test "${with_mpfr}" = no
; then
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5
10080 $as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;}
10093 acl_save_prefix
="$prefix"
10094 prefix
="$acl_final_prefix"
10095 acl_save_exec_prefix
="$exec_prefix"
10096 exec_prefix
="$acl_final_exec_prefix"
10098 eval additional_includedir
=\"$includedir\"
10099 eval additional_libdir
=\"$libdir\"
10101 exec_prefix
="$acl_save_exec_prefix"
10102 prefix
="$acl_save_prefix"
10105 # Check whether --with-libmpfr-prefix was given.
10106 if test "${with_libmpfr_prefix+set}" = set; then :
10107 withval
=$with_libmpfr_prefix;
10108 if test "X$withval" = "Xno"; then
10111 if test "X$withval" = "X"; then
10113 acl_save_prefix
="$prefix"
10114 prefix
="$acl_final_prefix"
10115 acl_save_exec_prefix
="$exec_prefix"
10116 exec_prefix
="$acl_final_exec_prefix"
10118 eval additional_includedir
=\"$includedir\"
10119 eval additional_libdir
=\"$libdir\"
10121 exec_prefix
="$acl_save_exec_prefix"
10122 prefix
="$acl_save_prefix"
10125 additional_includedir
="$withval/include"
10126 additional_libdir
="$withval/lib"
10133 # Check whether --with-libmpfr-type was given.
10134 if test "${with_libmpfr_type+set}" = set; then :
10135 withval
=$with_libmpfr_type; with_libmpfr_type
=$withval
10137 with_libmpfr_type
=auto
10140 lib_type
=`eval echo \$with_libmpfr_type`
10147 names_already_handled
=
10148 names_next_round
='mpfr gmp'
10149 while test -n "$names_next_round"; do
10150 names_this_round
="$names_next_round"
10152 for name
in $names_this_round; do
10154 for n
in $names_already_handled; do
10155 if test "$n" = "$name"; then
10156 already_handled
=yes
10160 if test -z "$already_handled"; then
10161 names_already_handled
="$names_already_handled $name"
10162 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10163 eval value
=\"\
$HAVE_LIB$uppername\"
10164 if test -n "$value"; then
10165 if test "$value" = yes; then
10166 eval value
=\"\
$LIB$uppername\"
10167 test -z "$value" || LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$value"
10168 eval value
=\"\
$LTLIB$uppername\"
10169 test -z "$value" || LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$value"
10178 if test $use_additional = yes; then
10179 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10180 found_dir
="$additional_libdir"
10181 found_so
="$additional_libdir/lib$name.$shlibext"
10182 if test -f "$additional_libdir/lib$name.la"; then
10183 found_la
="$additional_libdir/lib$name.la"
10185 elif test x
$lib_type != xshared
; then
10186 if test -f "$additional_libdir/lib$name.$libext"; then
10187 found_dir
="$additional_libdir"
10188 found_a
="$additional_libdir/lib$name.$libext"
10189 if test -f "$additional_libdir/lib$name.la"; then
10190 found_la
="$additional_libdir/lib$name.la"
10195 if test "X$found_dir" = "X"; then
10196 for x
in $LDFLAGS $LTLIBMPFR; do
10198 acl_save_prefix
="$prefix"
10199 prefix
="$acl_final_prefix"
10200 acl_save_exec_prefix
="$exec_prefix"
10201 exec_prefix
="$acl_final_exec_prefix"
10203 exec_prefix
="$acl_save_exec_prefix"
10204 prefix
="$acl_save_prefix"
10208 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10209 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10211 found_so
="$dir/lib$name.$shlibext"
10212 if test -f "$dir/lib$name.la"; then
10213 found_la
="$dir/lib$name.la"
10215 elif test x
$lib_type != xshared
; then
10216 if test -f "$dir/lib$name.$libext"; then
10218 found_a
="$dir/lib$name.$libext"
10219 if test -f "$dir/lib$name.la"; then
10220 found_la
="$dir/lib$name.la"
10226 if test "X$found_dir" != "X"; then
10231 if test "X$found_dir" != "X"; then
10232 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$found_dir -l$name"
10233 if test "X$found_so" != "X"; then
10234 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10235 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10238 for x
in $ltrpathdirs; do
10239 if test "X$x" = "X$found_dir"; then
10244 if test -z "$haveit"; then
10245 ltrpathdirs
="$ltrpathdirs $found_dir"
10247 if test "$hardcode_direct" = yes; then
10248 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10250 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10251 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10253 for x
in $rpathdirs; do
10254 if test "X$x" = "X$found_dir"; then
10259 if test -z "$haveit"; then
10260 rpathdirs
="$rpathdirs $found_dir"
10264 for x
in $LDFLAGS $LIBMPFR; do
10266 acl_save_prefix
="$prefix"
10267 prefix
="$acl_final_prefix"
10268 acl_save_exec_prefix
="$exec_prefix"
10269 exec_prefix
="$acl_final_exec_prefix"
10271 exec_prefix
="$acl_save_exec_prefix"
10272 prefix
="$acl_save_prefix"
10274 if test "X$x" = "X-L$found_dir"; then
10279 if test -z "$haveit"; then
10280 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir"
10282 if test "$hardcode_minus_L" != no
; then
10283 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10285 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10291 if test "X$found_a" != "X"; then
10292 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_a"
10294 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir -l$name"
10297 additional_includedir
=
10298 case "$found_dir" in
10300 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10301 additional_includedir
="$basedir/include"
10304 if test "X$additional_includedir" != "X"; then
10305 if test "X$additional_includedir" != "X/usr/include"; then
10307 if test "X$additional_includedir" = "X/usr/local/include"; then
10308 if test -n "$GCC"; then
10310 linux
*) haveit
=yes;;
10314 if test -z "$haveit"; then
10315 for x
in $CPPFLAGS $INCMPFR; do
10317 acl_save_prefix
="$prefix"
10318 prefix
="$acl_final_prefix"
10319 acl_save_exec_prefix
="$exec_prefix"
10320 exec_prefix
="$acl_final_exec_prefix"
10322 exec_prefix
="$acl_save_exec_prefix"
10323 prefix
="$acl_save_prefix"
10325 if test "X$x" = "X-I$additional_includedir"; then
10330 if test -z "$haveit"; then
10331 if test -d "$additional_includedir"; then
10332 INCMPFR
="${INCMPFR}${INCMPFR:+ }-I$additional_includedir"
10338 if test -n "$found_la"; then
10339 save_libdir
="$libdir"
10340 case "$found_la" in
10341 */* |
*\\*) .
"$found_la" ;;
10342 *) .
"./$found_la" ;;
10344 libdir
="$save_libdir"
10345 for dep
in $dependency_libs; do
10348 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10349 if test "X$additional_libdir" != "X/usr/lib"; then
10351 if test "X$additional_libdir" = "X/usr/local/lib"; then
10352 if test -n "$GCC"; then
10354 linux
*) haveit
=yes;;
10358 if test -z "$haveit"; then
10360 for x
in $LDFLAGS $LIBMPFR; do
10362 acl_save_prefix
="$prefix"
10363 prefix
="$acl_final_prefix"
10364 acl_save_exec_prefix
="$exec_prefix"
10365 exec_prefix
="$acl_final_exec_prefix"
10367 exec_prefix
="$acl_save_exec_prefix"
10368 prefix
="$acl_save_prefix"
10370 if test "X$x" = "X-L$additional_libdir"; then
10375 if test -z "$haveit"; then
10376 if test -d "$additional_libdir"; then
10377 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$additional_libdir"
10381 for x
in $LDFLAGS $LTLIBMPFR; do
10383 acl_save_prefix
="$prefix"
10384 prefix
="$acl_final_prefix"
10385 acl_save_exec_prefix
="$exec_prefix"
10386 exec_prefix
="$acl_final_exec_prefix"
10388 exec_prefix
="$acl_save_exec_prefix"
10389 prefix
="$acl_save_prefix"
10391 if test "X$x" = "X-L$additional_libdir"; then
10396 if test -z "$haveit"; then
10397 if test -d "$additional_libdir"; then
10398 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$additional_libdir"
10405 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10406 if test "$enable_rpath" != no
; then
10408 for x
in $rpathdirs; do
10409 if test "X$x" = "X$dir"; then
10414 if test -z "$haveit"; then
10415 rpathdirs
="$rpathdirs $dir"
10418 for x
in $ltrpathdirs; do
10419 if test "X$x" = "X$dir"; then
10424 if test -z "$haveit"; then
10425 ltrpathdirs
="$ltrpathdirs $dir"
10430 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10433 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10436 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$dep"
10437 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$dep"
10443 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
10444 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10445 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l$name"
10447 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l:lib$name.$libext"
10448 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l:lib$name.$libext"
10455 if test "X$rpathdirs" != "X"; then
10456 if test -n "$hardcode_libdir_separator"; then
10458 for found_dir
in $rpathdirs; do
10459 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10461 acl_save_libdir
="$libdir"
10463 eval flag
=\"$hardcode_libdir_flag_spec\"
10464 libdir
="$acl_save_libdir"
10465 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10467 for found_dir
in $rpathdirs; do
10468 acl_save_libdir
="$libdir"
10469 libdir
="$found_dir"
10470 eval flag
=\"$hardcode_libdir_flag_spec\"
10471 libdir
="$acl_save_libdir"
10472 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10476 if test "X$ltrpathdirs" != "X"; then
10477 for found_dir
in $ltrpathdirs; do
10478 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-R$found_dir"
10483 ac_save_CPPFLAGS
="$CPPFLAGS"
10485 for element
in $INCMPFR; do
10487 for x
in $CPPFLAGS; do
10489 acl_save_prefix
="$prefix"
10490 prefix
="$acl_final_prefix"
10491 acl_save_exec_prefix
="$exec_prefix"
10492 exec_prefix
="$acl_final_exec_prefix"
10494 exec_prefix
="$acl_save_exec_prefix"
10495 prefix
="$acl_save_prefix"
10497 if test "X$x" = "X$element"; then
10502 if test -z "$haveit"; then
10503 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpfr" >&5
10509 $as_echo_n "checking for libmpfr... " >&6; }
10510 if ${ac_cv_libmpfr+:} false
; then :
10511 $as_echo_n "(cached) " >&6
10514 ac_save_LIBS
="$LIBS"
10515 LIBS
="$LIBS $LIBMPFR"
10516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10517 /* end confdefs.h. */
10522 mpfr_exp_t exp; mpfr_t x;
10523 mpfr_frexp (&exp, x, x, MPFR_RNDN);
10528 if ac_fn_c_try_link
"$LINENO"; then :
10533 rm -f core conftest.err conftest.
$ac_objext \
10534 conftest
$ac_exeext conftest.
$ac_ext
10535 LIBS
="$ac_save_LIBS"
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmpfr" >&5
10539 $as_echo "$ac_cv_libmpfr" >&6; }
10540 if test "$ac_cv_libmpfr" = yes; then
10543 $as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libmpfr" >&5
10546 $as_echo_n "checking how to link with libmpfr... " >&6; }
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPFR" >&5
10548 $as_echo "$LIBMPFR" >&6; }
10551 CPPFLAGS
="$ac_save_CPPFLAGS"
10561 if test "$HAVE_LIBMPFR" != yes; then
10562 if test "$with_mpfr" = yes; then
10563 as_fn_error $?
"MPFR is missing or unusable" "$LINENO" 5
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR is missing or unusable; some features may be unavailable." >&5
10566 $as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;}
10571 # --------------------- #
10572 # Check for libpython. #
10573 # --------------------- #
10580 # Check whether --with-python was given.
10581 if test "${with_python+set}" = set; then :
10582 withval
=$with_python;
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10588 $as_echo_n "checking whether to use python... " >&6; }
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10590 $as_echo "$with_python" >&6; }
10592 if test "${with_python}" = no
; then
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10594 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10597 case "${with_python}" in
10599 if test -d "${with_python}"; then
10600 # Assume the python binary is ${with_python}/bin/python.
10601 python_prog
="${with_python}/bin/python"
10603 # If python does not exit ${with_python}/bin, then try in
10604 # ${with_python}. On Windows/MinGW, this is where the Python
10606 if test ! -x "${python_prog}"; then
10607 python_prog
="${with_python}/python"
10610 if test ! -x "${python_prog}"; then
10611 # Fall back to gdb 7.0/7.1 behaviour.
10612 python_prog
=missing
10613 python_prefix
=${with_python}
10615 elif test -x "${with_python}"; then
10616 # While we can't run python compiled for $host (unless host == build),
10617 # the user could write a script that provides the needed information,
10618 # so we support that.
10619 python_prog
=${with_python}
10622 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
10626 # Disallow --with-python=foo/bar.
10627 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
10630 # The user has either specified auto, yes, or the name of the python
10631 # program assumed to be in $PATH.
10633 case "${with_python}" in
10635 if test "${build}" = "${host}"; then
10636 # Extract the first word of "python", so it can be a program name with args.
10637 set dummy python
; ac_word
=$2
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10639 $as_echo_n "checking for $ac_word... " >&6; }
10640 if ${ac_cv_path_python_prog_path+:} false
; then :
10641 $as_echo_n "(cached) " >&6
10643 case $python_prog_path in
10645 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10648 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10649 for as_dir
in $PATH
10652 test -z "$as_dir" && as_dir
=.
10653 for ac_exec_ext
in '' $ac_executable_extensions; do
10654 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10655 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10663 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10667 python_prog_path
=$ac_cv_path_python_prog_path
10668 if test -n "$python_prog_path"; then
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10670 $as_echo "$python_prog_path" >&6; }
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10673 $as_echo "no" >&6; }
10677 if test "${python_prog_path}" = missing
; then
10678 python_prog
=missing
10680 python_prog
=${python_prog_path}
10683 # Not much we can do except assume the cross-compiler will find the
10685 python_prog
=missing
10689 # While we can't run python compiled for $host (unless host == build),
10690 # the user could write a script that provides the needed information,
10691 # so we support that.
10692 python_prog
="${with_python}"
10693 # Extract the first word of "${python_prog}", so it can be a program name with args.
10694 set dummy
${python_prog}; ac_word
=$2
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10696 $as_echo_n "checking for $ac_word... " >&6; }
10697 if ${ac_cv_path_python_prog_path+:} false
; then :
10698 $as_echo_n "(cached) " >&6
10700 case $python_prog_path in
10702 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10705 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10706 for as_dir
in $PATH
10709 test -z "$as_dir" && as_dir
=.
10710 for ac_exec_ext
in '' $ac_executable_extensions; do
10711 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10712 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10720 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10724 python_prog_path
=$ac_cv_path_python_prog_path
10725 if test -n "$python_prog_path"; then
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10727 $as_echo "$python_prog_path" >&6; }
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10730 $as_echo "no" >&6; }
10734 if test "${python_prog_path}" = missing
; then
10735 as_fn_error $?
"unable to find python program ${python_prog}" "$LINENO" 5
10741 if test "${python_prog}" != missing
; then
10742 # We have a python program to use, but it may be too old.
10743 # Don't flag an error for --with-python=auto (the default).
10744 have_python_config
=yes
10745 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
10746 if test $?
!= 0; then
10747 have_python_config
=failed
10748 if test "${with_python}" != auto
; then
10749 as_fn_error $?
"failure running python-config --includes" "$LINENO" 5
10752 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10753 if test $?
!= 0; then
10754 have_python_config
=failed
10755 if test "${with_python}" != auto
; then
10756 as_fn_error $?
"failure running python-config --ldflags" "$LINENO" 5
10759 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10760 if test $?
!= 0; then
10761 have_python_config
=failed
10762 if test "${with_python}" != auto
; then
10763 as_fn_error $?
"failure running python-config --exec-prefix" "$LINENO" 5
10767 # We do not have a python executable we can use to determine where
10768 # to find the Python headers and libs. We cannot guess the include
10769 # path from the python_prefix either, because that include path
10770 # depends on the Python version. So, there is nothing much we can
10771 # do except assume that the compiler will be able to find those files.
10774 have_python_config
=no
10777 # If we have python-config, only try the configuration it provides.
10778 # Otherwise fallback on the old way of trying different versions of
10782 if test "${have_python_config}" = yes; then
10785 new_CPPFLAGS
=${python_includes}
10786 new_LIBS
=${python_libs}
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
10788 $as_echo_n "checking for python... " >&6; }
10789 save_CPPFLAGS
=$CPPFLAGS
10791 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10792 LIBS
="$new_LIBS $LIBS"
10793 found_usable_python
=no
10794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10795 /* end confdefs.h. */
10796 #include "Python.h"
10805 if ac_fn_c_try_link
"$LINENO"; then :
10807 found_usable_python
=yes
10808 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10809 PYTHON_LIBS
=$new_LIBS
10811 rm -f core conftest.err conftest.
$ac_objext \
10812 conftest
$ac_exeext conftest.
$ac_ext
10813 CPPFLAGS
=$save_CPPFLAGS
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10816 $as_echo "${found_usable_python}" >&6; }
10818 elif test "${have_python_config}" != failed
; then
10819 if test "${have_libpython}" = no
; then
10822 new_CPPFLAGS
=${python_includes}
10823 new_LIBS
="-lpython2.7 ${python_libs}"
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
10825 $as_echo_n "checking for python... " >&6; }
10826 save_CPPFLAGS
=$CPPFLAGS
10828 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10829 LIBS
="$new_LIBS $LIBS"
10830 found_usable_python
=no
10831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10832 /* end confdefs.h. */
10833 #include "Python.h"
10842 if ac_fn_c_try_link
"$LINENO"; then :
10844 found_usable_python
=yes
10845 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10846 PYTHON_LIBS
=$new_LIBS
10848 rm -f core conftest.err conftest.
$ac_objext \
10849 conftest
$ac_exeext conftest.
$ac_ext
10850 CPPFLAGS
=$save_CPPFLAGS
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10853 $as_echo "${found_usable_python}" >&6; }
10856 if test "${have_libpython}" = no
; then
10859 new_CPPFLAGS
=${python_includes}
10860 new_LIBS
="-lpython2.6 ${python_libs}"
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
10862 $as_echo_n "checking for python... " >&6; }
10863 save_CPPFLAGS
=$CPPFLAGS
10865 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10866 LIBS
="$new_LIBS $LIBS"
10867 found_usable_python
=no
10868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10869 /* end confdefs.h. */
10870 #include "Python.h"
10879 if ac_fn_c_try_link
"$LINENO"; then :
10881 found_usable_python
=yes
10882 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10883 PYTHON_LIBS
=$new_LIBS
10885 rm -f core conftest.err conftest.
$ac_objext \
10886 conftest
$ac_exeext conftest.
$ac_ext
10887 CPPFLAGS
=$save_CPPFLAGS
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10890 $as_echo "${found_usable_python}" >&6; }
10895 if test "${have_libpython}" = no
; then
10896 case "${with_python}" in
10898 as_fn_error $?
"python is missing or unusable" "$LINENO" 5
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10902 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10905 as_fn_error $?
"no usable python found at ${with_python}" "$LINENO" 5
10909 if test -n "${python_prefix}"; then
10911 cat >>confdefs.h
<<_ACEOF
10912 #define WITH_PYTHON_PATH "${python_prefix}"
10916 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
10917 if test "x$prefix" = xNONE
; then
10918 test_prefix
=/usr
/local
10920 test_prefix
=$prefix
10923 test_prefix
=$exec_prefix
10926 case ${python_prefix} in
10927 "${test_prefix}"|
"${test_prefix}/"*|\
10928 '${exec_prefix}'|
'${exec_prefix}/'*)
10933 cat >>confdefs.h
<<_ACEOF
10934 #define PYTHON_PATH_RELOCATABLE $value
10943 # Check whether --with-python-libdir was given.
10944 if test "${with_python_libdir+set}" = set; then :
10945 withval
=$with_python_libdir;
10948 # If no python libdir is specified then select one based on
10949 # python's prefix path.
10950 if test -n "${python_prefix}"; then
10951 with_python_libdir
=${python_prefix}/lib
10957 if test "${have_libpython}" != no
; then
10959 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10961 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10962 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10963 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
10964 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
10965 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
10967 if test -n "${with_python_libdir}"; then
10969 cat >>confdefs.h
<<_ACEOF
10970 #define WITH_PYTHON_LIBDIR "${with_python_libdir}"
10974 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
10975 if test "x$prefix" = xNONE
; then
10976 test_prefix
=/usr
/local
10978 test_prefix
=$prefix
10981 test_prefix
=$exec_prefix
10984 case ${with_python_libdir} in
10985 "${test_prefix}"|
"${test_prefix}/"*|\
10986 '${exec_prefix}'|
'${exec_prefix}/'*)
10991 cat >>confdefs.h
<<_ACEOF
10992 #define PYTHON_LIBDIR_RELOCATABLE $value
10998 # Flags needed to compile Python code (taken from python-config --cflags).
10999 # We cannot call python-config directly because it will output whatever was
11000 # used when compiling the Python interpreter itself, including flags which
11001 # would make the python-related objects be compiled differently from the
11002 # rest of GDB (e.g., -O2 and -fPIC).
11003 if test "${GCC}" = yes; then
11004 tentative_python_cflags
="-fno-strict-aliasing -fwrapv"
11005 # Python headers recommend -DNDEBUG, but it's unclear if that just
11006 # refers to building Python itself. In release mode, though, it
11007 # doesn't hurt for the Python code in gdb to follow.
11008 $development || tentative_python_cflags
="$tentative_python_cflags -DNDEBUG"
11011 if test "x${tentative_python_cflags}" != x
; then
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
11013 $as_echo_n "checking compiler flags for python code... " >&6; }
11014 for flag
in ${tentative_python_cflags}; do
11015 # Check that the compiler accepts it
11016 saved_CFLAGS
="$CFLAGS"
11017 CFLAGS
="$CFLAGS $flag"
11018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11019 /* end confdefs.h. */
11029 if ac_fn_c_try_compile
"$LINENO"; then :
11030 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
11032 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11033 CFLAGS
="$saved_CFLAGS"
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
11036 $as_echo "${PYTHON_CFLAGS}" >&6; }
11039 # On x64 Windows, Python's include headers, and pyconfig.h in
11040 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
11041 # version of Windows. Unfortunately, MS_WIN64 is only defined if
11042 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
11043 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
11044 # The issue was reported to the Python community, but still isn't
11045 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
11047 case "$gdb_host" in
11049 if test "${GCC}" = yes; then
11050 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
11055 # Even if Python support is not compiled in, we need to have this file
11056 # included so that the "python" command, et.al., still exists.
11057 CONFIG_OBS
="$CONFIG_OBS python/python.o"
11058 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
11061 # Work around Python http://bugs.python.org/issue10112. See also
11062 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
11063 # no effect. Note that the only test after this that uses Python is
11064 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
11065 # run without -export-dynamic too.
11066 PYTHON_LIBS
=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
11071 if test "${have_libpython}" != no
; then
11073 HAVE_PYTHON_FALSE
='#'
11075 HAVE_PYTHON_TRUE
='#'
11080 # -------------------- #
11081 # Check for libguile. #
11082 # -------------------- #
11089 # Check whether --with-guile was given.
11090 if test "${with_guile+set}" = set; then :
11091 withval
=$with_guile;
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
11097 $as_echo_n "checking whether to use guile... " >&6; }
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
11099 $as_echo "$with_guile" >&6; }
11101 # Extract the first word of "pkg-config", so it can be a program name with args.
11102 set dummy pkg-config
; ac_word
=$2
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11104 $as_echo_n "checking for $ac_word... " >&6; }
11105 if ${ac_cv_path_pkg_config_prog_path+:} false
; then :
11106 $as_echo_n "(cached) " >&6
11108 case $pkg_config_prog_path in
11110 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
11113 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11114 for as_dir
in $PATH
11117 test -z "$as_dir" && as_dir
=.
11118 for ac_exec_ext
in '' $ac_executable_extensions; do
11119 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11120 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
11121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11128 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
11132 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
11133 if test -n "$pkg_config_prog_path"; then
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
11135 $as_echo "$pkg_config_prog_path" >&6; }
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11138 $as_echo "no" >&6; }
11143 try_guile_versions
="guile-3.0 guile-2.2 guile-2.0"
11145 case "${with_guile}" in
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
11148 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
11151 if test "${pkg_config_prog_path}" = "missing"; then
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
11153 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
11156 pkg_config
=${pkg_config_prog_path}
11157 guile_version_list
=${try_guile_versions}
11160 found_usable_guile
=checking
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11162 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11163 for guile_version
in ${guile_version_list}; do
11164 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11165 if test $?
!= 0; then
11168 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11169 if test $?
!= 0; then
11170 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11172 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11173 if test $?
!= 0; then
11174 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11176 found_usable_guile
=${guile_version}
11179 if test "${found_usable_guile}" = "checking"; then
11180 if test "${flag_errors}" = "yes"; then
11181 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11183 found_usable_guile
=no
11186 if test "${found_usable_guile}" != no
; then
11187 save_CPPFLAGS
=$CPPFLAGS
11189 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11190 LIBS
="$LIBS $new_LIBS"
11191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11192 /* end confdefs.h. */
11193 #include "libguile.h"
11202 if ac_fn_c_try_link
"$LINENO"; then :
11204 GUILE_CPPFLAGS
=$new_CPPFLAGS
11205 GUILE_LIBS
=$new_LIBS
11207 found_usable_guile
=no
11209 rm -f core conftest.err conftest.
$ac_objext \
11210 conftest
$ac_exeext conftest.
$ac_ext
11211 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11212 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11214 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11219 CPPFLAGS
=$save_CPPFLAGS
11221 if test "${found_usable_guile}" = no
; then
11222 if test "${flag_errors}" = yes; then
11223 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11225 as_fn_error $?
"linking guile version ${guile_version} test program failed
11226 See \`config.log' for more details" "$LINENO" 5; }
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11231 $as_echo "${found_usable_guile}" >&6; }
11236 if test "${pkg_config_prog_path}" = "missing"; then
11237 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11240 pkg_config
=${pkg_config_prog_path}
11241 guile_version_list
=${try_guile_versions}
11244 found_usable_guile
=checking
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11246 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11247 for guile_version
in ${guile_version_list}; do
11248 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11249 if test $?
!= 0; then
11252 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11253 if test $?
!= 0; then
11254 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11256 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11257 if test $?
!= 0; then
11258 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11260 found_usable_guile
=${guile_version}
11263 if test "${found_usable_guile}" = "checking"; then
11264 if test "${flag_errors}" = "yes"; then
11265 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11267 found_usable_guile
=no
11270 if test "${found_usable_guile}" != no
; then
11271 save_CPPFLAGS
=$CPPFLAGS
11273 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11274 LIBS
="$LIBS $new_LIBS"
11275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11276 /* end confdefs.h. */
11277 #include "libguile.h"
11286 if ac_fn_c_try_link
"$LINENO"; then :
11288 GUILE_CPPFLAGS
=$new_CPPFLAGS
11289 GUILE_LIBS
=$new_LIBS
11291 found_usable_guile
=no
11293 rm -f core conftest.err conftest.
$ac_objext \
11294 conftest
$ac_exeext conftest.
$ac_ext
11295 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11296 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11298 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11303 CPPFLAGS
=$save_CPPFLAGS
11305 if test "${found_usable_guile}" = no
; then
11306 if test "${flag_errors}" = yes; then
11307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11309 as_fn_error $?
"linking guile version ${guile_version} test program failed
11310 See \`config.log' for more details" "$LINENO" 5; }
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11315 $as_echo "${found_usable_guile}" >&6; }
11319 if test -x "${with_guile}"; then
11321 pkg_config
=${with_guile}
11322 guile_version_list
=${try_guile_versions}
11325 found_usable_guile
=checking
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11327 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11328 for guile_version
in ${guile_version_list}; do
11329 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11330 if test $?
!= 0; then
11333 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11334 if test $?
!= 0; then
11335 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11337 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11338 if test $?
!= 0; then
11339 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11341 found_usable_guile
=${guile_version}
11344 if test "${found_usable_guile}" = "checking"; then
11345 if test "${flag_errors}" = "yes"; then
11346 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11348 found_usable_guile
=no
11351 if test "${found_usable_guile}" != no
; then
11352 save_CPPFLAGS
=$CPPFLAGS
11354 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11355 LIBS
="$LIBS $new_LIBS"
11356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11357 /* end confdefs.h. */
11358 #include "libguile.h"
11367 if ac_fn_c_try_link
"$LINENO"; then :
11369 GUILE_CPPFLAGS
=$new_CPPFLAGS
11370 GUILE_LIBS
=$new_LIBS
11372 found_usable_guile
=no
11374 rm -f core conftest.err conftest.
$ac_objext \
11375 conftest
$ac_exeext conftest.
$ac_ext
11376 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11377 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11379 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11384 CPPFLAGS
=$save_CPPFLAGS
11386 if test "${found_usable_guile}" = no
; then
11387 if test "${flag_errors}" = yes; then
11388 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11390 as_fn_error $?
"linking guile version ${guile_version} test program failed
11391 See \`config.log' for more details" "$LINENO" 5; }
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11396 $as_echo "${found_usable_guile}" >&6; }
11399 as_fn_error $?
"Guile config program not executable: ${with_guile}" "$LINENO" 5
11403 # Disallow --with=guile="" and --with-guile=foo/bar.
11404 as_fn_error $?
"invalid value for --with-guile" "$LINENO" 5
11407 # A space separate list of guile versions to try, in order.
11408 if test "${pkg_config_prog_path}" = "missing"; then
11409 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11412 pkg_config
=${pkg_config_prog_path}
11413 guile_version_list
=${with_guile}
11416 found_usable_guile
=checking
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11418 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11419 for guile_version
in ${guile_version_list}; do
11420 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11421 if test $?
!= 0; then
11424 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11425 if test $?
!= 0; then
11426 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11428 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11429 if test $?
!= 0; then
11430 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11432 found_usable_guile
=${guile_version}
11435 if test "${found_usable_guile}" = "checking"; then
11436 if test "${flag_errors}" = "yes"; then
11437 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11439 found_usable_guile
=no
11442 if test "${found_usable_guile}" != no
; then
11443 save_CPPFLAGS
=$CPPFLAGS
11445 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11446 LIBS
="$LIBS $new_LIBS"
11447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11448 /* end confdefs.h. */
11449 #include "libguile.h"
11458 if ac_fn_c_try_link
"$LINENO"; then :
11460 GUILE_CPPFLAGS
=$new_CPPFLAGS
11461 GUILE_LIBS
=$new_LIBS
11463 found_usable_guile
=no
11465 rm -f core conftest.err conftest.
$ac_objext \
11466 conftest
$ac_exeext conftest.
$ac_ext
11467 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11468 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11470 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11475 CPPFLAGS
=$save_CPPFLAGS
11477 if test "${found_usable_guile}" = no
; then
11478 if test "${flag_errors}" = yes; then
11479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11481 as_fn_error $?
"linking guile version ${guile_version} test program failed
11482 See \`config.log' for more details" "$LINENO" 5; }
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11487 $as_echo "${found_usable_guile}" >&6; }
11492 if test "${have_libguile}" != no
; then
11493 case "${with_guile}" in
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11497 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11498 if ${ac_cv_guild_program_name+:} false
; then :
11499 $as_echo_n "(cached) " >&6
11501 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
11503 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11504 # the 'guild' and 'bindir' variables. In that case, try to guess
11505 # what the program name is, at the risk of getting it wrong if
11506 # Guile was configured with '--program-suffix' or similar.
11507 if test "x$ac_cv_guild_program_name" = "x"; then
11508 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
11509 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11514 $as_echo "$ac_cv_guild_program_name" >&6; }
11516 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11517 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11520 GUILD
="$ac_cv_guild_program_name"
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11527 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11528 if ${ac_cv_guild_program_name+:} false
; then :
11529 $as_echo_n "(cached) " >&6
11531 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
11533 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11534 # the 'guild' and 'bindir' variables. In that case, try to guess
11535 # what the program name is, at the risk of getting it wrong if
11536 # Guile was configured with '--program-suffix' or similar.
11537 if test "x$ac_cv_guild_program_name" = "x"; then
11538 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
11539 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11544 $as_echo "$ac_cv_guild_program_name" >&6; }
11546 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11547 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11550 GUILD
="$ac_cv_guild_program_name"
11557 if test "$cross_compiling" = no
; then
11560 GUILD_TARGET_FLAG
="--target=$host"
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
11567 $as_echo_n "checking whether guild supports this host... " >&6; }
11568 if ${ac_cv_guild_ok+:} false
; then :
11569 $as_echo_n "(cached) " >&6
11571 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
11572 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
11579 $as_echo "$ac_cv_guild_ok" >&6; }
11581 if test "$ac_cv_guild_ok" = no
; then
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
11584 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
11588 if test "${have_libguile}" != no
; then
11590 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
11592 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
11593 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
11594 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
11595 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
11596 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
11599 save_CPPFLAGS
="$CPPFLAGS"
11601 CPPFLAGS
="$GUILE_CPPFLAGS"
11602 for ac_func
in scm_new_smob
11604 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
11605 if test "x$ac_cv_func_scm_new_smob" = xyes
; then :
11606 cat >>confdefs.h
<<_ACEOF
11607 #define HAVE_SCM_NEW_SMOB 1
11614 CPPFLAGS
="$save_CPPFLAGS"
11616 # Even if Guile support is not compiled in, we need to have these files
11618 CONFIG_OBS
="$CONFIG_OBS guile/guile.o"
11619 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
11623 if test "${have_libguile}" != no
; then
11625 HAVE_GUILE_FALSE
='#'
11627 HAVE_GUILE_TRUE
='#'
11632 # ---------------------------- #
11633 # Check for source highlight. #
11634 # ---------------------------- #
11639 # Check whether --enable-source-highlight was given.
11640 if test "${enable_source_highlight+set}" = set; then :
11641 enableval
=$enable_source_highlight; case "${enableval}" in
11642 yes) enable_source_highlight
=yes ;;
11643 no
) enable_source_highlight
=no
;;
11644 *) as_fn_error $?
"bad value ${enableval} for source-highlight option" "$LINENO" 5 ;;
11647 enable_source_highlight
=auto
11651 if test "${enable_source_highlight}" != "no"; then
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
11653 $as_echo_n "checking for the source-highlight library... " >&6; }
11654 if test "${pkg_config_prog_path}" = "missing"; then
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
11656 $as_echo "no - pkg-config not found" >&6; }
11657 if test "${enable_source_highlight}" = "yes"; then
11658 as_fn_error $?
"pkg-config was not found in your system" "$LINENO" 5
11663 as_fn_error $?
"source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
11667 if ${pkg_config_prog_path} --exists source-highlight
; then
11668 SRCHIGH_CFLAGS
=`${pkg_config_prog_path} --cflags source-highlight`
11669 SRCHIGH_LIBS
=`${pkg_config_prog_path} --libs source-highlight`
11671 $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11674 $as_echo "yes" >&6; }
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11677 $as_echo "no" >&6; }
11678 if test "${enable_source_highlight}" = "yes"; then
11679 as_fn_error $?
"source-highlight was not found in your system" "$LINENO" 5
11687 # ------------------------- #
11688 # Checks for header files. #
11689 # ------------------------- #
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11692 $as_echo_n "checking for ANSI C header files... " >&6; }
11693 if ${ac_cv_header_stdc+:} false
; then :
11694 $as_echo_n "(cached) " >&6
11696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11697 /* end confdefs.h. */
11698 #include <stdlib.h>
11699 #include <stdarg.h>
11700 #include <string.h>
11711 if ac_fn_c_try_compile
"$LINENO"; then :
11712 ac_cv_header_stdc
=yes
11714 ac_cv_header_stdc
=no
11716 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11718 if test $ac_cv_header_stdc = yes; then
11719 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11721 /* end confdefs.h. */
11722 #include <string.h>
11725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11726 $EGREP "memchr" >/dev
/null
2>&1; then :
11729 ac_cv_header_stdc
=no
11735 if test $ac_cv_header_stdc = yes; then
11736 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11738 /* end confdefs.h. */
11739 #include <stdlib.h>
11742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11743 $EGREP "free" >/dev
/null
2>&1; then :
11746 ac_cv_header_stdc
=no
11752 if test $ac_cv_header_stdc = yes; then
11753 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11754 if test "$cross_compiling" = yes; then :
11757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11758 /* end confdefs.h. */
11760 #include <stdlib.h>
11761 #if ((' ' & 0x0FF) == 0x020)
11762 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11763 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11765 # define ISLOWER(c) \
11766 (('a' <= (c) && (c) <= 'i') \
11767 || ('j' <= (c) && (c) <= 'r') \
11768 || ('s' <= (c) && (c) <= 'z'))
11769 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11772 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11777 for (i = 0; i < 256; i++)
11778 if (XOR (islower (i), ISLOWER (i))
11779 || toupper (i) != TOUPPER (i))
11784 if ac_fn_c_try_run
"$LINENO"; then :
11787 ac_cv_header_stdc
=no
11789 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11790 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11796 $as_echo "$ac_cv_header_stdc" >&6; }
11797 if test $ac_cv_header_stdc = yes; then
11799 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11803 # elf_hp.h is for HP/UX 64-bit shared library support.
11804 for ac_header
in nlist.h machine
/reg.h \
11806 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
11807 sys
/resource.h sys
/ptrace.h ptrace.h \
11808 sys
/reg.h sys
/debugreg.h \
11811 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11812 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11813 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
11814 cat >>confdefs.h
<<_ACEOF
11815 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11822 for ac_header
in sys
/user.h
11824 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
11825 # include <sys/param.h>
11829 if test "x$ac_cv_header_sys_user_h" = xyes
; then :
11830 cat >>confdefs.h
<<_ACEOF
11831 #define HAVE_SYS_USER_H 1
11839 for ac_header
in curses.h cursesX.h ncurses.h ncursesw
/ncurses.h ncurses
/ncurses.h ncurses
/term.h
11841 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11842 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11843 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
11844 cat >>confdefs.h
<<_ACEOF
11845 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11852 for ac_header
in term.h
11854 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
11855 # include <curses.h>
11859 if test "x$ac_cv_header_term_h" = xyes
; then :
11860 cat >>confdefs.h
<<_ACEOF
11861 #define HAVE_TERM_H 1
11869 for ac_header
in sys
/socket.h
11871 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
11872 if test "x$ac_cv_header_sys_socket_h" = xyes
; then :
11873 cat >>confdefs.h
<<_ACEOF
11874 #define HAVE_SYS_SOCKET_H 1
11881 for ac_header
in ws2tcpip.h
11883 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
11884 if test "x$ac_cv_header_ws2tcpip_h" = xyes
; then :
11885 cat >>confdefs.h
<<_ACEOF
11886 #define HAVE_WS2TCPIP_H 1
11894 # ------------------------- #
11895 # Checks for declarations. #
11896 # ------------------------- #
11899 # Check for presence and size of long long.
11900 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
11901 if test "x$ac_cv_type_long_long" = xyes
; then :
11903 cat >>confdefs.h
<<_ACEOF
11904 #define HAVE_LONG_LONG 1
11907 # The cast to long int works around a bug in the HP C Compiler
11908 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11909 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11910 # This bug is HP SR number 8606223364.
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
11912 $as_echo_n "checking size of long long... " >&6; }
11913 if ${ac_cv_sizeof_long_long+:} false
; then :
11914 $as_echo_n "(cached) " >&6
11916 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
11919 if test "$ac_cv_type_long_long" = yes; then
11920 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11922 as_fn_error
77 "cannot compute sizeof (long long)
11923 See \`config.log' for more details" "$LINENO" 5; }
11925 ac_cv_sizeof_long_long
=0
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
11931 $as_echo "$ac_cv_sizeof_long_long" >&6; }
11935 cat >>confdefs.h
<<_ACEOF
11936 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11943 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
11944 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
11945 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
11951 cat >>confdefs.h
<<_ACEOF
11952 #define HAVE_DECL_BASENAME $ac_have_decl
11954 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
11955 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
11961 cat >>confdefs.h
<<_ACEOF
11962 #define HAVE_DECL_FFS $ac_have_decl
11964 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
11965 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
11971 cat >>confdefs.h
<<_ACEOF
11972 #define HAVE_DECL_ASPRINTF $ac_have_decl
11974 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
11975 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
11981 cat >>confdefs.h
<<_ACEOF
11982 #define HAVE_DECL_VASPRINTF $ac_have_decl
11984 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11985 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
11991 cat >>confdefs.h
<<_ACEOF
11992 #define HAVE_DECL_SNPRINTF $ac_have_decl
11994 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
11995 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
12001 cat >>confdefs.h
<<_ACEOF
12002 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12005 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
12006 if test "x$ac_cv_have_decl_strtol" = xyes
; then :
12012 cat >>confdefs.h
<<_ACEOF
12013 #define HAVE_DECL_STRTOL $ac_have_decl
12015 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
12016 if test "x$ac_cv_have_decl_strtoul" = xyes
; then :
12022 cat >>confdefs.h
<<_ACEOF
12023 #define HAVE_DECL_STRTOUL $ac_have_decl
12025 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
12026 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
12032 cat >>confdefs.h
<<_ACEOF
12033 #define HAVE_DECL_STRTOLL $ac_have_decl
12035 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
12036 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
12042 cat >>confdefs.h
<<_ACEOF
12043 #define HAVE_DECL_STRTOULL $ac_have_decl
12046 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12047 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
12053 cat >>confdefs.h
<<_ACEOF
12054 #define HAVE_DECL_STRVERSCMP $ac_have_decl
12059 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12060 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12066 cat >>confdefs.h
<<_ACEOF
12067 #define HAVE_DECL_SNPRINTF $ac_have_decl
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12072 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12073 if ${am_cv_val_LC_MESSAGES+:} false
; then :
12074 $as_echo_n "(cached) " >&6
12076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12077 /* end confdefs.h. */
12078 #include <locale.h>
12087 if ac_fn_c_try_link
"$LINENO"; then :
12088 am_cv_val_LC_MESSAGES
=yes
12090 am_cv_val_LC_MESSAGES
=no
12092 rm -f core conftest.err conftest.
$ac_objext \
12093 conftest
$ac_exeext conftest.
$ac_ext
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12096 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12097 if test $am_cv_val_LC_MESSAGES = yes; then
12099 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12104 # ------------------ #
12105 # Checks for types. #
12106 # ------------------ #
12108 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12109 #if HAVE_SYS_SOCKET_H
12110 # include <sys/socket.h>
12111 #elif HAVE_WS2TCPIP_H
12112 # include <ws2tcpip.h>
12116 if test "x$ac_cv_type_socklen_t" = xyes
; then :
12118 cat >>confdefs.h
<<_ACEOF
12119 #define HAVE_SOCKLEN_T 1
12126 # ------------------------------------- #
12127 # Checks for compiler characteristics. #
12128 # ------------------------------------- #
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12131 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12132 if ${ac_cv_c_const+:} false
; then :
12133 $as_echo_n "(cached) " >&6
12135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12136 /* end confdefs.h. */
12142 #ifndef __cplusplus
12143 /* Ultrix mips cc rejects this sort of thing. */
12144 typedef int charset[2];
12145 const charset cs = { 0, 0 };
12146 /* SunOS 4.1.1 cc rejects this. */
12147 char const *const *pcpcc;
12149 /* NEC SVR4.0.2 mips cc rejects this. */
12150 struct point {int x, y;};
12151 static struct point const zero = {0,0};
12152 /* AIX XL C 1.02.0.0 rejects this.
12153 It does not let you subtract one const X* pointer from another in
12154 an arm of an if-expression whose if-part is not a constant
12156 const char *g = "string";
12157 pcpcc = &g + (g ? g-g : 0);
12158 /* HPUX 7.0 cc rejects these. */
12160 ppc = (char**) pcpcc;
12161 pcpcc = (char const *const *) ppc;
12162 { /* SCO 3.2v4 cc rejects this sort of thing. */
12165 char const *s = 0 ? (char *) 0 : (char const *) 0;
12170 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12171 int x[] = {25, 17};
12172 const int *foo = &x[0];
12175 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12176 typedef const int *iptr;
12180 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12181 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12182 struct s { int j; const int *ap[3]; } bx;
12183 struct s *b = &bx; b->j = 5;
12185 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12186 const int foo = 10;
12187 if (!foo) return 0;
12189 return !cs[0] && !zero.x;
12196 if ac_fn_c_try_compile
"$LINENO"; then :
12201 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12204 $as_echo "$ac_cv_c_const" >&6; }
12205 if test $ac_cv_c_const = no
; then
12207 $as_echo "#define const /**/" >>confdefs.h
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12212 $as_echo_n "checking for inline... " >&6; }
12213 if ${ac_cv_c_inline+:} false
; then :
12214 $as_echo_n "(cached) " >&6
12217 for ac_kw
in inline __inline__ __inline
; do
12218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12219 /* end confdefs.h. */
12220 #ifndef __cplusplus
12222 static $ac_kw foo_t static_foo () {return 0; }
12223 $ac_kw foo_t foo () {return 0; }
12227 if ac_fn_c_try_compile
"$LINENO"; then :
12228 ac_cv_c_inline
=$ac_kw
12230 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12231 test "$ac_cv_c_inline" != no
&& break
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12236 $as_echo "$ac_cv_c_inline" >&6; }
12238 case $ac_cv_c_inline in
12241 case $ac_cv_c_inline in
12243 *) ac_val
=$ac_cv_c_inline;;
12245 cat >>confdefs.h
<<_ACEOF
12246 #ifndef __cplusplus
12247 #define inline $ac_val
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12254 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12255 if ${ac_cv_c_bigendian+:} false
; then :
12256 $as_echo_n "(cached) " >&6
12258 ac_cv_c_bigendian
=unknown
12259 # See if we're dealing with a universal compiler.
12260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12261 /* end confdefs.h. */
12262 #ifndef __APPLE_CC__
12263 not a universal capable compiler
12268 if ac_fn_c_try_compile
"$LINENO"; then :
12270 # Check for potential -arch flags. It is not universal unless
12271 # there are at least two -arch flags with different values.
12274 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12275 if test -n "$ac_prev"; then
12277 i?
86 | x86_64 | ppc | ppc64
)
12278 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12281 ac_cv_c_bigendian
=universal
12287 elif test "x$ac_word" = "x-arch"; then
12292 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12293 if test $ac_cv_c_bigendian = unknown
; then
12294 # See if sys/param.h defines the BYTE_ORDER macro.
12295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12296 /* end confdefs.h. */
12297 #include <sys/types.h>
12298 #include <sys/param.h>
12303 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12304 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12306 bogus endian macros
12313 if ac_fn_c_try_compile
"$LINENO"; then :
12314 # It does; now see whether it defined to BIG_ENDIAN or not.
12315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12316 /* end confdefs.h. */
12317 #include <sys/types.h>
12318 #include <sys/param.h>
12323 #if BYTE_ORDER != BIG_ENDIAN
12331 if ac_fn_c_try_compile
"$LINENO"; then :
12332 ac_cv_c_bigendian
=yes
12334 ac_cv_c_bigendian
=no
12336 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12338 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12340 if test $ac_cv_c_bigendian = unknown
; then
12341 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12343 /* end confdefs.h. */
12344 #include <limits.h>
12349 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12350 bogus endian macros
12357 if ac_fn_c_try_compile
"$LINENO"; then :
12358 # It does; now see whether it defined to _BIG_ENDIAN or not.
12359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12360 /* end confdefs.h. */
12361 #include <limits.h>
12366 #ifndef _BIG_ENDIAN
12374 if ac_fn_c_try_compile
"$LINENO"; then :
12375 ac_cv_c_bigendian
=yes
12377 ac_cv_c_bigendian
=no
12379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12381 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12383 if test $ac_cv_c_bigendian = unknown
; then
12384 # Compile a test program.
12385 if test "$cross_compiling" = yes; then :
12386 # Try to guess by grepping values from an object file.
12387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12388 /* end confdefs.h. */
12389 short int ascii_mm[] =
12390 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12391 short int ascii_ii[] =
12392 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12393 int use_ascii (int i) {
12394 return ascii_mm[i] + ascii_ii[i];
12396 short int ebcdic_ii[] =
12397 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12398 short int ebcdic_mm[] =
12399 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12400 int use_ebcdic (int i) {
12401 return ebcdic_mm[i] + ebcdic_ii[i];
12408 return use_ascii (foo) == use_ebcdic (foo);
12413 if ac_fn_c_try_compile
"$LINENO"; then :
12414 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12415 ac_cv_c_bigendian
=yes
12417 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12418 if test "$ac_cv_c_bigendian" = unknown
; then
12419 ac_cv_c_bigendian
=no
12421 # finding both strings is unlikely to happen, but who knows?
12422 ac_cv_c_bigendian
=unknown
12426 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12429 /* end confdefs.h. */
12430 $ac_includes_default
12435 /* Are we little or big endian? From Harbison&Steele. */
12439 char c[sizeof (long int)];
12442 return u.c[sizeof (long int) - 1] == 1;
12448 if ac_fn_c_try_run
"$LINENO"; then :
12449 ac_cv_c_bigendian
=no
12451 ac_cv_c_bigendian
=yes
12453 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12454 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12460 $as_echo "$ac_cv_c_bigendian" >&6; }
12461 case $ac_cv_c_bigendian in #(
12463 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12469 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12473 as_fn_error $?
"unknown endianness
12474 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12478 # ------------------------------ #
12479 # Checks for library functions. #
12480 # ------------------------------ #
12482 for ac_func
in getuid getgid \
12483 pipe pread pread64 pwrite resize_term \
12485 sigaction sigsetmask socketpair \
12486 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
12487 setrlimit getrlimit posix_madvise waitpid \
12490 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12491 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12492 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12493 cat >>confdefs.h
<<_ACEOF
12494 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12502 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12503 if ${am_cv_langinfo_codeset+:} false
; then :
12504 $as_echo_n "(cached) " >&6
12506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12507 /* end confdefs.h. */
12508 #include <langinfo.h>
12512 char* cs = nl_langinfo(CODESET);
12517 if ac_fn_c_try_link
"$LINENO"; then :
12518 am_cv_langinfo_codeset
=yes
12520 am_cv_langinfo_codeset
=no
12522 rm -f core conftest.err conftest.
$ac_objext \
12523 conftest
$ac_exeext conftest.
$ac_ext
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12527 $as_echo "$am_cv_langinfo_codeset" >&6; }
12528 if test $am_cv_langinfo_codeset = yes; then
12530 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12534 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12535 if test "x$ac_cv_type_size_t" = xyes
; then :
12539 cat >>confdefs.h
<<_ACEOF
12540 #define size_t unsigned int
12548 for ac_header
in $ac_header_list
12550 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12551 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12553 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12554 cat >>confdefs.h
<<_ACEOF
12555 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12568 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12569 if test "x$ac_cv_type_pid_t" = xyes
; then :
12573 cat >>confdefs.h
<<_ACEOF
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12580 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12581 if ${ac_cv_path_SED+:} false
; then :
12582 $as_echo_n "(cached) " >&6
12584 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
12585 for ac_i
in 1 2 3 4 5 6 7; do
12586 ac_script
="$ac_script$as_nl$ac_script"
12588 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
12589 { ac_script
=; unset ac_script
;}
12590 if test -z "$SED"; then
12591 ac_path_SED_found
=false
12592 # Loop through the user's path and test for each of PROGNAME-LIST
12593 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12594 for as_dir
in $PATH
12597 test -z "$as_dir" && as_dir
=.
12598 for ac_prog
in sed gsed
; do
12599 for ac_exec_ext
in '' $ac_executable_extensions; do
12600 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12601 as_fn_executable_p
"$ac_path_SED" ||
continue
12602 # Check for GNU ac_path_SED and select it if it is found.
12603 # Check for GNU $ac_path_SED
12604 case `"$ac_path_SED" --version 2>&1` in
12606 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12609 $as_echo_n 0123456789 >"conftest.in"
12612 cat "conftest.in" "conftest.in" >"conftest.tmp"
12613 mv "conftest.tmp" "conftest.in"
12614 cp "conftest.in" "conftest.nl"
12615 $as_echo '' >> "conftest.nl"
12616 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12617 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12618 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12619 if test $ac_count -gt ${ac_path_SED_max-0}; then
12620 # Best one so far, save it but keep looking for a better one
12621 ac_cv_path_SED
="$ac_path_SED"
12622 ac_path_SED_max
=$ac_count
12624 # 10*(2^10) chars as input seems more than enough
12625 test $ac_count -gt 10 && break
12627 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12630 $ac_path_SED_found && break 3
12635 if test -z "$ac_cv_path_SED"; then
12636 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12639 ac_cv_path_SED
=$SED
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12644 $as_echo "$ac_cv_path_SED" >&6; }
12645 SED
="$ac_cv_path_SED"
12649 # Set the 'development' global.
12650 .
$srcdir/..
/bfd
/development.sh
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12653 $as_echo_n "checking for ANSI C header files... " >&6; }
12654 if ${ac_cv_header_stdc+:} false
; then :
12655 $as_echo_n "(cached) " >&6
12657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12658 /* end confdefs.h. */
12659 #include <stdlib.h>
12660 #include <stdarg.h>
12661 #include <string.h>
12672 if ac_fn_c_try_compile
"$LINENO"; then :
12673 ac_cv_header_stdc
=yes
12675 ac_cv_header_stdc
=no
12677 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12679 if test $ac_cv_header_stdc = yes; then
12680 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12682 /* end confdefs.h. */
12683 #include <string.h>
12686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12687 $EGREP "memchr" >/dev
/null
2>&1; then :
12690 ac_cv_header_stdc
=no
12696 if test $ac_cv_header_stdc = yes; then
12697 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12699 /* end confdefs.h. */
12700 #include <stdlib.h>
12703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12704 $EGREP "free" >/dev
/null
2>&1; then :
12707 ac_cv_header_stdc
=no
12713 if test $ac_cv_header_stdc = yes; then
12714 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12715 if test "$cross_compiling" = yes; then :
12718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12719 /* end confdefs.h. */
12721 #include <stdlib.h>
12722 #if ((' ' & 0x0FF) == 0x020)
12723 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12724 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12726 # define ISLOWER(c) \
12727 (('a' <= (c) && (c) <= 'i') \
12728 || ('j' <= (c) && (c) <= 'r') \
12729 || ('s' <= (c) && (c) <= 'z'))
12730 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12733 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12738 for (i = 0; i < 256; i++)
12739 if (XOR (islower (i), ISLOWER (i))
12740 || toupper (i) != TOUPPER (i))
12745 if ac_fn_c_try_run
"$LINENO"; then :
12748 ac_cv_header_stdc
=no
12750 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12751 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12757 $as_echo "$ac_cv_header_stdc" >&6; }
12758 if test $ac_cv_header_stdc = yes; then
12760 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12764 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12765 # for constant arguments. Useless!
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12767 $as_echo_n "checking for working alloca.h... " >&6; }
12768 if ${ac_cv_working_alloca_h+:} false
; then :
12769 $as_echo_n "(cached) " >&6
12771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12772 /* end confdefs.h. */
12773 #include <alloca.h>
12777 char *p = (char *) alloca (2 * sizeof (int));
12783 if ac_fn_c_try_link
"$LINENO"; then :
12784 ac_cv_working_alloca_h
=yes
12786 ac_cv_working_alloca_h
=no
12788 rm -f core conftest.err conftest.
$ac_objext \
12789 conftest
$ac_exeext conftest.
$ac_ext
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12792 $as_echo "$ac_cv_working_alloca_h" >&6; }
12793 if test $ac_cv_working_alloca_h = yes; then
12795 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12800 $as_echo_n "checking for alloca... " >&6; }
12801 if ${ac_cv_func_alloca_works+:} false
; then :
12802 $as_echo_n "(cached) " >&6
12804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12805 /* end confdefs.h. */
12807 # define alloca __builtin_alloca
12810 # include <malloc.h>
12811 # define alloca _alloca
12813 # ifdef HAVE_ALLOCA_H
12814 # include <alloca.h>
12819 # ifndef alloca /* predefined by HP cc +Olibcalls */
12820 void *alloca (size_t);
12830 char *p = (char *) alloca (1);
12836 if ac_fn_c_try_link
"$LINENO"; then :
12837 ac_cv_func_alloca_works
=yes
12839 ac_cv_func_alloca_works
=no
12841 rm -f core conftest.err conftest.
$ac_objext \
12842 conftest
$ac_exeext conftest.
$ac_ext
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12845 $as_echo "$ac_cv_func_alloca_works" >&6; }
12847 if test $ac_cv_func_alloca_works = yes; then
12849 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12852 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12853 # that cause trouble. Some versions do not even contain alloca or
12854 # contain a buggy version. If you still want to use their alloca,
12855 # use ar to extract alloca.o from them instead of compiling alloca.c.
12857 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
12859 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12863 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12864 if ${ac_cv_os_cray+:} false
; then :
12865 $as_echo_n "(cached) " >&6
12867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12868 /* end confdefs.h. */
12869 #if defined CRAY && ! defined CRAY2
12876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12877 $EGREP "webecray" >/dev
/null
2>&1; then :
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12886 $as_echo "$ac_cv_os_cray" >&6; }
12887 if test $ac_cv_os_cray = yes; then
12888 for ac_func
in _getb67 GETB67 getb67
; do
12889 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12890 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12891 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12893 cat >>confdefs.h
<<_ACEOF
12894 #define CRAY_STACKSEG_END $ac_func
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12904 $as_echo_n "checking stack direction for C alloca... " >&6; }
12905 if ${ac_cv_c_stack_direction+:} false
; then :
12906 $as_echo_n "(cached) " >&6
12908 if test "$cross_compiling" = yes; then :
12909 ac_cv_c_stack_direction
=0
12911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12912 /* end confdefs.h. */
12913 $ac_includes_default
12915 find_stack_direction (int *addr, int depth)
12917 int dir, dummy = 0;
12920 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
12921 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
12922 return dir + dummy;
12926 main (int argc, char **argv)
12928 return find_stack_direction (0, argc + !argv + 20) < 0;
12931 if ac_fn_c_try_run
"$LINENO"; then :
12932 ac_cv_c_stack_direction
=1
12934 ac_cv_c_stack_direction
=-1
12936 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12937 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12942 $as_echo "$ac_cv_c_stack_direction" >&6; }
12943 cat >>confdefs.h
<<_ACEOF
12944 #define STACK_DIRECTION $ac_cv_c_stack_direction
12955 $as_echo "#define USE_WIN32API 1" >>confdefs.h
12957 WIN32APILIBS
="-lws2_32"
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12963 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12964 if ${am_cv_langinfo_codeset+:} false
; then :
12965 $as_echo_n "(cached) " >&6
12967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12968 /* end confdefs.h. */
12969 #include <langinfo.h>
12973 char* cs = nl_langinfo(CODESET);
12978 if ac_fn_c_try_link
"$LINENO"; then :
12979 am_cv_langinfo_codeset
=yes
12981 am_cv_langinfo_codeset
=no
12983 rm -f core conftest.err conftest.
$ac_objext \
12984 conftest
$ac_exeext conftest.
$ac_ext
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12988 $as_echo "$am_cv_langinfo_codeset" >&6; }
12989 if test $am_cv_langinfo_codeset = yes; then
12991 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12996 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
12998 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12999 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13000 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13001 cat >>confdefs.h
<<_ACEOF
13002 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13011 for ac_func
in getpagesize
13013 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13014 if test "x$ac_cv_func_getpagesize" = xyes
; then :
13015 cat >>confdefs.h
<<_ACEOF
13016 #define HAVE_GETPAGESIZE 1
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13023 $as_echo_n "checking for working mmap... " >&6; }
13024 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
13025 $as_echo_n "(cached) " >&6
13027 if test "$cross_compiling" = yes; then :
13028 ac_cv_func_mmap_fixed_mapped
=no
13030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13031 /* end confdefs.h. */
13032 $ac_includes_default
13033 /* malloc might have been renamed as rpl_malloc. */
13036 /* Thanks to Mike Haertel and Jim Avera for this test.
13037 Here is a matrix of mmap possibilities:
13038 mmap private not fixed
13039 mmap private fixed at somewhere currently unmapped
13040 mmap private fixed at somewhere already mapped
13041 mmap shared not fixed
13042 mmap shared fixed at somewhere currently unmapped
13043 mmap shared fixed at somewhere already mapped
13044 For private mappings, we should verify that changes cannot be read()
13045 back from the file, nor mmap's back from the file at a different
13046 address. (There have been systems where private was not correctly
13047 implemented like the infamous i386 svr4.0, and systems where the
13048 VM page cache was not coherent with the file system buffer cache
13049 like early versions of FreeBSD and possibly contemporary NetBSD.)
13050 For shared mappings, we should conversely verify that changes get
13051 propagated back to all the places they're supposed to be.
13053 Grep wants private fixed already mapped.
13054 The main things grep needs to know about mmap are:
13055 * does it exist and is it safe to write into the mmap'd area
13056 * how to use it (BSD variants) */
13059 #include <sys/mman.h>
13061 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13065 /* This mess was copied from the GNU getpagesize.h. */
13066 #ifndef HAVE_GETPAGESIZE
13067 # ifdef _SC_PAGESIZE
13068 # define getpagesize() sysconf(_SC_PAGESIZE)
13069 # else /* no _SC_PAGESIZE */
13070 # ifdef HAVE_SYS_PARAM_H
13071 # include <sys/param.h>
13072 # ifdef EXEC_PAGESIZE
13073 # define getpagesize() EXEC_PAGESIZE
13074 # else /* no EXEC_PAGESIZE */
13076 # define getpagesize() NBPG * CLSIZE
13079 # endif /* no CLSIZE */
13080 # else /* no NBPG */
13082 # define getpagesize() NBPC
13083 # else /* no NBPC */
13085 # define getpagesize() PAGESIZE
13086 # endif /* PAGESIZE */
13087 # endif /* no NBPC */
13088 # endif /* no NBPG */
13089 # endif /* no EXEC_PAGESIZE */
13090 # else /* no HAVE_SYS_PARAM_H */
13091 # define getpagesize() 8192 /* punt totally */
13092 # endif /* no HAVE_SYS_PARAM_H */
13093 # endif /* no _SC_PAGESIZE */
13095 #endif /* no HAVE_GETPAGESIZE */
13100 char *data, *data2, *data3;
13101 const char *cdata2;
13105 pagesize = getpagesize ();
13107 /* First, make a file with some known garbage in it. */
13108 data = (char *) malloc (pagesize);
13111 for (i = 0; i < pagesize; ++i)
13112 *(data + i) = rand ();
13114 fd = creat ("conftest.mmap", 0600);
13117 if (write (fd, data, pagesize) != pagesize)
13121 /* Next, check that the tail of a page is zero-filled. File must have
13122 non-zero length, otherwise we risk SIGBUS for entire page. */
13123 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13127 if (write (fd2, cdata2, 1) != 1)
13129 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13130 if (data2 == MAP_FAILED)
13132 for (i = 0; i < pagesize; ++i)
13136 if (munmap (data2, pagesize))
13139 /* Next, try to mmap the file at a fixed address which already has
13140 something else allocated at it. If we can, also make sure that
13141 we see the same garbage. */
13142 fd = open ("conftest.mmap", O_RDWR);
13145 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13146 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13148 for (i = 0; i < pagesize; ++i)
13149 if (*(data + i) != *(data2 + i))
13152 /* Finally, make sure that changes to the mapped area do not
13153 percolate back to the file as seen by read(). (This is a bug on
13154 some variants of i386 svr4.0.) */
13155 for (i = 0; i < pagesize; ++i)
13156 *(data2 + i) = *(data2 + i) + 1;
13157 data3 = (char *) malloc (pagesize);
13160 if (read (fd, data3, pagesize) != pagesize)
13162 for (i = 0; i < pagesize; ++i)
13163 if (*(data + i) != *(data3 + i))
13169 if ac_fn_c_try_run
"$LINENO"; then :
13170 ac_cv_func_mmap_fixed_mapped
=yes
13172 ac_cv_func_mmap_fixed_mapped
=no
13174 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13175 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13180 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13181 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13183 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13186 rm -f conftest.mmap conftest.txt
13188 for ac_header
in vfork.h
13190 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13191 if test "x$ac_cv_header_vfork_h" = xyes
; then :
13192 cat >>confdefs.h
<<_ACEOF
13193 #define HAVE_VFORK_H 1
13200 for ac_func
in fork vfork
13202 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13203 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13204 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13205 cat >>confdefs.h
<<_ACEOF
13206 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13212 if test "x$ac_cv_func_fork" = xyes
; then
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13214 $as_echo_n "checking for working fork... " >&6; }
13215 if ${ac_cv_func_fork_works+:} false
; then :
13216 $as_echo_n "(cached) " >&6
13218 if test "$cross_compiling" = yes; then :
13219 ac_cv_func_fork_works
=cross
13221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13222 /* end confdefs.h. */
13223 $ac_includes_default
13228 /* By Ruediger Kuhlmann. */
13229 return fork () < 0;
13235 if ac_fn_c_try_run
"$LINENO"; then :
13236 ac_cv_func_fork_works
=yes
13238 ac_cv_func_fork_works
=no
13240 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13241 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13246 $as_echo "$ac_cv_func_fork_works" >&6; }
13249 ac_cv_func_fork_works
=$ac_cv_func_fork
13251 if test "x$ac_cv_func_fork_works" = xcross
; then
13253 *-*-amigaos* |
*-*-msdosdjgpp*)
13254 # Override, as these systems have only a dummy fork() stub
13255 ac_cv_func_fork_works
=no
13258 ac_cv_func_fork_works
=yes
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13262 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13264 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13265 if test "x$ac_cv_func_vfork" = xyes
; then
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13267 $as_echo_n "checking for working vfork... " >&6; }
13268 if ${ac_cv_func_vfork_works+:} false
; then :
13269 $as_echo_n "(cached) " >&6
13271 if test "$cross_compiling" = yes; then :
13272 ac_cv_func_vfork_works
=cross
13274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13275 /* end confdefs.h. */
13276 /* Thanks to Paul Eggert for this test. */
13277 $ac_includes_default
13278 #include <sys/wait.h>
13279 #ifdef HAVE_VFORK_H
13280 # include <vfork.h>
13282 /* On some sparc systems, changes by the child to local and incoming
13283 argument registers are propagated back to the parent. The compiler
13284 is told about this with #include <vfork.h>, but some compilers
13285 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13286 static variable whose address is put into a register that is
13287 clobbered by the vfork. */
13290 sparc_address_test (int arg)
13292 sparc_address_test (arg) int arg;
13295 static pid_t child;
13313 pid_t parent = getpid ();
13316 sparc_address_test (0);
13321 /* Here is another test for sparc vfork register problems. This
13322 test uses lots of local variables, at least as many local
13323 variables as main has allocated so far including compiler
13324 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13325 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13326 reuse the register of parent for one of the local variables,
13327 since it will think that parent can't possibly be used any more
13328 in this routine. Assigning to the local variable will thus
13329 munge parent in the parent process. */
13331 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13332 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13333 /* Convince the compiler that p..p7 are live; otherwise, it might
13334 use the same hardware register for all 8 local variables. */
13335 if (p != p1 || p != p2 || p != p3 || p != p4
13336 || p != p5 || p != p6 || p != p7)
13339 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13340 from child file descriptors. If the child closes a descriptor
13341 before it execs or exits, this munges the parent's descriptor
13342 as well. Test for this by closing stdout in the child. */
13343 _exit(close(fileno(stdout)) != 0);
13348 while (wait(&status) != child)
13351 /* Was there some problem with vforking? */
13354 /* Did the child fail? (This shouldn't happen.) */
13357 /* Did the vfork/compiler bug occur? */
13358 || parent != getpid()
13360 /* Did the file descriptor bug occur? */
13361 || fstat(fileno(stdout), &st) != 0
13366 if ac_fn_c_try_run
"$LINENO"; then :
13367 ac_cv_func_vfork_works
=yes
13369 ac_cv_func_vfork_works
=no
13371 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13372 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13377 $as_echo "$ac_cv_func_vfork_works" >&6; }
13380 if test "x$ac_cv_func_fork_works" = xcross
; then
13381 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13383 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13386 if test "x$ac_cv_func_vfork_works" = xyes
; then
13388 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13392 $as_echo "#define vfork fork" >>confdefs.h
13395 if test "x$ac_cv_func_fork_works" = xyes
; then
13397 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13401 for ac_func
in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
13402 ptrace64 sbrk setns sigaltstack sigprocmask \
13403 setpgid setpgrp getrusage getauxval
13405 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13406 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13407 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13408 cat >>confdefs.h
<<_ACEOF
13409 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13416 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
13418 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
13424 cat >>confdefs.h
<<_ACEOF
13425 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
13429 if test "$cross_compiling" = yes; then :
13430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13431 /* end confdefs.h. */
13432 #include <sys/personality.h>
13437 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
13438 # define ADDR_NO_RANDOMIZE 0x0040000
13440 /* Test the flag could be set and stays set. */
13441 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13442 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13448 if ac_fn_c_try_link
"$LINENO"; then :
13449 have_personality
=true
13451 have_personality
=false
13453 rm -f core conftest.err conftest.
$ac_objext \
13454 conftest
$ac_exeext conftest.
$ac_ext
13456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13457 /* end confdefs.h. */
13458 #include <sys/personality.h>
13463 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
13464 # define ADDR_NO_RANDOMIZE 0x0040000
13466 /* Test the flag could be set and stays set. */
13467 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13468 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13474 if ac_fn_c_try_run
"$LINENO"; then :
13475 have_personality
=true
13477 have_personality
=false
13479 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13480 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13483 if $have_personality
13486 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
13490 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13491 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
13497 cat >>confdefs.h
<<_ACEOF
13498 #define HAVE_DECL_STRSTR $ac_have_decl
13502 # ----------------------- #
13503 # Checks for structures. #
13504 # ----------------------- #
13506 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13507 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
13509 cat >>confdefs.h
<<_ACEOF
13510 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13515 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
13516 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
13518 cat >>confdefs.h
<<_ACEOF
13519 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
13527 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
13528 if ${ac_cv_search_kinfo_getfile+:} false
; then :
13529 $as_echo_n "(cached) " >&6
13531 ac_func_search_save_LIBS
=$LIBS
13532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13533 /* end confdefs.h. */
13535 /* Override any GCC internal prototype to avoid an error.
13536 Use char because int might match the return type of a GCC
13537 builtin and then its argument prototype would still apply. */
13541 char kinfo_getfile ();
13545 return kinfo_getfile ();
13550 for ac_lib
in '' util util-freebsd
; do
13551 if test -z "$ac_lib"; then
13552 ac_res
="none required"
13555 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13557 if ac_fn_c_try_link
"$LINENO"; then :
13558 ac_cv_search_kinfo_getfile
=$ac_res
13560 rm -f core conftest.err conftest.
$ac_objext \
13562 if ${ac_cv_search_kinfo_getfile+:} false
; then :
13566 if ${ac_cv_search_kinfo_getfile+:} false
; then :
13569 ac_cv_search_kinfo_getfile
=no
13571 rm conftest.
$ac_ext
13572 LIBS
=$ac_func_search_save_LIBS
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
13575 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
13576 ac_res
=$ac_cv_search_kinfo_getfile
13577 if test "$ac_res" != no
; then :
13578 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13580 $as_echo "#define HAVE_KINFO_GETFILE 1" >>confdefs.h
13585 # Check for std::thread. This does not work on some platforms, like
13588 ac_cpp
='$CXXCPP $CPPFLAGS'
13589 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13590 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13591 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
13598 ac_cpp
='$CPP $CPPFLAGS'
13599 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13600 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13601 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13605 # We used to check for pthread.h first, but this fails if pthread.h
13606 # requires special compiler flags (e.g. on Tru64 or Sequent).
13607 # It gets checked for in the link test anyway.
13609 # First of all, check if the user has set any of the PTHREAD_LIBS,
13610 # etcetera environment variables, and if threads linking works using
13612 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
13613 ax_pthread_save_CC
="$CC"
13614 ax_pthread_save_CFLAGS
="$CFLAGS"
13615 ax_pthread_save_LIBS
="$LIBS"
13616 if test "x$PTHREAD_CC" != "x"; then :
13619 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
13620 LIBS
="$PTHREAD_LIBS $LIBS"
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
13622 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
13623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13624 /* end confdefs.h. */
13626 /* Override any GCC internal prototype to avoid an error.
13627 Use char because int might match the return type of a GCC
13628 builtin and then its argument prototype would still apply. */
13632 char pthread_join ();
13636 return pthread_join ();
13641 if ac_fn_c_try_link
"$LINENO"; then :
13644 rm -f core conftest.err conftest.
$ac_objext \
13645 conftest
$ac_exeext conftest.
$ac_ext
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
13647 $as_echo "$ax_pthread_ok" >&6; }
13648 if test "x$ax_pthread_ok" = "xno"; then
13652 CC
="$ax_pthread_save_CC"
13653 CFLAGS
="$ax_pthread_save_CFLAGS"
13654 LIBS
="$ax_pthread_save_LIBS"
13657 # We must check for the threads library under a number of different
13658 # names; the ordering is very important because some systems
13659 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
13660 # libraries is broken (non-POSIX).
13662 # Create a list of thread flags to try. Items starting with a "-" are
13663 # C compiler flags, and other items are library names, except for "none"
13664 # which indicates that we try without any flags at all, and "pthread-config"
13665 # which is a program returning the flags for the Pth emulation library.
13667 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
13669 # The ordering *is* (sometimes) important. Some notes on the
13670 # individual items follow:
13672 # pthreads: AIX (must check this before -lpthread)
13673 # none: in case threads are in libc; should be tried before -Kthread and
13674 # other compiler flags to prevent continual compiler warnings
13675 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
13676 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
13677 # (Note: HP C rejects this with "bad form for `-t' option")
13678 # -pthreads: Solaris/gcc (Note: HP C also rejects)
13679 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
13680 # doesn't hurt to check since this sometimes defines pthreads and
13681 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
13682 # is present but should not be used directly; and before -mthreads,
13683 # because the compiler interprets this as "-mt" + "-hreads")
13684 # -mthreads: Mingw32/gcc, Lynx/gcc
13685 # pthread: Linux, etcetera
13686 # --thread-safe: KAI C++
13687 # pthread-config: use pthread-config program (for GNU Pth library)
13693 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
13694 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
13696 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
13701 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
13702 # multi-threading and also sets -lpthread."
13704 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
13709 # IBM z/OS requires a feature-test macro to be defined in order to
13710 # enable POSIX threads at all, so give the user a hint if this is
13711 # not set. (We don't define these ourselves, as they can affect
13712 # other portions of the system API in unpredictable ways.)
13714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13715 /* end confdefs.h. */
13717 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
13718 AX_PTHREAD_ZOS_MISSING
13722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13723 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
13725 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
13733 # On Solaris (at least, for some versions), libc contains stubbed
13734 # (non-functional) versions of the pthreads routines, so link-based
13735 # tests will erroneously succeed. (N.B.: The stubs are missing
13736 # pthread_cleanup_push, or rather a function called by this macro,
13737 # so we could check for that, but who knows whether they'll stub
13738 # that too in a future libc.) So we'll check first for the
13739 # standard Solaris way of linking pthreads (-mt -lpthread).
13741 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
13745 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
13747 if test "x$GCC" = "xyes"; then :
13748 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
13751 # The presence of a feature test macro requesting re-entrant function
13752 # definitions is, on some systems, a strong hint that pthreads support is
13753 # correctly enabled
13756 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
13757 ax_pthread_check_macro
="_REENTRANT"
13761 ax_pthread_check_macro
="_THREAD_SAFE"
13765 ax_pthread_check_macro
="--"
13768 if test "x$ax_pthread_check_macro" = "x--"; then :
13769 ax_pthread_check_cond
=0
13771 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
13774 # Are we compiling with Clang?
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
13777 $as_echo_n "checking whether $CC is Clang... " >&6; }
13778 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
13779 $as_echo_n "(cached) " >&6
13781 ax_cv_PTHREAD_CLANG
=no
13782 # Note that Autoconf sets GCC=yes for Clang as well as GCC
13783 if test "x$GCC" = "xyes"; then
13784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13785 /* end confdefs.h. */
13786 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
13787 # if defined(__clang__) && defined(__llvm__)
13788 AX_PTHREAD_CC_IS_CLANG
13792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13793 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
13794 ax_cv_PTHREAD_CLANG
=yes
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
13802 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
13803 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
13805 ax_pthread_clang_warning
=no
13807 # Clang needs special handling, because older versions handle the -pthread
13808 # option in a rather... idiosyncratic way
13810 if test "x$ax_pthread_clang" = "xyes"; then
13812 # Clang takes -pthread; it has never supported any other flag
13814 # (Note 1: This will need to be revisited if a system that Clang
13815 # supports has POSIX threads in a separate library. This tends not
13816 # to be the way of modern systems, but it's conceivable.)
13818 # (Note 2: On some systems, notably Darwin, -pthread is not needed
13819 # to get POSIX threads support; the API is always present and
13820 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
13821 # -pthread does define _REENTRANT, and while the Darwin headers
13822 # ignore this macro, third-party headers might not.)
13824 PTHREAD_CFLAGS
="-pthread"
13829 # However, older versions of Clang make a point of warning the user
13830 # that, in an invocation where only linking and no compilation is
13831 # taking place, the -pthread option has no effect ("argument unused
13832 # during compilation"). They expect -pthread to be passed in only
13833 # when source code is being compiled.
13835 # Problem is, this is at odds with the way Automake and most other
13836 # C build frameworks function, which is that the same flags used in
13837 # compilation (CFLAGS) are also used in linking. Many systems
13838 # supported by AX_PTHREAD require exactly this for POSIX threads
13839 # support, and in fact it is often not straightforward to specify a
13840 # flag that is used only in the compilation phase and not in
13841 # linking. Such a scenario is extremely rare in practice.
13843 # Even though use of the -pthread flag in linking would only print
13844 # a warning, this can be a nuisance for well-run software projects
13845 # that build with -Werror. So if the active version of Clang has
13846 # this misfeature, we search for an option to squash it.
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
13849 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
13850 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
13851 $as_echo_n "(cached) " >&6
13853 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
13854 # Create an alternate version of $ac_link that compiles and
13855 # links in two steps (.c -> .o, .o -> exe) instead of one
13856 # (.c -> exe), because the warning occurs only in the second
13858 ax_pthread_save_ac_link
="$ac_link"
13859 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
13860 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
13861 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
13862 ax_pthread_save_CFLAGS
="$CFLAGS"
13863 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
13864 if test "x$ax_pthread_try" = "xunknown"; then :
13867 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
13868 ac_link
="$ax_pthread_save_ac_link"
13869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13870 /* end confdefs.h. */
13871 int main(void){return 0;}
13873 if ac_fn_c_try_link
"$LINENO"; then :
13874 ac_link
="$ax_pthread_2step_ac_link"
13875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13876 /* end confdefs.h. */
13877 int main(void){return 0;}
13879 if ac_fn_c_try_link
"$LINENO"; then :
13882 rm -f core conftest.err conftest.
$ac_objext \
13883 conftest
$ac_exeext conftest.
$ac_ext
13886 rm -f core conftest.err conftest.
$ac_objext \
13887 conftest
$ac_exeext conftest.
$ac_ext
13889 ac_link
="$ax_pthread_save_ac_link"
13890 CFLAGS
="$ax_pthread_save_CFLAGS"
13891 if test "x$ax_pthread_try" = "x"; then :
13894 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
13898 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
13900 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
13902 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
13905 fi # $ax_pthread_clang = yes
13907 if test "x$ax_pthread_ok" = "xno"; then
13908 for ax_pthread_try_flag
in $ax_pthread_flags; do
13910 case $ax_pthread_try_flag in
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
13913 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
13918 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
13919 PTHREAD_CFLAGS
="-mt"
13920 PTHREAD_LIBS
="-lpthread"
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
13925 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
13926 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
13930 # Extract the first word of "pthread-config", so it can be a program name with args.
13931 set dummy pthread-config
; ac_word
=$2
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13933 $as_echo_n "checking for $ac_word... " >&6; }
13934 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
13935 $as_echo_n "(cached) " >&6
13937 if test -n "$ax_pthread_config"; then
13938 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
13940 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13941 for as_dir
in $PATH
13944 test -z "$as_dir" && as_dir
=.
13945 for ac_exec_ext
in '' $ac_executable_extensions; do
13946 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13947 ac_cv_prog_ax_pthread_config
="yes"
13948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13955 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
13958 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
13959 if test -n "$ax_pthread_config"; then
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
13961 $as_echo "$ax_pthread_config" >&6; }
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13964 $as_echo "no" >&6; }
13968 if test "x$ax_pthread_config" = "xno"; then :
13971 PTHREAD_CFLAGS
="`pthread-config --cflags`"
13972 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
13977 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
13978 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
13982 ax_pthread_save_CFLAGS
="$CFLAGS"
13983 ax_pthread_save_LIBS
="$LIBS"
13984 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
13985 LIBS
="$PTHREAD_LIBS $LIBS"
13987 # Check for various functions. We must include pthread.h,
13988 # since some functions may be macros. (On the Sequent, we
13989 # need a special flag -Kthread to make this header compile.)
13990 # We check for pthread_join because it is in -lpthread on IRIX
13991 # while pthread_create is in libc. We check for pthread_attr_init
13992 # due to DEC craziness with -lpthreads. We check for
13993 # pthread_cleanup_push because it is one of the few pthread
13994 # functions on Solaris that doesn't have a non-functional libc stub.
13995 # We try pthread_create on general principles.
13997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13998 /* end confdefs.h. */
13999 #include <pthread.h>
14000 # if $ax_pthread_check_cond
14001 # error "$ax_pthread_check_macro must be defined"
14003 static void routine(void *a) { a = 0; }
14004 static void *start_routine(void *a) { return a; }
14008 pthread_t th; pthread_attr_t attr;
14009 pthread_create(&th, 0, start_routine, 0);
14010 pthread_join(th, 0);
14011 pthread_attr_init(&attr);
14012 pthread_cleanup_push(routine, 0);
14013 pthread_cleanup_pop(0) /* ; */
14018 if ac_fn_c_try_link
"$LINENO"; then :
14021 rm -f core conftest.err conftest.
$ac_objext \
14022 conftest
$ac_exeext conftest.
$ac_ext
14024 CFLAGS
="$ax_pthread_save_CFLAGS"
14025 LIBS
="$ax_pthread_save_LIBS"
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14028 $as_echo "$ax_pthread_ok" >&6; }
14029 if test "x$ax_pthread_ok" = "xyes"; then :
14038 # Various other checks:
14039 if test "x$ax_pthread_ok" = "xyes"; then
14040 ax_pthread_save_CFLAGS
="$CFLAGS"
14041 ax_pthread_save_LIBS
="$LIBS"
14042 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
14043 LIBS
="$PTHREAD_LIBS $LIBS"
14045 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14047 $as_echo_n "checking for joinable pthread attribute... " >&6; }
14048 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
14049 $as_echo_n "(cached) " >&6
14051 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
14052 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
14053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14054 /* end confdefs.h. */
14055 #include <pthread.h>
14059 int attr = $ax_pthread_attr; return attr /* ; */
14064 if ac_fn_c_try_link
"$LINENO"; then :
14065 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
14067 rm -f core conftest.err conftest.
$ac_objext \
14068 conftest
$ac_exeext conftest.
$ac_ext
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
14073 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
14074 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
14075 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
14076 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
14078 cat >>confdefs.h
<<_ACEOF
14079 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
14082 ax_pthread_joinable_attr_defined
=yes
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
14087 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
14088 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
14089 $as_echo_n "(cached) " >&6
14091 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
14094 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
14100 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
14101 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
14102 test "x$ax_pthread_special_flags_added" != "xyes"; then :
14103 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
14104 ax_pthread_special_flags_added
=yes
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
14108 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
14109 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
14110 $as_echo_n "(cached) " >&6
14112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14113 /* end confdefs.h. */
14114 #include <pthread.h>
14118 int i = PTHREAD_PRIO_INHERIT;
14123 if ac_fn_c_try_link
"$LINENO"; then :
14124 ax_cv_PTHREAD_PRIO_INHERIT
=yes
14126 ax_cv_PTHREAD_PRIO_INHERIT
=no
14128 rm -f core conftest.err conftest.
$ac_objext \
14129 conftest
$ac_exeext conftest.
$ac_ext
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
14133 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
14134 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
14135 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
14137 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
14139 ax_pthread_prio_inherit_defined
=yes
14143 CFLAGS
="$ax_pthread_save_CFLAGS"
14144 LIBS
="$ax_pthread_save_LIBS"
14146 # More AIX lossage: compile with *_r variant
14147 if test "x$GCC" != "xyes"; then
14151 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
14152 #handle absolute path differently from PATH based program lookup
14155 if as_fn_executable_p
${CC}_r
; then :
14156 PTHREAD_CC
="${CC}_r"
14159 for ac_prog
in ${CC}_r
14161 # Extract the first word of "$ac_prog", so it can be a program name with args.
14162 set dummy
$ac_prog; ac_word
=$2
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14164 $as_echo_n "checking for $ac_word... " >&6; }
14165 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
14166 $as_echo_n "(cached) " >&6
14168 if test -n "$PTHREAD_CC"; then
14169 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
14171 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14172 for as_dir
in $PATH
14175 test -z "$as_dir" && as_dir
=.
14176 for ac_exec_ext
in '' $ac_executable_extensions; do
14177 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14178 ac_cv_prog_PTHREAD_CC
="$ac_prog"
14179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14188 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
14189 if test -n "$PTHREAD_CC"; then
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14191 $as_echo "$PTHREAD_CC" >&6; }
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14194 $as_echo "no" >&6; }
14198 test -n "$PTHREAD_CC" && break
14200 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
14211 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
14217 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14218 if test "x$ax_pthread_ok" = "xyes"; then
14226 ac_cpp
='$CXXCPP $CPPFLAGS'
14227 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14228 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14229 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
14232 if test "$threads" = "yes"; then
14234 LIBS
="$PTHREAD_LIBS $LIBS"
14235 save_CXXFLAGS
="$CXXFLAGS"
14236 CXXFLAGS
="$PTHREAD_CFLAGS $save_CXXFLAGS"
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
14238 $as_echo_n "checking for std::thread... " >&6; }
14239 if ${gdb_cv_cxx_std_thread+:} false
; then :
14240 $as_echo_n "(cached) " >&6
14242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14243 /* end confdefs.h. */
14245 void callback() { }
14249 std::thread t(callback);
14254 if ac_fn_cxx_try_compile
"$LINENO"; then :
14255 gdb_cv_cxx_std_thread
=yes
14257 gdb_cv_cxx_std_thread
=no
14259 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
14262 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
14264 # This check must be here, while LIBS includes any necessary
14265 # threading library.
14266 for ac_func
in pthread_sigmask pthread_setname_np
14268 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14269 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14270 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14271 cat >>confdefs.h
<<_ACEOF
14272 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14280 CXXFLAGS
="$save_CXXFLAGS"
14282 if test "$gdb_cv_cxx_std_thread" = "yes"; then
14284 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
14288 ac_cpp
='$CPP $CPPFLAGS'
14289 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14290 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14291 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
14295 $as_echo_n "checking for sigsetjmp... " >&6; }
14296 if ${gdb_cv_func_sigsetjmp+:} false
; then :
14297 $as_echo_n "(cached) " >&6
14299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14300 /* end confdefs.h. */
14302 #include <setjmp.h>
14307 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
14312 if ac_fn_c_try_compile
"$LINENO"; then :
14313 gdb_cv_func_sigsetjmp
=yes
14315 gdb_cv_func_sigsetjmp
=no
14317 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
14320 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
14321 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
14323 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
14328 # Check whether --with-intel_pt was given.
14329 if test "${with_intel_pt+set}" = set; then :
14330 withval
=$with_intel_pt;
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
14336 $as_echo_n "checking whether to use intel pt... " >&6; }
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
14338 $as_echo "$with_intel_pt" >&6; }
14340 if test "${with_intel_pt}" = no
; then
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
14342 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
14345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14346 /* end confdefs.h. */
14348 #include <linux/perf_event.h>
14349 #ifndef PERF_ATTR_SIZE_VER5
14354 if ac_fn_c_try_cpp
"$LINENO"; then :
14359 rm -f conftest.err conftest.i conftest.
$ac_ext
14360 if test "$perf_event" != yes; then
14361 if test "$with_intel_pt" = yes; then
14362 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
14365 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
14379 acl_save_prefix
="$prefix"
14380 prefix
="$acl_final_prefix"
14381 acl_save_exec_prefix
="$exec_prefix"
14382 exec_prefix
="$acl_final_exec_prefix"
14384 eval additional_includedir
=\"$includedir\"
14385 eval additional_libdir
=\"$libdir\"
14387 exec_prefix
="$acl_save_exec_prefix"
14388 prefix
="$acl_save_prefix"
14391 # Check whether --with-libipt-prefix was given.
14392 if test "${with_libipt_prefix+set}" = set; then :
14393 withval
=$with_libipt_prefix;
14394 if test "X$withval" = "Xno"; then
14397 if test "X$withval" = "X"; then
14399 acl_save_prefix
="$prefix"
14400 prefix
="$acl_final_prefix"
14401 acl_save_exec_prefix
="$exec_prefix"
14402 exec_prefix
="$acl_final_exec_prefix"
14404 eval additional_includedir
=\"$includedir\"
14405 eval additional_libdir
=\"$libdir\"
14407 exec_prefix
="$acl_save_exec_prefix"
14408 prefix
="$acl_save_prefix"
14411 additional_includedir
="$withval/include"
14412 additional_libdir
="$withval/lib"
14419 # Check whether --with-libipt-type was given.
14420 if test "${with_libipt_type+set}" = set; then :
14421 withval
=$with_libipt_type; with_libipt_type
=$withval
14423 with_libipt_type
=auto
14426 lib_type
=`eval echo \$with_libipt_type`
14433 names_already_handled
=
14434 names_next_round
='ipt '
14435 while test -n "$names_next_round"; do
14436 names_this_round
="$names_next_round"
14438 for name
in $names_this_round; do
14440 for n
in $names_already_handled; do
14441 if test "$n" = "$name"; then
14442 already_handled
=yes
14446 if test -z "$already_handled"; then
14447 names_already_handled
="$names_already_handled $name"
14448 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14449 eval value
=\"\
$HAVE_LIB$uppername\"
14450 if test -n "$value"; then
14451 if test "$value" = yes; then
14452 eval value
=\"\
$LIB$uppername\"
14453 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
14454 eval value
=\"\
$LTLIB$uppername\"
14455 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
14464 if test $use_additional = yes; then
14465 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
14466 found_dir
="$additional_libdir"
14467 found_so
="$additional_libdir/lib$name.$shlibext"
14468 if test -f "$additional_libdir/lib$name.la"; then
14469 found_la
="$additional_libdir/lib$name.la"
14471 elif test x
$lib_type != xshared
; then
14472 if test -f "$additional_libdir/lib$name.$libext"; then
14473 found_dir
="$additional_libdir"
14474 found_a
="$additional_libdir/lib$name.$libext"
14475 if test -f "$additional_libdir/lib$name.la"; then
14476 found_la
="$additional_libdir/lib$name.la"
14481 if test "X$found_dir" = "X"; then
14482 for x
in $LDFLAGS $LTLIBIPT; do
14484 acl_save_prefix
="$prefix"
14485 prefix
="$acl_final_prefix"
14486 acl_save_exec_prefix
="$exec_prefix"
14487 exec_prefix
="$acl_final_exec_prefix"
14489 exec_prefix
="$acl_save_exec_prefix"
14490 prefix
="$acl_save_prefix"
14494 dir
=`echo "X$x" | sed -e 's/^X-L//'`
14495 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
14497 found_so
="$dir/lib$name.$shlibext"
14498 if test -f "$dir/lib$name.la"; then
14499 found_la
="$dir/lib$name.la"
14501 elif test x
$lib_type != xshared
; then
14502 if test -f "$dir/lib$name.$libext"; then
14504 found_a
="$dir/lib$name.$libext"
14505 if test -f "$dir/lib$name.la"; then
14506 found_la
="$dir/lib$name.la"
14512 if test "X$found_dir" != "X"; then
14517 if test "X$found_dir" != "X"; then
14518 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
14519 if test "X$found_so" != "X"; then
14520 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
14521 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14524 for x
in $ltrpathdirs; do
14525 if test "X$x" = "X$found_dir"; then
14530 if test -z "$haveit"; then
14531 ltrpathdirs
="$ltrpathdirs $found_dir"
14533 if test "$hardcode_direct" = yes; then
14534 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14536 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
14537 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14539 for x
in $rpathdirs; do
14540 if test "X$x" = "X$found_dir"; then
14545 if test -z "$haveit"; then
14546 rpathdirs
="$rpathdirs $found_dir"
14550 for x
in $LDFLAGS $LIBIPT; do
14552 acl_save_prefix
="$prefix"
14553 prefix
="$acl_final_prefix"
14554 acl_save_exec_prefix
="$exec_prefix"
14555 exec_prefix
="$acl_final_exec_prefix"
14557 exec_prefix
="$acl_save_exec_prefix"
14558 prefix
="$acl_save_prefix"
14560 if test "X$x" = "X-L$found_dir"; then
14565 if test -z "$haveit"; then
14566 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
14568 if test "$hardcode_minus_L" != no
; then
14569 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14571 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
14577 if test "X$found_a" != "X"; then
14578 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
14580 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
14583 additional_includedir
=
14584 case "$found_dir" in
14586 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14587 additional_includedir
="$basedir/include"
14590 if test "X$additional_includedir" != "X"; then
14591 if test "X$additional_includedir" != "X/usr/include"; then
14593 if test "X$additional_includedir" = "X/usr/local/include"; then
14594 if test -n "$GCC"; then
14596 linux
*) haveit
=yes;;
14600 if test -z "$haveit"; then
14601 for x
in $CPPFLAGS $INCIPT; do
14603 acl_save_prefix
="$prefix"
14604 prefix
="$acl_final_prefix"
14605 acl_save_exec_prefix
="$exec_prefix"
14606 exec_prefix
="$acl_final_exec_prefix"
14608 exec_prefix
="$acl_save_exec_prefix"
14609 prefix
="$acl_save_prefix"
14611 if test "X$x" = "X-I$additional_includedir"; then
14616 if test -z "$haveit"; then
14617 if test -d "$additional_includedir"; then
14618 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
14624 if test -n "$found_la"; then
14625 save_libdir
="$libdir"
14626 case "$found_la" in
14627 */* |
*\\*) .
"$found_la" ;;
14628 *) .
"./$found_la" ;;
14630 libdir
="$save_libdir"
14631 for dep
in $dependency_libs; do
14634 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
14635 if test "X$additional_libdir" != "X/usr/lib"; then
14637 if test "X$additional_libdir" = "X/usr/local/lib"; then
14638 if test -n "$GCC"; then
14640 linux
*) haveit
=yes;;
14644 if test -z "$haveit"; then
14646 for x
in $LDFLAGS $LIBIPT; do
14648 acl_save_prefix
="$prefix"
14649 prefix
="$acl_final_prefix"
14650 acl_save_exec_prefix
="$exec_prefix"
14651 exec_prefix
="$acl_final_exec_prefix"
14653 exec_prefix
="$acl_save_exec_prefix"
14654 prefix
="$acl_save_prefix"
14656 if test "X$x" = "X-L$additional_libdir"; then
14661 if test -z "$haveit"; then
14662 if test -d "$additional_libdir"; then
14663 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
14667 for x
in $LDFLAGS $LTLIBIPT; do
14669 acl_save_prefix
="$prefix"
14670 prefix
="$acl_final_prefix"
14671 acl_save_exec_prefix
="$exec_prefix"
14672 exec_prefix
="$acl_final_exec_prefix"
14674 exec_prefix
="$acl_save_exec_prefix"
14675 prefix
="$acl_save_prefix"
14677 if test "X$x" = "X-L$additional_libdir"; then
14682 if test -z "$haveit"; then
14683 if test -d "$additional_libdir"; then
14684 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
14691 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
14692 if test "$enable_rpath" != no
; then
14694 for x
in $rpathdirs; do
14695 if test "X$x" = "X$dir"; then
14700 if test -z "$haveit"; then
14701 rpathdirs
="$rpathdirs $dir"
14704 for x
in $ltrpathdirs; do
14705 if test "X$x" = "X$dir"; then
14710 if test -z "$haveit"; then
14711 ltrpathdirs
="$ltrpathdirs $dir"
14716 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14719 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14722 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
14723 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
14729 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
14730 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
14731 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
14733 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
14734 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
14741 if test "X$rpathdirs" != "X"; then
14742 if test -n "$hardcode_libdir_separator"; then
14744 for found_dir
in $rpathdirs; do
14745 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14747 acl_save_libdir
="$libdir"
14749 eval flag
=\"$hardcode_libdir_flag_spec\"
14750 libdir
="$acl_save_libdir"
14751 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
14753 for found_dir
in $rpathdirs; do
14754 acl_save_libdir
="$libdir"
14755 libdir
="$found_dir"
14756 eval flag
=\"$hardcode_libdir_flag_spec\"
14757 libdir
="$acl_save_libdir"
14758 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
14762 if test "X$ltrpathdirs" != "X"; then
14763 for found_dir
in $ltrpathdirs; do
14764 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
14769 ac_save_CPPFLAGS
="$CPPFLAGS"
14771 for element
in $INCIPT; do
14773 for x
in $CPPFLAGS; do
14775 acl_save_prefix
="$prefix"
14776 prefix
="$acl_final_prefix"
14777 acl_save_exec_prefix
="$exec_prefix"
14778 exec_prefix
="$acl_final_exec_prefix"
14780 exec_prefix
="$acl_save_exec_prefix"
14781 prefix
="$acl_save_prefix"
14783 if test "X$x" = "X$element"; then
14788 if test -z "$haveit"; then
14789 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
14795 $as_echo_n "checking for libipt... " >&6; }
14796 if ${ac_cv_libipt+:} false
; then :
14797 $as_echo_n "(cached) " >&6
14800 ac_save_LIBS
="$LIBS"
14801 LIBS
="$LIBS $LIBIPT"
14802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14803 /* end confdefs.h. */
14804 #include "intel-pt.h"
14808 pt_insn_alloc_decoder (0);
14813 if ac_fn_c_try_link
"$LINENO"; then :
14818 rm -f core conftest.err conftest.
$ac_objext \
14819 conftest
$ac_exeext conftest.
$ac_ext
14820 LIBS
="$ac_save_LIBS"
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
14824 $as_echo "$ac_cv_libipt" >&6; }
14825 if test "$ac_cv_libipt" = yes; then
14828 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
14831 $as_echo_n "checking how to link with libipt... " >&6; }
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
14833 $as_echo "$LIBIPT" >&6; }
14836 CPPFLAGS
="$ac_save_CPPFLAGS"
14846 if test "$HAVE_LIBIPT" != yes; then
14847 if test "$with_intel_pt" = yes; then
14848 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
14851 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
14855 LIBS
="$LIBS $LIBIPT"
14856 for ac_func
in pt_insn_event
14858 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
14859 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
14860 cat >>confdefs.h
<<_ACEOF
14861 #define HAVE_PT_INSN_EVENT 1
14867 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
14869 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
14871 cat >>confdefs.h
<<_ACEOF
14872 #define HAVE_STRUCT_PT_INSN_ENABLED 1
14877 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
14879 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
14881 cat >>confdefs.h
<<_ACEOF
14882 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
14892 if test "$ac_cv_header_sys_procfs_h" = yes; then
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
14894 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
14895 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
14896 $as_echo_n "(cached) " >&6
14898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14899 /* end confdefs.h. */
14902 /* Needed for new procfs interface on sparc-solaris. */
14903 #define _STRUCTURED_PROC 1
14904 #include <sys/procfs.h>
14913 if ac_fn_c_try_compile
"$LINENO"; then :
14914 bfd_cv_have_sys_procfs_type_gregset_t
=yes
14916 bfd_cv_have_sys_procfs_type_gregset_t
=no
14919 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14922 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
14924 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
14928 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
14931 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
14932 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
14933 $as_echo_n "(cached) " >&6
14935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14936 /* end confdefs.h. */
14939 /* Needed for new procfs interface on sparc-solaris. */
14940 #define _STRUCTURED_PROC 1
14941 #include <sys/procfs.h>
14950 if ac_fn_c_try_compile
"$LINENO"; then :
14951 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
14953 bfd_cv_have_sys_procfs_type_fpregset_t
=no
14956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14959 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
14961 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
14965 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
14968 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
14969 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
14970 $as_echo_n "(cached) " >&6
14972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14973 /* end confdefs.h. */
14976 /* Needed for new procfs interface on sparc-solaris. */
14977 #define _STRUCTURED_PROC 1
14978 #include <sys/procfs.h>
14987 if ac_fn_c_try_compile
"$LINENO"; then :
14988 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
14990 bfd_cv_have_sys_procfs_type_prgregset_t
=no
14993 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14996 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
14998 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
15002 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
15005 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
15006 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
15007 $as_echo_n "(cached) " >&6
15009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15010 /* end confdefs.h. */
15013 /* Needed for new procfs interface on sparc-solaris. */
15014 #define _STRUCTURED_PROC 1
15015 #include <sys/procfs.h>
15024 if ac_fn_c_try_compile
"$LINENO"; then :
15025 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
15027 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
15030 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15033 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
15035 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
15039 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
15042 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
15043 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
15044 $as_echo_n "(cached) " >&6
15046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15047 /* end confdefs.h. */
15050 /* Needed for new procfs interface on sparc-solaris. */
15051 #define _STRUCTURED_PROC 1
15052 #include <sys/procfs.h>
15061 if ac_fn_c_try_compile
"$LINENO"; then :
15062 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
15064 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
15067 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15070 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
15072 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
15076 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
15079 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
15080 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
15081 $as_echo_n "(cached) " >&6
15083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15084 /* end confdefs.h. */
15087 /* Needed for new procfs interface on sparc-solaris. */
15088 #define _STRUCTURED_PROC 1
15089 #include <sys/procfs.h>
15098 if ac_fn_c_try_compile
"$LINENO"; then :
15099 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
15101 bfd_cv_have_sys_procfs_type_lwpid_t
=no
15104 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15107 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
15109 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
15113 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
15116 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
15117 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
15118 $as_echo_n "(cached) " >&6
15120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15121 /* end confdefs.h. */
15124 /* Needed for new procfs interface on sparc-solaris. */
15125 #define _STRUCTURED_PROC 1
15126 #include <sys/procfs.h>
15135 if ac_fn_c_try_compile
"$LINENO"; then :
15136 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
15138 bfd_cv_have_sys_procfs_type_psaddr_t
=no
15141 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15144 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
15146 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
15150 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
15153 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
15154 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
15155 $as_echo_n "(cached) " >&6
15157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15158 /* end confdefs.h. */
15161 /* Needed for new procfs interface on sparc-solaris. */
15162 #define _STRUCTURED_PROC 1
15163 #include <sys/procfs.h>
15167 elf_fpregset_t avar
15172 if ac_fn_c_try_compile
"$LINENO"; then :
15173 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
15175 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
15178 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15181 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
15183 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
15187 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
15192 # Check the return and argument types of ptrace.
15195 for ac_header
in sys
/ptrace.h ptrace.h
15197 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15198 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15199 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
15200 cat >>confdefs.h
<<_ACEOF
15201 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15209 gdb_ptrace_headers
='
15210 #include <sys/types.h>
15211 #if HAVE_SYS_PTRACE_H
15212 # include <sys/ptrace.h>
15215 # include <unistd.h>
15219 # Check return type. Varargs (used on GNU/Linux) conflict with the
15220 # empty argument list, so check for that explicitly.
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
15222 $as_echo_n "checking return type of ptrace... " >&6; }
15223 if ${gdb_cv_func_ptrace_ret+:} false
; then :
15224 $as_echo_n "(cached) " >&6
15226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15227 /* end confdefs.h. */
15228 $gdb_ptrace_headers
15232 extern long ptrace (enum __ptrace_request, ...);
15237 if ac_fn_c_try_compile
"$LINENO"; then :
15238 gdb_cv_func_ptrace_ret
='long'
15240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15241 /* end confdefs.h. */
15242 $gdb_ptrace_headers
15246 extern int ptrace ();
15251 if ac_fn_c_try_compile
"$LINENO"; then :
15252 gdb_cv_func_ptrace_ret
='int'
15254 gdb_cv_func_ptrace_ret
='long'
15256 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15258 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
15261 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
15263 cat >>confdefs.h
<<_ACEOF
15264 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
15267 # Check argument types.
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
15269 $as_echo_n "checking types of arguments for ptrace... " >&6; }
15270 if ${gdb_cv_func_ptrace_args+:} false
; then :
15271 $as_echo_n "(cached) " >&6
15274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15275 /* end confdefs.h. */
15276 $gdb_ptrace_headers
15280 extern long ptrace (enum __ptrace_request, ...);
15285 if ac_fn_c_try_compile
"$LINENO"; then :
15286 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
15289 for gdb_arg1
in 'int' 'long'; do
15290 for gdb_arg2
in 'pid_t' 'int' 'long'; do
15291 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
15292 for gdb_arg4
in 'int' 'long' 'void *'; do
15293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15294 /* end confdefs.h. */
15295 $gdb_ptrace_headers
15300 extern $gdb_cv_func_ptrace_ret
15301 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
15307 if ac_fn_c_try_compile
"$LINENO"; then :
15308 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
15311 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15312 for gdb_arg5
in 'int *' 'int' 'long'; do
15313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15314 /* end confdefs.h. */
15315 $gdb_ptrace_headers
15320 extern $gdb_cv_func_ptrace_ret
15321 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
15327 if ac_fn_c_try_compile
"$LINENO"; then :
15329 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
15332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15338 # Provide a safe default value.
15339 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
15342 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
15345 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
15346 ac_save_IFS
=$IFS; IFS
=','
15347 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
15351 cat >>confdefs.h
<<_ACEOF
15352 #define PTRACE_TYPE_ARG1 $1
15356 cat >>confdefs.h
<<_ACEOF
15357 #define PTRACE_TYPE_ARG3 $3
15361 cat >>confdefs.h
<<_ACEOF
15362 #define PTRACE_TYPE_ARG4 $4
15365 if test -n "$5"; then
15367 cat >>confdefs.h
<<_ACEOF
15368 #define PTRACE_TYPE_ARG5 $5
15374 if test "$cross_compiling" = no
; then
15375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
15376 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
15377 if ${ac_cv_func_setpgrp_void+:} false
; then :
15378 $as_echo_n "(cached) " >&6
15380 if test "$cross_compiling" = yes; then :
15381 as_fn_error $?
"cannot check setpgrp when cross compiling" "$LINENO" 5
15383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15384 /* end confdefs.h. */
15385 $ac_includes_default
15389 /* If this system has a BSD-style setpgrp which takes arguments,
15390 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
15391 exit successfully. */
15392 return setpgrp (1,1) != -1;
15397 if ac_fn_c_try_run
"$LINENO"; then :
15398 ac_cv_func_setpgrp_void
=no
15400 ac_cv_func_setpgrp_void
=yes
15402 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15403 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
15408 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
15409 if test $ac_cv_func_setpgrp_void = yes; then
15411 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
15417 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
15418 if ${ac_cv_func_setpgrp_void+:} false
; then :
15419 $as_echo_n "(cached) " >&6
15421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15422 /* end confdefs.h. */
15424 #include <unistd.h>
15430 if (setpgrp(1,1) == -1)
15439 if ac_fn_c_try_compile
"$LINENO"; then :
15440 ac_cv_func_setpgrp_void
=no
15442 ac_cv_func_setpgrp_void
=yes
15444 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
15447 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
15448 if test "$ac_cv_func_setpgrp_void" = yes; then
15449 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
15454 # Assume we'll default to using the included libiberty regex.
15455 gdb_use_included_regex
=yes
15457 # However, if the system regex is GNU regex, then default to *not*
15458 # using the included regex.
15459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
15460 $as_echo_n "checking for GNU regex... " >&6; }
15461 if ${gdb_cv_have_gnu_regex+:} false
; then :
15462 $as_echo_n "(cached) " >&6
15464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15465 /* end confdefs.h. */
15466 #include <gnu-versions.h>
15470 #define REGEX_INTERFACE_VERSION 1
15471 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
15472 # error "Version mismatch"
15478 if ac_fn_c_try_compile
"$LINENO"; then :
15479 gdb_cv_have_gnu_regex
=yes
15481 gdb_cv_have_gnu_regex
=no
15483 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
15486 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
15487 if test "$gdb_cv_have_gnu_regex" = yes; then
15488 gdb_use_included_regex
=no
15492 # Check whether --with-included-regex was given.
15493 if test "${with_included_regex+set}" = set; then :
15494 withval
=$with_included_regex; gdb_with_regex
=$withval
15496 gdb_with_regex
=$gdb_use_included_regex
15499 if test "$gdb_with_regex" = yes; then
15501 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
15505 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
15506 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
15507 #include <sys/proc.h>
15510 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes
; then :
15512 cat >>confdefs.h
<<_ACEOF
15513 #define HAVE_STRUCT_THREAD_TD_PCB 1
15520 # See if <sys/lwp.h> defines `struct lwp`.
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
15522 $as_echo_n "checking for struct lwp... " >&6; }
15523 if ${gdb_cv_struct_lwp+:} false
; then :
15524 $as_echo_n "(cached) " >&6
15526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15527 /* end confdefs.h. */
15528 #include <sys/param.h>
15530 #include <sys/lwp.h>
15539 if ac_fn_c_try_compile
"$LINENO"; then :
15540 gdb_cv_struct_lwp
=yes
15542 gdb_cv_struct_lwp
=no
15544 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
15547 $as_echo "$gdb_cv_struct_lwp" >&6; }
15548 if test "$gdb_cv_struct_lwp" = yes; then
15550 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
15554 # See if <machine/reg.h> degines `struct reg'.
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
15556 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
15557 if ${gdb_cv_struct_reg+:} false
; then :
15558 $as_echo_n "(cached) " >&6
15560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15561 /* end confdefs.h. */
15562 #include <sys/types.h>
15563 #include <machine/reg.h>
15572 if ac_fn_c_try_compile
"$LINENO"; then :
15573 gdb_cv_struct_reg
=yes
15575 gdb_cv_struct_reg
=no
15577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
15580 $as_echo "$gdb_cv_struct_reg" >&6; }
15581 if test "$gdb_cv_struct_reg" = yes; then
15583 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
15587 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
15588 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
15589 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
15590 #include <machine/reg.h>
15592 if test "x$ac_cv_member_struct_reg_r_fs" = xyes
; then :
15594 cat >>confdefs.h
<<_ACEOF
15595 #define HAVE_STRUCT_REG_R_FS 1
15600 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
15601 #include <machine/reg.h>
15603 if test "x$ac_cv_member_struct_reg_r_gs" = xyes
; then :
15605 cat >>confdefs.h
<<_ACEOF
15606 #define HAVE_STRUCT_REG_R_GS 1
15613 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
15615 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
15616 if ${gdb_cv_have_ptrace_getregs+:} false
; then :
15617 $as_echo_n "(cached) " >&6
15619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15620 /* end confdefs.h. */
15621 #include <sys/ptrace.h>
15630 if ac_fn_c_try_compile
"$LINENO"; then :
15631 gdb_cv_have_ptrace_getregs
=yes
15633 gdb_cv_have_ptrace_getregs
=no
15635 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
15639 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
15640 if test "$gdb_cv_have_ptrace_getregs" = yes; then
15642 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
15646 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
15648 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
15649 if ${gdb_cv_have_ptrace_getfpxregs+:} false
; then :
15650 $as_echo_n "(cached) " >&6
15652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15653 /* end confdefs.h. */
15654 #include <sys/ptrace.h>
15663 if ac_fn_c_try_compile
"$LINENO"; then :
15664 gdb_cv_have_ptrace_getfpxregs
=yes
15666 gdb_cv_have_ptrace_getfpxregs
=no
15668 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
15672 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
15673 if test "$gdb_cv_have_ptrace_getfpxregs" = yes; then
15675 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
15679 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
15681 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
15682 if ${gdb_cv_have_pt_getdbregs+:} false
; then :
15683 $as_echo_n "(cached) " >&6
15685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15686 /* end confdefs.h. */
15687 #include <sys/types.h>
15688 #include <sys/ptrace.h>
15697 if ac_fn_c_try_compile
"$LINENO"; then :
15698 gdb_cv_have_pt_getdbregs
=yes
15700 gdb_cv_have_pt_getdbregs
=no
15702 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
15706 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
15707 if test "$gdb_cv_have_pt_getdbregs" = yes; then
15709 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
15713 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
15715 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
15716 if ${gdb_cv_have_pt_getxmmregs+:} false
; then :
15717 $as_echo_n "(cached) " >&6
15719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15720 /* end confdefs.h. */
15721 #include <sys/types.h>
15722 #include <sys/ptrace.h>
15731 if ac_fn_c_try_compile
"$LINENO"; then :
15732 gdb_cv_have_pt_getxmmregs
=yes
15734 gdb_cv_have_pt_getxmmregs
=no
15736 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
15740 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
15741 if test "$gdb_cv_have_pt_getxmmregs" = yes; then
15743 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
15747 # See if <sys/ptrace.h> supports LWP names on FreeBSD
15748 # Older FreeBSD versions don't have the pl_tdname member of
15749 # `struct ptrace_lwpinfo'.
15750 ac_fn_c_check_member
"$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
15752 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes
; then :
15754 cat >>confdefs.h
<<_ACEOF
15755 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
15762 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
15763 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
15765 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>
15767 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes
; then :
15769 cat >>confdefs.h
<<_ACEOF
15770 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
15777 # Check if the compiler supports the `long long' type.
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
15780 $as_echo_n "checking for long long support in compiler... " >&6; }
15781 if ${gdb_cv_c_long_long+:} false
; then :
15782 $as_echo_n "(cached) " >&6
15784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15785 /* end confdefs.h. */
15786 extern long long foo;
15790 switch (foo & 2) { case 0: return 1; }
15795 if ac_fn_c_try_compile
"$LINENO"; then :
15796 gdb_cv_c_long_long
=yes
15798 gdb_cv_c_long_long
=no
15800 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
15803 $as_echo "$gdb_cv_c_long_long" >&6; }
15804 if test "$gdb_cv_c_long_long" != yes; then
15805 # libdecnumber requires long long.
15806 as_fn_error $?
"Compiler must support long long for GDB." "$LINENO" 5
15809 # Check if the compiler and runtime support printing long longs.
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
15812 $as_echo_n "checking for long long support in printf... " >&6; }
15813 if ${gdb_cv_printf_has_long_long+:} false
; then :
15814 $as_echo_n "(cached) " >&6
15816 if test "$cross_compiling" = yes; then :
15817 gdb_cv_printf_has_long_long
=no
15819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15820 /* end confdefs.h. */
15821 $ac_includes_default
15827 l = (l << 16) + 0x0123;
15828 l = (l << 16) + 0x4567;
15829 l = (l << 16) + 0x89ab;
15830 l = (l << 16) + 0xcdef;
15831 sprintf (buf, "0x%016llx", l);
15832 return (strcmp ("0x0123456789abcdef", buf));
15837 if ac_fn_c_try_run
"$LINENO"; then :
15838 gdb_cv_printf_has_long_long
=yes
15840 gdb_cv_printf_has_long_long
=no
15842 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15843 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
15848 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
15849 if test "$gdb_cv_printf_has_long_long" = yes; then
15851 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
15855 # Check if the compiler and runtime support printing decfloats.
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
15858 $as_echo_n "checking for decfloat support in printf... " >&6; }
15859 if ${gdb_cv_printf_has_decfloat+:} false
; then :
15860 $as_echo_n "(cached) " >&6
15862 if test "$cross_compiling" = yes; then :
15863 gdb_cv_printf_has_decfloat
=no
15865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15866 /* end confdefs.h. */
15867 $ac_includes_default
15872 _Decimal32 d32 = 1.2345df;
15873 _Decimal64 d64 = 1.2345dd;
15874 _Decimal128 d128 = 1.2345dl;
15875 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
15876 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
15881 if ac_fn_c_try_run
"$LINENO"; then :
15882 gdb_cv_printf_has_decfloat
=yes
15884 gdb_cv_printf_has_decfloat
=no
15886 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15887 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
15892 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
15893 if test "$gdb_cv_printf_has_decfloat" = yes; then
15895 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
15899 # Check if the compiler supports the `long double' type. We can't use
15900 # AC_C_LONG_DOUBLE because that one does additional checks on the
15901 # constants defined in <float.h> that fail on some systems,
15902 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
15905 $as_echo_n "checking for long double support in compiler... " >&6; }
15906 if ${gdb_cv_c_long_double+:} false
; then :
15907 $as_echo_n "(cached) " >&6
15909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15910 /* end confdefs.h. */
15913 if ac_fn_c_try_compile
"$LINENO"; then :
15914 gdb_cv_c_long_double
=yes
15916 gdb_cv_c_long_double
=no
15918 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
15921 $as_echo "$gdb_cv_c_long_double" >&6; }
15922 if test "$gdb_cv_c_long_double" = yes; then
15924 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
15928 # Check if the compiler and runtime support printing long doubles.
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
15931 $as_echo_n "checking for long double support in printf... " >&6; }
15932 if ${gdb_cv_printf_has_long_double+:} false
; then :
15933 $as_echo_n "(cached) " >&6
15935 if test "$cross_compiling" = yes; then :
15936 gdb_cv_printf_has_long_double
=no
15938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15939 /* end confdefs.h. */
15940 $ac_includes_default
15945 long double f = 3.141592653;
15946 sprintf (buf, "%Lg", f);
15947 return (strncmp ("3.14159", buf, 7));
15952 if ac_fn_c_try_run
"$LINENO"; then :
15953 gdb_cv_printf_has_long_double
=yes
15955 gdb_cv_printf_has_long_double
=no
15957 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15958 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
15963 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
15964 if test "$gdb_cv_printf_has_long_double" = yes; then
15966 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
15970 # Check if the compiler and runtime support scanning long doubles.
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
15973 $as_echo_n "checking for long double support in scanf... " >&6; }
15974 if ${gdb_cv_scanf_has_long_double+:} false
; then :
15975 $as_echo_n "(cached) " >&6
15977 if test "$cross_compiling" = yes; then :
15978 gdb_cv_scanf_has_long_double
=no
15980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15981 /* end confdefs.h. */
15986 char *buf = "3.141592653";
15988 sscanf (buf, "%Lg", &f);
15989 return !(f > 3.14159 && f < 3.14160);
15994 if ac_fn_c_try_run
"$LINENO"; then :
15995 gdb_cv_scanf_has_long_double
=yes
15997 gdb_cv_scanf_has_long_double
=no
15999 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16000 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
16005 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
16006 if test "$gdb_cv_scanf_has_long_double" = yes; then
16008 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
16015 $as_echo_n "checking for -bbigtoc option... " >&6; }
16016 if ${gdb_cv_bigtoc+:} false
; then :
16017 $as_echo_n "(cached) " >&6
16020 SAVE_LDFLAGS
=$LDFLAGS
16023 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
16024 *) gdb_cv_bigtoc
=-bbigtoc ;;
16027 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
16028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16029 /* end confdefs.h. */
16039 if ac_fn_c_try_link
"$LINENO"; then :
16044 rm -f core conftest.err conftest.
$ac_objext \
16045 conftest
$ac_exeext conftest.
$ac_ext
16046 LDFLAGS
="${SAVE_LDFLAGS}"
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
16050 $as_echo "$gdb_cv_bigtoc" >&6; }
16051 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
16056 $as_echo_n "checking for the dynamic export flag... " >&6; }
16058 if test "${gdb_native}" = yes; then
16059 # The dynamically loaded libthread_db needs access to symbols in the gdb
16060 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
16061 # may not be supported there.
16062 old_LDFLAGS
="$LDFLAGS"
16063 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
16064 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
16065 LDFLAGS
="$LDFLAGS $RDYNAMIC"
16066 if test "${have_libpython}" = no
; then
16067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16068 /* end confdefs.h. */
16078 if ac_fn_c_try_link
"$LINENO"; then :
16081 rm -f core conftest.err conftest.
$ac_objext \
16082 conftest
$ac_exeext conftest.
$ac_ext
16084 # Workaround http://bugs.python.org/issue4434 where static
16085 # libpythonX.Y.a would get its symbols required for
16086 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
16087 # Problem does not happen for the recommended libpythonX.Y.so linkage.
16089 # Note the workaround for Python
16090 # http://bugs.python.org/issue10112 earlier has removed
16091 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
16092 # here too, as otherwise it'd make this -Wl,--dynamic-list test
16094 old_CFLAGS
="$CFLAGS"
16095 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
16097 LIBS
="$LIBS $PYTHON_LIBS"
16098 old_CPPFLAGS
="$CPPFLAGS"
16099 CPPFLAGS
="$CPPFLAGS $PYTHON_CPPFLAGS"
16100 if test "$cross_compiling" = yes; then :
16103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16104 /* end confdefs.h. */
16105 #include "Python.h"
16111 err = PyRun_SimpleString ("import itertools\n");
16113 return err == 0 ? 0 : 1;
16118 if ac_fn_c_try_run
"$LINENO"; then :
16121 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16122 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16126 CFLAGS
="$old_CFLAGS"
16127 CPPFLAGS
="$old_CPPFLAGS"
16129 LDFLAGS
="$old_LDFLAGS"
16131 if $dynamic_list; then
16132 found
="-Wl,--dynamic-list"
16133 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
16136 RDYNAMIC
="-rdynamic"
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
16140 $as_echo "$found" >&6; }
16143 if test "${build}" = "${host}" -a "${host}" = "${target}" ; then
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
16147 $as_echo_n "checking for AiX thread debugging library... " >&6; }
16148 if ${gdb_cv_have_aix_thread_debug+:} false
; then :
16149 $as_echo_n "(cached) " >&6
16151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16152 /* end confdefs.h. */
16153 #include <sys/pthdebug.h>
16157 #ifndef PTHDB_VERSION_3
16164 if ac_fn_c_try_compile
"$LINENO"; then :
16165 gdb_cv_have_aix_thread_debug
=yes
16167 gdb_cv_have_aix_thread_debug
=no
16169 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
16173 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
16174 if test "$gdb_cv_have_aix_thread_debug" = yes; then
16175 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
16176 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
16177 LIBS
="$LIBS -lpthdebug"
16179 # Older versions of AIX do not provide the declaration for
16180 # the getthrds function (it appears that it was introduced
16182 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
16184 if test "x$ac_cv_have_decl_getthrds" = xyes
; then :
16190 cat >>confdefs.h
<<_ACEOF
16191 #define HAVE_DECL_GETTHRDS $ac_have_decl
16200 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
16202 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
16203 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false
; then :
16204 $as_echo_n "(cached) " >&6
16206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16207 /* end confdefs.h. */
16208 #include <thread_db.h>
16212 int i = TD_NOTALLOC;
16217 if ac_fn_c_try_compile
"$LINENO"; then :
16218 gdb_cv_thread_db_h_has_td_notalloc
=yes
16220 gdb_cv_thread_db_h_has_td_notalloc
=no
16223 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
16227 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
16229 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
16230 if ${gdb_cv_thread_db_h_has_td_version+:} false
; then :
16231 $as_echo_n "(cached) " >&6
16233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16234 /* end confdefs.h. */
16235 #include <thread_db.h>
16239 int i = TD_VERSION;
16244 if ac_fn_c_try_compile
"$LINENO"; then :
16245 gdb_cv_thread_db_h_has_td_version
=yes
16247 gdb_cv_thread_db_h_has_td_version
=no
16250 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
16254 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
16256 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
16257 if ${gdb_cv_thread_db_h_has_td_notls+:} false
; then :
16258 $as_echo_n "(cached) " >&6
16260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16261 /* end confdefs.h. */
16262 #include <thread_db.h>
16271 if ac_fn_c_try_compile
"$LINENO"; then :
16272 gdb_cv_thread_db_h_has_td_notls
=yes
16274 gdb_cv_thread_db_h_has_td_notls
=no
16277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
16281 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
16283 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
16285 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
16288 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
16290 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
16293 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
16295 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
16308 cat >>confdefs.h
<<_ACEOF
16309 #define GDBINIT "$gdbinit"
16314 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
16315 # except that the argument to --with-sysroot is optional.
16316 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
16317 if test "x$with_sysroot" = xyes
; then
16318 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
16321 # Check whether --with-sysroot was given.
16322 if test "${with_sysroot+set}" = set; then :
16323 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
16325 TARGET_SYSTEM_ROOT
=
16329 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16330 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16331 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
16332 ac_define_dir
=`eval echo $ac_define_dir`
16334 cat >>confdefs.h
<<_ACEOF
16335 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
16341 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16342 if test "x$prefix" = xNONE
; then
16343 test_prefix
=/usr
/local
16345 test_prefix
=$prefix
16348 test_prefix
=$exec_prefix
16351 case ${ac_define_dir} in
16352 "${test_prefix}"|
"${test_prefix}/"*|\
16353 '${exec_prefix}'|
'${exec_prefix}/'*)
16358 cat >>confdefs.h
<<_ACEOF
16359 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
16366 # Check whether --with-system-gdbinit was given.
16367 if test "${with_system_gdbinit+set}" = set; then :
16368 withval
=$with_system_gdbinit;
16369 SYSTEM_GDBINIT
=$withval
16375 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16376 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16377 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
16378 ac_define_dir
=`eval echo $ac_define_dir`
16380 cat >>confdefs.h
<<_ACEOF
16381 #define SYSTEM_GDBINIT "$ac_define_dir"
16387 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16388 if test "x$prefix" = xNONE
; then
16389 test_prefix
=/usr
/local
16391 test_prefix
=$prefix
16394 test_prefix
=$exec_prefix
16397 case ${ac_define_dir} in
16398 "${test_prefix}"|
"${test_prefix}/"*|\
16399 '${exec_prefix}'|
'${exec_prefix}/'*)
16404 cat >>confdefs.h
<<_ACEOF
16405 #define SYSTEM_GDBINIT_RELOCATABLE $value
16412 # Check whether --with-system-gdbinit-dir was given.
16413 if test "${with_system_gdbinit_dir+set}" = set; then :
16414 withval
=$with_system_gdbinit_dir;
16415 SYSTEM_GDBINIT_DIR
=$withval
16417 SYSTEM_GDBINIT_DIR
=
16421 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16422 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16423 ac_define_dir
=`eval echo $SYSTEM_GDBINIT_DIR`
16424 ac_define_dir
=`eval echo $ac_define_dir`
16426 cat >>confdefs.h
<<_ACEOF
16427 #define SYSTEM_GDBINIT_DIR "$ac_define_dir"
16433 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16434 if test "x$prefix" = xNONE
; then
16435 test_prefix
=/usr
/local
16437 test_prefix
=$prefix
16440 test_prefix
=$exec_prefix
16443 case ${ac_define_dir} in
16444 "${test_prefix}"|
"${test_prefix}/"*|\
16445 '${exec_prefix}'|
'${exec_prefix}/'*)
16450 cat >>confdefs.h
<<_ACEOF
16451 #define SYSTEM_GDBINIT_DIR_RELOCATABLE $value
16458 # Check whether --enable-werror was given.
16459 if test "${enable_werror+set}" = set; then :
16460 enableval
=$enable_werror; case "${enableval}" in
16461 yes | y
) ERROR_ON_WARNING
="yes" ;;
16462 no | n
) ERROR_ON_WARNING
="no" ;;
16463 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16468 # Enable -Werror by default when using gcc. Turn it off for releases.
16469 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
16470 ERROR_ON_WARNING
=yes
16474 if test "${ERROR_ON_WARNING}" = yes ; then
16475 WERROR_CFLAGS
="-Werror"
16478 # The options we'll try to enable.
16479 build_warnings
="-Wall -Wpointer-arith \
16480 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
16481 -Wno-switch -Wno-char-subscripts \
16482 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
16483 -Wno-sign-compare -Wno-error=maybe-uninitialized \
16484 -Wno-mismatched-tags \
16485 -Wno-error=deprecated-register \
16486 -Wsuggest-override \
16487 -Wimplicit-fallthrough=3 \
16488 -Wduplicated-cond \
16490 -Wdeprecated-copy \
16491 -Wdeprecated-copy-dtor \
16493 -Wmissing-declarations \
16494 -Wmissing-prototypes \
16495 -Wstrict-null-sentinel \
16500 # Enable -Wno-format by default when using gcc on mingw since many
16501 # GCC versions complain about %I64.
16502 build_warnings
="$build_warnings -Wno-format" ;;
16504 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
16505 # doesn't understand.
16506 build_warnings
="$build_warnings -Wno-unknown-pragmas"
16507 # Solaris 11 <unistd.h> marks vfork deprecated.
16508 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
16510 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
16511 # but there's a special case for this below.
16512 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
16515 # Check whether --enable-build-warnings was given.
16516 if test "${enable_build_warnings+set}" = set; then :
16517 enableval
=$enable_build_warnings; case "${enableval}" in
16519 no
) build_warnings
="-w";;
16520 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16521 build_warnings
="${build_warnings} ${t}";;
16522 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16523 build_warnings
="${t} ${build_warnings}";;
16524 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16526 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
16527 echo "Setting compiler warning flags = $build_warnings" 6>&1
16530 # Check whether --enable-gdb-build-warnings was given.
16531 if test "${enable_gdb_build_warnings+set}" = set; then :
16532 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
16534 no
) build_warnings
="-w";;
16535 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16536 build_warnings
="${build_warnings} ${t}";;
16537 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16538 build_warnings
="${t} ${build_warnings}";;
16539 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16541 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
16542 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
16546 # The set of warnings supported by a C++ compiler is not the same as
16547 # of the C compiler.
16549 ac_cpp
='$CXXCPP $CPPFLAGS'
16550 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16551 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16552 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
16556 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
16559 $as_echo_n "checking compiler warning flags... " >&6; }
16560 # Separate out the -Werror flag as some files just cannot be
16561 # compiled with it enabled.
16562 for w
in ${build_warnings}; do
16563 # GCC does not complain about -Wno-unknown-warning. Invert
16564 # and test -Wunknown-warning instead.
16567 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
16568 -Wformat-nonliteral)
16569 # gcc requires -Wformat before -Wformat-nonliteral
16570 # will work, so stick them together.
16579 -Werr*) WERROR_CFLAGS
=-Werror ;;
16581 # Check whether GCC accepts it.
16582 saved_CFLAGS
="$CFLAGS"
16583 CFLAGS
="$CFLAGS -Werror $wtest"
16584 saved_CXXFLAGS
="$CXXFLAGS"
16585 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
16586 if test "x$w" = "x-Wunused-variable"; then
16587 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
16588 # fixed in GCC 4.9. This test is derived from the gdb
16589 # source code that triggered this bug in GCC.
16590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16591 /* end confdefs.h. */
16592 struct scoped_restore_base {};
16593 struct scoped_restore_tmpl : public scoped_restore_base {
16594 ~scoped_restore_tmpl() {}
16599 const scoped_restore_base &b = scoped_restore_tmpl();
16604 if ac_fn_cxx_try_compile
"$LINENO"; then :
16605 WARN_CFLAGS
="${WARN_CFLAGS} $w"
16607 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16610 /* end confdefs.h. */
16620 if ac_fn_cxx_try_compile
"$LINENO"; then :
16621 WARN_CFLAGS
="${WARN_CFLAGS} $w"
16623 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16625 CFLAGS
="$saved_CFLAGS"
16626 CXXFLAGS
="$saved_CXXFLAGS"
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
16630 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
16636 ac_cpp='$CPP $CPPFLAGS'
16637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16643 # Check whether --enable-ubsan was given.
16644 if test "${enable_ubsan+set}" = set; then :
16645 enableval=$enable_ubsan;
16650 if test "x
$enable_ubsan" = xauto; then
16651 if $development; then
16656 ac_cpp='$CXXCPP $CPPFLAGS'
16657 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16658 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16659 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16661 if test "x
$enable_ubsan" = xyes; then
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
-fsanitize=undefined is accepted
" >&5
16663 $as_echo_n "checking whether
-fsanitize=undefined is accepted...
" >&6; }
16664 saved_CXXFLAGS="$CXXFLAGS"
16665 CXXFLAGS="$CXXFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
16666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16667 /* end confdefs.h. */
16677 if ac_fn_cxx_try_link "$LINENO"; then :
16682 rm -f core conftest.err conftest.$ac_objext \
16683 conftest$ac_exeext conftest.$ac_ext
16684 CXXFLAGS="$saved_CXXFLAGS"
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $enable_ubsan" >&5
16686 $as_echo "$enable_ubsan" >&6; }
16687 if test "x
$enable_ubsan" = xyes; then
16688 WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
16689 CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined
"
16693 ac_cpp='$CPP $CPPFLAGS'
16694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16700 # In the Cygwin environment, we need some additional flags.
16701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
16702 $as_echo_n "checking
for cygwin...
" >&6; }
16703 if ${gdb_cv_os_cygwin+:} false; then :
16704 $as_echo_n "(cached
) " >&6
16706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16707 /* end confdefs.h. */
16709 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
16713 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
16714 $EGREP "^lose$
" >/dev/null 2>&1; then :
16715 gdb_cv_os_cygwin=yes
16717 gdb_cv_os_cygwin=no
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
16723 $as_echo "$gdb_cv_os_cygwin" >&6; }
16726 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
16728 *go32* ) SER_HARDWIRE=ser-go32.o ;;
16729 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
16730 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
16731 *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o
" ;;
16735 # libreadline needs libuser32.a in a cygwin environment
16737 if test x"$gdb_cv_os_cygwin" = xyes; then
16738 WIN32LIBS="-luser32"
16739 case "${target}" in
16740 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
16745 # The ser-tcp.c module requires sockets.
16746 # Note that WIN32APILIBS is set by GDB_AC_COMMON.
16747 WIN32LIBS="$WIN32LIBS $WIN32APILIBS"
16749 # Add ELF support to GDB, but only if BFD includes ELF support.
16752 OLD_LDFLAGS=$LDFLAGS
16754 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
16755 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
16756 # always want our bfd.
16757 CFLAGS="-I${srcdir}/..
/include
-I..
/bfd
-I${srcdir}/..
/bfd
$CFLAGS"
16758 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
16759 LDFLAGS="-L..
/bfd
-L..
/libiberty
$ZLIBDIR $LDFLAGS"
16760 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
16761 LIBS="-lbfd -liberty -lz $intl $LIBS"
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ELF support
in BFD
" >&5
16763 $as_echo_n "checking
for ELF support
in BFD...
" >&6; }
16764 if ${gdb_cv_var_elf+:} false; then :
16765 $as_echo_n "(cached
) " >&6
16767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16768 /* end confdefs.h. */
16769 #include <stdlib.h>
16771 #include "elf-bfd.h
"
16776 return bfd_get_elf_phdr_upper_bound (NULL);
16781 if ac_fn_c_try_link "$LINENO"; then :
16786 rm -f core conftest.err conftest.$ac_objext \
16787 conftest$ac_exeext conftest.$ac_ext
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_var_elf" >&5
16790 $as_echo "$gdb_cv_var_elf" >&6; }
16792 LDFLAGS=$OLD_LDFLAGS
16794 if test "$gdb_cv_var_elf" = yes; then
16795 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o
"
16797 $as_echo "#define HAVE_ELF 1" >>confdefs.h
16799 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
16800 if test "$plugins" = "yes"; then
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16802 $as_echo_n "checking for library containing dlopen... " >&6; }
16803 if ${ac_cv_search_dlopen+:} false
; then :
16804 $as_echo_n "(cached) " >&6
16806 ac_func_search_save_LIBS
=$LIBS
16807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16808 /* end confdefs.h. */
16810 /* Override any GCC internal prototype to avoid an error.
16811 Use char because int might match the return type of a GCC
16812 builtin and then its argument prototype would still apply. */
16825 for ac_lib
in '' dl
; do
16826 if test -z "$ac_lib"; then
16827 ac_res
="none required"
16830 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
16832 if ac_fn_c_try_link
"$LINENO"; then :
16833 ac_cv_search_dlopen
=$ac_res
16835 rm -f core conftest.err conftest.
$ac_objext \
16837 if ${ac_cv_search_dlopen+:} false
; then :
16841 if ${ac_cv_search_dlopen+:} false
; then :
16844 ac_cv_search_dlopen
=no
16846 rm conftest.
$ac_ext
16847 LIBS
=$ac_func_search_save_LIBS
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16850 $as_echo "$ac_cv_search_dlopen" >&6; }
16851 ac_res
=$ac_cv_search_dlopen
16852 if test "$ac_res" != no
; then :
16853 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
16860 # Add macho support to GDB, but only if BFD includes it.
16863 OLD_LDFLAGS
=$LDFLAGS
16865 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
16866 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
16867 # always want our bfd.
16868 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
16869 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
16870 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
16871 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
16872 LIBS
="-lbfd -liberty -lz $intl $LIBS"
16873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
16874 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
16875 if ${gdb_cv_var_macho+:} false
; then :
16876 $as_echo_n "(cached) " >&6
16878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16879 /* end confdefs.h. */
16880 #include <stdlib.h>
16882 #include "mach-o.h"
16887 return bfd_mach_o_lookup_command (NULL, 0, NULL);
16892 if ac_fn_c_try_link
"$LINENO"; then :
16893 gdb_cv_var_macho
=yes
16895 gdb_cv_var_macho
=no
16897 rm -f core conftest.err conftest.
$ac_objext \
16898 conftest
$ac_exeext conftest.
$ac_ext
16900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
16901 $as_echo "$gdb_cv_var_macho" >&6; }
16903 LDFLAGS
=$OLD_LDFLAGS
16905 if test "$gdb_cv_var_macho" = yes; then
16906 CONFIG_OBS
="$CONFIG_OBS machoread.o"
16909 # Add any host-specific objects to GDB.
16910 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
16912 # If building on ELF, look for lzma support for embedded compressed debug info.
16913 if test "$gdb_cv_var_elf" = yes; then
16915 # Check whether --with-lzma was given.
16916 if test "${with_lzma+set}" = set; then :
16917 withval
=$with_lzma;
16922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
16923 $as_echo_n "checking whether to use lzma... " >&6; }
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
16925 $as_echo "$with_lzma" >&6; }
16927 if test "${with_lzma}" != no
; then
16938 acl_save_prefix
="$prefix"
16939 prefix
="$acl_final_prefix"
16940 acl_save_exec_prefix
="$exec_prefix"
16941 exec_prefix
="$acl_final_exec_prefix"
16943 eval additional_includedir
=\"$includedir\"
16944 eval additional_libdir
=\"$libdir\"
16946 exec_prefix
="$acl_save_exec_prefix"
16947 prefix
="$acl_save_prefix"
16950 # Check whether --with-liblzma-prefix was given.
16951 if test "${with_liblzma_prefix+set}" = set; then :
16952 withval
=$with_liblzma_prefix;
16953 if test "X$withval" = "Xno"; then
16956 if test "X$withval" = "X"; then
16958 acl_save_prefix
="$prefix"
16959 prefix
="$acl_final_prefix"
16960 acl_save_exec_prefix
="$exec_prefix"
16961 exec_prefix
="$acl_final_exec_prefix"
16963 eval additional_includedir
=\"$includedir\"
16964 eval additional_libdir
=\"$libdir\"
16966 exec_prefix
="$acl_save_exec_prefix"
16967 prefix
="$acl_save_prefix"
16970 additional_includedir
="$withval/include"
16971 additional_libdir
="$withval/lib"
16978 # Check whether --with-liblzma-type was given.
16979 if test "${with_liblzma_type+set}" = set; then :
16980 withval
=$with_liblzma_type; with_liblzma_type
=$withval
16982 with_liblzma_type
=auto
16985 lib_type
=`eval echo \$with_liblzma_type`
16992 names_already_handled
=
16993 names_next_round
='lzma '
16994 while test -n "$names_next_round"; do
16995 names_this_round
="$names_next_round"
16997 for name
in $names_this_round; do
16999 for n
in $names_already_handled; do
17000 if test "$n" = "$name"; then
17001 already_handled
=yes
17005 if test -z "$already_handled"; then
17006 names_already_handled
="$names_already_handled $name"
17007 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17008 eval value
=\"\
$HAVE_LIB$uppername\"
17009 if test -n "$value"; then
17010 if test "$value" = yes; then
17011 eval value
=\"\
$LIB$uppername\"
17012 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
17013 eval value
=\"\
$LTLIB$uppername\"
17014 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
17023 if test $use_additional = yes; then
17024 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
17025 found_dir
="$additional_libdir"
17026 found_so
="$additional_libdir/lib$name.$shlibext"
17027 if test -f "$additional_libdir/lib$name.la"; then
17028 found_la
="$additional_libdir/lib$name.la"
17030 elif test x
$lib_type != xshared
; then
17031 if test -f "$additional_libdir/lib$name.$libext"; then
17032 found_dir
="$additional_libdir"
17033 found_a
="$additional_libdir/lib$name.$libext"
17034 if test -f "$additional_libdir/lib$name.la"; then
17035 found_la
="$additional_libdir/lib$name.la"
17040 if test "X$found_dir" = "X"; then
17041 for x
in $LDFLAGS $LTLIBLZMA; do
17043 acl_save_prefix
="$prefix"
17044 prefix
="$acl_final_prefix"
17045 acl_save_exec_prefix
="$exec_prefix"
17046 exec_prefix
="$acl_final_exec_prefix"
17048 exec_prefix
="$acl_save_exec_prefix"
17049 prefix
="$acl_save_prefix"
17053 dir
=`echo "X$x" | sed -e 's/^X-L//'`
17054 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
17056 found_so
="$dir/lib$name.$shlibext"
17057 if test -f "$dir/lib$name.la"; then
17058 found_la
="$dir/lib$name.la"
17060 elif test x
$lib_type != xshared
; then
17061 if test -f "$dir/lib$name.$libext"; then
17063 found_a
="$dir/lib$name.$libext"
17064 if test -f "$dir/lib$name.la"; then
17065 found_la
="$dir/lib$name.la"
17071 if test "X$found_dir" != "X"; then
17076 if test "X$found_dir" != "X"; then
17077 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
17078 if test "X$found_so" != "X"; then
17079 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
17080 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17083 for x
in $ltrpathdirs; do
17084 if test "X$x" = "X$found_dir"; then
17089 if test -z "$haveit"; then
17090 ltrpathdirs
="$ltrpathdirs $found_dir"
17092 if test "$hardcode_direct" = yes; then
17093 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17095 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
17096 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17098 for x
in $rpathdirs; do
17099 if test "X$x" = "X$found_dir"; then
17104 if test -z "$haveit"; then
17105 rpathdirs
="$rpathdirs $found_dir"
17109 for x
in $LDFLAGS $LIBLZMA; do
17111 acl_save_prefix
="$prefix"
17112 prefix
="$acl_final_prefix"
17113 acl_save_exec_prefix
="$exec_prefix"
17114 exec_prefix
="$acl_final_exec_prefix"
17116 exec_prefix
="$acl_save_exec_prefix"
17117 prefix
="$acl_save_prefix"
17119 if test "X$x" = "X-L$found_dir"; then
17124 if test -z "$haveit"; then
17125 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
17127 if test "$hardcode_minus_L" != no
; then
17128 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17130 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
17136 if test "X$found_a" != "X"; then
17137 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
17139 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
17142 additional_includedir
=
17143 case "$found_dir" in
17145 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17146 additional_includedir
="$basedir/include"
17149 if test "X$additional_includedir" != "X"; then
17150 if test "X$additional_includedir" != "X/usr/include"; then
17152 if test "X$additional_includedir" = "X/usr/local/include"; then
17153 if test -n "$GCC"; then
17155 linux
*) haveit
=yes;;
17159 if test -z "$haveit"; then
17160 for x
in $CPPFLAGS $INCLZMA; do
17162 acl_save_prefix
="$prefix"
17163 prefix
="$acl_final_prefix"
17164 acl_save_exec_prefix
="$exec_prefix"
17165 exec_prefix
="$acl_final_exec_prefix"
17167 exec_prefix
="$acl_save_exec_prefix"
17168 prefix
="$acl_save_prefix"
17170 if test "X$x" = "X-I$additional_includedir"; then
17175 if test -z "$haveit"; then
17176 if test -d "$additional_includedir"; then
17177 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
17183 if test -n "$found_la"; then
17184 save_libdir
="$libdir"
17185 case "$found_la" in
17186 */* |
*\\*) .
"$found_la" ;;
17187 *) .
"./$found_la" ;;
17189 libdir
="$save_libdir"
17190 for dep
in $dependency_libs; do
17193 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
17194 if test "X$additional_libdir" != "X/usr/lib"; then
17196 if test "X$additional_libdir" = "X/usr/local/lib"; then
17197 if test -n "$GCC"; then
17199 linux
*) haveit
=yes;;
17203 if test -z "$haveit"; then
17205 for x
in $LDFLAGS $LIBLZMA; do
17207 acl_save_prefix
="$prefix"
17208 prefix
="$acl_final_prefix"
17209 acl_save_exec_prefix
="$exec_prefix"
17210 exec_prefix
="$acl_final_exec_prefix"
17212 exec_prefix
="$acl_save_exec_prefix"
17213 prefix
="$acl_save_prefix"
17215 if test "X$x" = "X-L$additional_libdir"; then
17220 if test -z "$haveit"; then
17221 if test -d "$additional_libdir"; then
17222 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
17226 for x
in $LDFLAGS $LTLIBLZMA; do
17228 acl_save_prefix
="$prefix"
17229 prefix
="$acl_final_prefix"
17230 acl_save_exec_prefix
="$exec_prefix"
17231 exec_prefix
="$acl_final_exec_prefix"
17233 exec_prefix
="$acl_save_exec_prefix"
17234 prefix
="$acl_save_prefix"
17236 if test "X$x" = "X-L$additional_libdir"; then
17241 if test -z "$haveit"; then
17242 if test -d "$additional_libdir"; then
17243 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
17250 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
17251 if test "$enable_rpath" != no
; then
17253 for x
in $rpathdirs; do
17254 if test "X$x" = "X$dir"; then
17259 if test -z "$haveit"; then
17260 rpathdirs
="$rpathdirs $dir"
17263 for x
in $ltrpathdirs; do
17264 if test "X$x" = "X$dir"; then
17269 if test -z "$haveit"; then
17270 ltrpathdirs
="$ltrpathdirs $dir"
17275 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17278 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17281 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
17282 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
17288 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
17289 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
17290 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
17292 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l:lib$name.$libext"
17293 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l:lib$name.$libext"
17300 if test "X$rpathdirs" != "X"; then
17301 if test -n "$hardcode_libdir_separator"; then
17303 for found_dir
in $rpathdirs; do
17304 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17306 acl_save_libdir
="$libdir"
17308 eval flag
=\"$hardcode_libdir_flag_spec\"
17309 libdir
="$acl_save_libdir"
17310 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
17312 for found_dir
in $rpathdirs; do
17313 acl_save_libdir
="$libdir"
17314 libdir
="$found_dir"
17315 eval flag
=\"$hardcode_libdir_flag_spec\"
17316 libdir
="$acl_save_libdir"
17317 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
17321 if test "X$ltrpathdirs" != "X"; then
17322 for found_dir
in $ltrpathdirs; do
17323 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
17328 ac_save_CPPFLAGS
="$CPPFLAGS"
17330 for element
in $INCLZMA; do
17332 for x
in $CPPFLAGS; do
17334 acl_save_prefix
="$prefix"
17335 prefix
="$acl_final_prefix"
17336 acl_save_exec_prefix
="$exec_prefix"
17337 exec_prefix
="$acl_final_exec_prefix"
17339 exec_prefix
="$acl_save_exec_prefix"
17340 prefix
="$acl_save_prefix"
17342 if test "X$x" = "X$element"; then
17347 if test -z "$haveit"; then
17348 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
17354 $as_echo_n "checking for liblzma... " >&6; }
17355 if ${ac_cv_liblzma+:} false
; then :
17356 $as_echo_n "(cached) " >&6
17359 ac_save_LIBS
="$LIBS"
17360 LIBS
="$LIBS $LIBLZMA"
17361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17362 /* end confdefs.h. */
17367 lzma_index_iter iter;
17368 lzma_index_iter_init (&iter, 0);
17369 lzma_mf_is_supported (LZMA_MF_HC3);
17374 if ac_fn_c_try_link
"$LINENO"; then :
17379 rm -f core conftest.err conftest.
$ac_objext \
17380 conftest
$ac_exeext conftest.
$ac_ext
17381 LIBS
="$ac_save_LIBS"
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
17385 $as_echo "$ac_cv_liblzma" >&6; }
17386 if test "$ac_cv_liblzma" = yes; then
17389 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
17392 $as_echo_n "checking how to link with liblzma... " >&6; }
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
17394 $as_echo "$LIBLZMA" >&6; }
17397 CPPFLAGS
="$ac_save_CPPFLAGS"
17407 if test "$HAVE_LIBLZMA" != yes; then
17408 if test "$with_lzma" = yes; then
17409 as_fn_error $?
"missing liblzma for --with-lzma" "$LINENO" 5
17415 LIBGUI
="../libgui/src/libgui.a"
17416 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
17425 *-*-cygwin* |
*-*-mingw* )
17434 if test "${enable_gdbtk}" = "yes"; then
17436 # Gdbtk must have an absolute path to srcdir in order to run
17437 # properly when not installed.
17440 GDBTK_SRC_DIR
=`pwd`
17445 # Ok, lets find the tcl configuration
17446 # First, look for one uninstalled.
17447 # the alternative search directory is invoked by --with-tcl
17450 if test x
"${no_tcl}" = x
; then
17451 # we reset no_tcl in case something fails here
17454 # Check whether --with-tcl was given.
17455 if test "${with_tcl+set}" = set; then :
17456 withval
=$with_tcl; with_tclconfig
=${withval}
17459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
17460 $as_echo_n "checking for Tcl configuration... " >&6; }
17461 if ${ac_cv_c_tclconfig+:} false
; then :
17462 $as_echo_n "(cached) " >&6
17466 # First check to see if --with-tcl was specified.
17468 *-*-cygwin*) platDir
="win" ;;
17469 *) platDir
="unix" ;;
17471 if test x
"${with_tclconfig}" != x
; then
17472 if test -f "${with_tclconfig}/tclConfig.sh" ; then
17473 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
17475 as_fn_error $?
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
17479 # then check for a private Tcl installation
17480 if test x
"${ac_cv_c_tclconfig}" = x
; then
17483 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17484 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
17485 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
17487 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17488 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
17489 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
17491 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17492 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
17493 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
17494 if test -f "$i/$platDir/tclConfig.sh" ; then
17495 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
17501 # on Darwin, check in Framework installation locations
17502 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
17503 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
17504 `ls -d /Library/Frameworks 2>/dev/null` \
17505 `ls -d /Network/Library/Frameworks 2>/dev/null` \
17506 `ls -d /System/Library/Frameworks 2>/dev/null` \
17508 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
17509 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
17515 # check in a few common install locations
17516 if test x
"${ac_cv_c_tclconfig}" = x
; then
17517 for i
in `ls -d ${libdir} 2>/dev/null` \
17518 `ls -d ${exec_prefix}/lib 2>/dev/null` \
17519 `ls -d ${prefix}/lib 2>/dev/null` \
17520 `ls -d /usr/local/lib 2>/dev/null` \
17521 `ls -d /usr/contrib/lib 2>/dev/null` \
17522 `ls -d /usr/lib 2>/dev/null` \
17524 if test -f "$i/tclConfig.sh" ; then
17525 ac_cv_c_tclconfig
=`(cd $i; pwd)`
17531 # check in a few other private locations
17532 if test x
"${ac_cv_c_tclconfig}" = x
; then
17535 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17536 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
17537 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
17538 if test -f "$i/$platDir/tclConfig.sh" ; then
17539 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
17548 if test x
"${ac_cv_c_tclconfig}" = x
; then
17549 TCL_BIN_DIR
="# no Tcl configs found"
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
17551 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
17554 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
17555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
17556 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
17561 # If $no_tk is nonempty, then we can't do Tk, and there is no
17562 # point to doing Tcl.
17565 # Ok, lets find the tk configuration
17566 # First, look for one uninstalled.
17567 # the alternative search directory is invoked by --with-tk
17570 if test x
"${no_tk}" = x
; then
17571 # we reset no_tk in case something fails here
17574 # Check whether --with-tk was given.
17575 if test "${with_tk+set}" = set; then :
17576 withval
=$with_tk; with_tkconfig
=${withval}
17579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
17580 $as_echo_n "checking for Tk configuration... " >&6; }
17581 if ${ac_cv_c_tkconfig+:} false
; then :
17582 $as_echo_n "(cached) " >&6
17586 # First check to see if --with-tkconfig was specified.
17587 if test x
"${with_tkconfig}" != x
; then
17588 if test -f "${with_tkconfig}/tkConfig.sh" ; then
17589 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
17591 as_fn_error $?
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
17595 # then check for a private Tk library
17597 *-*-cygwin*) platDir
="win" ;;
17598 *) platDir
="unix" ;;
17600 if test x
"${ac_cv_c_tkconfig}" = x
; then
17603 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17604 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
17605 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
17607 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17608 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
17609 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
17611 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17612 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
17613 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
17614 if test -f "$i/$platDir/tkConfig.sh" ; then
17615 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
17621 # on Darwin, check in Framework installation locations
17622 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
17623 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
17624 `ls -d /Library/Frameworks 2>/dev/null` \
17625 `ls -d /Network/Library/Frameworks 2>/dev/null` \
17626 `ls -d /System/Library/Frameworks 2>/dev/null` \
17628 if test -f "$i/Tk.framework/tkConfig.sh" ; then
17629 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
17635 # check in a few common install locations
17636 if test x
"${ac_cv_c_tkconfig}" = x
; then
17637 for i
in `ls -d ${libdir} 2>/dev/null` \
17638 `ls -d ${exec_prefix}/lib 2>/dev/null` \
17639 `ls -d ${prefix}/lib 2>/dev/null` \
17640 `ls -d /usr/local/lib 2>/dev/null` \
17641 `ls -d /usr/contrib/lib 2>/dev/null` \
17642 `ls -d /usr/lib 2>/dev/null` \
17644 if test -f "$i/tkConfig.sh" ; then
17645 ac_cv_c_tkconfig
=`(cd $i; pwd)`
17650 # check in a few other private locations
17651 if test x
"${ac_cv_c_tkconfig}" = x
; then
17654 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17655 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
17656 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
17657 if test -f "$i/$platDir/tkConfig.sh" ; then
17658 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
17667 if test x
"${ac_cv_c_tkconfig}" = x
; then
17668 TK_BIN_DIR
="# no Tk configs found"
17669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
17670 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
17673 TK_BIN_DIR
=${ac_cv_c_tkconfig}
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
17675 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
17680 if test -z "${no_tcl}" -a -z "${no_tk}"; then
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
17683 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
17685 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
17687 $as_echo "loading" >&6; }
17688 .
${TCL_BIN_DIR}/tclConfig.sh
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
17691 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
17694 # eval is required to do the TCL_DBGX substitution
17695 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
17696 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
17698 # If the TCL_BIN_DIR is the build directory (not the install directory),
17699 # then set the common variable name to the value of the build variables.
17700 # For example, the variable TCL_LIB_SPEC will be set to the value
17701 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
17702 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
17703 # installed and uninstalled version of Tcl.
17704 if test -f "${TCL_BIN_DIR}/Makefile" ; then
17705 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
17706 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
17707 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
17708 elif test "`uname -s`" = "Darwin"; then
17709 # If Tcl was built as a framework, attempt to use the libraries
17710 # from the framework at the given location so that linking works
17711 # against Tcl.framework installed in an arbitrary location.
17712 case ${TCL_DEFS} in
17714 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
17715 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
17716 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
17717 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
17718 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
17723 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
17724 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
17725 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
17731 # eval is required to do the TCL_DBGX substitution
17732 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
17733 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
17734 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
17735 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
17751 # Check for in-tree tcl
17758 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
17762 # Find Tcl private headers
17763 if test x
"${intree}" = xno
; then
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
17766 $as_echo_n "checking for Tcl private headers... " >&6; }
17768 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
17769 if test -f ${dir}/tclInt.h
; then
17773 if test x
"${private_dir}" = x
; then
17774 as_fn_error $?
"could not find private Tcl headers" "$LINENO" 5
17776 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
17778 $as_echo "${private_dir}" >&6; }
17781 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
17782 TCL_LIBRARY
="${TCL_LIB_SPEC}"
17785 # If building tcl in the same src tree, private headers
17786 # are not needed, but we need to be sure to use the right
17788 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
17789 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
17790 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
17798 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
17800 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
17802 $as_echo "loading" >&6; }
17803 .
${TK_BIN_DIR}/tkConfig.sh
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
17806 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
17809 # eval is required to do the TK_DBGX substitution
17810 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
17811 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
17813 # If the TK_BIN_DIR is the build directory (not the install directory),
17814 # then set the common variable name to the value of the build variables.
17815 # For example, the variable TK_LIB_SPEC will be set to the value
17816 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
17817 # instead of TK_BUILD_LIB_SPEC since it will work with both an
17818 # installed and uninstalled version of Tcl.
17819 if test -f "${TK_BIN_DIR}/Makefile" ; then
17820 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
17821 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
17822 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
17823 elif test "`uname -s`" = "Darwin"; then
17824 # If Tk was built as a framework, attempt to use the libraries
17825 # from the framework at the given location so that linking works
17826 # against Tk.framework installed in an arbitrary location.
17829 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
17830 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
17831 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
17832 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
17833 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
17838 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
17839 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
17840 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
17846 # eval is required to do the TK_DBGX substitution
17847 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
17848 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
17849 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
17850 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
17865 # Check for in-tree Tk
17867 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
17871 # Find Tk private headers
17872 if test x
"${intree}" = xno
; then
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
17875 $as_echo_n "checking for Tk private headers... " >&6; }
17877 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
17878 if test -f ${dir}/tkInt.h
; then
17882 if test x
"${private_dir}" = x
; then
17883 as_fn_error $?
"could not find Tk private headers" "$LINENO" 5
17885 TK_PRIVATE_INCLUDE
="-I${private_dir}"
17886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
17887 $as_echo "${private_dir}" >&6; }
17890 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
17891 TK_LIBRARY
=${TK_LIB_SPEC}
17894 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
17895 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
17896 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
17903 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
17905 # Include some libraries that Tcl and Tk want.
17906 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
17907 # Yes, the ordering seems wrong here. But it isn't.
17908 # TK_LIBS is the list of libraries that need to be linked
17909 # after Tcl/Tk. Note that this isn't put into LIBS. If it
17910 # were in LIBS then any link tests after this point would
17911 # try to include things like `$(LIBGUI)', which wouldn't work.
17912 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
17914 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
17915 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
17916 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
17917 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
17918 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
17919 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
17920 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
17922 if test x
"$gdb_cv_os_cygwin" = xyes
; then
17923 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
17924 WIN32LDAPP
="-Wl,--subsystem,console"
17925 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
17928 subdirs
="$subdirs gdbtk"
17940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
17941 $as_echo_n "checking for X... " >&6; }
17944 # Check whether --with-x was given.
17945 if test "${with_x+set}" = set; then :
17949 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17950 if test "x$with_x" = xno
; then
17951 # The user explicitly disabled X.
17954 case $x_includes,$x_libraries in #(
17955 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
17956 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
17957 $as_echo_n "(cached) " >&6
17959 # One or both of the vars are not set, and there is no cached value.
17960 ac_x_includes
=no ac_x_libraries
=no
17961 rm -f -r conftest.dir
17962 if mkdir conftest.dir
; then
17964 cat >Imakefile
<<'_ACEOF'
17966 @echo incroot='${INCROOT}'
17968 @echo usrlibdir='${USRLIBDIR}'
17970 @echo libdir='${LIBDIR}'
17972 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
17973 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17974 for ac_var
in incroot usrlibdir libdir
; do
17975 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
17977 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17978 for ac_extension
in a so sl dylib la dll
; do
17979 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
17980 test -f "$ac_im_libdir/libX11.$ac_extension"; then
17981 ac_im_usrlibdir
=$ac_im_libdir; break
17984 # Screen out bogus values from the imake configuration. They are
17985 # bogus both because they are the default anyway, and because
17986 # using them would break gcc on systems where it needs fixed includes.
17987 case $ac_im_incroot in
17988 /usr
/include
) ac_x_includes
= ;;
17989 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
17991 case $ac_im_usrlibdir in
17992 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
17993 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
17997 rm -f -r conftest.dir
18000 # Standard set of common directories for X headers.
18001 # Check X11 before X11Rn because it is often a symlink to the current release.
18015 /usr/local/X11/include
18016 /usr/local/X11R7/include
18017 /usr/local/X11R6/include
18018 /usr/local/X11R5/include
18019 /usr/local/X11R4/include
18021 /usr/local/include/X11
18022 /usr/local/include/X11R7
18023 /usr/local/include/X11R6
18024 /usr/local/include/X11R5
18025 /usr/local/include/X11R4
18029 /usr/XFree86/include/X11
18033 /usr/unsupported/include
18034 /usr/athena/include
18035 /usr/local/x11r5/include
18036 /usr/lpp/Xamples/include
18038 /usr/openwin/include
18039 /usr/openwin/share/include'
18041 if test "$ac_x_includes" = no
; then
18042 # Guess where to find include files, by looking for Xlib.h.
18043 # First, try using that file with no special directory specified.
18044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18045 /* end confdefs.h. */
18046 #include <X11/Xlib.h>
18048 if ac_fn_c_try_cpp
"$LINENO"; then :
18049 # We can compile using X headers with no special include directory.
18052 for ac_dir
in $ac_x_header_dirs; do
18053 if test -r "$ac_dir/X11/Xlib.h"; then
18054 ac_x_includes
=$ac_dir
18059 rm -f conftest.err conftest.i conftest.
$ac_ext
18060 fi # $ac_x_includes = no
18062 if test "$ac_x_libraries" = no
; then
18063 # Check for the libraries.
18064 # See if we find them without any special options.
18065 # Don't add to $LIBS permanently.
18068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18069 /* end confdefs.h. */
18070 #include <X11/Xlib.h>
18079 if ac_fn_c_try_link
"$LINENO"; then :
18081 # We can link X programs with no special library path.
18085 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18087 # Don't even attempt the hair of trying to link an X program!
18088 for ac_extension
in a so sl dylib la dll
; do
18089 if test -r "$ac_dir/libX11.$ac_extension"; then
18090 ac_x_libraries
=$ac_dir
18096 rm -f core conftest.err conftest.
$ac_objext \
18097 conftest
$ac_exeext conftest.
$ac_ext
18098 fi # $ac_x_libraries = no
18100 case $ac_x_includes,$ac_x_libraries in #(
18101 no
,* |
*,no |
*\'*)
18102 # Didn't find X, or a directory has "'" in its name.
18103 ac_cv_have_x
="have_x=no";; #(
18105 # Record where we found X for the cache.
18106 ac_cv_have_x
="have_x=yes\
18107 ac_x_includes='$ac_x_includes'\
18108 ac_x_libraries='$ac_x_libraries'"
18114 eval "$ac_cv_have_x"
18117 if test "$have_x" != yes; then
18118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
18119 $as_echo "$have_x" >&6; }
18122 # If each of the values was on the command line, it overrides each guess.
18123 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
18124 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
18125 # Update the cache value to reflect the command line values.
18126 ac_cv_have_x
="have_x=yes\
18127 ac_x_includes='$x_includes'\
18128 ac_x_libraries='$x_libraries'"
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
18130 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
18134 # Unlike the sim directory, whether a simulator is linked is controlled by
18135 # presence of a gdb_sim definition in the target configure.tgt entry.
18136 # This code just checks for a few cases where we'd like to ignore those
18137 # definitions, even when they're present in the '.mt' file. These cases
18138 # are when --disable-sim is specified, or if the simulator directory is
18139 # not part of the source tree.
18141 # Check whether --enable-sim was given.
18142 if test "${enable_sim+set}" = set; then :
18143 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
18144 echo "enableval = ${enableval}";
18145 case "${enableval}" in
18146 yes) ignore_sim
=false
;;
18147 no
) ignore_sim
=true
;;
18148 *) ignore_sim
=false
;;
18155 if test ! -d "${srcdir}/../sim"; then
18161 if test "${ignore_sim}" = "false"; then
18162 if test x
"${gdb_sim}" != x
; then
18164 SIM_OBS
="remote-sim.o"
18166 $as_echo "#define WITH_SIM 1" >>confdefs.h
18169 # Some tdep code should only be compiled in when the ppc sim is
18170 # built. PR sim/13418.
18174 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
18194 # List of host floatformats.
18196 cat >>confdefs.h
<<_ACEOF
18197 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
18201 cat >>confdefs.h
<<_ACEOF
18202 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
18206 cat >>confdefs.h
<<_ACEOF
18207 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
18211 # target_subdir is used by the testsuite to find the target libraries.
18213 if test "${host}" != "${target}"; then
18214 target_subdir
="${target_alias}/"
18218 # Import nat definitions.
18219 nat_makefile_frag
=/dev
/null
18220 if test "${gdb_native}" = "yes"; then
18221 .
${srcdir}/configure.nat
18222 nativefile
=$NAT_FILE
18235 if test x
"${gdb_osabi}" != x
; then
18237 cat >>confdefs.h
<<_ACEOF
18238 #define GDB_OSABI_DEFAULT $gdb_osabi
18243 # Check for babeltrace and babeltrace-ctf
18245 # Check whether --with-babeltrace was given.
18246 if test "${with_babeltrace+set}" = set; then :
18247 withval
=$with_babeltrace;
18249 with_babeltrace
=auto
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
18253 $as_echo_n "checking whether to use babeltrace... " >&6; }
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
18255 $as_echo "$with_babeltrace" >&6; }
18257 if test "x$with_babeltrace" = "xno"; then
18258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
18259 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
18261 # Append -Werror to CFLAGS so that configure can catch the warning
18262 # "assignment from incompatible pointer type", which is related to
18263 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
18264 # in GDB, while babeltrace 1.0.3 is broken.
18265 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
18266 # safe to save and restore CFLAGS here.
18267 saved_CFLAGS
=$CFLAGS
18268 CFLAGS
="$CFLAGS -Werror"
18279 acl_save_prefix
="$prefix"
18280 prefix
="$acl_final_prefix"
18281 acl_save_exec_prefix
="$exec_prefix"
18282 exec_prefix
="$acl_final_exec_prefix"
18284 eval additional_includedir
=\"$includedir\"
18285 eval additional_libdir
=\"$libdir\"
18287 exec_prefix
="$acl_save_exec_prefix"
18288 prefix
="$acl_save_prefix"
18291 # Check whether --with-libbabeltrace-prefix was given.
18292 if test "${with_libbabeltrace_prefix+set}" = set; then :
18293 withval
=$with_libbabeltrace_prefix;
18294 if test "X$withval" = "Xno"; then
18297 if test "X$withval" = "X"; then
18299 acl_save_prefix
="$prefix"
18300 prefix
="$acl_final_prefix"
18301 acl_save_exec_prefix
="$exec_prefix"
18302 exec_prefix
="$acl_final_exec_prefix"
18304 eval additional_includedir
=\"$includedir\"
18305 eval additional_libdir
=\"$libdir\"
18307 exec_prefix
="$acl_save_exec_prefix"
18308 prefix
="$acl_save_prefix"
18311 additional_includedir
="$withval/include"
18312 additional_libdir
="$withval/lib"
18319 # Check whether --with-libbabeltrace-type was given.
18320 if test "${with_libbabeltrace_type+set}" = set; then :
18321 withval
=$with_libbabeltrace_type; with_libbabeltrace_type
=$withval
18323 with_libbabeltrace_type
=auto
18326 lib_type
=`eval echo \$with_libbabeltrace_type`
18333 names_already_handled
=
18334 names_next_round
='babeltrace babeltrace-ctf'
18335 while test -n "$names_next_round"; do
18336 names_this_round
="$names_next_round"
18338 for name
in $names_this_round; do
18340 for n
in $names_already_handled; do
18341 if test "$n" = "$name"; then
18342 already_handled
=yes
18346 if test -z "$already_handled"; then
18347 names_already_handled
="$names_already_handled $name"
18348 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18349 eval value
=\"\
$HAVE_LIB$uppername\"
18350 if test -n "$value"; then
18351 if test "$value" = yes; then
18352 eval value
=\"\
$LIB$uppername\"
18353 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
18354 eval value
=\"\
$LTLIB$uppername\"
18355 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
18364 if test $use_additional = yes; then
18365 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18366 found_dir
="$additional_libdir"
18367 found_so
="$additional_libdir/lib$name.$shlibext"
18368 if test -f "$additional_libdir/lib$name.la"; then
18369 found_la
="$additional_libdir/lib$name.la"
18371 elif test x
$lib_type != xshared
; then
18372 if test -f "$additional_libdir/lib$name.$libext"; then
18373 found_dir
="$additional_libdir"
18374 found_a
="$additional_libdir/lib$name.$libext"
18375 if test -f "$additional_libdir/lib$name.la"; then
18376 found_la
="$additional_libdir/lib$name.la"
18381 if test "X$found_dir" = "X"; then
18382 for x
in $LDFLAGS $LTLIBBABELTRACE; do
18384 acl_save_prefix
="$prefix"
18385 prefix
="$acl_final_prefix"
18386 acl_save_exec_prefix
="$exec_prefix"
18387 exec_prefix
="$acl_final_exec_prefix"
18389 exec_prefix
="$acl_save_exec_prefix"
18390 prefix
="$acl_save_prefix"
18394 dir
=`echo "X$x" | sed -e 's/^X-L//'`
18395 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18397 found_so
="$dir/lib$name.$shlibext"
18398 if test -f "$dir/lib$name.la"; then
18399 found_la
="$dir/lib$name.la"
18401 elif test x
$lib_type != xshared
; then
18402 if test -f "$dir/lib$name.$libext"; then
18404 found_a
="$dir/lib$name.$libext"
18405 if test -f "$dir/lib$name.la"; then
18406 found_la
="$dir/lib$name.la"
18412 if test "X$found_dir" != "X"; then
18417 if test "X$found_dir" != "X"; then
18418 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
18419 if test "X$found_so" != "X"; then
18420 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
18421 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18424 for x
in $ltrpathdirs; do
18425 if test "X$x" = "X$found_dir"; then
18430 if test -z "$haveit"; then
18431 ltrpathdirs
="$ltrpathdirs $found_dir"
18433 if test "$hardcode_direct" = yes; then
18434 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18436 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
18437 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18439 for x
in $rpathdirs; do
18440 if test "X$x" = "X$found_dir"; then
18445 if test -z "$haveit"; then
18446 rpathdirs
="$rpathdirs $found_dir"
18450 for x
in $LDFLAGS $LIBBABELTRACE; do
18452 acl_save_prefix
="$prefix"
18453 prefix
="$acl_final_prefix"
18454 acl_save_exec_prefix
="$exec_prefix"
18455 exec_prefix
="$acl_final_exec_prefix"
18457 exec_prefix
="$acl_save_exec_prefix"
18458 prefix
="$acl_save_prefix"
18460 if test "X$x" = "X-L$found_dir"; then
18465 if test -z "$haveit"; then
18466 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
18468 if test "$hardcode_minus_L" != no
; then
18469 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18471 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
18477 if test "X$found_a" != "X"; then
18478 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
18480 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
18483 additional_includedir
=
18484 case "$found_dir" in
18486 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18487 additional_includedir
="$basedir/include"
18490 if test "X$additional_includedir" != "X"; then
18491 if test "X$additional_includedir" != "X/usr/include"; then
18493 if test "X$additional_includedir" = "X/usr/local/include"; then
18494 if test -n "$GCC"; then
18496 linux
*) haveit
=yes;;
18500 if test -z "$haveit"; then
18501 for x
in $CPPFLAGS $INCBABELTRACE; do
18503 acl_save_prefix
="$prefix"
18504 prefix
="$acl_final_prefix"
18505 acl_save_exec_prefix
="$exec_prefix"
18506 exec_prefix
="$acl_final_exec_prefix"
18508 exec_prefix
="$acl_save_exec_prefix"
18509 prefix
="$acl_save_prefix"
18511 if test "X$x" = "X-I$additional_includedir"; then
18516 if test -z "$haveit"; then
18517 if test -d "$additional_includedir"; then
18518 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
18524 if test -n "$found_la"; then
18525 save_libdir
="$libdir"
18526 case "$found_la" in
18527 */* |
*\\*) .
"$found_la" ;;
18528 *) .
"./$found_la" ;;
18530 libdir
="$save_libdir"
18531 for dep
in $dependency_libs; do
18534 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
18535 if test "X$additional_libdir" != "X/usr/lib"; then
18537 if test "X$additional_libdir" = "X/usr/local/lib"; then
18538 if test -n "$GCC"; then
18540 linux
*) haveit
=yes;;
18544 if test -z "$haveit"; then
18546 for x
in $LDFLAGS $LIBBABELTRACE; do
18548 acl_save_prefix
="$prefix"
18549 prefix
="$acl_final_prefix"
18550 acl_save_exec_prefix
="$exec_prefix"
18551 exec_prefix
="$acl_final_exec_prefix"
18553 exec_prefix
="$acl_save_exec_prefix"
18554 prefix
="$acl_save_prefix"
18556 if test "X$x" = "X-L$additional_libdir"; then
18561 if test -z "$haveit"; then
18562 if test -d "$additional_libdir"; then
18563 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
18567 for x
in $LDFLAGS $LTLIBBABELTRACE; do
18569 acl_save_prefix
="$prefix"
18570 prefix
="$acl_final_prefix"
18571 acl_save_exec_prefix
="$exec_prefix"
18572 exec_prefix
="$acl_final_exec_prefix"
18574 exec_prefix
="$acl_save_exec_prefix"
18575 prefix
="$acl_save_prefix"
18577 if test "X$x" = "X-L$additional_libdir"; then
18582 if test -z "$haveit"; then
18583 if test -d "$additional_libdir"; then
18584 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
18591 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
18592 if test "$enable_rpath" != no
; then
18594 for x
in $rpathdirs; do
18595 if test "X$x" = "X$dir"; then
18600 if test -z "$haveit"; then
18601 rpathdirs
="$rpathdirs $dir"
18604 for x
in $ltrpathdirs; do
18605 if test "X$x" = "X$dir"; then
18610 if test -z "$haveit"; then
18611 ltrpathdirs
="$ltrpathdirs $dir"
18616 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18619 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18622 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
18623 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
18629 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
18630 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
18631 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
18633 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l:lib$name.$libext"
18634 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l:lib$name.$libext"
18641 if test "X$rpathdirs" != "X"; then
18642 if test -n "$hardcode_libdir_separator"; then
18644 for found_dir
in $rpathdirs; do
18645 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18647 acl_save_libdir
="$libdir"
18649 eval flag
=\"$hardcode_libdir_flag_spec\"
18650 libdir
="$acl_save_libdir"
18651 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
18653 for found_dir
in $rpathdirs; do
18654 acl_save_libdir
="$libdir"
18655 libdir
="$found_dir"
18656 eval flag
=\"$hardcode_libdir_flag_spec\"
18657 libdir
="$acl_save_libdir"
18658 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
18662 if test "X$ltrpathdirs" != "X"; then
18663 for found_dir
in $ltrpathdirs; do
18664 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
18669 ac_save_CPPFLAGS
="$CPPFLAGS"
18671 for element
in $INCBABELTRACE; do
18673 for x
in $CPPFLAGS; do
18675 acl_save_prefix
="$prefix"
18676 prefix
="$acl_final_prefix"
18677 acl_save_exec_prefix
="$exec_prefix"
18678 exec_prefix
="$acl_final_exec_prefix"
18680 exec_prefix
="$acl_save_exec_prefix"
18681 prefix
="$acl_save_prefix"
18683 if test "X$x" = "X$element"; then
18688 if test -z "$haveit"; then
18689 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
18695 $as_echo_n "checking for libbabeltrace... " >&6; }
18696 if ${ac_cv_libbabeltrace+:} false
; then :
18697 $as_echo_n "(cached) " >&6
18700 ac_save_LIBS
="$LIBS"
18701 LIBS
="$LIBS $LIBBABELTRACE"
18702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18703 /* end confdefs.h. */
18704 #include <babeltrace/babeltrace.h>
18705 #include <babeltrace/ctf/events.h>
18706 #include <babeltrace/ctf/iterator.h>
18710 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
18711 struct bt_ctf_event *event = NULL;
18712 const struct bt_definition *scope;
18714 pos->type = BT_SEEK_BEGIN;
18715 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
18716 scope = bt_ctf_get_top_level_scope (event,
18717 BT_STREAM_EVENT_HEADER);
18718 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
18724 if ac_fn_c_try_link
"$LINENO"; then :
18725 ac_cv_libbabeltrace
=yes
18727 ac_cv_libbabeltrace
=no
18729 rm -f core conftest.err conftest.
$ac_objext \
18730 conftest
$ac_exeext conftest.
$ac_ext
18731 LIBS
="$ac_save_LIBS"
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
18735 $as_echo "$ac_cv_libbabeltrace" >&6; }
18736 if test "$ac_cv_libbabeltrace" = yes; then
18737 HAVE_LIBBABELTRACE
=yes
18739 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
18741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
18742 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
18744 $as_echo "$LIBBABELTRACE" >&6; }
18746 HAVE_LIBBABELTRACE
=no
18747 CPPFLAGS
="$ac_save_CPPFLAGS"
18757 CFLAGS
=$saved_CFLAGS
18759 if test "$HAVE_LIBBABELTRACE" != yes; then
18760 if test "$with_babeltrace" = yes; then
18761 as_fn_error $?
"babeltrace is missing or unusable" "$LINENO" 5
18763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
18764 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
18771 # Check whether --with-xxhash was given.
18772 if test "${with_xxhash+set}" = set; then :
18773 withval
=$with_xxhash;
18779 # Check whether --enable-libctf was given.
18780 if test "${enable_libctf+set}" = set; then :
18781 enableval
=$enable_libctf;
18782 case "$enableval" in
18784 *) as_fn_error $?
"Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
18792 if test x
${enable_static} = xno
; then
18793 LIBCTF
="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so"
18794 CTF_DEPS
="../libctf/.libs/libctf.so"
18796 LIBCTF
="../libctf/.libs/libctf.a"
18799 if test "${enable_libctf}" = yes; then
18801 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
18811 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
18814 if test "x$with_xxhash" != "xno"; then
18825 acl_save_prefix
="$prefix"
18826 prefix
="$acl_final_prefix"
18827 acl_save_exec_prefix
="$exec_prefix"
18828 exec_prefix
="$acl_final_exec_prefix"
18830 eval additional_includedir
=\"$includedir\"
18831 eval additional_libdir
=\"$libdir\"
18833 exec_prefix
="$acl_save_exec_prefix"
18834 prefix
="$acl_save_prefix"
18837 # Check whether --with-libxxhash-prefix was given.
18838 if test "${with_libxxhash_prefix+set}" = set; then :
18839 withval
=$with_libxxhash_prefix;
18840 if test "X$withval" = "Xno"; then
18843 if test "X$withval" = "X"; then
18845 acl_save_prefix
="$prefix"
18846 prefix
="$acl_final_prefix"
18847 acl_save_exec_prefix
="$exec_prefix"
18848 exec_prefix
="$acl_final_exec_prefix"
18850 eval additional_includedir
=\"$includedir\"
18851 eval additional_libdir
=\"$libdir\"
18853 exec_prefix
="$acl_save_exec_prefix"
18854 prefix
="$acl_save_prefix"
18857 additional_includedir
="$withval/include"
18858 additional_libdir
="$withval/lib"
18865 # Check whether --with-libxxhash-type was given.
18866 if test "${with_libxxhash_type+set}" = set; then :
18867 withval
=$with_libxxhash_type; with_libxxhash_type
=$withval
18869 with_libxxhash_type
=auto
18872 lib_type
=`eval echo \$with_libxxhash_type`
18879 names_already_handled
=
18880 names_next_round
='xxhash '
18881 while test -n "$names_next_round"; do
18882 names_this_round
="$names_next_round"
18884 for name
in $names_this_round; do
18886 for n
in $names_already_handled; do
18887 if test "$n" = "$name"; then
18888 already_handled
=yes
18892 if test -z "$already_handled"; then
18893 names_already_handled
="$names_already_handled $name"
18894 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18895 eval value
=\"\
$HAVE_LIB$uppername\"
18896 if test -n "$value"; then
18897 if test "$value" = yes; then
18898 eval value
=\"\
$LIB$uppername\"
18899 test -z "$value" || LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$value"
18900 eval value
=\"\
$LTLIB$uppername\"
18901 test -z "$value" || LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$value"
18910 if test $use_additional = yes; then
18911 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18912 found_dir
="$additional_libdir"
18913 found_so
="$additional_libdir/lib$name.$shlibext"
18914 if test -f "$additional_libdir/lib$name.la"; then
18915 found_la
="$additional_libdir/lib$name.la"
18917 elif test x
$lib_type != xshared
; then
18918 if test -f "$additional_libdir/lib$name.$libext"; then
18919 found_dir
="$additional_libdir"
18920 found_a
="$additional_libdir/lib$name.$libext"
18921 if test -f "$additional_libdir/lib$name.la"; then
18922 found_la
="$additional_libdir/lib$name.la"
18927 if test "X$found_dir" = "X"; then
18928 for x
in $LDFLAGS $LTLIBXXHASH; do
18930 acl_save_prefix
="$prefix"
18931 prefix
="$acl_final_prefix"
18932 acl_save_exec_prefix
="$exec_prefix"
18933 exec_prefix
="$acl_final_exec_prefix"
18935 exec_prefix
="$acl_save_exec_prefix"
18936 prefix
="$acl_save_prefix"
18940 dir
=`echo "X$x" | sed -e 's/^X-L//'`
18941 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18943 found_so
="$dir/lib$name.$shlibext"
18944 if test -f "$dir/lib$name.la"; then
18945 found_la
="$dir/lib$name.la"
18947 elif test x
$lib_type != xshared
; then
18948 if test -f "$dir/lib$name.$libext"; then
18950 found_a
="$dir/lib$name.$libext"
18951 if test -f "$dir/lib$name.la"; then
18952 found_la
="$dir/lib$name.la"
18958 if test "X$found_dir" != "X"; then
18963 if test "X$found_dir" != "X"; then
18964 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$found_dir -l$name"
18965 if test "X$found_so" != "X"; then
18966 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
18967 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
18970 for x
in $ltrpathdirs; do
18971 if test "X$x" = "X$found_dir"; then
18976 if test -z "$haveit"; then
18977 ltrpathdirs
="$ltrpathdirs $found_dir"
18979 if test "$hardcode_direct" = yes; then
18980 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
18982 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
18983 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
18985 for x
in $rpathdirs; do
18986 if test "X$x" = "X$found_dir"; then
18991 if test -z "$haveit"; then
18992 rpathdirs
="$rpathdirs $found_dir"
18996 for x
in $LDFLAGS $LIBXXHASH; do
18998 acl_save_prefix
="$prefix"
18999 prefix
="$acl_final_prefix"
19000 acl_save_exec_prefix
="$exec_prefix"
19001 exec_prefix
="$acl_final_exec_prefix"
19003 exec_prefix
="$acl_save_exec_prefix"
19004 prefix
="$acl_save_prefix"
19006 if test "X$x" = "X-L$found_dir"; then
19011 if test -z "$haveit"; then
19012 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir"
19014 if test "$hardcode_minus_L" != no
; then
19015 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19017 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
19023 if test "X$found_a" != "X"; then
19024 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_a"
19026 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir -l$name"
19029 additional_includedir
=
19030 case "$found_dir" in
19032 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
19033 additional_includedir
="$basedir/include"
19036 if test "X$additional_includedir" != "X"; then
19037 if test "X$additional_includedir" != "X/usr/include"; then
19039 if test "X$additional_includedir" = "X/usr/local/include"; then
19040 if test -n "$GCC"; then
19042 linux
*) haveit
=yes;;
19046 if test -z "$haveit"; then
19047 for x
in $CPPFLAGS $INCXXHASH; do
19049 acl_save_prefix
="$prefix"
19050 prefix
="$acl_final_prefix"
19051 acl_save_exec_prefix
="$exec_prefix"
19052 exec_prefix
="$acl_final_exec_prefix"
19054 exec_prefix
="$acl_save_exec_prefix"
19055 prefix
="$acl_save_prefix"
19057 if test "X$x" = "X-I$additional_includedir"; then
19062 if test -z "$haveit"; then
19063 if test -d "$additional_includedir"; then
19064 INCXXHASH
="${INCXXHASH}${INCXXHASH:+ }-I$additional_includedir"
19070 if test -n "$found_la"; then
19071 save_libdir
="$libdir"
19072 case "$found_la" in
19073 */* |
*\\*) .
"$found_la" ;;
19074 *) .
"./$found_la" ;;
19076 libdir
="$save_libdir"
19077 for dep
in $dependency_libs; do
19080 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
19081 if test "X$additional_libdir" != "X/usr/lib"; then
19083 if test "X$additional_libdir" = "X/usr/local/lib"; then
19084 if test -n "$GCC"; then
19086 linux
*) haveit
=yes;;
19090 if test -z "$haveit"; then
19092 for x
in $LDFLAGS $LIBXXHASH; do
19094 acl_save_prefix
="$prefix"
19095 prefix
="$acl_final_prefix"
19096 acl_save_exec_prefix
="$exec_prefix"
19097 exec_prefix
="$acl_final_exec_prefix"
19099 exec_prefix
="$acl_save_exec_prefix"
19100 prefix
="$acl_save_prefix"
19102 if test "X$x" = "X-L$additional_libdir"; then
19107 if test -z "$haveit"; then
19108 if test -d "$additional_libdir"; then
19109 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$additional_libdir"
19113 for x
in $LDFLAGS $LTLIBXXHASH; do
19115 acl_save_prefix
="$prefix"
19116 prefix
="$acl_final_prefix"
19117 acl_save_exec_prefix
="$exec_prefix"
19118 exec_prefix
="$acl_final_exec_prefix"
19120 exec_prefix
="$acl_save_exec_prefix"
19121 prefix
="$acl_save_prefix"
19123 if test "X$x" = "X-L$additional_libdir"; then
19128 if test -z "$haveit"; then
19129 if test -d "$additional_libdir"; then
19130 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$additional_libdir"
19137 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
19138 if test "$enable_rpath" != no
; then
19140 for x
in $rpathdirs; do
19141 if test "X$x" = "X$dir"; then
19146 if test -z "$haveit"; then
19147 rpathdirs
="$rpathdirs $dir"
19150 for x
in $ltrpathdirs; do
19151 if test "X$x" = "X$dir"; then
19156 if test -z "$haveit"; then
19157 ltrpathdirs
="$ltrpathdirs $dir"
19162 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19165 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19168 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$dep"
19169 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$dep"
19175 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
19176 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
19177 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l$name"
19179 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l:lib$name.$libext"
19180 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l:lib$name.$libext"
19187 if test "X$rpathdirs" != "X"; then
19188 if test -n "$hardcode_libdir_separator"; then
19190 for found_dir
in $rpathdirs; do
19191 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
19193 acl_save_libdir
="$libdir"
19195 eval flag
=\"$hardcode_libdir_flag_spec\"
19196 libdir
="$acl_save_libdir"
19197 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
19199 for found_dir
in $rpathdirs; do
19200 acl_save_libdir
="$libdir"
19201 libdir
="$found_dir"
19202 eval flag
=\"$hardcode_libdir_flag_spec\"
19203 libdir
="$acl_save_libdir"
19204 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
19208 if test "X$ltrpathdirs" != "X"; then
19209 for found_dir
in $ltrpathdirs; do
19210 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-R$found_dir"
19215 ac_save_CPPFLAGS
="$CPPFLAGS"
19217 for element
in $INCXXHASH; do
19219 for x
in $CPPFLAGS; do
19221 acl_save_prefix
="$prefix"
19222 prefix
="$acl_final_prefix"
19223 acl_save_exec_prefix
="$exec_prefix"
19224 exec_prefix
="$acl_final_exec_prefix"
19226 exec_prefix
="$acl_save_exec_prefix"
19227 prefix
="$acl_save_prefix"
19229 if test "X$x" = "X$element"; then
19234 if test -z "$haveit"; then
19235 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
19240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5
19241 $as_echo_n "checking for libxxhash... " >&6; }
19242 if ${ac_cv_libxxhash+:} false
; then :
19243 $as_echo_n "(cached) " >&6
19246 ac_save_LIBS
="$LIBS"
19247 LIBS
="$LIBS $LIBXXHASH"
19248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19249 /* end confdefs.h. */
19250 #include <xxhash.h>
19254 XXH32("foo", 3, 0);
19260 if ac_fn_c_try_link
"$LINENO"; then :
19261 ac_cv_libxxhash
=yes
19265 rm -f core conftest.err conftest.
$ac_objext \
19266 conftest
$ac_exeext conftest.
$ac_ext
19267 LIBS
="$ac_save_LIBS"
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxxhash" >&5
19271 $as_echo "$ac_cv_libxxhash" >&6; }
19272 if test "$ac_cv_libxxhash" = yes; then
19275 $as_echo "#define HAVE_LIBXXHASH 1" >>confdefs.h
19277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libxxhash" >&5
19278 $as_echo_n "checking how to link with libxxhash... " >&6; }
19279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXXHASH" >&5
19280 $as_echo "$LIBXXHASH" >&6; }
19283 CPPFLAGS
="$ac_save_CPPFLAGS"
19293 if test "$HAVE_LIBXXHASH" != yes; then
19294 if test "$with_xxhash" = yes; then
19295 as_fn_error $?
"xxhash is missing or unusable" "$LINENO" 5
19298 if test "x$with_xxhash" = "xauto"; then
19299 with_xxhash
="$HAVE_LIBXXHASH"
19303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
19304 $as_echo_n "checking whether to use xxhash... " >&6; }
19305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
19306 $as_echo "$with_xxhash" >&6; }
19310 if test "${nativefile}" != ""; then
19311 case "${nativefile}" in
19312 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
19313 * ) GDB_NM_FILE
="${nativefile}"
19315 ac_config_links
="$ac_config_links nm.h:$GDB_NM_FILE"
19318 cat >>confdefs.h
<<_ACEOF
19319 #define GDB_NM_FILE "${GDB_NM_FILE}"
19327 for ac_prog
in xsltproc
19329 # Extract the first word of "$ac_prog", so it can be a program name with args.
19330 set dummy
$ac_prog; ac_word
=$2
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19332 $as_echo_n "checking for $ac_word... " >&6; }
19333 if ${ac_cv_path_XSLTPROC+:} false
; then :
19334 $as_echo_n "(cached) " >&6
19338 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
19341 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19342 for as_dir
in $PATH
19345 test -z "$as_dir" && as_dir
=.
19346 for ac_exec_ext
in '' $ac_executable_extensions; do
19347 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19348 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
19349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19359 XSLTPROC
=$ac_cv_path_XSLTPROC
19360 if test -n "$XSLTPROC"; then
19361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19362 $as_echo "$XSLTPROC" >&6; }
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19365 $as_echo "no" >&6; }
19369 test -n "$XSLTPROC" && break
19371 test -n "$XSLTPROC" || XSLTPROC
="missing"
19373 if test "x$USE_MAINTAINER_MODE" = xyes
; then
19374 if test "${XSLTPROC}" = missing
; then
19375 as_fn_error $?
"unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
19383 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
19387 # Check whether we will enable the inclusion of unit tests when
19390 # The default value of this option changes depending whether we're on
19391 # development mode (in which case it's "true") or not (in which case
19392 # it's "false"). The $development variable is set by the GDB_AC_COMMON
19393 # macro, which must therefore be used before GDB_AC_SELFTEST.
19395 if test "x$development" != xtrue
&& test "x$development" != xfalse
; then :
19396 as_fn_error $?
"Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
19399 # Check whether --enable-unit-tests was given.
19400 if test "${enable_unit_tests+set}" = set; then :
19401 enableval
=$enable_unit_tests; case "${enableval}" in
19402 yes) enable_unittests
=true
;;
19403 no
) enable_unittests
=false
;;
19404 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
19407 enable_unittests
=$development
19411 if $enable_unittests; then
19413 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
19416 CONFIG_OBS
="$CONFIG_OBS \$(SELFTESTS_OBS)"
19417 CONFIG_SRCS
="$CONFIG_SRCS \$(SELFTESTS_SRCS)"
19423 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19424 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
19425 if test "x$GDB_TRANSFORM_NAME" = x
; then
19426 GDB_TRANSFORM_NAME
=gdb
19431 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19432 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
19433 if test "x$GCORE_TRANSFORM_NAME" = x
; then
19434 GCORE_TRANSFORM_NAME
=gcore
19438 ac_config_files
="$ac_config_files gcore"
19440 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
19443 cat >confcache
<<\_ACEOF
19444 # This file is a shell script that caches the results of configure
19445 # tests run on this system so they can be shared between configure
19446 # scripts and configure runs, see configure's option --config-cache.
19447 # It is not useful on other systems. If it contains results you don't
19448 # want to keep, you may remove or edit it.
19450 # config.status only pays attention to the cache file if you give it
19451 # the --recheck option to rerun configure.
19453 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19454 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19455 # following values.
19459 # The following way of writing the cache mishandles newlines in values,
19460 # but we know of no workaround that is simple, portable, and efficient.
19461 # So, we kill variables containing newlines.
19462 # Ultrix sh set writes to stderr and can't be redirected directly,
19463 # and sets the high bit in the cache file unless we assign to the vars.
19465 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19466 eval ac_val
=\$
$ac_var
19470 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19471 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19474 _ | IFS | as_nl
) ;; #(
19475 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
19476 *) { eval $ac_var=; unset $ac_var;} ;;
19482 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19483 *${as_nl}ac_space
=\
*)
19484 # `set' does not quote correctly, so add quotes: double-quote
19485 # substitution turns \\\\ into \\, and sed turns \\ into \.
19488 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19491 # `set' quotes correctly as required by POSIX, so do not add quotes.
19492 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19501 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19503 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19505 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
19506 if test -w "$cache_file"; then
19507 if test "x$cache_file" != "x/dev/null"; then
19508 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19509 $as_echo "$as_me: updating cache $cache_file" >&6;}
19510 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
19511 cat confcache
>"$cache_file"
19513 case $cache_file in #(
19515 mv -f confcache
"$cache_file"$$
&&
19516 mv -f "$cache_file"$$
"$cache_file" ;; #(
19518 mv -f confcache
"$cache_file" ;;
19523 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19524 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19529 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19530 # Let make expand exec_prefix.
19531 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19533 DEFS
=-DHAVE_CONFIG_H
19538 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19539 # 1. Remove the extension, and $U if already installed.
19540 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
19541 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
19542 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19543 # will be set to the directory where LIBOBJS objects are built.
19544 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19545 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
19547 LIBOBJS
=$ac_libobjs
19549 LTLIBOBJS
=$ac_ltlibobjs
19552 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19553 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
19554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19556 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
19557 as_fn_error $?
"conditional \"HAVE_PYTHON\" was never defined.
19558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19560 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
19561 as_fn_error $?
"conditional \"HAVE_GUILE\" was never defined.
19562 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19566 : "${CONFIG_STATUS=./config.status}"
19568 ac_clean_files_save
=$ac_clean_files
19569 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19570 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19571 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19573 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19575 # Generated by $as_me.
19576 # Run this file to recreate the current configuration.
19577 # Compiler output produced by configure, useful for debugging
19578 # configure, is in config.log if it exists.
19581 ac_cs_recheck=false
19584 SHELL=\${CONFIG_SHELL-$SHELL}
19587 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
19588 ## -------------------- ##
19589 ## M4sh Initialization. ##
19590 ## -------------------- ##
19592 # Be more Bourne compatible
19593 DUALCASE
=1; export DUALCASE
# for MKS sh
19594 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
19597 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19598 # is contrary to our usage. Disable this feature.
19599 alias -g '${1+"$@"}'='"$@"'
19600 setopt NO_GLOB_SUBST
19602 case `(set -o) 2>/dev/null` in #(
19614 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19615 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19616 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19617 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19618 # Prefer a ksh shell builtin over an external printf program on Solaris,
19619 # but without wasting forks for bash or zsh.
19620 if test -z "$BASH_VERSION$ZSH_VERSION" \
19621 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19622 as_echo='print
-r --'
19623 as_echo_n='print
-rn --'
19624 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19625 as_echo='printf %s
\n'
19626 as_echo_n='printf %s
'
19628 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19629 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
19630 as_echo_n='/usr
/ucb
/echo -n'
19632 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19633 as_echo_n_body='eval
19637 expr "X$arg" : "X\\(.*\\)$as_nl";
19638 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19640 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
19642 export as_echo_n_body
19643 as_echo_n='sh
-c $as_echo_n_body as_echo
'
19645 export as_echo_body
19646 as_echo='sh
-c $as_echo_body as_echo
'
19649 # The user is always right.
19650 if test "${PATH_SEPARATOR+set}" != set; then
19652 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19653 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19660 # We need space, tab and new line, in precisely that order. Quoting is
19661 # there to prevent editors from complaining about space-tab.
19662 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19663 # splitting by setting IFS to empty value.)
19666 # Find who we are. Look in the path if we contain no directory separator.
19669 *[\\/]* ) as_myself=$0 ;;
19670 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19671 for as_dir in $PATH
19674 test -z "$as_dir" && as_dir=.
19675 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19681 # We did not find ourselves, most probably we were run as `sh COMMAND'
19682 # in which case we are not to be found in the path.
19683 if test "x$as_myself" = x
; then
19686 if test ! -f "$as_myself"; then
19687 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19691 # Unset variables that we do not need and which cause bugs (e.g. in
19692 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19693 # suppresses any "Segmentation fault" message there. '((' could
19694 # trigger a bug in pdksh 5.2.14.
19695 for as_var
in BASH_ENV ENV MAIL MAILPATH
19696 do eval test x\
${$as_var+set} = xset \
19697 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
19710 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
19713 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19714 # ----------------------------------------
19715 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19716 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19717 # script with STATUS, using 1 if that was 0.
19720 as_status
=$1; test $as_status -eq 0 && as_status
=1
19722 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
19723 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19725 $as_echo "$as_me: error: $2" >&2
19726 as_fn_exit
$as_status
19730 # as_fn_set_status STATUS
19731 # -----------------------
19732 # Set $? to STATUS, without forking.
19733 as_fn_set_status
()
19736 } # as_fn_set_status
19738 # as_fn_exit STATUS
19739 # -----------------
19740 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19744 as_fn_set_status
$1
19750 # Portably unset VAR.
19753 { eval $1=; unset $1;}
19755 as_unset
=as_fn_unset
19756 # as_fn_append VAR VALUE
19757 # ----------------------
19758 # Append the text in VALUE to the end of the definition contained in VAR. Take
19759 # advantage of any shell optimizations that allow amortized linear growth over
19760 # repeated appends, instead of the typical quadratic growth present in naive
19762 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
19763 eval 'as_fn_append ()
19774 # as_fn_arith ARG...
19775 # ------------------
19776 # Perform arithmetic evaluation on the ARGs, and store the result in the
19777 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19778 # must be portable across $(()) and expr.
19779 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
19780 eval 'as_fn_arith ()
19787 as_val
=`expr "$@" || test $? -eq 1`
19792 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
19793 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
19799 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19800 as_basename
=basename
19805 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
19811 as_me
=`$as_basename -- "$0" ||
19812 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19813 X"$0" : 'X\(//\)$' \| \
19814 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19816 sed '/^.*\/\([^/][^/]*\)\/*$/{
19830 # Avoid depending upon Character Ranges.
19831 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19832 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19833 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19834 as_cr_digits
='0123456789'
19835 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19837 ECHO_C
= ECHO_N
= ECHO_T
=
19838 case `echo -n x` in #(((((
19840 case `echo 'xy\c'` in
19841 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
19843 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
19850 rm -f conf$$ conf$$.exe conf$$.
file
19851 if test -d conf$$.dir
; then
19852 rm -f conf$$.dir
/conf$$.
file
19855 mkdir conf$$.dir
2>/dev
/null
19857 if (echo >conf$$.
file) 2>/dev
/null
; then
19858 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19860 # ... but there are two gotchas:
19861 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19862 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19863 # In both cases, we have to default to `cp -pR'.
19864 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
19866 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19874 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
19875 rmdir conf$$.dir
2>/dev
/null
19880 # Create "$as_dir" as a directory, including parents if necessary.
19885 -*) as_dir
=.
/$as_dir;;
19887 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
19891 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19892 *) as_qdir
=$as_dir;;
19894 as_dirs
="'$as_qdir' $as_dirs"
19895 as_dir
=`$as_dirname -- "$as_dir" ||
19896 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19897 X"$as_dir" : 'X\(//\)[^/]' \| \
19898 X"$as_dir" : 'X\(//\)$' \| \
19899 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19900 $as_echo X"$as_dir" |
19901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19905 /^X\(\/\/\)[^/].*/{
19918 test -d "$as_dir" && break
19920 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19921 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
19925 if mkdir
-p .
2>/dev
/null
; then
19926 as_mkdir_p
='mkdir -p "$as_dir"'
19928 test -d .
/-p && rmdir .
/-p
19933 # as_fn_executable_p FILE
19934 # -----------------------
19935 # Test if FILE is an executable regular file.
19936 as_fn_executable_p
()
19938 test -f "$1" && test -x "$1"
19939 } # as_fn_executable_p
19940 as_test_x
='test -x'
19941 as_executable_p
=as_fn_executable_p
19943 # Sed expression to map a string onto a valid CPP name.
19944 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19946 # Sed expression to map a string onto a valid variable name.
19947 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19951 ## ----------------------------------- ##
19952 ## Main body of $CONFIG_STATUS script. ##
19953 ## ----------------------------------- ##
19955 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
19957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19958 # Save the log message, to keep $0 and so on meaningful, and to
19959 # report actual input values of CONFIG_FILES etc. instead of their
19960 # values after options handling.
19962 This file was extended by $as_me, which was
19963 generated by GNU Autoconf 2.69. Invocation command line was
19965 CONFIG_FILES = $CONFIG_FILES
19966 CONFIG_HEADERS = $CONFIG_HEADERS
19967 CONFIG_LINKS = $CONFIG_LINKS
19968 CONFIG_COMMANDS = $CONFIG_COMMANDS
19971 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19976 case $ac_config_files in *"
19977 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
19980 case $ac_config_headers in *"
19981 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
19985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19986 # Files that config.status was made for.
19987 config_files="$ac_config_files"
19988 config_headers="$ac_config_headers"
19989 config_links="$ac_config_links"
19990 config_commands="$ac_config_commands"
19994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19996 \`$as_me' instantiates files and other configuration actions
19997 from templates according to the current configuration. Unless the files
19998 and actions are specified as TAGs, all are instantiated by default.
20000 Usage: $0 [OPTION]... [TAG]...
20002 -h, --help print this help, then exit
20003 -V, --version print version number and configuration settings, then exit
20004 --config print configuration, then exit
20005 -q, --quiet, --silent
20006 do not print progress messages
20007 -d, --debug don't remove temporary files
20008 --recheck update $as_me by reconfiguring in the same conditions
20009 --file=FILE[:TEMPLATE]
20010 instantiate the configuration file FILE
20011 --header=FILE[:TEMPLATE]
20012 instantiate the configuration header FILE
20014 Configuration files:
20017 Configuration headers:
20020 Configuration links:
20023 Configuration commands:
20026 Report bugs to the package provider."
20029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20030 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20033 configured by $0, generated by GNU Autoconf 2.69,
20034 with options \\"\$ac_cs_config\\"
20036 Copyright (C) 2012 Free Software Foundation, Inc.
20037 This config.status script is free software; the Free Software Foundation
20038 gives unlimited permission to copy, distribute and modify it."
20044 test -n "\$AWK" || AWK=awk
20047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20048 # The default lists apply if the user does not specify any file.
20054 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20055 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20059 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20071 # Handling of the options.
20072 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20074 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20075 $as_echo "$ac_cs_version"; exit ;;
20076 --config |
--confi |
--conf |
--con |
--co |
--c )
20077 $as_echo "$ac_cs_config"; exit ;;
20078 --debug |
--debu |
--deb |
--de |
--d |
-d )
20080 --file |
--fil |
--fi |
--f )
20083 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20084 '') as_fn_error $?
"missing file argument" ;;
20086 as_fn_append CONFIG_FILES
" '$ac_optarg'"
20087 ac_need_defaults
=false
;;
20088 --header |
--heade |
--head |
--hea )
20091 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20093 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
20094 ac_need_defaults
=false
;;
20096 # Conflict between --help and --header
20097 as_fn_error $?
"ambiguous option: \`$1'
20098 Try \`$0 --help' for more information.";;
20099 --help |
--hel |
-h )
20100 $as_echo "$ac_cs_usage"; exit ;;
20101 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20102 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20105 # This is an error.
20106 -*) as_fn_error $?
"unrecognized option: \`$1'
20107 Try \`$0 --help' for more information." ;;
20109 *) as_fn_append ac_config_targets
" $1"
20110 ac_need_defaults
=false
;;
20116 ac_configure_extra_args
=
20118 if $ac_cs_silent; then
20120 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20125 if \$ac_cs_recheck; then
20126 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20128 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20129 CONFIG_SHELL='$SHELL'
20130 export CONFIG_SHELL
20135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20139 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20140 ## Running $as_me. ##
20146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20150 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
20151 GDB_NM_FILE=$GDB_NM_FILE
20155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20157 # Handling of arguments.
20158 for ac_config_target
in $ac_config_targets
20160 case $ac_config_target in
20161 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
20162 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
20163 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
20164 "nm.h") CONFIG_LINKS
="$CONFIG_LINKS nm.h:$GDB_NM_FILE" ;;
20165 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
20166 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20167 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
20168 "gdb-gdb.py") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.py" ;;
20169 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
20170 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
20172 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20177 # If the user did not use the arguments to specify the items to instantiate,
20178 # then the envvar interface is used. Set only those that are not.
20179 # We use the long form for the default assignment because of an extremely
20180 # bizarre bug on SunOS 4.1.3.
20181 if $ac_need_defaults; then
20182 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20183 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20184 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
20185 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20188 # Have a temporary directory for convenience. Make it in the build tree
20189 # simply because there is no reason against having it here, and in addition,
20190 # creating and moving files from /tmp can sometimes cause problems.
20191 # Hook for its removal unless debugging.
20192 # Note that there is a small window in which the directory will not be cleaned:
20193 # after its creation but before its name has been assigned to `$tmp'.
20197 trap 'exit_status=$?
20198 : "${ac_tmp:=$tmp}"
20199 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20201 trap 'as_fn_exit 1' 1 2 13 15
20203 # Create a (secure) tmp directory for tmp files.
20206 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20210 tmp
=.
/conf$$
-$RANDOM
20211 (umask 077 && mkdir
"$tmp")
20212 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
20215 # Set up the scripts for CONFIG_FILES section.
20216 # No need to generate them if there are no CONFIG_FILES.
20217 # This happens for instance with `./config.status config.h'.
20218 if test -n "$CONFIG_FILES"; then
20220 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
20221 ac_cs_awk_getline
=:
20222 ac_cs_awk_pipe_init
=
20223 ac_cs_awk_read_file
='
20224 while ((getline aline < (F[key])) > 0)
20227 ac_cs_awk_pipe_fini
=
20229 ac_cs_awk_getline
=false
20230 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
20231 ac_cs_awk_read_file
='
20233 print "cat " F[key] " &&"
20234 '$ac_cs_awk_pipe_init
20235 # The final `:' finishes the AND list.
20236 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
20238 ac_cr
=`echo X | tr X '\015'`
20239 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20240 # But we know of no other shell where ac_cr would be empty at this
20241 # point, so we can use a bashism as a fallback.
20242 if test "x$ac_cr" = x
; then
20243 eval ac_cr
=\$
\'\\r
\'
20245 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20246 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20249 ac_cs_awk_cr
=$ac_cr
20252 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20255 # Create commands to substitute file output variables.
20257 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20258 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
20259 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
20262 } >conf$
$files.sh
&&
20263 . .
/conf$
$files.sh ||
20264 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
20265 rm -f conf$
$files.sh
20268 echo "cat >conf$$subs.awk <<_ACEOF" &&
20269 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20271 } >conf$$subs.sh ||
20272 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20273 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20275 for ac_last_try in false false false false false :; do
20276 . ./conf$$subs.sh ||
20277 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20279 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20280 if test $ac_delim_n = $ac_delim_num; then
20282 elif $ac_last_try; then
20283 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20285 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20288 rm -f conf$$subs.sh
20290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20291 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
20295 s/^/S["/; s
/!.
*/"]=/
20305 s/\(.\{148\}\)..*/\1/
20307 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
20312 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20319 s/\(.\{148\}\)..*/\1/
20321 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
20325 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20330 ' <conf$$subs.awk | sed '
20335 ' >>$CONFIG_STATUS || ac_write_fail=1
20336 rm -f conf$$subs.awk
20337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20339 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
20340 for (key in S) S_is_set[key] = 1
20342 \$ac_cs_awk_pipe_init
20346 nfields = split(line, field, "@
")
20348 len = length(field[1])
20349 for (i = 2; i < nfields; i++) {
20351 keylen = length(key)
20352 if (S_is_set[key]) {
20354 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20355 len += length(value) + length(field[++i])
20360 if (nfields == 3 && !substed) {
20362 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
20363 \$ac_cs_awk_read_file
20369 \$ac_cs_awk_pipe_fini
20372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20373 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20374 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
20377 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
20378 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
20381 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20382 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
20383 # trailing colons and then remove the whole line if VPATH becomes empty
20384 # (actually we leave an empty line to preserve line numbers).
20385 if test "x
$srcdir" = x.; then
20386 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20405 fi # test -n "$CONFIG_FILES"
20407 # Set up the scripts for CONFIG_HEADERS section.
20408 # No need to generate them if there are no CONFIG_HEADERS.
20409 # This happens for instance with `./config.status Makefile'.
20410 if test -n "$CONFIG_HEADERS"; then
20411 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
20415 # Transform confdefs.h into an awk script `defines.awk', embedded as
20416 # here-document in config.status, that substitutes the proper values into
20417 # config.h.in to produce config.h.
20419 # Create a delimiter string that does not exist in confdefs.h, to ease
20420 # handling of long lines.
20422 for ac_last_try in false false :; do
20423 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
20424 if test -z "$ac_tt"; then
20426 elif $ac_last_try; then
20427 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
20429 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20433 # For the awk script, D is an array of macro values keyed by name,
20434 # likewise P contains macro parameters if any. Preserve backslash
20435 # newline sequences.
20437 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20439 s/.\{148\}/&'"$ac_delim"'/g
20442 s/^[ ]*#[ ]*define[ ][ ]*/ /
20449 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
20451 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
20455 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
20456 D["\
1"]=" \
3\\\\\\n
"\\/p
20458 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
20463 s/.\{148\}/&'"$ac_delim"'/g
20468 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
20471 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
20473 ' <confdefs.h | sed '
20474 s/'"$ac_delim"'/"\\\
20475 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20478 for (key in D) D_is_set[key] = 1
20481 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20483 split(line, arg, " ")
20484 if (arg[1] == "#") {
20488 defundef
= substr
(arg
[1], 2)
20491 split(mac1
, mac2
, "(") #)
20493 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
20494 if (D_is_set
[macro
]) {
20495 # Preserve the white space surrounding the "#".
20496 print prefix
"define", macro P
[macro
] D
[macro
]
20499 # Replace #undef with comments. This is necessary, for example,
20500 # in the case of _POSIX_SOURCE, which is predefined and required
20501 # on some systems where configure will not decide to define it.
20502 if (defundef
== "undef") {
20503 print
"/*", prefix defundef
, macro
, "*/"
20511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20512 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
20513 fi # test -n "$CONFIG_HEADERS"
20516 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
20521 :[FHLC
]) ac_mode
=$ac_tag; continue;;
20523 case $ac_mode$ac_tag in
20525 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
20526 :[FH
]-) ac_tag
=-:-;;
20527 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
20544 -) ac_f
="$ac_tmp/stdin";;
20545 *) # Look for the file first in the build tree, then in the source tree
20546 # (if the path is not absolute). The absolute path cannot be DOS-style,
20547 # because $ac_f cannot contain `:'.
20551 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
20553 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20555 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20556 as_fn_append ac_file_inputs
" '$ac_f'"
20559 # Let's still pretend it is `configure' which instantiates (i.e., don't
20560 # use $as_me), people would be surprised to read:
20561 # /* config.h. Generated by config.status. */
20562 configure_input
='Generated from '`
20563 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20565 if test x
"$ac_file" != x-
; then
20566 configure_input
="$ac_file. $configure_input"
20567 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20568 $as_echo "$as_me: creating $ac_file" >&6;}
20570 # Neutralize special characters interpreted by sed in replacement strings.
20571 case $configure_input in #(
20572 *\
&* |
*\|
* |
*\\* )
20573 ac_sed_conf_input
=`$as_echo "$configure_input" |
20574 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20575 *) ac_sed_conf_input
=$configure_input;;
20579 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
20580 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
20585 ac_dir
=`$as_dirname -- "$ac_file" ||
20586 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20587 X"$ac_file" : 'X\(//\)[^/]' \| \
20588 X"$ac_file" : 'X\(//\)$' \| \
20589 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20590 $as_echo X"$ac_file" |
20591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20595 /^X\(\/\/\)[^/].*/{
20608 as_dir
="$ac_dir"; as_fn_mkdir_p
20612 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20614 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20615 # A ".." for each directory in $ac_dir_suffix.
20616 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20617 case $ac_top_builddir_sub in
20618 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20619 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20622 ac_abs_top_builddir
=$ac_pwd
20623 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
20624 # for backward compatibility:
20625 ac_top_builddir
=$ac_top_build_prefix
20628 .
) # We are building in place.
20630 ac_top_srcdir
=$ac_top_builddir_sub
20631 ac_abs_top_srcdir
=$ac_pwd ;;
20632 [\\/]* | ?
:[\\/]* ) # Absolute name.
20633 ac_srcdir
=$srcdir$ac_dir_suffix;
20634 ac_top_srcdir
=$srcdir
20635 ac_abs_top_srcdir
=$srcdir ;;
20636 *) # Relative name.
20637 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
20638 ac_top_srcdir
=$ac_top_build_prefix$srcdir
20639 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
20641 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
20651 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20652 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
20656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20657 # If the template does not know about datarootdir, expand it.
20658 # FIXME: This hack should be removed a few years after 2.60.
20659 ac_datarootdir_hack
=; ac_datarootdir_seen
=
20670 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20671 *datarootdir
*) ac_datarootdir_seen
=yes;;
20672 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
20673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20674 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20677 ac_datarootdir_hack='
20678 s&@datadir@&$datadir&g
20679 s&@docdir@&$docdir&g
20680 s&@infodir@&$infodir&g
20681 s&@localedir@&$localedir&g
20682 s&@mandir@&$mandir&g
20683 s&\\\${datarootdir}&$datarootdir&g' ;;
20687 # Neutralize VPATH when `$srcdir' = `.'.
20688 # Shell code in configure.ac might set extrasub.
20689 # FIXME: do we really want to maintain this feature?
20690 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20691 ac_sed_extra="$ac_vpsub
20694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20696 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20697 s|@configure_input@|
$ac_sed_conf_input|
;t t
20698 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
20699 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
20700 s
&@srcdir@
&$ac_srcdir&;t t
20701 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
20702 s
&@top_srcdir@
&$ac_top_srcdir&;t t
20703 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
20704 s
&@builddir@
&$ac_builddir&;t t
20705 s
&@abs_builddir@
&$ac_abs_builddir&;t t
20706 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
20707 s
&@INSTALL@
&$ac_INSTALL&;t t
20708 $ac_datarootdir_hack
20710 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
20711 if $ac_cs_awk_getline; then
20712 $AWK -f "$ac_tmp/subs.
awk"
20714 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
20716 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
20718 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20719 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
20720 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20721 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
20722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
20723 which seems to be undefined. Please make sure it is defined" >&5
20724 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
20725 which seems to be undefined. Please make sure it is defined" >&2;}
20727 rm -f "$ac_tmp/stdin"
20729 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20730 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20732 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20738 if test x"$ac_file" != x-; then
20740 $as_echo "/* $configure_input */" \
20741 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20742 } >"$ac_tmp/config.h" \
20743 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20744 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20745 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20746 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20749 mv "$ac_tmp/config.h" "$ac_file" \
20750 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20753 $as_echo "/* $configure_input */" \
20754 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20755 || as_fn_error $? "could not create -" "$LINENO" 5
20763 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
20766 # Prefer the file from the source tree if names are identical.
20767 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
20768 ac_source=$srcdir/$ac_source
20771 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
20772 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
20774 if test ! -r "$ac_source"; then
20775 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
20779 # Try a relative symlink, then a hard link, then a copy.
20781 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
20782 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
20784 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
20785 ln "$ac_source" "$ac_file" 2>/dev/null ||
20786 cp -p "$ac_source" "$ac_file" ||
20787 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
20790 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20791 $as_echo "$as_me: executing $ac_file commands" >&6;}
20796 case $ac_file$ac_mode in
20797 "config.h":H) echo > stamp-h ;;
20798 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
20799 "nm.h":L) echo > stamp-nmh ;;
20800 "gcore":F) chmod +x gcore ;;
20808 ac_clean_files=$ac_clean_files_save
20810 test $ac_write_fail = 0 ||
20811 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20814 # configure is writing to config.log, and then calls config.status.
20815 # config.status does its own redirection, appending to config.log.
20816 # Unfortunately, on DOS this fails, as config.log is still kept open
20817 # by configure, so config.status won't be able to
write to it
; its
20818 # output is simply discarded. So we exec the FD to /dev/null,
20819 # effectively closing config.log, so it can be properly (re)opened and
20820 # appended to by config.status. When coming back to configure, we
20821 # need to make the FD available again.
20822 if test "$no_create" != yes; then
20824 ac_config_status_args
=
20825 test "$silent" = yes &&
20826 ac_config_status_args
="$ac_config_status_args --quiet"
20828 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20830 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20831 # would make configure fail if this is the last instruction.
20832 $ac_cs_success || as_fn_exit
1
20836 # CONFIG_SUBDIRS section.
20838 if test "$no_recursion" != yes; then
20840 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
20841 # so they do not pile up.
20842 ac_sub_configure_args
=
20844 eval "set x $ac_configure_args"
20848 if test -n "$ac_prev"; then
20853 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
20854 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
20855 ac_prev
=cache_file
;;
20856 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
20857 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
20860 --config-cache |
-C)
20862 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
20864 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
20866 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
20868 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
20870 --disable-option-checking)
20874 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20876 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
20880 # Always prepend --prefix to ensure using the same prefix
20881 # in subdir configurations.
20882 ac_arg
="--prefix=$prefix"
20884 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20886 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
20889 if test "$silent" = yes; then
20890 ac_sub_configure_args
="--silent $ac_sub_configure_args"
20893 # Always prepend --disable-option-checking to silence warnings, since
20894 # different subdirs can have different --enable and --with options.
20895 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
20898 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
20900 # Do not complain, so a configure script can configure whichever
20901 # parts of a large source tree are present.
20902 test -d "$srcdir/$ac_dir" ||
continue
20904 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20905 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
20906 $as_echo "$ac_msg" >&6
20907 as_dir
="$ac_dir"; as_fn_mkdir_p
20911 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20913 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20914 # A ".." for each directory in $ac_dir_suffix.
20915 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20916 case $ac_top_builddir_sub in
20917 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20918 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20921 ac_abs_top_builddir
=$ac_pwd
20922 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
20923 # for backward compatibility:
20924 ac_top_builddir
=$ac_top_build_prefix
20927 .
) # We are building in place.
20929 ac_top_srcdir
=$ac_top_builddir_sub
20930 ac_abs_top_srcdir
=$ac_pwd ;;
20931 [\\/]* | ?
:[\\/]* ) # Absolute name.
20932 ac_srcdir
=$srcdir$ac_dir_suffix;
20933 ac_top_srcdir
=$srcdir
20934 ac_abs_top_srcdir
=$srcdir ;;
20935 *) # Relative name.
20936 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
20937 ac_top_srcdir
=$ac_top_build_prefix$srcdir
20938 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
20940 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
20945 # Check for guested configure; otherwise get Cygnus style configure.
20946 if test -f "$ac_srcdir/configure.gnu"; then
20947 ac_sub_configure
=$ac_srcdir/configure.gnu
20948 elif test -f "$ac_srcdir/configure"; then
20949 ac_sub_configure
=$ac_srcdir/configure
20950 elif test -f "$ac_srcdir/configure.in"; then
20951 # This should be Cygnus configure.
20952 ac_sub_configure
=$ac_aux_dir/configure
20954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
20955 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20959 # The recursion is here.
20960 if test -n "$ac_sub_configure"; then
20961 # Make the cache file name correct relative to the subdirectory.
20962 case $cache_file in
20963 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
20964 *) # Relative name.
20965 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
20968 { $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
20969 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20970 # The eval makes quoting arguments work.
20971 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20972 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20973 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
20979 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
20980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20981 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}