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
825 MAINTAINER_MODE_FALSE
854 program_transform_name
865 ac_subst_files
='nat_makefile_frag'
867 enable_option_checking
868 enable_maintainer_mode
871 with_separate_debug_dir
873 with_relocated_sources
875 with_auto_load_safe_path
905 enable_source_highlight
912 with_system_gdbinit_dir
914 enable_build_warnings
915 enable_gdb_build_warnings
925 with_libbabeltrace_prefix
926 with_libbabeltrace_type
929 with_libxxhash_prefix
933 ac_precious_vars
='build_alias
955 ac_subdirs_all
='testsuite
958 # Initialize some variables set by options.
960 ac_init_version
=false
961 ac_unrecognized_opts
=
963 # The variables have the same names as the options, with
964 # dashes changed to underlines.
972 program_transform_name
=s
,x
,x
,
980 # Installation directory options.
981 # These are left unexpanded so users can "make install exec_prefix=/foo"
982 # and all the variables that are supposed to be based on exec_prefix
983 # by default will actually change.
984 # Use braces instead of parens because sh, perl, etc. also accept them.
985 # (The list follows the same order as the GNU Coding Standards.)
986 bindir
='${exec_prefix}/bin'
987 sbindir
='${exec_prefix}/sbin'
988 libexecdir
='${exec_prefix}/libexec'
989 datarootdir
='${prefix}/share'
990 datadir
='${datarootdir}'
991 sysconfdir
='${prefix}/etc'
992 sharedstatedir
='${prefix}/com'
993 localstatedir
='${prefix}/var'
994 includedir
='${prefix}/include'
995 oldincludedir
='/usr/include'
996 docdir
='${datarootdir}/doc/${PACKAGE}'
997 infodir
='${datarootdir}/info'
1002 libdir
='${exec_prefix}/lib'
1003 localedir
='${datarootdir}/locale'
1004 mandir
='${datarootdir}/man'
1010 # If the previous option needs an argument, assign it.
1011 if test -n "$ac_prev"; then
1012 eval $ac_prev=\
$ac_option
1018 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1023 # Accept the important Cygnus configure options, so we can diagnose typos.
1025 case $ac_dashdash$ac_option in
1029 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1031 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1032 bindir
=$ac_optarg ;;
1034 -build |
--build |
--buil |
--bui |
--bu)
1035 ac_prev
=build_alias
;;
1036 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1037 build_alias
=$ac_optarg ;;
1039 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1040 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1041 ac_prev
=cache_file
;;
1042 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1043 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1044 cache_file
=$ac_optarg ;;
1046 --config-cache |
-C)
1047 cache_file
=config.cache
;;
1049 -datadir |
--datadir |
--datadi |
--datad)
1051 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1052 datadir
=$ac_optarg ;;
1054 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1055 |
--dataroo |
--dataro |
--datar)
1056 ac_prev
=datarootdir
;;
1057 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1058 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1059 datarootdir
=$ac_optarg ;;
1061 -disable-* |
--disable-*)
1062 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1065 as_fn_error $?
"invalid feature name: $ac_useropt"
1066 ac_useropt_orig
=$ac_useropt
1067 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1068 case $ac_user_opts in
1070 "enable_
$ac_useropt"
1072 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1073 ac_unrecognized_sep
=', ';;
1075 eval enable_
$ac_useropt=no
;;
1077 -docdir |
--docdir |
--docdi |
--doc |
--do)
1079 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1080 docdir
=$ac_optarg ;;
1082 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1084 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1085 dvidir
=$ac_optarg ;;
1087 -enable-* |
--enable-*)
1088 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1089 # Reject names that are not valid shell variable names.
1090 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1091 as_fn_error $?
"invalid feature name: $ac_useropt"
1092 ac_useropt_orig
=$ac_useropt
1093 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094 case $ac_user_opts in
1096 "enable_
$ac_useropt"
1098 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1099 ac_unrecognized_sep
=', ';;
1101 eval enable_
$ac_useropt=\
$ac_optarg ;;
1103 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1104 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1105 |
--exec |
--exe |
--ex)
1106 ac_prev
=exec_prefix
;;
1107 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1108 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1109 |
--exec=* |
--exe=* |
--ex=*)
1110 exec_prefix
=$ac_optarg ;;
1112 -gas |
--gas |
--ga |
--g)
1113 # Obsolete; use --with-gas.
1116 -help |
--help |
--hel |
--he |
-h)
1117 ac_init_help
=long
;;
1118 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1119 ac_init_help
=recursive
;;
1120 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1121 ac_init_help
=short
;;
1123 -host |
--host |
--hos |
--ho)
1124 ac_prev
=host_alias
;;
1125 -host=* |
--host=* |
--hos=* |
--ho=*)
1126 host_alias
=$ac_optarg ;;
1128 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1130 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1132 htmldir
=$ac_optarg ;;
1134 -includedir |
--includedir |
--includedi |
--included |
--include \
1135 |
--includ |
--inclu |
--incl |
--inc)
1136 ac_prev
=includedir
;;
1137 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1138 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1139 includedir
=$ac_optarg ;;
1141 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1143 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1144 infodir
=$ac_optarg ;;
1146 -libdir |
--libdir |
--libdi |
--libd)
1148 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1149 libdir
=$ac_optarg ;;
1151 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1152 |
--libexe |
--libex |
--libe)
1153 ac_prev
=libexecdir
;;
1154 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1155 |
--libexe=* |
--libex=* |
--libe=*)
1156 libexecdir
=$ac_optarg ;;
1158 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1159 ac_prev
=localedir
;;
1160 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1161 localedir
=$ac_optarg ;;
1163 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1164 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1165 ac_prev
=localstatedir
;;
1166 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1167 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1168 localstatedir
=$ac_optarg ;;
1170 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1172 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1173 mandir
=$ac_optarg ;;
1175 -nfp |
--nfp |
--nf)
1176 # Obsolete; use --without-fp.
1179 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1180 |
--no-cr |
--no-c |
-n)
1183 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1184 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1187 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1188 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1189 |
--oldin |
--oldi |
--old |
--ol |
--o)
1190 ac_prev
=oldincludedir
;;
1191 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1192 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1193 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1194 oldincludedir
=$ac_optarg ;;
1196 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1198 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1199 prefix
=$ac_optarg ;;
1201 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1202 |
--program-pre |
--program-pr |
--program-p)
1203 ac_prev
=program_prefix
;;
1204 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1205 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1206 program_prefix
=$ac_optarg ;;
1208 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1209 |
--program-suf |
--program-su |
--program-s)
1210 ac_prev
=program_suffix
;;
1211 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1212 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1213 program_suffix
=$ac_optarg ;;
1215 -program-transform-name |
--program-transform-name \
1216 |
--program-transform-nam |
--program-transform-na \
1217 |
--program-transform-n |
--program-transform- \
1218 |
--program-transform |
--program-transfor \
1219 |
--program-transfo |
--program-transf \
1220 |
--program-trans |
--program-tran \
1221 |
--progr-tra |
--program-tr |
--program-t)
1222 ac_prev
=program_transform_name
;;
1223 -program-transform-name=* |
--program-transform-name=* \
1224 |
--program-transform-nam=* |
--program-transform-na=* \
1225 |
--program-transform-n=* |
--program-transform-=* \
1226 |
--program-transform=* |
--program-transfor=* \
1227 |
--program-transfo=* |
--program-transf=* \
1228 |
--program-trans=* |
--program-tran=* \
1229 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1230 program_transform_name
=$ac_optarg ;;
1232 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1234 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1235 pdfdir
=$ac_optarg ;;
1237 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1239 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1242 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1243 |
-silent |
--silent |
--silen |
--sile |
--sil)
1246 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1248 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1250 sbindir
=$ac_optarg ;;
1252 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1253 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1254 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1256 ac_prev
=sharedstatedir
;;
1257 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1258 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1259 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1261 sharedstatedir
=$ac_optarg ;;
1263 -site |
--site |
--sit)
1265 -site=* |
--site=* |
--sit=*)
1268 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1270 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1271 srcdir
=$ac_optarg ;;
1273 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1274 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1275 ac_prev
=sysconfdir
;;
1276 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1277 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1278 sysconfdir
=$ac_optarg ;;
1280 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1281 ac_prev
=target_alias
;;
1282 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1283 target_alias
=$ac_optarg ;;
1285 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1288 -version |
--version |
--versio |
--versi |
--vers |
-V)
1289 ac_init_version
=: ;;
1292 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1295 as_fn_error $?
"invalid package name: $ac_useropt"
1296 ac_useropt_orig
=$ac_useropt
1297 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298 case $ac_user_opts in
1302 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1303 ac_unrecognized_sep
=', ';;
1305 eval with_
$ac_useropt=\
$ac_optarg ;;
1307 -without-* |
--without-*)
1308 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1311 as_fn_error $?
"invalid package name: $ac_useropt"
1312 ac_useropt_orig
=$ac_useropt
1313 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1314 case $ac_user_opts in
1318 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1319 ac_unrecognized_sep
=', ';;
1321 eval with_
$ac_useropt=no
;;
1324 # Obsolete; use --with-x.
1327 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1328 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1329 ac_prev
=x_includes
;;
1330 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1331 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1332 x_includes
=$ac_optarg ;;
1334 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1335 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1336 ac_prev
=x_libraries
;;
1337 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1338 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1339 x_libraries
=$ac_optarg ;;
1341 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1342 Try \`$0 --help' for more information"
1346 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1347 # Reject names that are not valid shell variable names.
1348 case $ac_envvar in #(
1349 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1350 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1352 eval $ac_envvar=\
$ac_optarg
1353 export $ac_envvar ;;
1356 # FIXME: should be removed in autoconf 3.0.
1357 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1358 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1359 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1360 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1366 if test -n "$ac_prev"; then
1367 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1368 as_fn_error $?
"missing argument to $ac_option"
1371 if test -n "$ac_unrecognized_opts"; then
1372 case $enable_option_checking in
1374 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1375 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1379 # Check all directory arguments for consistency.
1380 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1381 datadir sysconfdir sharedstatedir localstatedir includedir \
1382 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1383 libdir localedir mandir
1385 eval ac_val
=\$
$ac_var
1386 # Remove trailing slashes.
1389 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1390 eval $ac_var=\
$ac_val;;
1392 # Be sure to have absolute directory names.
1394 [\\/$
]* | ?
:[\\/]* ) continue;;
1395 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1397 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1400 # There might be people who depend on the old broken behavior: `$host'
1401 # used to hold the argument of --host etc.
1402 # FIXME: To remove some day.
1405 target
=$target_alias
1407 # FIXME: To remove some day.
1408 if test "x$host_alias" != x
; then
1409 if test "x$build_alias" = x
; then
1410 cross_compiling
=maybe
1411 elif test "x$build_alias" != "x$host_alias"; then
1417 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1419 test "$silent" = yes && exec 6>/dev
/null
1422 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1423 ac_ls_di
=`ls -di .` &&
1424 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1425 as_fn_error $?
"working directory cannot be determined"
1426 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1427 as_fn_error $?
"pwd does not report name of working directory"
1430 # Find the source files, if location was not specified.
1431 if test -z "$srcdir"; then
1432 ac_srcdir_defaulted
=yes
1433 # Try the directory containing this script, then the parent directory.
1434 ac_confdir
=`$as_dirname -- "$as_myself" ||
1435 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1436 X"$as_myself" : 'X\(//\)[^/]' \| \
1437 X"$as_myself" : 'X\(//\)$' \| \
1438 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1439 $as_echo X"$as_myself" |
1440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1458 if test ! -r "$srcdir/$ac_unique_file"; then
1462 ac_srcdir_defaulted
=no
1464 if test ! -r "$srcdir/$ac_unique_file"; then
1465 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1466 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1468 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1470 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1472 # When building in place, set srcdir=.
1473 if test "$ac_abs_confdir" = "$ac_pwd"; then
1476 # Remove unnecessary trailing slashes from srcdir.
1477 # Double slashes in file names in object file debugging info
1478 # mess up M-x gdb in Emacs.
1480 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1482 for ac_var
in $ac_precious_vars; do
1483 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1484 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1485 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1486 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1490 # Report the --help message.
1492 if test "$ac_init_help" = "long"; then
1493 # Omit some internal or obsolete options to make the list less imposing.
1494 # This message is too long to be a string in the A/UX 3.1 sh.
1496 \`configure' configures this package to adapt to many kinds of systems.
1498 Usage: $0 [OPTION]... [VAR=VALUE]...
1500 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1501 VAR=VALUE. See below for descriptions of some of the useful variables.
1503 Defaults for the options are specified in brackets.
1506 -h, --help display this help and exit
1507 --help=short display options specific to this package
1508 --help=recursive display the short help of all the included packages
1509 -V, --version display version information and exit
1510 -q, --quiet, --silent do not print \`checking ...' messages
1511 --cache-file=FILE cache test results in FILE [disabled]
1512 -C, --config-cache alias for \`--cache-file=config.cache'
1513 -n, --no-create do not create output files
1514 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1516 Installation directories:
1517 --prefix=PREFIX install architecture-independent files in PREFIX
1518 [$ac_default_prefix]
1519 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1522 By default, \`make install' will install all the files in
1523 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1524 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1525 for instance \`--prefix=\$HOME'.
1527 For better control, use the options below.
1529 Fine tuning of the installation directories:
1530 --bindir=DIR user executables [EPREFIX/bin]
1531 --sbindir=DIR system admin executables [EPREFIX/sbin]
1532 --libexecdir=DIR program executables [EPREFIX/libexec]
1533 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1534 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1535 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1536 --libdir=DIR object code libraries [EPREFIX/lib]
1537 --includedir=DIR C header files [PREFIX/include]
1538 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1539 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1540 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1541 --infodir=DIR info documentation [DATAROOTDIR/info]
1542 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1543 --mandir=DIR man documentation [DATAROOTDIR/man]
1544 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1545 --htmldir=DIR html documentation [DOCDIR]
1546 --dvidir=DIR dvi documentation [DOCDIR]
1547 --pdfdir=DIR pdf documentation [DOCDIR]
1548 --psdir=DIR ps documentation [DOCDIR]
1554 --program-prefix=PREFIX prepend PREFIX to installed program names
1555 --program-suffix=SUFFIX append SUFFIX to installed program names
1556 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1559 --x-includes=DIR X include files are
in DIR
1560 --x-libraries=DIR X library files are
in DIR
1563 --build=BUILD configure
for building on BUILD
[guessed
]
1564 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1565 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1569 if test -n "$ac_init_help"; then
1574 --disable-option-checking ignore unrecognized
--enable/--with options
1575 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1576 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1577 --enable-maintainer-mode
1578 enable make rules and dependencies not useful
(and
1579 sometimes confusing
) to the casual installer
1580 --enable-plugins Enable support
for plugins
1581 --disable-largefile omit support
for large files
1582 --enable-targets=TARGETS
1583 alternative target configurations
1584 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1585 --disable-gdbmi disable machine-interface
(MI
)
1586 --enable-tui enable full-screen terminal user interface
(TUI
)
1587 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1588 --enable-profiling enable profiling of GDB
1589 --enable-codesign=CERT sign gdb with
'codesign -s CERT'
1590 --disable-rpath do not hardcode runtime library paths
1591 --enable-source-highlight
1592 enable source-highlight
for source listings
1593 --enable-werror treat compile warnings as errors
1594 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1595 --enable-gdb-build-warnings
1596 enable GDB specific build-time compiler warnings
if
1598 --enable-ubsan enable undefined behavior sanitizer
(auto
/yes
/no
)
1599 --enable-sim link gdb with simulator
1600 --enable-libctf Handle .ctf type-info sections
[default
=yes]
1601 --enable-unit-tests Enable the inclusion of unit tests when compiling
1605 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1606 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1607 --with-separate-debug-dir=PATH
1608 look for global separate debug info
in this path
1610 --with-gdb-datadir=PATH
look for global separate data files
in this path
1612 --with-relocated-sources=PATH
1613 automatically relocate this path
for source files
1614 --with-auto-load-dir=PATH
1615 directories from
which to load auto-loaded scripts
1616 [$debugdir:$datadir/auto-load
]
1617 --with-auto-load-safe-path=PATH
1618 directories safe to hold auto-loaded files
1619 [--with-auto-load-dir]
1620 --without-auto-load-safe-path
1621 do not restrict auto-loaded files locations
1622 --with-debuginfod Enable debuginfo lookups with debuginfod
1624 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1625 --with-curses use the curses library instead of the termcap
1627 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1628 --with-bugurl=URL Direct users to URL to report a bug
1629 --with-system-zlib use installed libz
1630 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1631 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1632 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1633 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1634 --with-iconv-bin=PATH specify where to find the iconv program
1635 --with-system-readline use installed readline library
1636 --with-jit-reader-dir=PATH
1637 directory to load the JIT readers from
1638 --with-expat include expat support (auto/yes/no)
1639 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1640 --without-libexpat-prefix don't search
for libexpat
in includedir and libdir
1641 --with-libexpat-type=TYPE
type of library to search
for (auto
/static
/shared
)
1642 --with-mpfr include MPFR support
(auto
/yes
/no
)
1643 --with-libmpfr-prefix[=DIR
] search
for libmpfr
in DIR
/include and DIR
/lib
1644 --without-libmpfr-prefix don
't search for libmpfr in includedir and libdir
1645 --with-libmpfr-type=TYPE type of library to search for (auto/static/shared)
1646 --with-python[=PYTHON] include python support
1647 (auto/yes/no/<python-program>)
1648 --with-python-libdir[=DIR]
1649 search for python's libraries
in DIR
1650 --with-guile[=GUILE
] include guile support
1651 (auto
/yes
/no
/<guile-version
>/<pkg-config-program
>)
1652 --with-intel-pt include Intel Processor Trace support
(auto
/yes
/no
)
1653 --with-libipt-prefix[=DIR
] search
for libipt
in DIR
/include and DIR
/lib
1654 --without-libipt-prefix don
't search for libipt in includedir and libdir
1655 --with-libipt-type=TYPE type of library to search for (auto/static/shared)
1656 --without-included-regex
1657 don't use included regex
; this is the default on
1658 systems with version
2 of the GNU C library
(use
1659 with caution on other system
)
1660 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1661 --with-system-gdbinit=PATH
1662 automatically load a system-wide gdbinit
file
1663 --with-system-gdbinit-dir=PATH
1664 automatically load system-wide gdbinit files from
1666 --with-lzma support lzma compression
(auto
/yes
/no
)
1667 --with-liblzma-prefix[=DIR
] search
for liblzma
in DIR
/include and DIR
/lib
1668 --without-liblzma-prefix don
't search for liblzma in includedir and libdir
1669 --with-liblzma-type=TYPE type of library to search for (auto/static/shared)
1670 --with-tcl directory containing tcl configuration (tclConfig.sh)
1671 --with-tk directory containing tk configuration (tkConfig.sh)
1672 --with-x use the X Window System
1673 --with-babeltrace include babeltrace support (auto/yes/no)
1674 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1675 --without-libbabeltrace-prefix don't search
for libbabeltrace
in includedir and libdir
1676 --with-libbabeltrace-type=TYPE
type of library to search
for (auto
/static
/shared
)
1677 --with-xxhash use libxxhash
for hashing
(faster
) (auto
/yes
/no
)
1678 --with-libxxhash-prefix[=DIR
] search
for libxxhash
in DIR
/include and DIR
/lib
1679 --without-libxxhash-prefix don
't search for libxxhash in includedir and libdir
1680 --with-libxxhash-type=TYPE type of library to search for (auto/static/shared)
1682 Some influential environment variables:
1683 CC C compiler command
1684 CFLAGS C compiler flags
1685 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1686 nonstandard directory <lib dir>
1687 LIBS libraries to pass to the linker, e.g. -l<library>
1688 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1689 you have headers in a nonstandard directory <include dir>
1690 CXX C++ compiler command
1691 CXXFLAGS C++ compiler flags
1693 MAKEINFO Parent configure detects if it is of sufficient version.
1695 Parameters for MAKEINFO.
1696 PKG_CONFIG path to pkg-config utility
1698 directories to add to pkg-config's search path
1700 path overriding pkg-config
's built-in search path
1702 C compiler flags for DEBUGINFOD, overriding pkg-config
1704 linker flags for DEBUGINFOD, overriding pkg-config
1705 YACC The `Yet Another Compiler Compiler' implementation to use.
1706 Defaults to the first program found out of
: `bison -y', `byacc
',
1708 YFLAGS The list of arguments that will be passed by default to
$YACC.
1709 This
script will default YFLAGS to the empty string to avoid a
1710 default value of
`-d' given by some make applications.
1711 XMKMF Path to xmkmf, Makefile generator for X Window System
1713 Use these variables to override the choices made by `configure
' or to help
1714 it to find libraries and programs with nonstandard names/locations.
1716 Report bugs to the package provider.
1721 if test "$ac_init_help" = "recursive"; then
1722 # If there are subdirs, report their specific --help.
1723 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1724 test -d "$ac_dir" ||
1725 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1730 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1732 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.
[\\/]||
'`
1733 # A ".." for each directory in $ac_dir_suffix.
1734 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|
/[^
\\/]*|
/..|g
;s|
/||
'`
1735 case $ac_top_builddir_sub in
1736 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1737 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1740 ac_abs_top_builddir=$ac_pwd
1741 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1742 # for backward compatibility:
1743 ac_top_builddir=$ac_top_build_prefix
1746 .) # We are building in place.
1748 ac_top_srcdir=$ac_top_builddir_sub
1749 ac_abs_top_srcdir=$ac_pwd ;;
1750 [\\/]* | ?:[\\/]* ) # Absolute name.
1751 ac_srcdir=$srcdir$ac_dir_suffix;
1752 ac_top_srcdir=$srcdir
1753 ac_abs_top_srcdir=$srcdir ;;
1755 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1756 ac_top_srcdir=$ac_top_build_prefix$srcdir
1757 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1759 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1761 cd "$ac_dir" || { ac_status=$?; continue; }
1762 # Check for guested configure.
1763 if test -f "$ac_srcdir/configure.gnu"; then
1765 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1766 elif test -f "$ac_srcdir/configure"; then
1768 $SHELL "$ac_srcdir/configure" --help=recursive
1770 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1772 cd "$ac_pwd" || { ac_status=$?; break; }
1776 test -n "$ac_init_help" && exit $ac_status
1777 if $ac_init_version; then
1780 generated by GNU Autoconf 2.69
1782 Copyright (C) 2012 Free Software Foundation, Inc.
1783 This configure script is free software; the Free Software Foundation
1784 gives unlimited permission to copy, distribute and modify it.
1789 ## ------------------------ ##
1790 ## Autoconf initialization. ##
1791 ## ------------------------ ##
1793 # ac_fn_c_try_compile LINENO
1794 # --------------------------
1795 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1796 ac_fn_c_try_compile ()
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 rm -f conftest.$ac_objext
1800 if { { ac_try="$ac_compile"
1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803 *) ac_try_echo=$ac_try;;
1805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806 $as_echo "$ac_try_echo"; } >&5
1807 (eval "$ac_compile") 2>conftest.err
1809 if test -s conftest.err; then
1810 grep -v '^
*+' conftest.err >conftest.er1
1811 cat conftest.er1 >&5
1812 mv -f conftest.er1 conftest.err
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && {
1816 test -z "$ac_c_werror_flag" ||
1817 test ! -s conftest.err
1818 } && test -s conftest.$ac_objext; then :
1821 $as_echo "$as_me: failed program was:" >&5
1822 sed 's
/^
/|
/' conftest.$ac_ext >&5
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827 as_fn_set_status $ac_retval
1829 } # ac_fn_c_try_compile
1831 # ac_fn_cxx_try_compile LINENO
1832 # ----------------------------
1833 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1834 ac_fn_cxx_try_compile ()
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 rm -f conftest.$ac_objext
1838 if { { ac_try="$ac_compile"
1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_compile") 2>conftest.err
1847 if test -s conftest.err; then
1848 grep -v '^
*+' conftest.err >conftest.er1
1849 cat conftest.er1 >&5
1850 mv -f conftest.er1 conftest.err
1852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853 test $ac_status = 0; } && {
1854 test -z "$ac_cxx_werror_flag" ||
1855 test ! -s conftest.err
1856 } && test -s conftest.$ac_objext; then :
1859 $as_echo "$as_me: failed program was:" >&5
1860 sed 's
/^
/|
/' conftest.$ac_ext >&5
1864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1865 as_fn_set_status $ac_retval
1867 } # ac_fn_cxx_try_compile
1869 # ac_fn_c_try_cpp LINENO
1870 # ----------------------
1871 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 if { { ac_try="$ac_cpp conftest.$ac_ext"
1877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878 *) ac_try_echo=$ac_try;;
1880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881 $as_echo "$ac_try_echo"; } >&5
1882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1884 if test -s conftest.err; then
1885 grep -v '^
*+' conftest.err >conftest.er1
1886 cat conftest.er1 >&5
1887 mv -f conftest.er1 conftest.err
1889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890 test $ac_status = 0; } > conftest.i && {
1891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1892 test ! -s conftest.err
1896 $as_echo "$as_me: failed program was:" >&5
1897 sed 's
/^
/|
/' conftest.$ac_ext >&5
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 as_fn_set_status $ac_retval
1906 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1907 # -------------------------------------------------------
1908 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1909 # the include files in INCLUDES and setting the cache variable VAR
1911 ac_fn_c_check_header_mongrel ()
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 if eval \${$3+:} false; then :
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916 $as_echo_n "checking for $2... " >&6; }
1917 if eval \${$3+:} false; then :
1918 $as_echo_n "(cached) " >&6
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1922 $as_echo "$ac_res" >&6; }
1924 # Is the header compilable?
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1926 $as_echo_n "checking $2 usability... " >&6; }
1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h. */
1932 if ac_fn_c_try_compile "$LINENO"; then :
1933 ac_header_compiler=yes
1935 ac_header_compiler=no
1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1939 $as_echo "$ac_header_compiler" >&6; }
1941 # Is the header present?
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1943 $as_echo_n "checking $2 presence... " >&6; }
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1948 if ac_fn_c_try_cpp "$LINENO"; then :
1949 ac_header_preproc=yes
1951 ac_header_preproc=no
1953 rm -f conftest.err conftest.i conftest.$ac_ext
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1955 $as_echo "$ac_header_preproc" >&6; }
1957 # So? What about this header?
1958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1961 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1963 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1967 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1969 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1971 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1973 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1975 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1979 $as_echo_n "checking for $2... " >&6; }
1980 if eval \${$3+:} false; then :
1981 $as_echo_n "(cached) " >&6
1983 eval "$3=\$ac_header_compiler"
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987 $as_echo "$ac_res" >&6; }
1989 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1991 } # ac_fn_c_check_header_mongrel
1993 # ac_fn_c_try_run LINENO
1994 # ----------------------
1995 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1996 # that executables *can* be run.
1999 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2000 if { { ac_try="$ac_link"
2002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2003 *) ac_try_echo=$ac_try;;
2005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2006 $as_echo "$ac_try_echo"; } >&5
2007 (eval "$ac_link") 2>&5
2009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2010 test $ac_status = 0; } && { ac_try='.
/conftest
$ac_exeext'
2011 { { case "(($ac_try" in
2012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2013 *) ac_try_echo=$ac_try;;
2015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2016 $as_echo "$ac_try_echo"; } >&5
2017 (eval "$ac_try") 2>&5
2019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2020 test $ac_status = 0; }; }; then :
2023 $as_echo "$as_me: program exited with status $ac_status" >&5
2024 $as_echo "$as_me: failed program was:" >&5
2025 sed 's
/^
/|
/' conftest.$ac_ext >&5
2027 ac_retval=$ac_status
2029 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2031 as_fn_set_status $ac_retval
2035 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2036 # -------------------------------------------------------
2037 # Tests whether HEADER exists and can be compiled using the include files in
2038 # INCLUDES, setting the cache variable VAR accordingly.
2039 ac_fn_c_check_header_compile ()
2041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2043 $as_echo_n "checking for $2... " >&6; }
2044 if eval \${$3+:} false; then :
2045 $as_echo_n "(cached) " >&6
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2052 if ac_fn_c_try_compile "$LINENO"; then :
2057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061 $as_echo "$ac_res" >&6; }
2062 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2064 } # ac_fn_c_check_header_compile
2066 # ac_fn_c_try_link LINENO
2067 # -----------------------
2068 # Try to link conftest.$ac_ext, and return whether this succeeded.
2071 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2072 rm -f conftest.$ac_objext conftest$ac_exeext
2073 if { { ac_try="$ac_link"
2075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2076 *) ac_try_echo=$ac_try;;
2078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2079 $as_echo "$ac_try_echo"; } >&5
2080 (eval "$ac_link") 2>conftest.err
2082 if test -s conftest.err; then
2083 grep -v '^
*+' conftest.err >conftest.er1
2084 cat conftest.er1 >&5
2085 mv -f conftest.er1 conftest.err
2087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2088 test $ac_status = 0; } && {
2089 test -z "$ac_c_werror_flag" ||
2090 test ! -s conftest.err
2091 } && test -s conftest$ac_exeext && {
2092 test "$cross_compiling" = yes ||
2093 test -x conftest$ac_exeext
2097 $as_echo "$as_me: failed program was:" >&5
2098 sed 's
/^
/|
/' conftest.$ac_ext >&5
2102 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2103 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2104 # interfere with the next link command; also delete a directory that is
2105 # left behind by Apple's compiler. We
do this before executing the actions.
2106 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2107 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2108 as_fn_set_status
$ac_retval
2110 } # ac_fn_c_try_link
2112 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2113 # --------------------------------------------
2114 # Tries to find the compile-time value of EXPR in a program that includes
2115 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2117 ac_fn_c_compute_int
()
2119 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2120 if test "$cross_compiling" = yes; then
2121 # Depending upon the size, compute the lo and hi bounds.
2122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2123 /* end confdefs.h. */
2128 static int test_array [1 - 2 * !(($2) >= 0)];
2130 return test_array [0];
2136 if ac_fn_c_try_compile
"$LINENO"; then :
2139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h. */
2145 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2147 return test_array [0];
2153 if ac_fn_c_try_compile
"$LINENO"; then :
2154 ac_hi
=$ac_mid; break
2156 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2157 if test $ac_lo -le $ac_mid; then
2161 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2163 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2167 /* end confdefs.h. */
2172 static int test_array [1 - 2 * !(($2) < 0)];
2174 return test_array [0];
2180 if ac_fn_c_try_compile
"$LINENO"; then :
2183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2184 /* end confdefs.h. */
2189 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2191 return test_array [0];
2197 if ac_fn_c_try_compile
"$LINENO"; then :
2198 ac_lo
=$ac_mid; break
2200 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2201 if test $ac_mid -le $ac_hi; then
2205 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2207 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2212 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2214 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2215 # Binary search between lo and hi bounds.
2216 while test "x$ac_lo" != "x$ac_hi"; do
2217 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h. */
2224 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2226 return test_array [0];
2232 if ac_fn_c_try_compile
"$LINENO"; then :
2235 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2237 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2240 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h. */
2247 static long int longval () { return $2; }
2248 static unsigned long int ulongval () { return $2; }
2255 FILE *f = fopen ("conftest.val", "w");
2260 long int i = longval ();
2263 fprintf (f, "%ld", i);
2267 unsigned long int i = ulongval ();
2270 fprintf (f, "%lu", i);
2272 /* Do not output a trailing newline, as this causes \r\n confusion
2273 on some platforms. */
2274 return ferror (f) || fclose (f) != 0;
2280 if ac_fn_c_try_run
"$LINENO"; then :
2281 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2285 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2286 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2290 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2291 as_fn_set_status
$ac_retval
2293 } # ac_fn_c_compute_int
2295 # ac_fn_c_check_func LINENO FUNC VAR
2296 # ----------------------------------
2297 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2298 ac_fn_c_check_func
()
2300 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2302 $as_echo_n "checking for $2... " >&6; }
2303 if eval \
${$3+:} false
; then :
2304 $as_echo_n "(cached) " >&6
2306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2307 /* end confdefs.h. */
2308 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2310 #define $2 innocuous_$2
2312 /* System header to define __stub macros and hopefully few prototypes,
2313 which can conflict with char $2 (); below.
2314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2315 <limits.h> exists even on freestanding compilers. */
2318 # include <limits.h>
2320 # include <assert.h>
2325 /* Override any GCC internal prototype to avoid an error.
2326 Use char because int might match the return type of a GCC
2327 builtin and then its argument prototype would still apply. */
2332 /* The GNU C library defines this for functions which it implements
2333 to always fail with ENOSYS. Some functions are actually named
2334 something starting with __ and the normal name is an alias. */
2335 #if defined __stub_$2 || defined __stub___$2
2347 if ac_fn_c_try_link
"$LINENO"; then :
2352 rm -f core conftest.err conftest.
$ac_objext \
2353 conftest
$ac_exeext conftest.
$ac_ext
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2357 $as_echo "$ac_res" >&6; }
2358 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2360 } # ac_fn_c_check_func
2362 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2363 # -------------------------------------------
2364 # Tests whether TYPE exists after having included INCLUDES, setting cache
2365 # variable VAR accordingly.
2366 ac_fn_c_check_type
()
2368 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2370 $as_echo_n "checking for $2... " >&6; }
2371 if eval \
${$3+:} false
; then :
2372 $as_echo_n "(cached) " >&6
2375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2376 /* end confdefs.h. */
2387 if ac_fn_c_try_compile
"$LINENO"; then :
2388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2389 /* end confdefs.h. */
2400 if ac_fn_c_try_compile
"$LINENO"; then :
2405 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2407 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2411 $as_echo "$ac_res" >&6; }
2412 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2414 } # ac_fn_c_check_type
2416 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2417 # ---------------------------------------------
2418 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2420 ac_fn_c_check_decl
()
2422 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2423 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2424 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2426 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2427 if eval \
${$3+:} false
; then :
2428 $as_echo_n "(cached) " >&6
2430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2431 /* end confdefs.h. */
2436 #ifndef $as_decl_name
2438 (void) $as_decl_use;
2440 (void) $as_decl_name;
2448 if ac_fn_c_try_compile
"$LINENO"; then :
2453 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2457 $as_echo "$ac_res" >&6; }
2458 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2460 } # ac_fn_c_check_decl
2462 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2463 # ----------------------------------------------------
2464 # Tries to find if the field MEMBER exists in type AGGR, after including
2465 # INCLUDES, setting cache variable VAR accordingly.
2466 ac_fn_c_check_member
()
2468 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2470 $as_echo_n "checking for $2.$3... " >&6; }
2471 if eval \
${$4+:} false
; then :
2472 $as_echo_n "(cached) " >&6
2474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2475 /* end confdefs.h. */
2487 if ac_fn_c_try_compile
"$LINENO"; then :
2490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2491 /* end confdefs.h. */
2497 if (sizeof ac_aggr.$3)
2503 if ac_fn_c_try_compile
"$LINENO"; then :
2508 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2510 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2514 $as_echo "$ac_res" >&6; }
2515 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2517 } # ac_fn_c_check_member
2519 # ac_fn_cxx_try_link LINENO
2520 # -------------------------
2521 # Try to link conftest.$ac_ext, and return whether this succeeded.
2522 ac_fn_cxx_try_link
()
2524 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2525 rm -f conftest.
$ac_objext conftest
$ac_exeext
2526 if { { ac_try
="$ac_link"
2528 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2529 *) ac_try_echo=$ac_try;;
2531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2532 $as_echo "$ac_try_echo"; } >&5
2533 (eval "$ac_link") 2>conftest.err
2535 if test -s conftest.err; then
2536 grep -v '^ *+' conftest.err >conftest.er1
2537 cat conftest.er1 >&5
2538 mv -f conftest.er1 conftest.err
2540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2541 test $ac_status = 0; } && {
2542 test -z "$ac_cxx_werror_flag" ||
2543 test ! -s conftest.err
2544 } && test -s conftest$ac_exeext && {
2545 test "$cross_compiling" = yes ||
2546 test -x conftest$ac_exeext
2550 $as_echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2555 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2556 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2557 # interfere with the next link command; also delete a directory that is
2558 # left behind by Apple's compiler. We do this before executing the actions.
2559 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2560 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2561 as_fn_set_status $ac_retval
2563 } # ac_fn_cxx_try_link
2565 # ac_fn_cxx_check_func LINENO FUNC VAR
2566 # ------------------------------------
2567 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2568 ac_fn_cxx_check_func ()
2570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2572 $as_echo_n "checking for $2... " >&6; }
2573 if eval \${$3+:} false; then :
2574 $as_echo_n "(cached) " >&6
2576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2577 /* end confdefs.h. */
2578 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2580 #define $2 innocuous_$2
2582 /* System header to define __stub macros and hopefully few prototypes,
2583 which can conflict with char $2 (); below.
2584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2585 <limits.h> exists even on freestanding compilers. */
2588 # include <limits.h>
2590 # include <assert.h>
2595 /* Override any GCC internal prototype to avoid an error.
2596 Use char because int might match the return type of a GCC
2597 builtin and then its argument prototype would still apply. */
2602 /* The GNU C library defines this for functions which it implements
2603 to always fail with ENOSYS. Some functions are actually named
2604 something starting with __ and the normal name is an alias. */
2605 #if defined __stub_$2 || defined __stub___$2
2617 if ac_fn_cxx_try_link "$LINENO"; then :
2622 rm -f core conftest.err conftest.$ac_objext \
2623 conftest$ac_exeext conftest.$ac_ext
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2627 $as_echo "$ac_res" >&6; }
2628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2630 } # ac_fn_cxx_check_func
2631 cat >config.log <<_ACEOF
2632 This file contains any messages produced by compilers while
2633 running configure, to aid debugging if configure makes a mistake.
2635 It was created by $as_me, which was
2636 generated by GNU Autoconf 2.69. Invocation command line was
2648 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2649 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2650 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2651 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2652 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2654 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2655 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2657 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2658 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2659 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2660 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2661 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2662 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2663 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 test -z "$as_dir" && as_dir=.
2672 $as_echo "PATH: $as_dir"
2688 # Keep a trace of the command line.
2689 # Strip out --no-create and --no-recursion so they do not pile up.
2690 # Strip out --silent because we don't want to record it for future runs.
2691 # Also quote any args containing shell meta-characters.
2692 # Make two passes to allow for proper duplicate-argument suppression.
2696 ac_must_keep_next=false
2702 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2703 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2704 | -silent | --silent | --silen | --sile | --sil)
2707 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2710 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2712 as_fn_append ac_configure_args1 " '$ac_arg'"
2713 if test $ac_must_keep_next = true; then
2714 ac_must_keep_next=false # Got value, back to normal.
2717 *=* | --config-cache | -C | -disable-* | --disable-* \
2718 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2719 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2720 | -with-* | --with-* | -without-* | --without-* | --x)
2721 case "$ac_configure_args0 " in
2722 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2725 -* ) ac_must_keep_next=true ;;
2728 as_fn_append ac_configure_args " '$ac_arg'"
2733 { ac_configure_args0=; unset ac_configure_args0;}
2734 { ac_configure_args1=; unset ac_configure_args1;}
2736 # When interrupted or exit'd, cleanup temporary files, and complete
2737 # config.log. We remove comments because anyway the quotes in there
2738 # would cause problems or look ugly.
2739 # WARNING: Use '\'' to represent an apostrophe within the trap.
2740 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2741 trap 'exit_status=$?
2742 # Save into config.log some information that might help in debugging.
2746 $as_echo "## ---------------- ##
2747 ## Cache variables. ##
2748 ## ---------------- ##"
2750 # The following way of writing the cache mishandles newlines in values,
2752 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2753 eval ac_val=\$$ac_var
2757 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2758 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2761 _ | IFS | as_nl) ;; #(
2762 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2763 *) { eval $ac_var=; unset $ac_var;} ;;
2768 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2769 *${as_nl}ac_space=\ *)
2771 "s/'\''/'\''\\\\'\'''\''/g;
2772 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2775 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2782 $as_echo "## ----------------- ##
2783 ## Output variables. ##
2784 ## ----------------- ##"
2786 for ac_var in $ac_subst_vars
2788 eval ac_val=\$$ac_var
2790 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2792 $as_echo "$ac_var='\''$ac_val'\''"
2796 if test -n "$ac_subst_files"; then
2797 $as_echo "## ------------------- ##
2798 ## File substitutions. ##
2799 ## ------------------- ##"
2801 for ac_var in $ac_subst_files
2803 eval ac_val=\$$ac_var
2805 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2807 $as_echo "$ac_var='\''$ac_val'\''"
2812 if test -s confdefs.h; then
2813 $as_echo "## ----------- ##
2820 test "$ac_signal" != 0 &&
2821 $as_echo "$as_me: caught signal $ac_signal"
2822 $as_echo "$as_me: exit $exit_status"
2824 rm -f core *.core core.conftest.* &&
2825 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2828 for ac_signal in 1 2 13 15; do
2829 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2833 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2834 rm -f -r conftest* confdefs.h
2836 $as_echo "/* confdefs.h */" > confdefs.h
2838 # Predefined preprocessor variables.
2840 cat >>confdefs.h <<_ACEOF
2841 #define PACKAGE_NAME "$PACKAGE_NAME"
2844 cat >>confdefs.h <<_ACEOF
2845 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2848 cat >>confdefs.h <<_ACEOF
2849 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2852 cat >>confdefs.h <<_ACEOF
2853 #define PACKAGE_STRING "$PACKAGE_STRING"
2856 cat >>confdefs.h <<_ACEOF
2857 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2860 cat >>confdefs.h <<_ACEOF
2861 #define PACKAGE_URL "$PACKAGE_URL"
2865 # Let the site file select an alternate cache file if it wants to.
2866 # Prefer an explicitly selected file to automatically selected ones.
2869 if test -n "$CONFIG_SITE"; then
2870 # We do not want a PATH search for config.site.
2871 case $CONFIG_SITE in #((
2872 -*) ac_site_file1=./$CONFIG_SITE;;
2873 */*) ac_site_file1=$CONFIG_SITE;;
2874 *) ac_site_file1=./$CONFIG_SITE;;
2876 elif test "x$prefix" != xNONE; then
2877 ac_site_file1=$prefix/share/config.site
2878 ac_site_file2=$prefix/etc/config.site
2880 ac_site_file1=$ac_default_prefix/share/config.site
2881 ac_site_file2=$ac_default_prefix/etc/config.site
2883 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2885 test "x$ac_site_file" = xNONE && continue
2886 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2888 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2889 sed 's/^/| /' "$ac_site_file" >&5
2891 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2893 as_fn_error $? "failed to load site
script $ac_site_file
2894 See \
`config.log' for more details" "$LINENO" 5; }
2898 if test -r "$cache_file"; then
2899 # Some versions of bash will fail to source /dev/null (special files
2900 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2901 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2903 $as_echo "$as_me: loading cache $cache_file" >&6;}
2905 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2906 *) . "./$cache_file";;
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2911 $as_echo "$as_me: creating cache $cache_file" >&6;}
2915 as_fn_append ac_header_list " stdlib.h"
2916 as_fn_append ac_header_list " unistd.h"
2917 as_fn_append ac_header_list " sys/param.h"
2918 # Check that the precious variables saved in the cache have kept the same
2920 ac_cache_corrupted=false
2921 for ac_var in $ac_precious_vars; do
2922 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2923 eval ac_new_set=\$ac_env_${ac_var}_set
2924 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2925 eval ac_new_val=\$ac_env_${ac_var}_value
2926 case $ac_old_set,$ac_new_set in
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2929 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2930 ac_cache_corrupted=: ;;
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2933 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2934 ac_cache_corrupted=: ;;
2937 if test "x$ac_old_val" != "x$ac_new_val"; then
2938 # differences in whitespace do not lead to failure.
2939 ac_old_val_w=`echo x
$ac_old_val`
2940 ac_new_val_w=`echo x
$ac_new_val`
2941 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2943 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2944 ac_cache_corrupted=:
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2947 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2948 eval $ac_var=\$ac_old_val
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2951 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2953 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2956 # Pass precious variables to config.status.
2957 if test "$ac_new_set" = set; then
2959 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2960 *) ac_arg=$ac_var=$ac_new_val ;;
2962 case " $ac_configure_args " in
2963 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2964 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2968 if $ac_cache_corrupted; then
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2972 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2973 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2975 ## -------------------- ##
2976 ## Main body of script. ##
2977 ## -------------------- ##
2980 ac_cpp='$CPP $CPPFLAGS'
2981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2989 ac_config_headers="$ac_config_headers config.h:config.in"
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2993 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2994 # Check whether --enable-maintainer-mode was given.
2995 if test "${enable_maintainer_mode+set}" = set; then :
2996 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2998 USE_MAINTAINER_MODE=no
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3002 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3003 if test $USE_MAINTAINER_MODE = yes; then
3004 MAINTAINER_MODE_TRUE=
3005 MAINTAINER_MODE_FALSE='#'
3007 MAINTAINER_MODE_TRUE='#'
3008 MAINTAINER_MODE_FALSE=
3011 MAINT=$MAINTAINER_MODE_TRUE
3016 ac_cpp='$CPP $CPPFLAGS'
3017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3020 if test -n "$ac_tool_prefix"; then
3021 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3022 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3024 $as_echo_n "checking for $ac_word... " >&6; }
3025 if ${ac_cv_prog_CC+:} false; then :
3026 $as_echo_n "(cached) " >&6
3028 if test -n "$CC"; then
3029 ac_cv_prog_CC="$CC" # Let the user override the test.
3031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 test -z "$as_dir" && as_dir=.
3036 for ac_exec_ext in '' $ac_executable_extensions; do
3037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3038 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 if test -n "$CC"; then
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3051 $as_echo "$CC" >&6; }
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054 $as_echo "no" >&6; }
3059 if test -z "$ac_cv_prog_CC"; then
3061 # Extract the first word of "gcc", so it can be a program name with args.
3062 set dummy gcc; ac_word=$2
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064 $as_echo_n "checking for $ac_word... " >&6; }
3065 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3066 $as_echo_n "(cached) " >&6
3068 if test -n "$ac_ct_CC"; then
3069 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078 ac_cv_prog_ac_ct_CC="gcc"
3079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3088 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3089 if test -n "$ac_ct_CC"; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3091 $as_echo "$ac_ct_CC" >&6; }
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 $as_echo "no" >&6; }
3097 if test "x$ac_ct_CC" = x; then
3100 case $cross_compiling:$ac_tool_warned in
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3104 ac_tool_warned=yes ;;
3112 if test -z "$CC"; then
3113 if test -n "$ac_tool_prefix"; then
3114 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3115 set dummy ${ac_tool_prefix}cc; ac_word=$2
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3117 $as_echo_n "checking for $ac_word... " >&6; }
3118 if ${ac_cv_prog_CC+:} false; then :
3119 $as_echo_n "(cached) " >&6
3121 if test -n "$CC"; then
3122 ac_cv_prog_CC="$CC" # Let the user override the test.
3124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 test -z "$as_dir" && as_dir=.
3129 for ac_exec_ext in '' $ac_executable_extensions; do
3130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3131 ac_cv_prog_CC="${ac_tool_prefix}cc"
3132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3142 if test -n "$CC"; then
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3144 $as_echo "$CC" >&6; }
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 $as_echo "no" >&6; }
3153 if test -z "$CC"; then
3154 # Extract the first word of "cc", so it can be a program name with args.
3155 set dummy cc; ac_word=$2
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157 $as_echo_n "checking for $ac_word... " >&6; }
3158 if ${ac_cv_prog_CC+:} false; then :
3159 $as_echo_n "(cached) " >&6
3161 if test -n "$CC"; then
3162 ac_cv_prog_CC="$CC" # Let the user override the test.
3165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 test -z "$as_dir" && as_dir=.
3170 for ac_exec_ext in '' $ac_executable_extensions; do
3171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3172 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3173 ac_prog_rejected=yes
3177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3184 if test $ac_prog_rejected = yes; then
3185 # We found a bogon in the path, so make sure we never use it.
3186 set dummy $ac_cv_prog_CC
3188 if test $# != 0; then
3189 # We chose a different compiler from the bogus one.
3190 # However, it has the same basename, so the bogon will be chosen
3191 # first if we set CC to just the basename; use the full file name.
3193 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3199 if test -n "$CC"; then
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3201 $as_echo "$CC" >&6; }
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3209 if test -z "$CC"; then
3210 if test -n "$ac_tool_prefix"; then
3211 for ac_prog in cl.exe
3213 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3214 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3216 $as_echo_n "checking for $ac_word... " >&6; }
3217 if ${ac_cv_prog_CC+:} false; then :
3218 $as_echo_n "(cached) " >&6
3220 if test -n "$CC"; then
3221 ac_cv_prog_CC="$CC" # Let the user override the test.
3223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 test -z "$as_dir" && as_dir=.
3228 for ac_exec_ext in '' $ac_executable_extensions; do
3229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3230 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3241 if test -n "$CC"; then
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3243 $as_echo "$CC" >&6; }
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246 $as_echo "no" >&6; }
3250 test -n "$CC" && break
3253 if test -z "$CC"; then
3255 for ac_prog in cl.exe
3257 # Extract the first word of "$ac_prog", so it can be a program name with args.
3258 set dummy $ac_prog; ac_word=$2
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3260 $as_echo_n "checking for $ac_word... " >&6; }
3261 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3262 $as_echo_n "(cached) " >&6
3264 if test -n "$ac_ct_CC"; then
3265 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 test -z "$as_dir" && as_dir=.
3272 for ac_exec_ext in '' $ac_executable_extensions; do
3273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3274 ac_cv_prog_ac_ct_CC="$ac_prog"
3275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3284 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3285 if test -n "$ac_ct_CC"; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3287 $as_echo "$ac_ct_CC" >&6; }
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 $as_echo "no" >&6; }
3294 test -n "$ac_ct_CC" && break
3297 if test "x$ac_ct_CC" = x; then
3300 case $cross_compiling:$ac_tool_warned in
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3304 ac_tool_warned=yes ;;
3313 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3315 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3316 See \
`config.log' for more details" "$LINENO" 5; }
3318 # Provide some information about the compiler.
3319 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3322 for ac_option in --version -v -V -qversion; do
3323 { { ac_try="$ac_compiler $ac_option >&5"
3325 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3326 *) ac_try_echo
=$ac_try;;
3328 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329 $as_echo "$ac_try_echo"; } >&5
3330 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3332 if test -s conftest.err
; then
3334 ... rest of stderr output deleted ...
3335 10q' conftest.err
>conftest.er1
3336 cat conftest.er1
>&5
3338 rm -f conftest.er1 conftest.err
3339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3340 test $ac_status = 0; }
3343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3344 /* end confdefs.h. */
3354 ac_clean_files_save
=$ac_clean_files
3355 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3356 # Try to create an executable without -o first, disregard a.out.
3357 # It will help us diagnose broken compilers, and finding out an intuition
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3360 $as_echo_n "checking whether the C compiler works... " >&6; }
3361 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3363 # The possible output files:
3364 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3367 for ac_file
in $ac_files
3370 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3371 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3376 if { { ac_try
="$ac_link_default"
3378 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3382 $as_echo "$ac_try_echo"; } >&5
3383 (eval "$ac_link_default") 2>&5
3385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3386 test $ac_status = 0; }; then :
3387 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3388 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3389 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3390 # so that the user can short-circuit this test for compilers unknown to
3392 for ac_file in $ac_files ''
3394 test -f "$ac_file" || continue
3396 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3399 # We found the default executable, but exeext='' is most
3403 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3405 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3407 # We set ac_cv_exeext here because the later test for it is not
3408 # safe: cross compilers may not add the suffix if given an `-o'
3409 # argument, so we may need to know it at that point already.
3410 # Even if this section looks crufty: it has the advantage of
3417 test "$ac_cv_exeext" = no && ac_cv_exeext=
3422 if test -z "$ac_file"; then :
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424 $as_echo "no" >&6; }
3425 $as_echo "$as_me: failed program was:" >&5
3426 sed 's
/^
/|
/' conftest.$ac_ext >&5
3428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3429 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3430 as_fn_error 77 "C compiler cannot create executables
3431 See \`config.log
' for more details" "$LINENO" 5; }
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3434 $as_echo "yes" >&6; }
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3437 $as_echo_n "checking for C compiler default output file name... " >&6; }
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3439 $as_echo "$ac_file" >&6; }
3440 ac_exeext=$ac_cv_exeext
3442 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3443 ac_clean_files=$ac_clean_files_save
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3445 $as_echo_n "checking for suffix of executables... " >&6; }
3446 if { { ac_try="$ac_link"
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3452 $as_echo "$ac_try_echo"; } >&5
3453 (eval "$ac_link") 2>&5
3455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3456 test $ac_status = 0; }; then :
3457 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3458 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3459 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3461 for ac_file
in conftest.exe conftest conftest.
*; do
3462 test -f "$ac_file" ||
continue
3464 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3465 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3473 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3474 See \`config.log' for more details" "$LINENO" 5; }
3476 rm -f conftest conftest
$ac_cv_exeext
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3478 $as_echo "$ac_cv_exeext" >&6; }
3480 rm -f conftest.
$ac_ext
3481 EXEEXT
=$ac_cv_exeext
3483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3484 /* end confdefs.h. */
3489 FILE *f = fopen ("conftest.out", "w");
3490 return ferror (f) || fclose (f) != 0;
3496 ac_clean_files
="$ac_clean_files conftest.out"
3497 # Check that the compiler produces executables we can run. If not, either
3498 # the compiler is broken, or we cross compile.
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3500 $as_echo_n "checking whether we are cross compiling... " >&6; }
3501 if test "$cross_compiling" != yes; then
3502 { { ac_try
="$ac_link"
3504 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3508 $as_echo "$ac_try_echo"; } >&5
3509 (eval "$ac_link") 2>&5
3511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3512 test $ac_status = 0; }
3513 if { ac_try='./conftest$ac_cv_exeext'
3514 { { case "(($ac_try" in
3515 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3516 *) ac_try_echo
=$ac_try;;
3518 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3519 $as_echo "$ac_try_echo"; } >&5
3520 (eval "$ac_try") 2>&5
3522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3523 test $ac_status = 0; }; }; then
3526 if test "$cross_compiling" = maybe
; then
3529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3531 as_fn_error $?
"cannot run C compiled programs.
3532 If you meant to cross compile, use \`--host'.
3533 See \`config.log' for more details" "$LINENO" 5; }
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3538 $as_echo "$cross_compiling" >&6; }
3540 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3541 ac_clean_files
=$ac_clean_files_save
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3543 $as_echo_n "checking for suffix of object files... " >&6; }
3544 if ${ac_cv_objext+:} false
; then :
3545 $as_echo_n "(cached) " >&6
3547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3548 /* end confdefs.h. */
3558 rm -f conftest.o conftest.obj
3559 if { { ac_try
="$ac_compile"
3561 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3565 $as_echo "$ac_try_echo"; } >&5
3566 (eval "$ac_compile") 2>&5
3568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3569 test $ac_status = 0; }; then :
3570 for ac_file in conftest.o conftest.obj conftest.*; do
3571 test -f "$ac_file" || continue;
3573 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3574 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3579 $as_echo "$as_me: failed program was:" >&5
3580 sed 's/^/| /' conftest.$ac_ext >&5
3582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3584 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3585 See \
`config.log' for more details" "$LINENO" 5; }
3587 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3590 $as_echo "$ac_cv_objext" >&6; }
3591 OBJEXT=$ac_cv_objext
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3594 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3595 if ${ac_cv_c_compiler_gnu+:} false; then :
3596 $as_echo_n "(cached) " >&6
3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599 /* end confdefs.h. */
3612 if ac_fn_c_try_compile "$LINENO"; then :
3617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3618 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3622 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3623 if test $ac_compiler_gnu = yes; then
3628 ac_test_CFLAGS=${CFLAGS+set}
3629 ac_save_CFLAGS=$CFLAGS
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3631 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3632 if ${ac_cv_prog_cc_g+:} false; then :
3633 $as_echo_n "(cached) " >&6
3635 ac_save_c_werror_flag=$ac_c_werror_flag
3636 ac_c_werror_flag=yes
3639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640 /* end confdefs.h. */
3650 if ac_fn_c_try_compile "$LINENO"; then :
3654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655 /* end confdefs.h. */
3665 if ac_fn_c_try_compile "$LINENO"; then :
3668 ac_c_werror_flag=$ac_save_c_werror_flag
3670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671 /* end confdefs.h. */
3681 if ac_fn_c_try_compile "$LINENO"; then :
3684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3689 ac_c_werror_flag=$ac_save_c_werror_flag
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3692 $as_echo "$ac_cv_prog_cc_g" >&6; }
3693 if test "$ac_test_CFLAGS" = set; then
3694 CFLAGS=$ac_save_CFLAGS
3695 elif test $ac_cv_prog_cc_g = yes; then
3696 if test "$GCC" = yes; then
3702 if test "$GCC" = yes; then
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3709 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3710 if ${ac_cv_prog_cc_c89+:} false; then :
3711 $as_echo_n "(cached) " >&6
3713 ac_cv_prog_cc_c89=no
3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h. */
3720 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3721 struct buf { int x; };
3722 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3723 static char *e (p, i)
3729 static char *f (char * (*g) (char **, int), char **p, ...)
3734 s = g (p, va_arg (v,int));
3739 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3740 function prototypes and stuff, but not '\xHH' hex character constants.
3741 These don't provoke an error unfortunately, instead are silently treated
3742 as 'x'. The following induces an error, until -std is added to get
3743 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3744 array size at least. It's necessary to write '\x00'==0 to get something
3745 that's true only with -std. */
3746 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3748 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3749 inside strings and character constants. */
3751 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3753 int test (int i, double x);
3754 struct s1 {int (*f) (int a);};
3755 struct s2 {int (*f) (double a);};
3756 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3762 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3767 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3768 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3770 CC="$ac_save_CC $ac_arg"
3771 if ac_fn_c_try_compile "$LINENO"; then :
3772 ac_cv_prog_cc_c89=$ac_arg
3774 rm -f core conftest.err conftest.$ac_objext
3775 test "x$ac_cv_prog_cc_c89" != "xno" && break
3777 rm -f conftest.$ac_ext
3782 case "x$ac_cv_prog_cc_c89" in
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3785 $as_echo "none needed" >&6; } ;;
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3788 $as_echo "unsupported" >&6; } ;;
3790 CC="$CC $ac_cv_prog_cc_c89"
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3792 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3794 if test "x$ac_cv_prog_cc_c89" != xno; then :
3799 ac_cpp='$CPP $CPPFLAGS'
3800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3805 ac_cpp='$CXXCPP $CPPFLAGS'
3806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3809 if test -z "$CXX"; then
3810 if test -n "$CCC"; then
3813 if test -n "$ac_tool_prefix"; then
3814 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3816 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3817 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3819 $as_echo_n "checking for $ac_word... " >&6; }
3820 if ${ac_cv_prog_CXX+:} false; then :
3821 $as_echo_n "(cached) " >&6
3823 if test -n "$CXX"; then
3824 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830 test -z "$as_dir" && as_dir=.
3831 for ac_exec_ext in '' $ac_executable_extensions; do
3832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3833 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3844 if test -n "$CXX"; then
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3846 $as_echo "$CXX" >&6; }
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3849 $as_echo "no" >&6; }
3853 test -n "$CXX" && break
3856 if test -z "$CXX"; then
3858 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3860 # Extract the first word of "$ac_prog", so it can be a program name with args.
3861 set dummy $ac_prog; ac_word=$2
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3863 $as_echo_n "checking for $ac_word... " >&6; }
3864 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3865 $as_echo_n "(cached) " >&6
3867 if test -n "$ac_ct_CXX"; then
3868 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874 test -z "$as_dir" && as_dir=.
3875 for ac_exec_ext in '' $ac_executable_extensions; do
3876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3877 ac_cv_prog_ac_ct_CXX="$ac_prog"
3878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3887 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3888 if test -n "$ac_ct_CXX"; then
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3890 $as_echo "$ac_ct_CXX" >&6; }
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3893 $as_echo "no" >&6; }
3897 test -n "$ac_ct_CXX" && break
3900 if test "x$ac_ct_CXX" = x; then
3903 case $cross_compiling:$ac_tool_warned in
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3907 ac_tool_warned=yes ;;
3915 # Provide some information about the compiler.
3916 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3919 for ac_option in --version -v -V -qversion; do
3920 { { ac_try="$ac_compiler $ac_option >&5"
3922 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3923 *) ac_try_echo
=$ac_try;;
3925 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3926 $as_echo "$ac_try_echo"; } >&5
3927 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3929 if test -s conftest.err
; then
3931 ... rest of stderr output deleted ...
3932 10q' conftest.err
>conftest.er1
3933 cat conftest.er1
>&5
3935 rm -f conftest.er1 conftest.err
3936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3937 test $ac_status = 0; }
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3941 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3942 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3943 $as_echo_n "(cached) " >&6
3945 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3946 /* end confdefs.h. */
3959 if ac_fn_cxx_try_compile
"$LINENO"; then :
3964 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3965 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3969 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3970 if test $ac_compiler_gnu = yes; then
3975 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3976 ac_save_CXXFLAGS
=$CXXFLAGS
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3978 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3979 if ${ac_cv_prog_cxx_g+:} false
; then :
3980 $as_echo_n "(cached) " >&6
3982 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3983 ac_cxx_werror_flag
=yes
3986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
3997 if ac_fn_cxx_try_compile
"$LINENO"; then :
3998 ac_cv_prog_cxx_g
=yes
4001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h. */
4012 if ac_fn_cxx_try_compile
"$LINENO"; then :
4015 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4028 if ac_fn_cxx_try_compile
"$LINENO"; then :
4029 ac_cv_prog_cxx_g
=yes
4031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4033 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4036 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4039 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4040 if test "$ac_test_CXXFLAGS" = set; then
4041 CXXFLAGS
=$ac_save_CXXFLAGS
4042 elif test $ac_cv_prog_cxx_g = yes; then
4043 if test "$GXX" = yes; then
4049 if test "$GXX" = yes; then
4056 ac_cpp
='$CPP $CPPFLAGS'
4057 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4058 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4059 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4064 ac_cpp
='$CPP $CPPFLAGS'
4065 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4066 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4067 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4069 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4070 # On Suns, sometimes $CPP names a directory.
4071 if test -n "$CPP" && test -d "$CPP"; then
4074 if test -z "$CPP"; then
4075 if ${ac_cv_prog_CPP+:} false
; then :
4076 $as_echo_n "(cached) " >&6
4078 # Double quotes because CPP needs to be expanded
4079 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4082 for ac_c_preproc_warn_flag
in '' yes
4084 # Use a header file that comes with gcc, so configuring glibc
4085 # with a fresh cross-compiler works.
4086 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4087 # <limits.h> exists even on freestanding compilers.
4088 # On the NeXT, cc -E runs the code through the compiler's parser,
4089 # not just through cpp. "Syntax error" is here to catch this case.
4090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h. */
4093 # include <limits.h>
4095 # include <assert.h>
4099 if ac_fn_c_try_cpp
"$LINENO"; then :
4102 # Broken: fails on valid input.
4105 rm -f conftest.err conftest.i conftest.
$ac_ext
4107 # OK, works on sane cases. Now check whether nonexistent headers
4108 # can be detected and how.
4109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4110 /* end confdefs.h. */
4111 #include <ac_nonexistent.h>
4113 if ac_fn_c_try_cpp
"$LINENO"; then :
4114 # Broken: success on invalid input.
4117 # Passes both tests.
4121 rm -f conftest.err conftest.i conftest.
$ac_ext
4124 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4125 rm -f conftest.i conftest.err conftest.
$ac_ext
4126 if $ac_preproc_ok; then :
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4139 $as_echo "$CPP" >&6; }
4141 for ac_c_preproc_warn_flag
in '' yes
4143 # Use a header file that comes with gcc, so configuring glibc
4144 # with a fresh cross-compiler works.
4145 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4146 # <limits.h> exists even on freestanding compilers.
4147 # On the NeXT, cc -E runs the code through the compiler's parser,
4148 # not just through cpp. "Syntax error" is here to catch this case.
4149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4150 /* end confdefs.h. */
4152 # include <limits.h>
4154 # include <assert.h>
4158 if ac_fn_c_try_cpp
"$LINENO"; then :
4161 # Broken: fails on valid input.
4164 rm -f conftest.err conftest.i conftest.
$ac_ext
4166 # OK, works on sane cases. Now check whether nonexistent headers
4167 # can be detected and how.
4168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4169 /* end confdefs.h. */
4170 #include <ac_nonexistent.h>
4172 if ac_fn_c_try_cpp
"$LINENO"; then :
4173 # Broken: success on invalid input.
4176 # Passes both tests.
4180 rm -f conftest.err conftest.i conftest.
$ac_ext
4183 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4184 rm -f conftest.i conftest.err conftest.
$ac_ext
4185 if $ac_preproc_ok; then :
4188 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4190 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4191 See \`config.log' for more details" "$LINENO" 5; }
4195 ac_cpp
='$CPP $CPPFLAGS'
4196 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4197 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4198 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4202 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4203 if ${ac_cv_path_GREP+:} false
; then :
4204 $as_echo_n "(cached) " >&6
4206 if test -z "$GREP"; then
4207 ac_path_GREP_found
=false
4208 # Loop through the user's path and test for each of PROGNAME-LIST
4209 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4210 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4213 test -z "$as_dir" && as_dir
=.
4214 for ac_prog
in grep ggrep
; do
4215 for ac_exec_ext
in '' $ac_executable_extensions; do
4216 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4217 as_fn_executable_p
"$ac_path_GREP" ||
continue
4218 # Check for GNU ac_path_GREP and select it if it is found.
4219 # Check for GNU $ac_path_GREP
4220 case `"$ac_path_GREP" --version 2>&1` in
4222 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4225 $as_echo_n 0123456789 >"conftest.in"
4228 cat "conftest.in" "conftest.in" >"conftest.tmp"
4229 mv "conftest.tmp" "conftest.in"
4230 cp "conftest.in" "conftest.nl"
4231 $as_echo 'GREP' >> "conftest.nl"
4232 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4233 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4234 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4235 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4236 # Best one so far, save it but keep looking for a better one
4237 ac_cv_path_GREP
="$ac_path_GREP"
4238 ac_path_GREP_max
=$ac_count
4240 # 10*(2^10) chars as input seems more than enough
4241 test $ac_count -gt 10 && break
4243 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4246 $ac_path_GREP_found && break 3
4251 if test -z "$ac_cv_path_GREP"; then
4252 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4255 ac_cv_path_GREP
=$GREP
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4260 $as_echo "$ac_cv_path_GREP" >&6; }
4261 GREP
="$ac_cv_path_GREP"
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4265 $as_echo_n "checking for egrep... " >&6; }
4266 if ${ac_cv_path_EGREP+:} false
; then :
4267 $as_echo_n "(cached) " >&6
4269 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4270 then ac_cv_path_EGREP
="$GREP -E"
4272 if test -z "$EGREP"; then
4273 ac_path_EGREP_found
=false
4274 # Loop through the user's path and test for each of PROGNAME-LIST
4275 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4276 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4279 test -z "$as_dir" && as_dir
=.
4280 for ac_prog
in egrep; do
4281 for ac_exec_ext
in '' $ac_executable_extensions; do
4282 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4283 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4284 # Check for GNU ac_path_EGREP and select it if it is found.
4285 # Check for GNU $ac_path_EGREP
4286 case `"$ac_path_EGREP" --version 2>&1` in
4288 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4291 $as_echo_n 0123456789 >"conftest.in"
4294 cat "conftest.in" "conftest.in" >"conftest.tmp"
4295 mv "conftest.tmp" "conftest.in"
4296 cp "conftest.in" "conftest.nl"
4297 $as_echo 'EGREP' >> "conftest.nl"
4298 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4299 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4300 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4301 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4302 # Best one so far, save it but keep looking for a better one
4303 ac_cv_path_EGREP
="$ac_path_EGREP"
4304 ac_path_EGREP_max
=$ac_count
4306 # 10*(2^10) chars as input seems more than enough
4307 test $ac_count -gt 10 && break
4309 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4312 $ac_path_EGREP_found && break 3
4317 if test -z "$ac_cv_path_EGREP"; then
4318 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4321 ac_cv_path_EGREP
=$EGREP
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4327 $as_echo "$ac_cv_path_EGREP" >&6; }
4328 EGREP
="$ac_cv_path_EGREP"
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4332 $as_echo_n "checking for ANSI C header files... " >&6; }
4333 if ${ac_cv_header_stdc+:} false
; then :
4334 $as_echo_n "(cached) " >&6
4336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4337 /* end confdefs.h. */
4351 if ac_fn_c_try_compile
"$LINENO"; then :
4352 ac_cv_header_stdc
=yes
4354 ac_cv_header_stdc
=no
4356 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4358 if test $ac_cv_header_stdc = yes; then
4359 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4361 /* end confdefs.h. */
4365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4366 $EGREP "memchr" >/dev
/null
2>&1; then :
4369 ac_cv_header_stdc
=no
4375 if test $ac_cv_header_stdc = yes; then
4376 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4378 /* end confdefs.h. */
4382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4383 $EGREP "free" >/dev
/null
2>&1; then :
4386 ac_cv_header_stdc
=no
4392 if test $ac_cv_header_stdc = yes; then
4393 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4394 if test "$cross_compiling" = yes; then :
4397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4398 /* end confdefs.h. */
4401 #if ((' ' & 0x0FF) == 0x020)
4402 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4403 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4405 # define ISLOWER(c) \
4406 (('a' <= (c) && (c) <= 'i') \
4407 || ('j' <= (c) && (c) <= 'r') \
4408 || ('s' <= (c) && (c) <= 'z'))
4409 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4412 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4417 for (i = 0; i < 256; i++)
4418 if (XOR (islower (i), ISLOWER (i))
4419 || toupper (i) != TOUPPER (i))
4424 if ac_fn_c_try_run
"$LINENO"; then :
4427 ac_cv_header_stdc
=no
4429 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4430 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4436 $as_echo "$ac_cv_header_stdc" >&6; }
4437 if test $ac_cv_header_stdc = yes; then
4439 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4443 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4444 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4445 inttypes.h stdint.h unistd.h
4447 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4448 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4450 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4451 cat >>confdefs.h
<<_ACEOF
4452 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4461 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4462 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4469 if test "$MINIX" = yes; then
4471 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4474 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4477 $as_echo "#define _MINIX 1" >>confdefs.h
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4483 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4484 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4485 $as_echo_n "(cached) " >&6
4487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4488 /* end confdefs.h. */
4490 # define __EXTENSIONS__ 1
4491 $ac_includes_default
4500 if ac_fn_c_try_compile
"$LINENO"; then :
4501 ac_cv_safe_to_define___extensions__
=yes
4503 ac_cv_safe_to_define___extensions__
=no
4505 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4508 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4509 test $ac_cv_safe_to_define___extensions__ = yes &&
4510 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4512 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4514 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4516 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4518 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4522 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4523 if test -f "$ac_dir/install-sh"; then
4525 ac_install_sh
="$ac_aux_dir/install-sh -c"
4527 elif test -f "$ac_dir/install.sh"; then
4529 ac_install_sh
="$ac_aux_dir/install.sh -c"
4531 elif test -f "$ac_dir/shtool"; then
4533 ac_install_sh
="$ac_aux_dir/shtool install -c"
4537 if test -z "$ac_aux_dir"; then
4538 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4541 # These three variables are undocumented and unsupported,
4542 # and are intended to be withdrawn in a future Autoconf release.
4543 # They can cause serious problems if a builder's source tree is in a directory
4544 # whose full name contains unusual characters.
4545 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4546 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4547 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4550 # Make sure we can run config.sub.
4551 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4552 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4555 $as_echo_n "checking build system type... " >&6; }
4556 if ${ac_cv_build+:} false
; then :
4557 $as_echo_n "(cached) " >&6
4559 ac_build_alias
=$build_alias
4560 test "x$ac_build_alias" = x
&&
4561 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4562 test "x$ac_build_alias" = x
&&
4563 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4564 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4565 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4569 $as_echo "$ac_cv_build" >&6; }
4570 case $ac_cv_build in
4572 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4575 ac_save_IFS
=$IFS; IFS
='-'
4581 # Remember, the first character of IFS is used to create $*,
4582 # except with old shells:
4585 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4589 $as_echo_n "checking host system type... " >&6; }
4590 if ${ac_cv_host+:} false
; then :
4591 $as_echo_n "(cached) " >&6
4593 if test "x$host_alias" = x
; then
4594 ac_cv_host
=$ac_cv_build
4596 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4597 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4602 $as_echo "$ac_cv_host" >&6; }
4605 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4608 ac_save_IFS
=$IFS; IFS
='-'
4614 # Remember, the first character of IFS is used to create $*,
4615 # except with old shells:
4618 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4622 $as_echo_n "checking target system type... " >&6; }
4623 if ${ac_cv_target+:} false
; then :
4624 $as_echo_n "(cached) " >&6
4626 if test "x$target_alias" = x
; then
4627 ac_cv_target
=$ac_cv_host
4629 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4630 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4635 $as_echo "$ac_cv_target" >&6; }
4636 case $ac_cv_target in
4638 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4640 target
=$ac_cv_target
4641 ac_save_IFS
=$IFS; IFS
='-'
4647 # Remember, the first character of IFS is used to create $*,
4648 # except with old shells:
4651 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4654 # The aliases save the names the user supplied, while $host etc.
4655 # will get canonicalized.
4656 test -n "$target_alias" &&
4657 test "$program_prefix$program_suffix$program_transform_name" = \
4659 program_prefix
=${target_alias}-
4661 # The tests for host and target for $enable_largefile require
4666 # As the $enable_largefile decision depends on --enable-plugins we must set it
4667 # even in directories otherwise not depending on the $plugins option.
4671 for ac_header
in dlfcn.h
4673 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4675 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
4676 cat >>confdefs.h
<<_ACEOF
4677 #define HAVE_DLFCN_H 1
4684 for ac_header
in windows.h
4686 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4688 if test "x$ac_cv_header_windows_h" = xyes
; then :
4689 cat >>confdefs.h
<<_ACEOF
4690 #define HAVE_WINDOWS_H 1
4698 # Check whether --enable-plugins was given.
4699 if test "${enable_plugins+set}" = set; then :
4700 enableval
=$enable_plugins; case "${enableval}" in
4703 if test "$maybe_plugins" != "yes" ; then
4704 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4708 plugins
=$maybe_plugins
4712 if test "$plugins" = "yes"; then
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4714 $as_echo_n "checking for library containing dlsym... " >&6; }
4715 if ${ac_cv_search_dlsym+:} false
; then :
4716 $as_echo_n "(cached) " >&6
4718 ac_func_search_save_LIBS
=$LIBS
4719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h. */
4722 /* Override any GCC internal prototype to avoid an error.
4723 Use char because int might match the return type of a GCC
4724 builtin and then its argument prototype would still apply. */
4737 for ac_lib
in '' dl
; do
4738 if test -z "$ac_lib"; then
4739 ac_res
="none required"
4742 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4744 if ac_fn_c_try_link
"$LINENO"; then :
4745 ac_cv_search_dlsym
=$ac_res
4747 rm -f core conftest.err conftest.
$ac_objext \
4749 if ${ac_cv_search_dlsym+:} false
; then :
4753 if ${ac_cv_search_dlsym+:} false
; then :
4756 ac_cv_search_dlsym
=no
4759 LIBS
=$ac_func_search_save_LIBS
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4762 $as_echo "$ac_cv_search_dlsym" >&6; }
4763 ac_res
=$ac_cv_search_dlsym
4764 if test "$ac_res" != no
; then :
4765 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4773 sparc-
*-solaris*|i?
86-*-solaris*)
4774 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
4775 # were mutually exclusive until Solaris 11.3. Without procfs support,
4776 # the bfd/ elf module cannot provide certain routines such as
4777 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
4778 # explicitly requested large-file support through the
4779 # --enable-largefile switch, disable large-file support in favor of
4782 # Check if <sys/procfs.h> is incompatible with large-file support.
4783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4784 /* end confdefs.h. */
4785 #define _FILE_OFFSET_BITS 64
4786 #define _STRUCTURED_PROC 1
4787 #include <sys/procfs.h>
4796 if ac_fn_c_try_compile
"$LINENO"; then :
4797 acx_cv_procfs_lfs
=yes
4799 acx_cv_procfs_lfs
=no
4801 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4803 # Forcefully disable large-file support only if necessary, gdb is in
4805 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
4806 -a -d $srcdir/..
/gdb
-a "$enable_gdb" != no
; then
4807 : ${enable_largefile="no"}
4808 if test "$plugins" = yes; then
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4810 plugin support disabled; require large-file support which is incompatible with GDB." >&5
4811 $as_echo "$as_me: WARNING:
4812 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
4817 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
4818 # benefit of g++ 9+ which predefines it on Solaris.
4819 if test "$enable_largefile" = no
; then
4820 LARGEFILE_CPPFLAGS
="-U_FILE_OFFSET_BITS"
4826 # Check whether --enable-largefile was given.
4827 if test "${enable_largefile+set}" = set; then :
4828 enableval
=$enable_largefile;
4831 if test "$enable_largefile" != no
; then
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4834 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4835 if ${ac_cv_sys_largefile_CC+:} false
; then :
4836 $as_echo_n "(cached) " >&6
4838 ac_cv_sys_largefile_CC
=no
4839 if test "$GCC" != yes; then
4842 # IRIX 6.2 and later do not support large files by default,
4843 # so use the C compiler's -n32 option if that helps.
4844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4845 /* end confdefs.h. */
4846 #include <sys/types.h>
4847 /* Check that off_t can represent 2**63 - 1 correctly.
4848 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4849 since some C++ compilers masquerading as C compilers
4850 incorrectly reject 9223372036854775807. */
4851 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4852 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4853 && LARGE_OFF_T % 2147483647 == 1)
4863 if ac_fn_c_try_compile
"$LINENO"; then :
4866 rm -f core conftest.err conftest.
$ac_objext
4868 if ac_fn_c_try_compile
"$LINENO"; then :
4869 ac_cv_sys_largefile_CC
=' -n32'; break
4871 rm -f core conftest.err conftest.
$ac_objext
4875 rm -f conftest.
$ac_ext
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4879 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4880 if test "$ac_cv_sys_largefile_CC" != no
; then
4881 CC
=$CC$ac_cv_sys_largefile_CC
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4885 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4886 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4887 $as_echo_n "(cached) " >&6
4890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4891 /* end confdefs.h. */
4892 #include <sys/types.h>
4893 /* Check that off_t can represent 2**63 - 1 correctly.
4894 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4895 since some C++ compilers masquerading as C compilers
4896 incorrectly reject 9223372036854775807. */
4897 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4898 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4899 && LARGE_OFF_T % 2147483647 == 1)
4909 if ac_fn_c_try_compile
"$LINENO"; then :
4910 ac_cv_sys_file_offset_bits
=no
; break
4912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4914 /* end confdefs.h. */
4915 #define _FILE_OFFSET_BITS 64
4916 #include <sys/types.h>
4917 /* Check that off_t can represent 2**63 - 1 correctly.
4918 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4919 since some C++ compilers masquerading as C compilers
4920 incorrectly reject 9223372036854775807. */
4921 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4922 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4923 && LARGE_OFF_T % 2147483647 == 1)
4933 if ac_fn_c_try_compile
"$LINENO"; then :
4934 ac_cv_sys_file_offset_bits
=64; break
4936 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4937 ac_cv_sys_file_offset_bits
=unknown
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4942 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4943 case $ac_cv_sys_file_offset_bits in #(
4946 cat >>confdefs.h
<<_ACEOF
4947 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4952 if test $ac_cv_sys_file_offset_bits = unknown
; then
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4954 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4955 if ${ac_cv_sys_large_files+:} false
; then :
4956 $as_echo_n "(cached) " >&6
4959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4960 /* end confdefs.h. */
4961 #include <sys/types.h>
4962 /* Check that off_t can represent 2**63 - 1 correctly.
4963 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4964 since some C++ compilers masquerading as C compilers
4965 incorrectly reject 9223372036854775807. */
4966 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4967 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4968 && LARGE_OFF_T % 2147483647 == 1)
4978 if ac_fn_c_try_compile
"$LINENO"; then :
4979 ac_cv_sys_large_files
=no
; break
4981 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h. */
4984 #define _LARGE_FILES 1
4985 #include <sys/types.h>
4986 /* Check that off_t can represent 2**63 - 1 correctly.
4987 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4988 since some C++ compilers masquerading as C compilers
4989 incorrectly reject 9223372036854775807. */
4990 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4991 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4992 && LARGE_OFF_T % 2147483647 == 1)
5002 if ac_fn_c_try_compile
"$LINENO"; then :
5003 ac_cv_sys_large_files
=1; break
5005 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5006 ac_cv_sys_large_files
=unknown
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5011 $as_echo "$ac_cv_sys_large_files" >&6; }
5012 case $ac_cv_sys_large_files in #(
5015 cat >>confdefs.h
<<_ACEOF
5016 #define _LARGE_FILES $ac_cv_sys_large_files
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
5031 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
5032 if ${am_cv_prog_cc_stdc+:} false
; then :
5033 $as_echo_n "(cached) " >&6
5035 am_cv_prog_cc_stdc
=no
5037 # Don't try gcc -ansi; that turns off useful extensions and
5038 # breaks some systems' header files.
5039 # AIX -qlanglvl=ansi
5040 # Ultrix and OSF/1 -std1
5041 # HP-UX 10.20 and later -Ae
5042 # HP-UX older versions -Aa -D_HPUX_SOURCE
5043 # SVR4 -Xc -D__EXTENSIONS__
5044 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5046 CC
="$ac_save_CC $ac_arg"
5047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5048 /* end confdefs.h. */
5051 #include <sys/types.h>
5052 #include <sys/stat.h>
5053 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5054 struct buf { int x; };
5055 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5056 static char *e (p, i)
5062 static char *f (char * (*g) (char **, int), char **p, ...)
5067 s = g (p, va_arg (v,int));
5071 int test (int i, double x);
5072 struct s1 {int (*f) (int a);};
5073 struct s2 {int (*f) (double a);};
5074 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5082 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5088 if ac_fn_c_try_compile
"$LINENO"; then :
5089 am_cv_prog_cc_stdc
="$ac_arg"; break
5091 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5097 if test -z "$am_cv_prog_cc_stdc"; then
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5099 $as_echo "none needed" >&6; }
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
5102 $as_echo "$am_cv_prog_cc_stdc" >&6; }
5104 case "x$am_cv_prog_cc_stdc" in
5106 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
5109 # Expand $ac_aux_dir to an absolute path.
5110 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
5112 if test x
"${install_sh+set}" != xset
; then
5115 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
5117 install_sh
="\${SHELL} $am_aux_dir/install-sh"
5121 # Installed binaries are usually stripped using 'strip' when the user
5122 # run "make install-strip". However 'strip' might not be the right
5123 # tool to use in cross-compilation environments, therefore Automake
5124 # will honor the 'STRIP' environment variable to overrule this program.
5125 if test "$cross_compiling" != no
; then
5126 if test -n "$ac_tool_prefix"; then
5127 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5128 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5130 $as_echo_n "checking for $ac_word... " >&6; }
5131 if ${ac_cv_prog_STRIP+:} false
; then :
5132 $as_echo_n "(cached) " >&6
5134 if test -n "$STRIP"; then
5135 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5137 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5141 test -z "$as_dir" && as_dir
=.
5142 for ac_exec_ext
in '' $ac_executable_extensions; do
5143 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5144 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5154 STRIP
=$ac_cv_prog_STRIP
5155 if test -n "$STRIP"; then
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5157 $as_echo "$STRIP" >&6; }
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5160 $as_echo "no" >&6; }
5165 if test -z "$ac_cv_prog_STRIP"; then
5167 # Extract the first word of "strip", so it can be a program name with args.
5168 set dummy strip
; ac_word
=$2
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5170 $as_echo_n "checking for $ac_word... " >&6; }
5171 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
5172 $as_echo_n "(cached) " >&6
5174 if test -n "$ac_ct_STRIP"; then
5175 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5177 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5181 test -z "$as_dir" && as_dir
=.
5182 for ac_exec_ext
in '' $ac_executable_extensions; do
5183 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5184 ac_cv_prog_ac_ct_STRIP
="strip"
5185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5195 if test -n "$ac_ct_STRIP"; then
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5197 $as_echo "$ac_ct_STRIP" >&6; }
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200 $as_echo "no" >&6; }
5203 if test "x$ac_ct_STRIP" = x
; then
5206 case $cross_compiling:$ac_tool_warned in
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5210 ac_tool_warned
=yes ;;
5215 STRIP
="$ac_cv_prog_STRIP"
5219 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
5223 for ac_dir
in ..
"$srcdir"/..
; do
5224 if test -f "$ac_dir/install-sh"; then
5226 ac_install_sh
="$ac_aux_dir/install-sh -c"
5228 elif test -f "$ac_dir/install.sh"; then
5230 ac_install_sh
="$ac_aux_dir/install.sh -c"
5232 elif test -f "$ac_dir/shtool"; then
5234 ac_install_sh
="$ac_aux_dir/shtool install -c"
5238 if test -z "$ac_aux_dir"; then
5239 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
5242 # These three variables are undocumented and unsupported,
5243 # and are intended to be withdrawn in a future Autoconf release.
5244 # They can cause serious problems if a builder's source tree is in a directory
5245 # whose full name contains unusual characters.
5246 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5247 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5248 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5252 test "$program_prefix" != NONE
&&
5253 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
5254 # Use a double $ so make ignores it.
5255 test "$program_suffix" != NONE
&&
5256 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
5257 # Double any \ or $.
5258 # By default was `s,x,x', remove it if useless.
5259 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
5260 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
5263 # We require a C++11 compiler. Check if one is available, and if
5264 # necessary, set CXX_DIALECT to some -std=xxx switch.
5266 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5268 ac_cpp
='$CXXCPP $CPPFLAGS'
5269 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5270 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5271 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5275 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5276 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5277 $as_echo_n "(cached) " >&6
5279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5280 /* end confdefs.h. */
5283 // If the compiler admits that it is not ready for C++11, why torture it?
5284 // Hopefully, this will speed up the test.
5288 #error "This is not a C++ compiler"
5290 #elif __cplusplus < 201103L
5292 #error "This is not a C++11 compiler"
5299 namespace test_static_assert
5302 template <typename T>
5305 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5310 namespace test_final_override
5318 struct Derived : public Base
5320 virtual void f() override {}
5325 namespace test_double_right_angle_brackets
5328 template < typename T >
5331 typedef check<void> single_type;
5332 typedef check<check<void>> double_type;
5333 typedef check<check<check<void>>> triple_type;
5334 typedef check<check<check<check<void>>>> quadruple_type;
5338 namespace test_decltype
5351 namespace test_type_deduction
5354 template < typename T1, typename T2 >
5357 static const bool value = false;
5360 template < typename T >
5361 struct is_same<T, T>
5363 static const bool value = true;
5366 template < typename T1, typename T2 >
5368 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5374 test(const int c, volatile int v)
5376 static_assert(is_same<int, decltype(0)>::value == true, "");
5377 static_assert(is_same<int, decltype(c)>::value == false, "");
5378 static_assert(is_same<int, decltype(v)>::value == false, "");
5381 auto sumi = ac + av + 'x';
5382 auto sumf = ac + av + 1.0;
5383 static_assert(is_same<int, decltype(ac)>::value == true, "");
5384 static_assert(is_same<int, decltype(av)>::value == true, "");
5385 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5386 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5387 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5388 return (sumf > 0.0) ? sumi : add(c, v);
5393 namespace test_noexcept
5396 int f() { return 0; }
5397 int g() noexcept { return 0; }
5399 static_assert(noexcept(f()) == false, "");
5400 static_assert(noexcept(g()) == true, "");
5404 namespace test_constexpr
5407 template < typename CharT >
5408 unsigned long constexpr
5409 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5411 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5414 template < typename CharT >
5415 unsigned long constexpr
5416 strlen_c(const CharT *const s) noexcept
5418 return strlen_c_r(s, 0UL);
5421 static_assert(strlen_c("") == 0UL, "");
5422 static_assert(strlen_c("1") == 1UL, "");
5423 static_assert(strlen_c("example") == 7UL, "");
5424 static_assert(strlen_c("another\0example") == 7UL, "");
5428 namespace test_rvalue_references
5434 static constexpr int value = N;
5437 answer<1> f(int&) { return answer<1>(); }
5438 answer<2> f(const int&) { return answer<2>(); }
5439 answer<3> f(int&&) { return answer<3>(); }
5446 static_assert(decltype(f(i))::value == 1, "");
5447 static_assert(decltype(f(c))::value == 2, "");
5448 static_assert(decltype(f(0))::value == 3, "");
5453 namespace test_uniform_initialization
5458 static const int zero {};
5459 static const int one {1};
5462 static_assert(test::zero == 0, "");
5463 static_assert(test::one == 1, "");
5467 namespace test_lambdas
5473 auto lambda1 = [](){};
5474 auto lambda2 = lambda1;
5482 auto a = [](int i, int j){ return i + j; }(1, 2);
5483 auto b = []() -> int { return '0'; }();
5484 auto c = [=](){ return a + b; }();
5485 auto d = [&](){ return c; }();
5486 auto e = [a, &b](int x) mutable {
5487 const auto identity = [](int y){ return y; };
5488 for (auto i = 0; i < a; ++i)
5490 return x + identity(a + b);
5492 return a + b + c + d + e;
5498 const auto nullary = [](){ return 0; };
5499 const auto unary = [](int x){ return x; };
5500 using nullary_t = decltype(nullary);
5501 using unary_t = decltype(unary);
5502 const auto higher1st = [](nullary_t f){ return f(); };
5503 const auto higher2nd = [unary](nullary_t f1){
5504 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5506 return higher1st(nullary) + higher2nd(nullary)(unary);
5511 namespace test_variadic_templates
5517 template <int N0, int... N1toN>
5518 struct sum<N0, N1toN...>
5520 static constexpr auto value = N0 + sum<N1toN...>::value;
5526 static constexpr auto value = 0;
5529 static_assert(sum<>::value == 0, "");
5530 static_assert(sum<1>::value == 1, "");
5531 static_assert(sum<23>::value == 23, "");
5532 static_assert(sum<1, 2>::value == 3, "");
5533 static_assert(sum<5, 5, 11>::value == 21, "");
5534 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5538 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5539 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5541 namespace test_template_alias_sfinae
5546 template<typename T>
5547 using member = typename T::member_type;
5549 template<typename T>
5552 template<typename T>
5553 void func(member<T>*) {}
5557 void test() { func<foo>(0); }
5561 } // namespace cxx11
5563 #endif // __cplusplus >= 201103L
5568 if ac_fn_cxx_try_compile
"$LINENO"; then :
5569 ax_cv_cxx_compile_cxx11
=yes
5571 ax_cv_cxx_compile_cxx11
=no
5573 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5576 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5577 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
5581 if test x
$ac_success = xno
; then
5582 for alternative
in ${ax_cxx_compile_alternatives}; do
5583 switch
="-std=gnu++${alternative}"
5584 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5586 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5587 if eval \
${$cachevar+:} false
; then :
5588 $as_echo_n "(cached) " >&6
5592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h. */
5596 // If the compiler admits that it is not ready for C++11, why torture it?
5597 // Hopefully, this will speed up the test.
5601 #error "This is not a C++ compiler"
5603 #elif __cplusplus < 201103L
5605 #error "This is not a C++11 compiler"
5612 namespace test_static_assert
5615 template <typename T>
5618 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5623 namespace test_final_override
5631 struct Derived : public Base
5633 virtual void f() override {}
5638 namespace test_double_right_angle_brackets
5641 template < typename T >
5644 typedef check<void> single_type;
5645 typedef check<check<void>> double_type;
5646 typedef check<check<check<void>>> triple_type;
5647 typedef check<check<check<check<void>>>> quadruple_type;
5651 namespace test_decltype
5664 namespace test_type_deduction
5667 template < typename T1, typename T2 >
5670 static const bool value = false;
5673 template < typename T >
5674 struct is_same<T, T>
5676 static const bool value = true;
5679 template < typename T1, typename T2 >
5681 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5687 test(const int c, volatile int v)
5689 static_assert(is_same<int, decltype(0)>::value == true, "");
5690 static_assert(is_same<int, decltype(c)>::value == false, "");
5691 static_assert(is_same<int, decltype(v)>::value == false, "");
5694 auto sumi = ac + av + 'x';
5695 auto sumf = ac + av + 1.0;
5696 static_assert(is_same<int, decltype(ac)>::value == true, "");
5697 static_assert(is_same<int, decltype(av)>::value == true, "");
5698 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5699 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5700 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5701 return (sumf > 0.0) ? sumi : add(c, v);
5706 namespace test_noexcept
5709 int f() { return 0; }
5710 int g() noexcept { return 0; }
5712 static_assert(noexcept(f()) == false, "");
5713 static_assert(noexcept(g()) == true, "");
5717 namespace test_constexpr
5720 template < typename CharT >
5721 unsigned long constexpr
5722 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5724 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5727 template < typename CharT >
5728 unsigned long constexpr
5729 strlen_c(const CharT *const s) noexcept
5731 return strlen_c_r(s, 0UL);
5734 static_assert(strlen_c("") == 0UL, "");
5735 static_assert(strlen_c("1") == 1UL, "");
5736 static_assert(strlen_c("example") == 7UL, "");
5737 static_assert(strlen_c("another\0example") == 7UL, "");
5741 namespace test_rvalue_references
5747 static constexpr int value = N;
5750 answer<1> f(int&) { return answer<1>(); }
5751 answer<2> f(const int&) { return answer<2>(); }
5752 answer<3> f(int&&) { return answer<3>(); }
5759 static_assert(decltype(f(i))::value == 1, "");
5760 static_assert(decltype(f(c))::value == 2, "");
5761 static_assert(decltype(f(0))::value == 3, "");
5766 namespace test_uniform_initialization
5771 static const int zero {};
5772 static const int one {1};
5775 static_assert(test::zero == 0, "");
5776 static_assert(test::one == 1, "");
5780 namespace test_lambdas
5786 auto lambda1 = [](){};
5787 auto lambda2 = lambda1;
5795 auto a = [](int i, int j){ return i + j; }(1, 2);
5796 auto b = []() -> int { return '0'; }();
5797 auto c = [=](){ return a + b; }();
5798 auto d = [&](){ return c; }();
5799 auto e = [a, &b](int x) mutable {
5800 const auto identity = [](int y){ return y; };
5801 for (auto i = 0; i < a; ++i)
5803 return x + identity(a + b);
5805 return a + b + c + d + e;
5811 const auto nullary = [](){ return 0; };
5812 const auto unary = [](int x){ return x; };
5813 using nullary_t = decltype(nullary);
5814 using unary_t = decltype(unary);
5815 const auto higher1st = [](nullary_t f){ return f(); };
5816 const auto higher2nd = [unary](nullary_t f1){
5817 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5819 return higher1st(nullary) + higher2nd(nullary)(unary);
5824 namespace test_variadic_templates
5830 template <int N0, int... N1toN>
5831 struct sum<N0, N1toN...>
5833 static constexpr auto value = N0 + sum<N1toN...>::value;
5839 static constexpr auto value = 0;
5842 static_assert(sum<>::value == 0, "");
5843 static_assert(sum<1>::value == 1, "");
5844 static_assert(sum<23>::value == 23, "");
5845 static_assert(sum<1, 2>::value == 3, "");
5846 static_assert(sum<5, 5, 11>::value == 21, "");
5847 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5851 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5852 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5854 namespace test_template_alias_sfinae
5859 template<typename T>
5860 using member = typename T::member_type;
5862 template<typename T>
5865 template<typename T>
5866 void func(member<T>*) {}
5870 void test() { func<foo>(0); }
5874 } // namespace cxx11
5876 #endif // __cplusplus >= 201103L
5881 if ac_fn_cxx_try_compile
"$LINENO"; then :
5886 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5889 eval ac_res
=\$
$cachevar
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5891 $as_echo "$ac_res" >&6; }
5892 if eval test x\$
$cachevar = xyes
; then
5893 CXX_DIALECT
="$switch"
5900 if test x
$ac_success = xno
; then
5901 for alternative
in ${ax_cxx_compile_alternatives}; do
5902 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5903 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
5905 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
5906 if eval \${$cachevar+:} false; then :
5907 $as_echo_n "(cached
) " >&6
5911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5912 /* end confdefs.h. */
5915 // If the compiler admits that it is not ready for C++11, why torture it?
5916 // Hopefully, this will speed up the test.
5920 #error "This is not a C
++ compiler
"
5922 #elif __cplusplus < 201103L
5924 #error "This is not a C
++11 compiler
"
5931 namespace test_static_assert
5934 template <typename T>
5937 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
5942 namespace test_final_override
5950 struct Derived : public Base
5952 virtual void f() override {}
5957 namespace test_double_right_angle_brackets
5960 template < typename T >
5963 typedef check<void> single_type;
5964 typedef check<check<void>> double_type;
5965 typedef check<check<check<void>>> triple_type;
5966 typedef check<check<check<check<void>>>> quadruple_type;
5970 namespace test_decltype
5983 namespace test_type_deduction
5986 template < typename T1, typename T2 >
5989 static const bool value = false;
5992 template < typename T >
5993 struct is_same<T, T>
5995 static const bool value = true;
5998 template < typename T1, typename T2 >
6000 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6006 test(const int c, volatile int v)
6008 static_assert(is_same<int, decltype(0)>::value == true, "");
6009 static_assert(is_same<int, decltype(c)>::value == false, "");
6010 static_assert(is_same<int, decltype(v)>::value == false, "");
6013 auto sumi = ac + av + 'x';
6014 auto sumf = ac + av + 1.0;
6015 static_assert(is_same<int, decltype(ac)>::value == true, "");
6016 static_assert(is_same<int, decltype(av)>::value == true, "");
6017 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6018 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6019 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6020 return (sumf > 0.0) ? sumi : add(c, v);
6025 namespace test_noexcept
6028 int f() { return 0; }
6029 int g() noexcept { return 0; }
6031 static_assert(noexcept(f()) == false, "");
6032 static_assert(noexcept(g()) == true, "");
6036 namespace test_constexpr
6039 template < typename CharT >
6040 unsigned long constexpr
6041 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6043 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6046 template < typename CharT >
6047 unsigned long constexpr
6048 strlen_c(const CharT *const s) noexcept
6050 return strlen_c_r(s, 0UL);
6053 static_assert(strlen_c("") == 0UL, "");
6054 static_assert(strlen_c("1") == 1UL, "");
6055 static_assert(strlen_c("example
") == 7UL, "");
6056 static_assert(strlen_c("another\
0example
") == 7UL, "");
6060 namespace test_rvalue_references
6066 static constexpr int value = N;
6069 answer<1> f(int&) { return answer<1>(); }
6070 answer<2> f(const int&) { return answer<2>(); }
6071 answer<3> f(int&&) { return answer<3>(); }
6078 static_assert(decltype(f(i))::value == 1, "");
6079 static_assert(decltype(f(c))::value == 2, "");
6080 static_assert(decltype(f(0))::value == 3, "");
6085 namespace test_uniform_initialization
6090 static const int zero {};
6091 static const int one {1};
6094 static_assert(test::zero == 0, "");
6095 static_assert(test::one == 1, "");
6099 namespace test_lambdas
6105 auto lambda1 = [](){};
6106 auto lambda2 = lambda1;
6114 auto a = [](int i, int j){ return i + j; }(1, 2);
6115 auto b = []() -> int { return '0'; }();
6116 auto c = [=](){ return a + b; }();
6117 auto d = [&](){ return c; }();
6118 auto e = [a, &b](int x) mutable {
6119 const auto identity = [](int y){ return y; };
6120 for (auto i = 0; i < a; ++i)
6122 return x + identity(a + b);
6124 return a + b + c + d + e;
6130 const auto nullary = [](){ return 0; };
6131 const auto unary = [](int x){ return x; };
6132 using nullary_t = decltype(nullary);
6133 using unary_t = decltype(unary);
6134 const auto higher1st = [](nullary_t f){ return f(); };
6135 const auto higher2nd = [unary](nullary_t f1){
6136 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6138 return higher1st(nullary) + higher2nd(nullary)(unary);
6143 namespace test_variadic_templates
6149 template <int N0, int... N1toN>
6150 struct sum<N0, N1toN...>
6152 static constexpr auto value = N0 + sum<N1toN...>::value;
6158 static constexpr auto value = 0;
6161 static_assert(sum<>::value == 0, "");
6162 static_assert(sum<1>::value == 1, "");
6163 static_assert(sum<23>::value == 23, "");
6164 static_assert(sum<1, 2>::value == 3, "");
6165 static_assert(sum<5, 5, 11>::value == 21, "");
6166 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6170 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6171 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6173 namespace test_template_alias_sfinae
6178 template<typename T>
6179 using member = typename T::member_type;
6181 template<typename T>
6184 template<typename T>
6185 void func(member<T>*) {}
6189 void test() { func<foo>(0); }
6193 } // namespace cxx11
6195 #endif // __cplusplus >= 201103L
6200 if ac_fn_cxx_try_compile "$LINENO"; then :
6205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6208 eval ac_res=\$$cachevar
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6210 $as_echo "$ac_res" >&6; }
6211 if eval test x\$$cachevar = xyes; then
6212 CXX_DIALECT="$switch"
6217 if test x$ac_success = xyes; then
6223 ac_cpp='$CPP $CPPFLAGS'
6224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6228 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6229 if test x$ac_success = xno; then
6230 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6233 if test x$ac_success = xno; then
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6236 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6240 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6247 # Dependency checking.
6248 rm -rf .tst
2>/dev
/null
6249 mkdir .tst
2>/dev
/null
6250 if test -d .tst
; then
6255 rmdir .tst
2>/dev
/null
6257 DEPDIR
="${am__leading_dot}deps"
6259 ac_config_commands
="$ac_config_commands depdir"
6262 depcc
="$CC" am_compiler_list
=
6264 am_depcomp
=$ac_aux_dir/depcomp
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6266 $as_echo_n "checking dependency style of $depcc... " >&6; }
6267 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
6268 $as_echo_n "(cached) " >&6
6270 if test -f "$am_depcomp"; then
6271 # We make a subdir and do the tests there. Otherwise we can end up
6272 # making bogus files that we don't know about and never remove. For
6273 # instance it was reported that on HP-UX the gcc test will end up
6274 # making a dummy file named `D' -- because `-MD' means `put the output
6277 # Copy depcomp to subdir because otherwise we won't find it if we're
6278 # using a relative directory.
6279 cp "$am_depcomp" conftest.dir
6281 # We will build objects and dependencies in a subdirectory because
6282 # it helps to detect inapplicable dependency modes. For instance
6283 # both Tru64's cc and ICC support -MD to output dependencies as a
6284 # side effect of compilation, but ICC will put the dependencies in
6285 # the current directory while Tru64 will put them in the object
6289 am_cv_CC_dependencies_compiler_type
=none
6290 if test "$am_compiler_list" = ""; then
6291 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6293 for depmode
in $am_compiler_list; do
6294 if test $depmode = none
; then break; fi
6296 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6297 # Setup a source with many dependencies, because some compilers
6298 # like to wrap large dependency lists on column 80 (with \), and
6299 # we should not choose a depcomp mode which is confused by this.
6301 # We need to recreate these files for each test, as the compiler may
6302 # overwrite some of them when testing with obscure command lines.
6303 # This happens at least with the AIX C compiler.
6305 for i
in 1 2 3 4 5 6; do
6306 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6307 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6308 # Solaris 8's {/usr,}/bin/sh.
6309 touch sub
/conftst
$i.h
6311 echo "include sub/conftest.Po" > confmf
6313 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6314 # mode. It turns out that the SunPro C++ compiler does not properly
6315 # handle `-M -o', and we need to detect this.
6316 depcmd
="depmode=$depmode \
6317 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6318 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6319 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6320 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
6321 if env
$depcmd > conftest.err
2>&1 &&
6322 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
6323 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
6324 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
6325 # icc doesn't choke on unknown options, it will just issue warnings
6326 # or remarks (even with -Werror). So we grep stderr for any message
6327 # that says an option was ignored or not supported.
6328 # When given -MP, icc 7.0 and 7.1 complain thusly:
6329 # icc: Command line warning: ignoring option '-M'; no argument required
6330 # The diagnosis changed in icc 8.0:
6331 # icc: Command line remark: option '-MP' not supported
6332 if (grep 'ignoring option' conftest.err ||
6333 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6334 am_cv_CC_dependencies_compiler_type
=$depmode
6335 $as_echo "$as_me:$LINENO: success" >&5
6339 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6340 sed -e 's/^/| /' < conftest.err
>&5
6346 am_cv_CC_dependencies_compiler_type
=none
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6351 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6352 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
6353 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
6354 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
6370 # If we haven't got the data from the intl directory,
6371 # assume NLS is disabled.
6380 if test -f ..
/intl
/config.intl
; then
6381 . ..
/intl
/config.intl
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6384 $as_echo_n "checking whether NLS is requested... " >&6; }
6385 if test x
"$USE_NLS" != xyes
; then
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6387 $as_echo "no" >&6; }
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6390 $as_echo "yes" >&6; }
6392 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6396 $as_echo_n "checking for catalogs to be installed... " >&6; }
6397 # Look for .po and .gmo files in the source directory.
6400 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
6401 # If there aren't any .gmo files the shell will give us the
6402 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6404 case "$cat" in *\
**)
6407 # The quadruple backslash is collapsed to a double backslash
6408 # by the backticks, then collapsed again by the double quotes,
6409 # leaving us with one backslash in the sed expression (right
6410 # before the dot that mustn't act as a wildcard).
6411 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6412 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
6413 # The user is allowed to set LINGUAS to a list of languages to
6414 # install catalogs for. If it's empty that means "all of them."
6415 if test "x$LINGUAS" = x
; then
6416 CATALOGS
="$CATALOGS $cat"
6417 XLINGUAS
="$XLINGUAS $lang"
6419 case "$LINGUAS" in *$lang*)
6420 CATALOGS
="$CATALOGS $cat"
6421 XLINGUAS
="$XLINGUAS $lang"
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6428 $as_echo "$LINGUAS" >&6; }
6441 localedir
='${datadir}/locale'
6444 if test x
"$USE_NLS" = xyes
; then
6445 CONFIG_ALL
="$CONFIG_ALL all-po"
6446 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
6447 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
6448 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
6453 cat >>confdefs.h
<<_ACEOF
6454 #define PACKAGE "$PACKAGE"
6459 # We never need to detect it in this sub-configure.
6460 # But preserve it for config.status --recheck.
6464 MAKEINFO_EXTRA_FLAGS
=""
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
6466 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
6467 if ${gdb_cv_have_makeinfo_click+:} false
; then :
6468 $as_echo_n "(cached) " >&6
6470 echo '@clicksequence{a @click{} b}' >conftest.texinfo
6471 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
6472 gdb_cv_have_makeinfo_click
=yes
6474 gdb_cv_have_makeinfo_click
=no
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
6478 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
6479 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
6480 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
6486 # Check whether --with-separate-debug-dir was given.
6487 if test "${with_separate_debug_dir+set}" = set; then :
6488 withval
=$with_separate_debug_dir;
6491 DEBUGDIR
=${libdir}/debug
6495 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6496 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6497 ac_define_dir
=`eval echo $DEBUGDIR`
6498 ac_define_dir
=`eval echo $ac_define_dir`
6500 cat >>confdefs.h
<<_ACEOF
6501 #define DEBUGDIR "$ac_define_dir"
6507 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6508 if test "x$prefix" = xNONE
; then
6509 test_prefix
=/usr
/local
6514 test_prefix
=$exec_prefix
6517 case ${ac_define_dir} in
6518 "${test_prefix}"|
"${test_prefix}/"*|\
6519 '${exec_prefix}'|
'${exec_prefix}/'*)
6524 cat >>confdefs.h
<<_ACEOF
6525 #define DEBUGDIR_RELOCATABLE $value
6531 # We can't pass paths as command line arguments.
6532 # Mingw32 tries to be clever and will convert the paths for us.
6533 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
6534 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
6535 # This breaks GDB's relocatable path conversions since paths passed in
6536 # config.h would not get so translated, the path prefixes no longer match.
6538 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6539 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6540 ac_define_dir
=`eval echo $bindir`
6541 ac_define_dir
=`eval echo $ac_define_dir`
6543 cat >>confdefs.h
<<_ACEOF
6544 #define BINDIR "$ac_define_dir"
6549 # GDB's datadir relocation
6553 # Check whether --with-gdb-datadir was given.
6554 if test "${with_gdb_datadir+set}" = set; then :
6555 withval
=$with_gdb_datadir;
6556 GDB_DATADIR
=$withval
6558 GDB_DATADIR
=${datadir}/gdb
6562 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6563 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6564 ac_define_dir
=`eval echo $GDB_DATADIR`
6565 ac_define_dir
=`eval echo $ac_define_dir`
6567 cat >>confdefs.h
<<_ACEOF
6568 #define GDB_DATADIR "$ac_define_dir"
6574 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6575 if test "x$prefix" = xNONE
; then
6576 test_prefix
=/usr
/local
6581 test_prefix
=$exec_prefix
6584 case ${ac_define_dir} in
6585 "${test_prefix}"|
"${test_prefix}/"*|\
6586 '${exec_prefix}'|
'${exec_prefix}/'*)
6591 cat >>confdefs.h
<<_ACEOF
6592 #define GDB_DATADIR_RELOCATABLE $value
6599 # Check whether --with-relocated-sources was given.
6600 if test "${with_relocated_sources+set}" = set; then :
6601 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
6603 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6604 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6605 ac_define_dir
=`eval echo $reloc_srcdir`
6606 ac_define_dir
=`eval echo $ac_define_dir`
6608 cat >>confdefs.h
<<_ACEOF
6609 #define RELOC_SRCDIR "$ac_define_dir"
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
6618 $as_echo_n "checking for default auto-load directory... " >&6; }
6620 # Check whether --with-auto-load-dir was given.
6621 if test "${with_auto_load_dir+set}" = set; then :
6622 withval
=$with_auto_load_dir;
6624 with_auto_load_dir
='$debugdir:$datadir/auto-load'
6627 escape_dir
=`echo $with_auto_load_dir | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6629 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6630 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6631 ac_define_dir
=`eval echo $escape_dir`
6632 ac_define_dir
=`eval echo $ac_define_dir`
6634 cat >>confdefs.h
<<_ACEOF
6635 #define AUTO_LOAD_DIR "$ac_define_dir"
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
6640 $as_echo "$with_auto_load_dir" >&6; }
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
6643 $as_echo_n "checking for default auto-load safe-path... " >&6; }
6645 # Check whether --with-auto-load-safe-path was given.
6646 if test "${with_auto_load_safe_path+set}" = set; then :
6647 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
6648 with_auto_load_safe_path
="/"
6651 with_auto_load_safe_path
="$with_auto_load_dir"
6654 escape_dir
=`echo $with_auto_load_safe_path | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6656 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6657 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6658 ac_define_dir
=`eval echo $escape_dir`
6659 ac_define_dir
=`eval echo $ac_define_dir`
6661 cat >>confdefs.h
<<_ACEOF
6662 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
6667 $as_echo "$with_auto_load_safe_path" >&6; }
6671 subdirs
="$subdirs testsuite"
6674 # Check whether to support alternative target configurations
6675 # Check whether --enable-targets was given.
6676 if test "${enable_targets+set}" = set; then :
6677 enableval
=$enable_targets; case "${enableval}" in
6678 yes |
"") as_fn_error $?
"enable-targets option must specify target names or 'all'" "$LINENO" 5
6680 no
) enable_targets
= ;;
6681 *) enable_targets
=$enableval ;;
6686 # Check whether to enable 64-bit support on 32-bit hosts
6687 # Check whether --enable-64-bit-bfd was given.
6688 if test "${enable_64_bit_bfd+set}" = set; then :
6689 enableval
=$enable_64_bit_bfd; case "${enableval}" in
6692 *) as_fn_error $?
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
6698 # Provide defaults for some variables set by the per-host and per-target
6700 gdb_host_obs
=posix-hdep.o
6702 if test "${target}" = "${host}"; then
6708 .
$srcdir/configure.
host
6710 # Accumulate some settings from configure.tgt over all enabled targets
6714 HAVE_NATIVE_GCORE_TARGET
=
6716 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6718 if test "$targ_alias" = "all"; then
6721 # Canonicalize the secondary target names.
6722 result
=`$ac_config_sub $targ_alias 2>/dev/null`
6723 if test -n "$result"; then
6729 .
${srcdir}/configure.tgt
6731 if test -z "${gdb_target_obs}"; then :
6732 as_fn_error $?
"configuration ${targ} is unsupported." "$LINENO" 5
6735 # Target-specific object files
6736 for i
in ${gdb_target_obs}; do
6737 case " $TARGET_OBS " in
6740 TARGET_OBS
="$TARGET_OBS ${i}"
6745 # Check whether this target needs 64-bit CORE_ADDR
6746 if test x
${want64} = xfalse
; then
6747 .
${srcdir}/..
/bfd
/config.bfd
6750 # Check whether this target is native and supports gcore.
6751 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
6752 && $gdb_have_gcore; then
6753 HAVE_NATIVE_GCORE_TARGET
=1
6758 if test x
${all_targets} = xtrue
; then
6760 # We want all 64-bit targets if we either:
6761 # - run on a 64-bit host or
6762 # - already require 64-bit support for some other target or
6763 # - the --enable-64-bit-bfd option was supplied
6764 # Otherwise we only support all 32-bit targets.
6766 # NOTE: This test must be in sync with the corresponding
6769 if test x
${want64} = xfalse
; then
6770 # The cast to long int works around a bug in the HP C Compiler
6771 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6772 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6773 # This bug is HP SR number 8606223364.
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6775 $as_echo_n "checking size of long... " >&6; }
6776 if ${ac_cv_sizeof_long+:} false
; then :
6777 $as_echo_n "(cached) " >&6
6779 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6782 if test "$ac_cv_type_long" = yes; then
6783 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6785 as_fn_error
77 "cannot compute sizeof (long)
6786 See \`config.log' for more details" "$LINENO" 5; }
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6794 $as_echo "$ac_cv_sizeof_long" >&6; }
6798 cat >>confdefs.h
<<_ACEOF
6799 #define SIZEOF_LONG $ac_cv_sizeof_long
6803 if test "x${ac_cv_sizeof_long}" = "x8"; then
6807 if test x
${want64} = xtrue
; then
6808 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
6810 TARGET_OBS
='$(ALL_TARGET_OBS)'
6817 # For other settings, only the main target counts.
6820 targ
=$target; .
${srcdir}/configure.tgt
6822 # Fetch the default architecture and default target vector from BFD.
6823 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
6825 # We only want the first architecture, so strip off the others if
6826 # there is more than one.
6827 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
6829 if test "x$targ_archs" != x
; then
6831 cat >>confdefs.h
<<_ACEOF
6832 #define DEFAULT_BFD_ARCH $targ_archs
6836 if test "x$targ_defvec" != x
; then
6838 cat >>confdefs.h
<<_ACEOF
6839 #define DEFAULT_BFD_VEC $targ_defvec
6845 # Check whether --enable-gdbmi was given.
6846 if test "${enable_gdbmi+set}" = set; then :
6847 enableval
=$enable_gdbmi; case $enableval in
6851 as_fn_error $?
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
6857 if test x
"$enable_gdbmi" = xyes
; then
6858 if test -d "$srcdir/mi"; then
6859 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6860 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6861 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6862 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6867 # Check whether --enable-tui was given.
6868 if test "${enable_tui+set}" = set; then :
6869 enableval
=$enable_tui; case $enableval in
6873 as_fn_error $?
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
6881 # Check whether --enable-gdbtk was given.
6882 if test "${enable_gdbtk+set}" = set; then :
6883 enableval
=$enable_gdbtk; case $enableval in
6887 as_fn_error $?
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
6890 if test -d "$srcdir/gdbtk"; then
6897 # We unconditionally disable gdbtk tests on selected platforms.
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
6901 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6905 # Handle optional debuginfod support
6913 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6914 if test -n "$ac_tool_prefix"; then
6915 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6916 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6918 $as_echo_n "checking for $ac_word... " >&6; }
6919 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
6920 $as_echo_n "(cached) " >&6
6924 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6927 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6931 test -z "$as_dir" && as_dir
=.
6932 for ac_exec_ext
in '' $ac_executable_extensions; do
6933 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6934 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6945 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6946 if test -n "$PKG_CONFIG"; then
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6948 $as_echo "$PKG_CONFIG" >&6; }
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6951 $as_echo "no" >&6; }
6956 if test -z "$ac_cv_path_PKG_CONFIG"; then
6957 ac_pt_PKG_CONFIG
=$PKG_CONFIG
6958 # Extract the first word of "pkg-config", so it can be a program name with args.
6959 set dummy pkg-config
; ac_word
=$2
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6961 $as_echo_n "checking for $ac_word... " >&6; }
6962 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
6963 $as_echo_n "(cached) " >&6
6965 case $ac_pt_PKG_CONFIG in
6967 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6970 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6974 test -z "$as_dir" && as_dir
=.
6975 for ac_exec_ext
in '' $ac_executable_extensions; do
6976 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6977 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6988 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
6989 if test -n "$ac_pt_PKG_CONFIG"; then
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6991 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6994 $as_echo "no" >&6; }
6997 if test "x$ac_pt_PKG_CONFIG" = x
; then
7000 case $cross_compiling:$ac_tool_warned in
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7004 ac_tool_warned
=yes ;;
7006 PKG_CONFIG
=$ac_pt_PKG_CONFIG
7009 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
7013 if test -n "$PKG_CONFIG"; then
7014 _pkg_min_version
=0.9.0
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7016 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7017 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7019 $as_echo "yes" >&6; }
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7022 $as_echo "no" >&6; }
7027 # Handle optional debuginfod support
7029 # Check whether --with-debuginfod was given.
7030 if test "${with_debuginfod+set}" = set; then :
7031 withval
=$with_debuginfod;
7033 with_debuginfod
=auto
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
7037 $as_echo_n "checking whether to use debuginfod... " >&6; }
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
7039 $as_echo "$with_debuginfod" >&6; }
7041 if test "x$with_debuginfod" != xno
; then
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
7045 $as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
7047 if test -n "$DEBUGINFOD_CFLAGS"; then
7048 pkg_cv_DEBUGINFOD_CFLAGS
="$DEBUGINFOD_CFLAGS"
7049 elif test -n "$PKG_CONFIG"; then
7050 if test -n "$PKG_CONFIG" && \
7051 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
7052 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
7054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7055 test $ac_status = 0; }; then
7056 pkg_cv_DEBUGINFOD_CFLAGS
=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
7057 test "x$?" != "x0" && pkg_failed
=yes
7064 if test -n "$DEBUGINFOD_LIBS"; then
7065 pkg_cv_DEBUGINFOD_LIBS
="$DEBUGINFOD_LIBS"
7066 elif test -n "$PKG_CONFIG"; then
7067 if test -n "$PKG_CONFIG" && \
7068 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
7069 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
7071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7072 test $ac_status = 0; }; then
7073 pkg_cv_DEBUGINFOD_LIBS
=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
7074 test "x$?" != "x0" && pkg_failed
=yes
7082 if test $pkg_failed = no
; then
7083 pkg_save_LDFLAGS
="$LDFLAGS"
7084 LDFLAGS
="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
7085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7086 /* end confdefs.h. */
7096 if ac_fn_c_try_link
"$LINENO"; then :
7101 rm -f core conftest.err conftest.
$ac_objext \
7102 conftest
$ac_exeext conftest.
$ac_ext
7103 LDFLAGS
=$pkg_save_LDFLAGS
7108 if test $pkg_failed = yes; then
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110 $as_echo "no" >&6; }
7112 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7113 _pkg_short_errors_supported
=yes
7115 _pkg_short_errors_supported
=no
7117 if test $_pkg_short_errors_supported = yes; then
7118 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
7120 DEBUGINFOD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
7122 # Put the nasty error message in config.log where it belongs
7123 echo "$DEBUGINFOD_PKG_ERRORS" >&5
7125 if test "x$with_debuginfod" = xyes
; then
7126 as_fn_error $?
"\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
7129 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
7131 elif test $pkg_failed = untried
; then
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7133 $as_echo "no" >&6; }
7134 if test "x$with_debuginfod" = xyes
; then
7135 as_fn_error $?
"\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
7138 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
7141 DEBUGINFOD_CFLAGS
=$pkg_cv_DEBUGINFOD_CFLAGS
7142 DEBUGINFOD_LIBS
=$pkg_cv_DEBUGINFOD_LIBS
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7144 $as_echo "yes" >&6; }
7146 $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
7151 $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
7155 # Libunwind support for ia64.
7157 # Check whether --with-libunwind-ia64 was given.
7158 if test "${with_libunwind_ia64+set}" = set; then :
7159 withval
=$with_libunwind_ia64;
7161 with_libunwind_ia64
=auto
7165 # Backward compatibility option.
7166 if test "${with_libunwind+set}" = set; then
7167 if test x
"$with_libunwind_ia64" != xauto
; then
7168 as_fn_error $?
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
7171 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
7172 with_libunwind_ia64
="$with_libunwind"
7175 case "$with_libunwind_ia64" in
7179 for ac_header
in libunwind-ia64.h
7181 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
7182 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
7183 cat >>confdefs.h
<<_ACEOF
7184 #define HAVE_LIBUNWIND_IA64_H 1
7191 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
7194 as_fn_error $?
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
7198 if test x
"$with_libunwind_ia64" = xyes
; then
7199 for ac_header
in libunwind-ia64.h
7201 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
7202 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
7203 cat >>confdefs.h
<<_ACEOF
7204 #define HAVE_LIBUNWIND_IA64_H 1
7211 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
7212 as_fn_error $?
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
7214 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
7215 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
7216 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
7221 # Check whether --with-curses was given.
7222 if test "${with_curses+set}" = set; then :
7223 withval
=$with_curses; opt_curses
=$withval
7228 if test "$opt_curses" = "yes"; then
7232 # Profiling support.
7233 # Check whether --enable-profiling was given.
7234 if test "${enable_profiling+set}" = set; then :
7235 enableval
=$enable_profiling; case $enableval in
7239 as_fn_error $?
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
7246 for ac_func
in monstartup _mcleanup
7248 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7249 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7250 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7251 cat >>confdefs.h
<<_ACEOF
7252 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
7259 $as_echo_n "checking for _etext... " >&6; }
7260 if ${ac_cv_var__etext+:} false
; then :
7261 $as_echo_n "(cached) " >&6
7263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7264 /* end confdefs.h. */
7276 if ac_fn_c_try_link
"$LINENO"; then :
7277 ac_cv_var__etext
=yes
7281 rm -f core conftest.err conftest.
$ac_objext \
7282 conftest
$ac_exeext conftest.
$ac_ext
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
7285 $as_echo "$ac_cv_var__etext" >&6; }
7286 if test "$ac_cv_var__etext" = yes; then
7288 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
7292 $as_echo_n "checking for etext... " >&6; }
7293 if ${ac_cv_var_etext+:} false
; then :
7294 $as_echo_n "(cached) " >&6
7296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7297 /* end confdefs.h. */
7309 if ac_fn_c_try_link
"$LINENO"; then :
7314 rm -f core conftest.err conftest.
$ac_objext \
7315 conftest
$ac_exeext conftest.
$ac_ext
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
7318 $as_echo "$ac_cv_var_etext" >&6; }
7319 if test "$ac_cv_var_etext" = yes; then
7321 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
7324 if test "$enable_profiling" = yes ; then
7325 if test "$ac_cv_func_monstartup" = no ||
test "$ac_cv_func__mcleanup" = no
; then
7326 as_fn_error $?
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
7329 OLD_CFLAGS
="$CFLAGS"
7330 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
7333 $as_echo_n "checking whether $CC supports -pg... " >&6; }
7334 if ${ac_cv_cc_supports_pg+:} false
; then :
7335 $as_echo_n "(cached) " >&6
7337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7338 /* end confdefs.h. */
7348 if ac_fn_c_try_compile
"$LINENO"; then :
7349 ac_cv_cc_supports_pg
=yes
7351 ac_cv_cc_supports_pg
=no
7353 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
7356 $as_echo "$ac_cv_cc_supports_pg" >&6; }
7358 if test "$ac_cv_cc_supports_pg" = no
; then
7359 as_fn_error $?
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
7362 CFLAGS
="$OLD_CFLAGS"
7366 # Check whether --enable-codesign was given.
7367 if test "${enable_codesign+set}" = set; then :
7368 enableval
=$enable_codesign; CODESIGN_CERT
=$enableval
7375 # Check whether --with-pkgversion was given.
7376 if test "${with_pkgversion+set}" = set; then :
7377 withval
=$with_pkgversion; case "$withval" in
7378 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
7380 *) PKGVERSION
="($withval) " ;;
7391 # Check whether --with-bugurl was given.
7392 if test "${with_bugurl+set}" = set; then :
7393 withval
=$with_bugurl; case "$withval" in
7394 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
7397 *) BUGURL
="$withval"
7401 BUGURL
="https://www.gnu.org/software/gdb/bugs/"
7411 REPORT_BUGS_TO
="<$BUGURL>"
7412 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7419 cat >>confdefs.h
<<_ACEOF
7420 #define PKGVERSION "$PKGVERSION"
7424 cat >>confdefs.h
<<_ACEOF
7425 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7429 # --------------------- #
7430 # Checks for programs. #
7431 # --------------------- #
7433 for ac_prog
in gawk mawk nawk
awk
7435 # Extract the first word of "$ac_prog", so it can be a program name with args.
7436 set dummy
$ac_prog; ac_word
=$2
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7438 $as_echo_n "checking for $ac_word... " >&6; }
7439 if ${ac_cv_prog_AWK+:} false
; then :
7440 $as_echo_n "(cached) " >&6
7442 if test -n "$AWK"; then
7443 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7445 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7449 test -z "$as_dir" && as_dir
=.
7450 for ac_exec_ext
in '' $ac_executable_extensions; do
7451 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7452 ac_cv_prog_AWK
="$ac_prog"
7453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7463 if test -n "$AWK"; then
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7465 $as_echo "$AWK" >&6; }
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7468 $as_echo "no" >&6; }
7472 test -n "$AWK" && break
7475 # Find a good install program. We prefer a C program (faster),
7476 # so one script is as good as another. But avoid the broken or
7477 # incompatible versions:
7478 # SysV /etc/install, /usr/sbin/install
7479 # SunOS /usr/etc/install
7480 # IRIX /sbin/install
7482 # AmigaOS /C/install, which installs bootblocks on floppy discs
7483 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7484 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7485 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7486 # OS/2's system install, which has a completely different semantic
7487 # ./install, which can be erroneously created by make from ./install.sh.
7488 # Reject install programs that cannot install multiple files.
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7490 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7491 if test -z "$INSTALL"; then
7492 if ${ac_cv_path_install+:} false
; then :
7493 $as_echo_n "(cached) " >&6
7495 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7499 test -z "$as_dir" && as_dir
=.
7500 # Account for people who put trailing slashes in PATH elements.
7501 case $as_dir/ in #((
7502 .
/ | .
// |
/[cC
]/* | \
7503 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7504 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
7507 # OSF1 and SCO ODT 3.0 have their own names for install.
7508 # Don't use installbsd from OSF since it installs stuff as root
7510 for ac_prog
in ginstall scoinst
install; do
7511 for ac_exec_ext
in '' $ac_executable_extensions; do
7512 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
7513 if test $ac_prog = install &&
7514 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7515 # AIX install. It has an incompatible calling convention.
7517 elif test $ac_prog = install &&
7518 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7519 # program-specific install script used by HP pwplus--don't use.
7522 rm -rf conftest.one conftest.two conftest.dir
7523 echo one
> conftest.one
7524 echo two
> conftest.two
7526 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
7527 test -s conftest.one
&& test -s conftest.two
&&
7528 test -s conftest.dir
/conftest.one
&&
7529 test -s conftest.dir
/conftest.two
7531 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7544 rm -rf conftest.one conftest.two conftest.dir
7547 if test "${ac_cv_path_install+set}" = set; then
7548 INSTALL
=$ac_cv_path_install
7550 # As a last resort, use the slow shell script. Don't cache a
7551 # value for INSTALL within a source directory, because that will
7552 # break other packages using the cache if that directory is
7553 # removed, or if the value is a relative name.
7554 INSTALL
=$ac_install_sh
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7558 $as_echo "$INSTALL" >&6; }
7560 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7561 # It thinks the first close brace ends the variable substitution.
7562 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7564 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7566 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7569 $as_echo_n "checking whether ln -s works... " >&6; }
7571 if test "$LN_S" = "ln -s"; then
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7573 $as_echo "yes" >&6; }
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7576 $as_echo "no, using $LN_S" >&6; }
7579 if test -n "$ac_tool_prefix"; then
7580 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7581 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7583 $as_echo_n "checking for $ac_word... " >&6; }
7584 if ${ac_cv_prog_RANLIB+:} false
; then :
7585 $as_echo_n "(cached) " >&6
7587 if test -n "$RANLIB"; then
7588 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7594 test -z "$as_dir" && as_dir
=.
7595 for ac_exec_ext
in '' $ac_executable_extensions; do
7596 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7597 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7607 RANLIB
=$ac_cv_prog_RANLIB
7608 if test -n "$RANLIB"; then
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7610 $as_echo "$RANLIB" >&6; }
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7613 $as_echo "no" >&6; }
7618 if test -z "$ac_cv_prog_RANLIB"; then
7619 ac_ct_RANLIB
=$RANLIB
7620 # Extract the first word of "ranlib", so it can be a program name with args.
7621 set dummy ranlib
; ac_word
=$2
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7623 $as_echo_n "checking for $ac_word... " >&6; }
7624 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
7625 $as_echo_n "(cached) " >&6
7627 if test -n "$ac_ct_RANLIB"; then
7628 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7630 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7634 test -z "$as_dir" && as_dir
=.
7635 for ac_exec_ext
in '' $ac_executable_extensions; do
7636 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7637 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7647 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7648 if test -n "$ac_ct_RANLIB"; then
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7650 $as_echo "$ac_ct_RANLIB" >&6; }
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7653 $as_echo "no" >&6; }
7656 if test "x$ac_ct_RANLIB" = x
; then
7659 case $cross_compiling:$ac_tool_warned in
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7663 ac_tool_warned
=yes ;;
7665 RANLIB
=$ac_ct_RANLIB
7668 RANLIB
="$ac_cv_prog_RANLIB"
7671 for ac_prog
in 'bison -y' byacc
7673 # Extract the first word of "$ac_prog", so it can be a program name with args.
7674 set dummy
$ac_prog; ac_word
=$2
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7676 $as_echo_n "checking for $ac_word... " >&6; }
7677 if ${ac_cv_prog_YACC+:} false
; then :
7678 $as_echo_n "(cached) " >&6
7680 if test -n "$YACC"; then
7681 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
7683 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7687 test -z "$as_dir" && as_dir
=.
7688 for ac_exec_ext
in '' $ac_executable_extensions; do
7689 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7690 ac_cv_prog_YACC
="$ac_prog"
7691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7700 YACC
=$ac_cv_prog_YACC
7701 if test -n "$YACC"; then
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7703 $as_echo "$YACC" >&6; }
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7706 $as_echo "no" >&6; }
7710 test -n "$YACC" && break
7712 test -n "$YACC" || YACC
="yacc"
7715 if test -n "$ac_tool_prefix"; then
7716 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7717 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7719 $as_echo_n "checking for $ac_word... " >&6; }
7720 if ${ac_cv_prog_AR+:} false
; then :
7721 $as_echo_n "(cached) " >&6
7723 if test -n "$AR"; then
7724 ac_cv_prog_AR
="$AR" # Let the user override the test.
7726 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7730 test -z "$as_dir" && as_dir
=.
7731 for ac_exec_ext
in '' $ac_executable_extensions; do
7732 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7733 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7744 if test -n "$AR"; then
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7746 $as_echo "$AR" >&6; }
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7749 $as_echo "no" >&6; }
7754 if test -z "$ac_cv_prog_AR"; then
7756 # Extract the first word of "ar", so it can be a program name with args.
7757 set dummy
ar; ac_word
=$2
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7759 $as_echo_n "checking for $ac_word... " >&6; }
7760 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
7761 $as_echo_n "(cached) " >&6
7763 if test -n "$ac_ct_AR"; then
7764 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7766 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7770 test -z "$as_dir" && as_dir
=.
7771 for ac_exec_ext
in '' $ac_executable_extensions; do
7772 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7773 ac_cv_prog_ac_ct_AR
="ar"
7774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7783 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7784 if test -n "$ac_ct_AR"; then
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7786 $as_echo "$ac_ct_AR" >&6; }
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7789 $as_echo "no" >&6; }
7792 if test "x$ac_ct_AR" = x
; then
7795 case $cross_compiling:$ac_tool_warned in
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7799 ac_tool_warned
=yes ;;
7807 if test -n "$ac_tool_prefix"; then
7808 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7809 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7811 $as_echo_n "checking for $ac_word... " >&6; }
7812 if ${ac_cv_prog_DLLTOOL+:} false
; then :
7813 $as_echo_n "(cached) " >&6
7815 if test -n "$DLLTOOL"; then
7816 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
7818 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7822 test -z "$as_dir" && as_dir
=.
7823 for ac_exec_ext
in '' $ac_executable_extensions; do
7824 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7825 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
7826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7835 DLLTOOL
=$ac_cv_prog_DLLTOOL
7836 if test -n "$DLLTOOL"; then
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7838 $as_echo "$DLLTOOL" >&6; }
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7841 $as_echo "no" >&6; }
7846 if test -z "$ac_cv_prog_DLLTOOL"; then
7847 ac_ct_DLLTOOL
=$DLLTOOL
7848 # Extract the first word of "dlltool", so it can be a program name with args.
7849 set dummy dlltool
; ac_word
=$2
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7851 $as_echo_n "checking for $ac_word... " >&6; }
7852 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
7853 $as_echo_n "(cached) " >&6
7855 if test -n "$ac_ct_DLLTOOL"; then
7856 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
7858 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7862 test -z "$as_dir" && as_dir
=.
7863 for ac_exec_ext
in '' $ac_executable_extensions; do
7864 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7865 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
7866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7875 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
7876 if test -n "$ac_ct_DLLTOOL"; then
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7878 $as_echo "$ac_ct_DLLTOOL" >&6; }
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7881 $as_echo "no" >&6; }
7884 if test "x$ac_ct_DLLTOOL" = x
; then
7887 case $cross_compiling:$ac_tool_warned in
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7891 ac_tool_warned
=yes ;;
7893 DLLTOOL
=$ac_ct_DLLTOOL
7896 DLLTOOL
="$ac_cv_prog_DLLTOOL"
7899 if test -n "$ac_tool_prefix"; then
7900 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7901 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7903 $as_echo_n "checking for $ac_word... " >&6; }
7904 if ${ac_cv_prog_WINDRES+:} false
; then :
7905 $as_echo_n "(cached) " >&6
7907 if test -n "$WINDRES"; then
7908 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
7910 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7914 test -z "$as_dir" && as_dir
=.
7915 for ac_exec_ext
in '' $ac_executable_extensions; do
7916 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7917 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
7918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7927 WINDRES
=$ac_cv_prog_WINDRES
7928 if test -n "$WINDRES"; then
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7930 $as_echo "$WINDRES" >&6; }
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7933 $as_echo "no" >&6; }
7938 if test -z "$ac_cv_prog_WINDRES"; then
7939 ac_ct_WINDRES
=$WINDRES
7940 # Extract the first word of "windres", so it can be a program name with args.
7941 set dummy windres
; ac_word
=$2
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7943 $as_echo_n "checking for $ac_word... " >&6; }
7944 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
7945 $as_echo_n "(cached) " >&6
7947 if test -n "$ac_ct_WINDRES"; then
7948 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
7950 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7954 test -z "$as_dir" && as_dir
=.
7955 for ac_exec_ext
in '' $ac_executable_extensions; do
7956 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7957 ac_cv_prog_ac_ct_WINDRES
="windres"
7958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7967 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
7968 if test -n "$ac_ct_WINDRES"; then
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7970 $as_echo "$ac_ct_WINDRES" >&6; }
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7973 $as_echo "no" >&6; }
7976 if test "x$ac_ct_WINDRES" = x
; then
7979 case $cross_compiling:$ac_tool_warned in
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7983 ac_tool_warned
=yes ;;
7985 WINDRES
=$ac_ct_WINDRES
7988 WINDRES
="$ac_cv_prog_WINDRES"
7994 # Needed for GNU Hurd hosts.
7995 if test -n "$ac_tool_prefix"; then
7996 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7997 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7999 $as_echo_n "checking for $ac_word... " >&6; }
8000 if ${ac_cv_prog_MIG+:} false
; then :
8001 $as_echo_n "(cached) " >&6
8003 if test -n "$MIG"; then
8004 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
8006 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8010 test -z "$as_dir" && as_dir
=.
8011 for ac_exec_ext
in '' $ac_executable_extensions; do
8012 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8013 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
8014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8024 if test -n "$MIG"; then
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
8026 $as_echo "$MIG" >&6; }
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8029 $as_echo "no" >&6; }
8034 if test -z "$ac_cv_prog_MIG"; then
8036 # Extract the first word of "mig", so it can be a program name with args.
8037 set dummy mig
; ac_word
=$2
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8039 $as_echo_n "checking for $ac_word... " >&6; }
8040 if ${ac_cv_prog_ac_ct_MIG+:} false
; then :
8041 $as_echo_n "(cached) " >&6
8043 if test -n "$ac_ct_MIG"; then
8044 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
8046 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8050 test -z "$as_dir" && as_dir
=.
8051 for ac_exec_ext
in '' $ac_executable_extensions; do
8052 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8053 ac_cv_prog_ac_ct_MIG
="mig"
8054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8063 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
8064 if test -n "$ac_ct_MIG"; then
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
8066 $as_echo "$ac_ct_MIG" >&6; }
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8069 $as_echo "no" >&6; }
8072 if test "x$ac_ct_MIG" = x
; then
8075 case $cross_compiling:$ac_tool_warned in
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8079 ac_tool_warned
=yes ;;
8084 MIG
="$ac_cv_prog_MIG"
8087 if test x
"$MIG" = x
; then
8088 as_fn_error $?
"MIG not found but required for $host hosts" "$LINENO" 5
8093 # ---------------------- #
8094 # Checks for libraries. #
8095 # ---------------------- #
8097 # We might need to link with -lm; most simulators need it.
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
8099 $as_echo_n "checking for main in -lm... " >&6; }
8100 if ${ac_cv_lib_m_main+:} false
; then :
8101 $as_echo_n "(cached) " >&6
8103 ac_check_lib_save_LIBS
=$LIBS
8105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8106 /* end confdefs.h. */
8117 if ac_fn_c_try_link
"$LINENO"; then :
8118 ac_cv_lib_m_main
=yes
8122 rm -f core conftest.err conftest.
$ac_objext \
8123 conftest
$ac_exeext conftest.
$ac_ext
8124 LIBS
=$ac_check_lib_save_LIBS
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
8127 $as_echo "$ac_cv_lib_m_main" >&6; }
8128 if test "x$ac_cv_lib_m_main" = xyes
; then :
8129 cat >>confdefs.h
<<_ACEOF
8138 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
8140 $as_echo_n "checking for library containing gethostbyname... " >&6; }
8141 if ${ac_cv_search_gethostbyname+:} false
; then :
8142 $as_echo_n "(cached) " >&6
8144 ac_func_search_save_LIBS
=$LIBS
8145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8146 /* end confdefs.h. */
8148 /* Override any GCC internal prototype to avoid an error.
8149 Use char because int might match the return type of a GCC
8150 builtin and then its argument prototype would still apply. */
8154 char gethostbyname ();
8158 return gethostbyname ();
8163 for ac_lib
in '' nsl
; do
8164 if test -z "$ac_lib"; then
8165 ac_res
="none required"
8168 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8170 if ac_fn_c_try_link
"$LINENO"; then :
8171 ac_cv_search_gethostbyname
=$ac_res
8173 rm -f core conftest.err conftest.
$ac_objext \
8175 if ${ac_cv_search_gethostbyname+:} false
; then :
8179 if ${ac_cv_search_gethostbyname+:} false
; then :
8182 ac_cv_search_gethostbyname
=no
8185 LIBS
=$ac_func_search_save_LIBS
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
8188 $as_echo "$ac_cv_search_gethostbyname" >&6; }
8189 ac_res
=$ac_cv_search_gethostbyname
8190 if test "$ac_res" != no
; then :
8191 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8196 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
8198 $as_echo_n "checking for library containing socketpair... " >&6; }
8199 if ${ac_cv_search_socketpair+:} false
; then :
8200 $as_echo_n "(cached) " >&6
8202 ac_func_search_save_LIBS
=$LIBS
8203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8204 /* end confdefs.h. */
8206 /* Override any GCC internal prototype to avoid an error.
8207 Use char because int might match the return type of a GCC
8208 builtin and then its argument prototype would still apply. */
8216 return socketpair ();
8221 for ac_lib
in '' socket
; do
8222 if test -z "$ac_lib"; then
8223 ac_res
="none required"
8226 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8228 if ac_fn_c_try_link
"$LINENO"; then :
8229 ac_cv_search_socketpair
=$ac_res
8231 rm -f core conftest.err conftest.
$ac_objext \
8233 if ${ac_cv_search_socketpair+:} false
; then :
8237 if ${ac_cv_search_socketpair+:} false
; then :
8240 ac_cv_search_socketpair
=no
8243 LIBS
=$ac_func_search_save_LIBS
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
8246 $as_echo "$ac_cv_search_socketpair" >&6; }
8247 ac_res
=$ac_cv_search_socketpair
8248 if test "$ac_res" != no
; then :
8249 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8254 # Link in zlib if we can. This allows us to read compressed debug sections.
8256 # Use the system's zlib library.
8257 zlibdir
="-L\$(top_builddir)/../zlib"
8258 zlibinc
="-I\$(top_srcdir)/../zlib"
8260 # Check whether --with-system-zlib was given.
8261 if test "${with_system_zlib+set}" = set; then :
8262 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
8273 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
8274 # On GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
8276 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
8277 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
8278 $as_echo_n "(cached) " >&6
8280 ac_func_search_save_LIBS
=$LIBS
8281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8282 /* end confdefs.h. */
8284 /* Override any GCC internal prototype to avoid an error.
8285 Use char because int might match the return type of a GCC
8286 builtin and then its argument prototype would still apply. */
8290 char kinfo_getvmmap ();
8294 return kinfo_getvmmap ();
8299 for ac_lib
in '' util util-freebsd
; do
8300 if test -z "$ac_lib"; then
8301 ac_res
="none required"
8304 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8306 if ac_fn_c_try_link
"$LINENO"; then :
8307 ac_cv_search_kinfo_getvmmap
=$ac_res
8309 rm -f core conftest.err conftest.
$ac_objext \
8311 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
8315 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
8318 ac_cv_search_kinfo_getvmmap
=no
8321 LIBS
=$ac_func_search_save_LIBS
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
8324 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
8325 ac_res
=$ac_cv_search_kinfo_getvmmap
8326 if test "$ac_res" != no
; then :
8327 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8329 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
8335 if test "X$prefix" = "XNONE"; then
8336 acl_final_prefix
="$ac_default_prefix"
8338 acl_final_prefix
="$prefix"
8340 if test "X$exec_prefix" = "XNONE"; then
8341 acl_final_exec_prefix
='${prefix}'
8343 acl_final_exec_prefix
="$exec_prefix"
8345 acl_save_prefix
="$prefix"
8346 prefix
="$acl_final_prefix"
8347 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8348 prefix
="$acl_save_prefix"
8351 # Check whether --with-gnu-ld was given.
8352 if test "${with_gnu_ld+set}" = set; then :
8353 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8358 # Prepare PATH_SEPARATOR.
8359 # The user is always right.
8360 if test "${PATH_SEPARATOR+set}" != set; then
8361 echo "#! /bin/sh" >conf$$.sh
8362 echo "exit 0" >>conf$$.sh
8364 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8372 if test "$GCC" = yes; then
8373 # Check if gcc -print-prog-name=ld gives a path.
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8375 $as_echo_n "checking for ld used by GCC... " >&6; }
8378 # gcc leaves a trailing carriage return which upsets mingw
8379 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8381 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8384 # Accept absolute paths.
8385 [\\/]* |
[A-Za-z
]:[\\/]*)
8386 re_direlt
='/[^/][^/]*/\.\./'
8387 # Canonicalize the path of ld
8388 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8389 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8390 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8392 test -z "$LD" && LD
="$ac_prog"
8395 # If it fails, then pretend we aren't using GCC.
8399 # If it is relative, then search for the first ld in PATH.
8403 elif test "$with_gnu_ld" = yes; then
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8405 $as_echo_n "checking for GNU ld... " >&6; }
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8408 $as_echo_n "checking for non-GNU ld... " >&6; }
8410 if ${acl_cv_path_LD+:} false
; then :
8411 $as_echo_n "(cached) " >&6
8413 if test -z "$LD"; then
8414 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8415 for ac_dir
in $PATH; do
8416 test -z "$ac_dir" && ac_dir
=.
8417 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8418 acl_cv_path_LD
="$ac_dir/$ac_prog"
8419 # Check to see if the program is GNU ld. I'd rather use --version,
8420 # but apparently some GNU ld's only accept -v.
8421 # Break only if it was the GNU/non-GNU ld that we prefer.
8422 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
8423 test "$with_gnu_ld" != no
&& break
8425 test "$with_gnu_ld" != yes && break
8431 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8435 LD
="$acl_cv_path_LD"
8436 if test -n "$LD"; then
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8438 $as_echo "$LD" >&6; }
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8441 $as_echo "no" >&6; }
8443 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8445 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8446 if ${acl_cv_prog_gnu_ld+:} false
; then :
8447 $as_echo_n "(cached) " >&6
8449 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8450 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8451 acl_cv_prog_gnu_ld
=yes
8453 acl_cv_prog_gnu_ld
=no
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8457 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8458 with_gnu_ld
=$acl_cv_prog_gnu_ld
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8463 $as_echo_n "checking for shared library run path origin... " >&6; }
8464 if ${acl_cv_rpath+:} false
; then :
8465 $as_echo_n "(cached) " >&6
8468 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8469 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8476 $as_echo "$acl_cv_rpath" >&6; }
8478 libext
="$acl_cv_libext"
8479 shlibext
="$acl_cv_shlibext"
8480 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8481 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8482 hardcode_direct
="$acl_cv_hardcode_direct"
8483 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8484 # Check whether --enable-rpath was given.
8485 if test "${enable_rpath+set}" = set; then :
8486 enableval
=$enable_rpath; :
8500 acl_save_prefix
="$prefix"
8501 prefix
="$acl_final_prefix"
8502 acl_save_exec_prefix
="$exec_prefix"
8503 exec_prefix
="$acl_final_exec_prefix"
8505 eval additional_includedir
=\"$includedir\"
8506 eval additional_libdir
=\"$libdir\"
8508 exec_prefix
="$acl_save_exec_prefix"
8509 prefix
="$acl_save_prefix"
8512 # Check whether --with-libiconv-prefix was given.
8513 if test "${with_libiconv_prefix+set}" = set; then :
8514 withval
=$with_libiconv_prefix;
8515 if test "X$withval" = "Xno"; then
8518 if test "X$withval" = "X"; then
8520 acl_save_prefix
="$prefix"
8521 prefix
="$acl_final_prefix"
8522 acl_save_exec_prefix
="$exec_prefix"
8523 exec_prefix
="$acl_final_exec_prefix"
8525 eval additional_includedir
=\"$includedir\"
8526 eval additional_libdir
=\"$libdir\"
8528 exec_prefix
="$acl_save_exec_prefix"
8529 prefix
="$acl_save_prefix"
8532 additional_includedir
="$withval/include"
8533 additional_libdir
="$withval/lib"
8540 # Check whether --with-libiconv-type was given.
8541 if test "${with_libiconv_type+set}" = set; then :
8542 withval
=$with_libiconv_type; with_libiconv_type
=$withval
8544 with_libiconv_type
=auto
8547 lib_type
=`eval echo \$with_libiconv_type`
8554 names_already_handled
=
8555 names_next_round
='iconv '
8556 while test -n "$names_next_round"; do
8557 names_this_round
="$names_next_round"
8559 for name
in $names_this_round; do
8561 for n
in $names_already_handled; do
8562 if test "$n" = "$name"; then
8567 if test -z "$already_handled"; then
8568 names_already_handled
="$names_already_handled $name"
8569 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8570 eval value
=\"\
$HAVE_LIB$uppername\"
8571 if test -n "$value"; then
8572 if test "$value" = yes; then
8573 eval value
=\"\
$LIB$uppername\"
8574 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
8575 eval value
=\"\
$LTLIB$uppername\"
8576 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
8585 if test $use_additional = yes; then
8586 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8587 found_dir
="$additional_libdir"
8588 found_so
="$additional_libdir/lib$name.$shlibext"
8589 if test -f "$additional_libdir/lib$name.la"; then
8590 found_la
="$additional_libdir/lib$name.la"
8592 elif test x
$lib_type != xshared
; then
8593 if test -f "$additional_libdir/lib$name.$libext"; then
8594 found_dir
="$additional_libdir"
8595 found_a
="$additional_libdir/lib$name.$libext"
8596 if test -f "$additional_libdir/lib$name.la"; then
8597 found_la
="$additional_libdir/lib$name.la"
8602 if test "X$found_dir" = "X"; then
8603 for x
in $LDFLAGS $LTLIBICONV; do
8605 acl_save_prefix
="$prefix"
8606 prefix
="$acl_final_prefix"
8607 acl_save_exec_prefix
="$exec_prefix"
8608 exec_prefix
="$acl_final_exec_prefix"
8610 exec_prefix
="$acl_save_exec_prefix"
8611 prefix
="$acl_save_prefix"
8615 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8616 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8618 found_so
="$dir/lib$name.$shlibext"
8619 if test -f "$dir/lib$name.la"; then
8620 found_la
="$dir/lib$name.la"
8622 elif test x
$lib_type != xshared
; then
8623 if test -f "$dir/lib$name.$libext"; then
8625 found_a
="$dir/lib$name.$libext"
8626 if test -f "$dir/lib$name.la"; then
8627 found_la
="$dir/lib$name.la"
8633 if test "X$found_dir" != "X"; then
8638 if test "X$found_dir" != "X"; then
8639 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8640 if test "X$found_so" != "X"; then
8641 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8642 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8645 for x
in $ltrpathdirs; do
8646 if test "X$x" = "X$found_dir"; then
8651 if test -z "$haveit"; then
8652 ltrpathdirs
="$ltrpathdirs $found_dir"
8654 if test "$hardcode_direct" = yes; then
8655 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8657 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8658 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8660 for x
in $rpathdirs; do
8661 if test "X$x" = "X$found_dir"; then
8666 if test -z "$haveit"; then
8667 rpathdirs
="$rpathdirs $found_dir"
8671 for x
in $LDFLAGS $LIBICONV; do
8673 acl_save_prefix
="$prefix"
8674 prefix
="$acl_final_prefix"
8675 acl_save_exec_prefix
="$exec_prefix"
8676 exec_prefix
="$acl_final_exec_prefix"
8678 exec_prefix
="$acl_save_exec_prefix"
8679 prefix
="$acl_save_prefix"
8681 if test "X$x" = "X-L$found_dir"; then
8686 if test -z "$haveit"; then
8687 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8689 if test "$hardcode_minus_L" != no
; then
8690 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8692 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8698 if test "X$found_a" != "X"; then
8699 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
8701 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8704 additional_includedir
=
8705 case "$found_dir" in
8707 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8708 additional_includedir
="$basedir/include"
8711 if test "X$additional_includedir" != "X"; then
8712 if test "X$additional_includedir" != "X/usr/include"; then
8714 if test "X$additional_includedir" = "X/usr/local/include"; then
8715 if test -n "$GCC"; then
8717 linux
*) haveit
=yes;;
8721 if test -z "$haveit"; then
8722 for x
in $CPPFLAGS $INCICONV; do
8724 acl_save_prefix
="$prefix"
8725 prefix
="$acl_final_prefix"
8726 acl_save_exec_prefix
="$exec_prefix"
8727 exec_prefix
="$acl_final_exec_prefix"
8729 exec_prefix
="$acl_save_exec_prefix"
8730 prefix
="$acl_save_prefix"
8732 if test "X$x" = "X-I$additional_includedir"; then
8737 if test -z "$haveit"; then
8738 if test -d "$additional_includedir"; then
8739 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8745 if test -n "$found_la"; then
8746 save_libdir
="$libdir"
8748 */* |
*\\*) .
"$found_la" ;;
8749 *) .
"./$found_la" ;;
8751 libdir
="$save_libdir"
8752 for dep
in $dependency_libs; do
8755 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8756 if test "X$additional_libdir" != "X/usr/lib"; then
8758 if test "X$additional_libdir" = "X/usr/local/lib"; then
8759 if test -n "$GCC"; then
8761 linux
*) haveit
=yes;;
8765 if test -z "$haveit"; then
8767 for x
in $LDFLAGS $LIBICONV; do
8769 acl_save_prefix
="$prefix"
8770 prefix
="$acl_final_prefix"
8771 acl_save_exec_prefix
="$exec_prefix"
8772 exec_prefix
="$acl_final_exec_prefix"
8774 exec_prefix
="$acl_save_exec_prefix"
8775 prefix
="$acl_save_prefix"
8777 if test "X$x" = "X-L$additional_libdir"; then
8782 if test -z "$haveit"; then
8783 if test -d "$additional_libdir"; then
8784 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8788 for x
in $LDFLAGS $LTLIBICONV; do
8790 acl_save_prefix
="$prefix"
8791 prefix
="$acl_final_prefix"
8792 acl_save_exec_prefix
="$exec_prefix"
8793 exec_prefix
="$acl_final_exec_prefix"
8795 exec_prefix
="$acl_save_exec_prefix"
8796 prefix
="$acl_save_prefix"
8798 if test "X$x" = "X-L$additional_libdir"; then
8803 if test -z "$haveit"; then
8804 if test -d "$additional_libdir"; then
8805 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8812 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8813 if test "$enable_rpath" != no
; then
8815 for x
in $rpathdirs; do
8816 if test "X$x" = "X$dir"; then
8821 if test -z "$haveit"; then
8822 rpathdirs
="$rpathdirs $dir"
8825 for x
in $ltrpathdirs; do
8826 if test "X$x" = "X$dir"; then
8831 if test -z "$haveit"; then
8832 ltrpathdirs
="$ltrpathdirs $dir"
8837 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8840 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8843 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
8844 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8850 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
8851 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8852 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8854 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
8855 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
8862 if test "X$rpathdirs" != "X"; then
8863 if test -n "$hardcode_libdir_separator"; then
8865 for found_dir
in $rpathdirs; do
8866 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8868 acl_save_libdir
="$libdir"
8870 eval flag
=\"$hardcode_libdir_flag_spec\"
8871 libdir
="$acl_save_libdir"
8872 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8874 for found_dir
in $rpathdirs; do
8875 acl_save_libdir
="$libdir"
8877 eval flag
=\"$hardcode_libdir_flag_spec\"
8878 libdir
="$acl_save_libdir"
8879 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8883 if test "X$ltrpathdirs" != "X"; then
8884 for found_dir
in $ltrpathdirs; do
8885 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8896 $as_echo_n "checking for iconv... " >&6; }
8897 if ${am_cv_func_iconv+:} false
; then :
8898 $as_echo_n "(cached) " >&6
8901 am_cv_func_iconv
="no, consider installing GNU libiconv"
8903 am_save_CPPFLAGS
="$CPPFLAGS"
8904 CPPFLAGS
="$CPPFLAGS $INCICONV"
8905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8906 /* end confdefs.h. */
8912 iconv_t cd = iconv_open("","");
8913 iconv(cd,NULL,NULL,NULL,NULL);
8919 if ac_fn_c_try_link
"$LINENO"; then :
8920 am_cv_func_iconv
=yes
8922 rm -f core conftest.err conftest.
$ac_objext \
8923 conftest
$ac_exeext conftest.
$ac_ext
8924 CPPFLAGS
="$am_save_CPPFLAGS"
8926 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
8927 for _libs
in .libs _libs
; do
8928 am_save_CPPFLAGS
="$CPPFLAGS"
8929 am_save_LIBS
="$LIBS"
8930 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
8931 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
8932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8933 /* end confdefs.h. */
8939 iconv_t cd = iconv_open("","");
8940 iconv(cd,NULL,NULL,NULL,NULL);
8946 if ac_fn_c_try_link
"$LINENO"; then :
8947 INCICONV
="-I../libiconv/include"
8948 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
8949 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
8951 am_cv_func_iconv
=yes
8953 rm -f core conftest.err conftest.
$ac_objext \
8954 conftest
$ac_exeext conftest.
$ac_ext
8955 CPPFLAGS
="$am_save_CPPFLAGS"
8956 LIBS
="$am_save_LIBS"
8957 if test "$am_cv_func_iconv" = "yes"; then
8963 if test "$am_cv_func_iconv" != yes; then
8964 am_save_CPPFLAGS
="$CPPFLAGS"
8965 am_save_LIBS
="$LIBS"
8966 CPPFLAGS
="$CPPFLAGS $INCICONV"
8967 LIBS
="$LIBS $LIBICONV"
8968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8969 /* end confdefs.h. */
8975 iconv_t cd = iconv_open("","");
8976 iconv(cd,NULL,NULL,NULL,NULL);
8982 if ac_fn_c_try_link
"$LINENO"; then :
8984 am_cv_func_iconv
=yes
8986 rm -f core conftest.err conftest.
$ac_objext \
8987 conftest
$ac_exeext conftest.
$ac_ext
8988 CPPFLAGS
="$am_save_CPPFLAGS"
8989 LIBS
="$am_save_LIBS"
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8994 $as_echo "$am_cv_func_iconv" >&6; }
8995 if test "$am_cv_func_iconv" = yes; then
8997 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9000 if test "$am_cv_lib_iconv" = yes; then
9002 for element
in $INCICONV; do
9004 for x
in $CPPFLAGS; do
9006 acl_save_prefix
="$prefix"
9007 prefix
="$acl_final_prefix"
9008 acl_save_exec_prefix
="$exec_prefix"
9009 exec_prefix
="$acl_final_exec_prefix"
9011 exec_prefix
="$acl_save_exec_prefix"
9012 prefix
="$acl_save_prefix"
9014 if test "X$x" = "X$element"; then
9019 if test -z "$haveit"; then
9020 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9025 $as_echo_n "checking how to link with libiconv... " >&6; }
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9027 $as_echo "$LIBICONV" >&6; }
9035 if test "$am_cv_func_iconv" = yes; then
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9037 $as_echo_n "checking for iconv declaration... " >&6; }
9038 if ${am_cv_proto_iconv+:} false
; then :
9039 $as_echo_n "(cached) " >&6
9042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9043 /* end confdefs.h. */
9051 #if defined(__STDC__) || defined(__cplusplus)
9052 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9065 if ac_fn_c_try_compile
"$LINENO"; then :
9066 am_cv_proto_iconv_arg1
=""
9068 am_cv_proto_iconv_arg1
="const"
9070 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9071 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);"
9074 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9076 }$am_cv_proto_iconv" >&5
9078 }$am_cv_proto_iconv" >&6; }
9080 cat >>confdefs.h
<<_ACEOF
9081 #define ICONV_CONST $am_cv_proto_iconv_arg1
9087 # GDB may fork/exec the iconv program to get the list of supported character
9088 # sets. Allow the user to specify where to find it.
9089 # There are several factors affecting the choice of option name:
9090 # - There is already --with-libiconv-prefix but we can't use it, it specifies
9091 # the build-time location of libiconv files.
9092 # - The program we need to find is iconv, which comes with glibc. The user
9093 # doesn't necessarily have libiconv installed. Therefore naming this
9094 # --with-libiconv-foo feels wrong.
9095 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
9096 # defined to work on directories not files (though it really doesn't know
9098 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
9099 # with --with-libiconv-prefix.
9100 # Putting these together is why the option name is --with-iconv-bin.
9103 # Check whether --with-iconv-bin was given.
9104 if test "${with_iconv_bin+set}" = set; then :
9105 withval
=$with_iconv_bin; iconv_bin
="${withval}"
9107 cat >>confdefs.h
<<_ACEOF
9108 #define ICONV_BIN "${iconv_bin}"
9112 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9113 if test "x$prefix" = xNONE
; then
9114 test_prefix
=/usr
/local
9119 test_prefix
=$exec_prefix
9122 case ${iconv_bin} in
9123 "${test_prefix}"|
"${test_prefix}/"*|\
9124 '${exec_prefix}'|
'${exec_prefix}/'*)
9129 cat >>confdefs.h
<<_ACEOF
9130 #define ICONV_BIN_RELOCATABLE $value
9138 # For the TUI, we need enhanced curses functionality.
9139 if test x
"$enable_tui" != xno
; then
9144 if test x
"$prefer_curses" = xyes
; then
9145 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9146 # curses library because the latter might not provide all the
9147 # functionality we need. However, this leads to problems on systems
9148 # where the linker searches /usr/local/lib, but the compiler doesn't
9149 # search /usr/local/include, if ncurses is installed in /usr/local. A
9150 # default installation of ncurses on alpha*-dec-osf* will lead to such
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
9153 $as_echo_n "checking for library containing waddstr... " >&6; }
9154 if ${ac_cv_search_waddstr+:} false
; then :
9155 $as_echo_n "(cached) " >&6
9157 ac_func_search_save_LIBS
=$LIBS
9158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9159 /* end confdefs.h. */
9161 /* Override any GCC internal prototype to avoid an error.
9162 Use char because int might match the return type of a GCC
9163 builtin and then its argument prototype would still apply. */
9176 for ac_lib
in '' ncursesw ncurses cursesX curses
; do
9177 if test -z "$ac_lib"; then
9178 ac_res
="none required"
9181 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9183 if ac_fn_c_try_link
"$LINENO"; then :
9184 ac_cv_search_waddstr
=$ac_res
9186 rm -f core conftest.err conftest.
$ac_objext \
9188 if ${ac_cv_search_waddstr+:} false
; then :
9192 if ${ac_cv_search_waddstr+:} false
; then :
9195 ac_cv_search_waddstr
=no
9198 LIBS
=$ac_func_search_save_LIBS
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
9201 $as_echo "$ac_cv_search_waddstr" >&6; }
9202 ac_res
=$ac_cv_search_waddstr
9203 if test "$ac_res" != no
; then :
9204 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9209 if test "$ac_cv_search_waddstr" != no
; then
9214 # Check whether we should enable the TUI, but only do so if we really
9216 if test x
"$enable_tui" != xno
; then
9217 if test -d "$srcdir/tui"; then
9218 if test "$curses_found" != no
; then
9219 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
9220 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
9221 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9222 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
9224 if test x
"$enable_tui" = xyes
; then
9225 as_fn_error $?
"no enhanced curses library found; disable TUI" "$LINENO" 5
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
9228 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9234 # Since GDB uses Readline, we need termcap functionality. In many
9235 # cases this will be provided by the curses library, but some systems
9236 # have a separate termcap library, or no curses library at all.
9240 if test -d "$srcdir/libtermcap"; then
9241 LIBS
="../libtermcap/libtermcap.a $LIBS"
9242 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
9245 ac_cv_search_tgetent
="none required"
9249 # These are the libraries checked by Readline.
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9251 $as_echo_n "checking for library containing tgetent... " >&6; }
9252 if ${ac_cv_search_tgetent+:} false
; then :
9253 $as_echo_n "(cached) " >&6
9255 ac_func_search_save_LIBS
=$LIBS
9256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9257 /* end confdefs.h. */
9259 /* Override any GCC internal prototype to avoid an error.
9260 Use char because int might match the return type of a GCC
9261 builtin and then its argument prototype would still apply. */
9274 for ac_lib
in '' termcap tinfow tinfo curses ncursesw ncurses
; do
9275 if test -z "$ac_lib"; then
9276 ac_res
="none required"
9279 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9281 if ac_fn_c_try_link
"$LINENO"; then :
9282 ac_cv_search_tgetent
=$ac_res
9284 rm -f core conftest.err conftest.
$ac_objext \
9286 if ${ac_cv_search_tgetent+:} false
; then :
9290 if ${ac_cv_search_tgetent+:} false
; then :
9293 ac_cv_search_tgetent
=no
9296 LIBS
=$ac_func_search_save_LIBS
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9299 $as_echo "$ac_cv_search_tgetent" >&6; }
9300 ac_res
=$ac_cv_search_tgetent
9301 if test "$ac_res" != no
; then :
9302 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9307 if test "$ac_cv_search_tgetent" = no
; then
9308 CONFIG_OBS
="$CONFIG_OBS stub-termcap.o"
9312 # Check whether --with-system-readline was given.
9313 if test "${with_system_readline+set}" = set; then :
9314 withval
=$with_system_readline;
9318 if test "$with_system_readline" = yes; then
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system readline is new enough" >&5
9320 $as_echo_n "checking whether system readline is new enough... " >&6; }
9321 if ${gdb_cv_readline_ok+:} false
; then :
9322 $as_echo_n "(cached) " >&6
9324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9325 /* end confdefs.h. */
9327 #include <readline/readline.h>
9331 #if RL_VERSION_MAJOR < 7
9332 # error "readline version 7 required"
9338 if ac_fn_c_try_compile
"$LINENO"; then :
9339 gdb_cv_readline_ok
=yes
9341 gdb_cv_readline_ok
=no
9343 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_readline_ok" >&5
9346 $as_echo "$gdb_cv_readline_ok" >&6; }
9347 if test "$gdb_cv_readline_ok" != yes; then
9348 as_fn_error $?
"system readline is not new enough" "$LINENO" 5
9354 READLINE_TEXI_INCFLAG
=
9356 READLINE
='$(READLINE_DIR)/libreadline.a'
9357 READLINE_DEPS
='$(READLINE)'
9358 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
9359 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
9366 # Generate jit-reader.h
9368 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
9371 # The cast to long int works around a bug in the HP C Compiler
9372 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9373 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9374 # This bug is HP SR number 8606223364.
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
9376 $as_echo_n "checking size of unsigned long long... " >&6; }
9377 if ${ac_cv_sizeof_unsigned_long_long+:} false
; then :
9378 $as_echo_n "(cached) " >&6
9380 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
9383 if test "$ac_cv_type_unsigned_long_long" = yes; then
9384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9386 as_fn_error
77 "cannot compute sizeof (unsigned long long)
9387 See \`config.log' for more details" "$LINENO" 5; }
9389 ac_cv_sizeof_unsigned_long_long
=0
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
9395 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
9399 cat >>confdefs.h
<<_ACEOF
9400 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
9404 # The cast to long int works around a bug in the HP C Compiler
9405 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9406 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9407 # This bug is HP SR number 8606223364.
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
9409 $as_echo_n "checking size of unsigned long... " >&6; }
9410 if ${ac_cv_sizeof_unsigned_long+:} false
; then :
9411 $as_echo_n "(cached) " >&6
9413 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
9416 if test "$ac_cv_type_unsigned_long" = yes; then
9417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9419 as_fn_error
77 "cannot compute sizeof (unsigned long)
9420 See \`config.log' for more details" "$LINENO" 5; }
9422 ac_cv_sizeof_unsigned_long
=0
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
9428 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
9432 cat >>confdefs.h
<<_ACEOF
9433 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9437 # The cast to long int works around a bug in the HP C Compiler
9438 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9439 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9440 # This bug is HP SR number 8606223364.
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
9442 $as_echo_n "checking size of unsigned __int128... " >&6; }
9443 if ${ac_cv_sizeof_unsigned___int128+:} false
; then :
9444 $as_echo_n "(cached) " >&6
9446 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
9449 if test "$ac_cv_type_unsigned___int128" = yes; then
9450 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9452 as_fn_error
77 "cannot compute sizeof (unsigned __int128)
9453 See \`config.log' for more details" "$LINENO" 5; }
9455 ac_cv_sizeof_unsigned___int128
=0
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
9461 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
9465 cat >>confdefs.h
<<_ACEOF
9466 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
9471 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9472 TARGET_PTR
="unsigned long"
9473 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9474 TARGET_PTR
="unsigned long long"
9475 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
9476 TARGET_PTR
="unsigned __int128"
9478 TARGET_PTR
="unsigned long"
9482 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9486 $as_echo_n "checking for library containing dlopen... " >&6; }
9487 if ${ac_cv_search_dlopen+:} false
; then :
9488 $as_echo_n "(cached) " >&6
9490 ac_func_search_save_LIBS
=$LIBS
9491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9492 /* end confdefs.h. */
9494 /* Override any GCC internal prototype to avoid an error.
9495 Use char because int might match the return type of a GCC
9496 builtin and then its argument prototype would still apply. */
9509 for ac_lib
in '' dl
; do
9510 if test -z "$ac_lib"; then
9511 ac_res
="none required"
9514 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9516 if ac_fn_c_try_link
"$LINENO"; then :
9517 ac_cv_search_dlopen
=$ac_res
9519 rm -f core conftest.err conftest.
$ac_objext \
9521 if ${ac_cv_search_dlopen+:} false
; then :
9525 if ${ac_cv_search_dlopen+:} false
; then :
9528 ac_cv_search_dlopen
=no
9531 LIBS
=$ac_func_search_save_LIBS
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9534 $as_echo "$ac_cv_search_dlopen" >&6; }
9535 ac_res
=$ac_cv_search_dlopen
9536 if test "$ac_res" != no
; then :
9537 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9544 # Check whether --with-jit-reader-dir was given.
9545 if test "${with_jit_reader_dir+set}" = set; then :
9546 withval
=$with_jit_reader_dir;
9547 JIT_READER_DIR
=$withval
9549 JIT_READER_DIR
=${libdir}/gdb
9553 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9554 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9555 ac_define_dir
=`eval echo $JIT_READER_DIR`
9556 ac_define_dir
=`eval echo $ac_define_dir`
9558 cat >>confdefs.h
<<_ACEOF
9559 #define JIT_READER_DIR "$ac_define_dir"
9565 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9566 if test "x$prefix" = xNONE
; then
9567 test_prefix
=/usr
/local
9572 test_prefix
=$exec_prefix
9575 case ${ac_define_dir} in
9576 "${test_prefix}"|
"${test_prefix}/"*|\
9577 '${exec_prefix}'|
'${exec_prefix}/'*)
9582 cat >>confdefs.h
<<_ACEOF
9583 #define JIT_READER_DIR_RELOCATABLE $value
9590 # Check whether --with-expat was given.
9591 if test "${with_expat+set}" = set; then :
9592 withval
=$with_expat;
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9598 $as_echo_n "checking whether to use expat... " >&6; }
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9600 $as_echo "$with_expat" >&6; }
9602 if test "${with_expat}" = no
; then
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9604 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9617 acl_save_prefix
="$prefix"
9618 prefix
="$acl_final_prefix"
9619 acl_save_exec_prefix
="$exec_prefix"
9620 exec_prefix
="$acl_final_exec_prefix"
9622 eval additional_includedir
=\"$includedir\"
9623 eval additional_libdir
=\"$libdir\"
9625 exec_prefix
="$acl_save_exec_prefix"
9626 prefix
="$acl_save_prefix"
9629 # Check whether --with-libexpat-prefix was given.
9630 if test "${with_libexpat_prefix+set}" = set; then :
9631 withval
=$with_libexpat_prefix;
9632 if test "X$withval" = "Xno"; then
9635 if test "X$withval" = "X"; then
9637 acl_save_prefix
="$prefix"
9638 prefix
="$acl_final_prefix"
9639 acl_save_exec_prefix
="$exec_prefix"
9640 exec_prefix
="$acl_final_exec_prefix"
9642 eval additional_includedir
=\"$includedir\"
9643 eval additional_libdir
=\"$libdir\"
9645 exec_prefix
="$acl_save_exec_prefix"
9646 prefix
="$acl_save_prefix"
9649 additional_includedir
="$withval/include"
9650 additional_libdir
="$withval/lib"
9657 # Check whether --with-libexpat-type was given.
9658 if test "${with_libexpat_type+set}" = set; then :
9659 withval
=$with_libexpat_type; with_libexpat_type
=$withval
9661 with_libexpat_type
=auto
9664 lib_type
=`eval echo \$with_libexpat_type`
9671 names_already_handled
=
9672 names_next_round
='expat '
9673 while test -n "$names_next_round"; do
9674 names_this_round
="$names_next_round"
9676 for name
in $names_this_round; do
9678 for n
in $names_already_handled; do
9679 if test "$n" = "$name"; then
9684 if test -z "$already_handled"; then
9685 names_already_handled
="$names_already_handled $name"
9686 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9687 eval value
=\"\
$HAVE_LIB$uppername\"
9688 if test -n "$value"; then
9689 if test "$value" = yes; then
9690 eval value
=\"\
$LIB$uppername\"
9691 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
9692 eval value
=\"\
$LTLIB$uppername\"
9693 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
9702 if test $use_additional = yes; then
9703 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9704 found_dir
="$additional_libdir"
9705 found_so
="$additional_libdir/lib$name.$shlibext"
9706 if test -f "$additional_libdir/lib$name.la"; then
9707 found_la
="$additional_libdir/lib$name.la"
9709 elif test x
$lib_type != xshared
; then
9710 if test -f "$additional_libdir/lib$name.$libext"; then
9711 found_dir
="$additional_libdir"
9712 found_a
="$additional_libdir/lib$name.$libext"
9713 if test -f "$additional_libdir/lib$name.la"; then
9714 found_la
="$additional_libdir/lib$name.la"
9719 if test "X$found_dir" = "X"; then
9720 for x
in $LDFLAGS $LTLIBEXPAT; do
9722 acl_save_prefix
="$prefix"
9723 prefix
="$acl_final_prefix"
9724 acl_save_exec_prefix
="$exec_prefix"
9725 exec_prefix
="$acl_final_exec_prefix"
9727 exec_prefix
="$acl_save_exec_prefix"
9728 prefix
="$acl_save_prefix"
9732 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9733 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
9735 found_so
="$dir/lib$name.$shlibext"
9736 if test -f "$dir/lib$name.la"; then
9737 found_la
="$dir/lib$name.la"
9739 elif test x
$lib_type != xshared
; then
9740 if test -f "$dir/lib$name.$libext"; then
9742 found_a
="$dir/lib$name.$libext"
9743 if test -f "$dir/lib$name.la"; then
9744 found_la
="$dir/lib$name.la"
9750 if test "X$found_dir" != "X"; then
9755 if test "X$found_dir" != "X"; then
9756 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
9757 if test "X$found_so" != "X"; then
9758 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9759 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9762 for x
in $ltrpathdirs; do
9763 if test "X$x" = "X$found_dir"; then
9768 if test -z "$haveit"; then
9769 ltrpathdirs
="$ltrpathdirs $found_dir"
9771 if test "$hardcode_direct" = yes; then
9772 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9774 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9775 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9777 for x
in $rpathdirs; do
9778 if test "X$x" = "X$found_dir"; then
9783 if test -z "$haveit"; then
9784 rpathdirs
="$rpathdirs $found_dir"
9788 for x
in $LDFLAGS $LIBEXPAT; do
9790 acl_save_prefix
="$prefix"
9791 prefix
="$acl_final_prefix"
9792 acl_save_exec_prefix
="$exec_prefix"
9793 exec_prefix
="$acl_final_exec_prefix"
9795 exec_prefix
="$acl_save_exec_prefix"
9796 prefix
="$acl_save_prefix"
9798 if test "X$x" = "X-L$found_dir"; then
9803 if test -z "$haveit"; then
9804 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
9806 if test "$hardcode_minus_L" != no
; then
9807 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9809 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9815 if test "X$found_a" != "X"; then
9816 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
9818 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
9821 additional_includedir
=
9822 case "$found_dir" in
9824 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9825 additional_includedir
="$basedir/include"
9828 if test "X$additional_includedir" != "X"; then
9829 if test "X$additional_includedir" != "X/usr/include"; then
9831 if test "X$additional_includedir" = "X/usr/local/include"; then
9832 if test -n "$GCC"; then
9834 linux
*) haveit
=yes;;
9838 if test -z "$haveit"; then
9839 for x
in $CPPFLAGS $INCEXPAT; do
9841 acl_save_prefix
="$prefix"
9842 prefix
="$acl_final_prefix"
9843 acl_save_exec_prefix
="$exec_prefix"
9844 exec_prefix
="$acl_final_exec_prefix"
9846 exec_prefix
="$acl_save_exec_prefix"
9847 prefix
="$acl_save_prefix"
9849 if test "X$x" = "X-I$additional_includedir"; then
9854 if test -z "$haveit"; then
9855 if test -d "$additional_includedir"; then
9856 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
9862 if test -n "$found_la"; then
9863 save_libdir
="$libdir"
9865 */* |
*\\*) .
"$found_la" ;;
9866 *) .
"./$found_la" ;;
9868 libdir
="$save_libdir"
9869 for dep
in $dependency_libs; do
9872 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9873 if test "X$additional_libdir" != "X/usr/lib"; then
9875 if test "X$additional_libdir" = "X/usr/local/lib"; then
9876 if test -n "$GCC"; then
9878 linux
*) haveit
=yes;;
9882 if test -z "$haveit"; then
9884 for x
in $LDFLAGS $LIBEXPAT; do
9886 acl_save_prefix
="$prefix"
9887 prefix
="$acl_final_prefix"
9888 acl_save_exec_prefix
="$exec_prefix"
9889 exec_prefix
="$acl_final_exec_prefix"
9891 exec_prefix
="$acl_save_exec_prefix"
9892 prefix
="$acl_save_prefix"
9894 if test "X$x" = "X-L$additional_libdir"; then
9899 if test -z "$haveit"; then
9900 if test -d "$additional_libdir"; then
9901 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
9905 for x
in $LDFLAGS $LTLIBEXPAT; do
9907 acl_save_prefix
="$prefix"
9908 prefix
="$acl_final_prefix"
9909 acl_save_exec_prefix
="$exec_prefix"
9910 exec_prefix
="$acl_final_exec_prefix"
9912 exec_prefix
="$acl_save_exec_prefix"
9913 prefix
="$acl_save_prefix"
9915 if test "X$x" = "X-L$additional_libdir"; then
9920 if test -z "$haveit"; then
9921 if test -d "$additional_libdir"; then
9922 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
9929 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9930 if test "$enable_rpath" != no
; then
9932 for x
in $rpathdirs; do
9933 if test "X$x" = "X$dir"; then
9938 if test -z "$haveit"; then
9939 rpathdirs
="$rpathdirs $dir"
9942 for x
in $ltrpathdirs; do
9943 if test "X$x" = "X$dir"; then
9948 if test -z "$haveit"; then
9949 ltrpathdirs
="$ltrpathdirs $dir"
9954 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9957 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9960 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
9961 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
9967 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
9968 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9969 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
9971 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l:lib$name.$libext"
9972 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l:lib$name.$libext"
9979 if test "X$rpathdirs" != "X"; then
9980 if test -n "$hardcode_libdir_separator"; then
9982 for found_dir
in $rpathdirs; do
9983 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9985 acl_save_libdir
="$libdir"
9987 eval flag
=\"$hardcode_libdir_flag_spec\"
9988 libdir
="$acl_save_libdir"
9989 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9991 for found_dir
in $rpathdirs; do
9992 acl_save_libdir
="$libdir"
9994 eval flag
=\"$hardcode_libdir_flag_spec\"
9995 libdir
="$acl_save_libdir"
9996 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10000 if test "X$ltrpathdirs" != "X"; then
10001 for found_dir
in $ltrpathdirs; do
10002 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10007 ac_save_CPPFLAGS
="$CPPFLAGS"
10009 for element
in $INCEXPAT; do
10011 for x
in $CPPFLAGS; do
10013 acl_save_prefix
="$prefix"
10014 prefix
="$acl_final_prefix"
10015 acl_save_exec_prefix
="$exec_prefix"
10016 exec_prefix
="$acl_final_exec_prefix"
10018 exec_prefix
="$acl_save_exec_prefix"
10019 prefix
="$acl_save_prefix"
10021 if test "X$x" = "X$element"; then
10026 if test -z "$haveit"; then
10027 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
10033 $as_echo_n "checking for libexpat... " >&6; }
10034 if ${ac_cv_libexpat+:} false
; then :
10035 $as_echo_n "(cached) " >&6
10038 ac_save_LIBS
="$LIBS"
10039 LIBS
="$LIBS $LIBEXPAT"
10040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10041 /* end confdefs.h. */
10046 XML_Parser p = XML_ParserCreate (0);
10051 if ac_fn_c_try_link
"$LINENO"; then :
10056 rm -f core conftest.err conftest.
$ac_objext \
10057 conftest
$ac_exeext conftest.
$ac_ext
10058 LIBS
="$ac_save_LIBS"
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
10062 $as_echo "$ac_cv_libexpat" >&6; }
10063 if test "$ac_cv_libexpat" = yes; then
10066 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
10069 $as_echo_n "checking how to link with libexpat... " >&6; }
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
10071 $as_echo "$LIBEXPAT" >&6; }
10074 CPPFLAGS
="$ac_save_CPPFLAGS"
10084 if test "$HAVE_LIBEXPAT" != yes; then
10085 if test "$with_expat" = yes; then
10086 as_fn_error $?
"expat is missing or unusable" "$LINENO" 5
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
10089 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
10093 LIBS
="$LIBS $LIBEXPAT"
10094 for ac_func
in XML_StopParser
10096 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
10097 if test "x$ac_cv_func_XML_StopParser" = xyes
; then :
10098 cat >>confdefs.h
<<_ACEOF
10099 #define HAVE_XML_STOPPARSER 1
10110 # Check whether --with-mpfr was given.
10111 if test "${with_mpfr+set}" = set; then :
10112 withval
=$with_mpfr;
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5
10118 $as_echo_n "checking whether to use MPFR... " >&6; }
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5
10120 $as_echo "$with_mpfr" >&6; }
10122 if test "${with_mpfr}" = no
; then
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5
10124 $as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;}
10137 acl_save_prefix
="$prefix"
10138 prefix
="$acl_final_prefix"
10139 acl_save_exec_prefix
="$exec_prefix"
10140 exec_prefix
="$acl_final_exec_prefix"
10142 eval additional_includedir
=\"$includedir\"
10143 eval additional_libdir
=\"$libdir\"
10145 exec_prefix
="$acl_save_exec_prefix"
10146 prefix
="$acl_save_prefix"
10149 # Check whether --with-libmpfr-prefix was given.
10150 if test "${with_libmpfr_prefix+set}" = set; then :
10151 withval
=$with_libmpfr_prefix;
10152 if test "X$withval" = "Xno"; then
10155 if test "X$withval" = "X"; then
10157 acl_save_prefix
="$prefix"
10158 prefix
="$acl_final_prefix"
10159 acl_save_exec_prefix
="$exec_prefix"
10160 exec_prefix
="$acl_final_exec_prefix"
10162 eval additional_includedir
=\"$includedir\"
10163 eval additional_libdir
=\"$libdir\"
10165 exec_prefix
="$acl_save_exec_prefix"
10166 prefix
="$acl_save_prefix"
10169 additional_includedir
="$withval/include"
10170 additional_libdir
="$withval/lib"
10177 # Check whether --with-libmpfr-type was given.
10178 if test "${with_libmpfr_type+set}" = set; then :
10179 withval
=$with_libmpfr_type; with_libmpfr_type
=$withval
10181 with_libmpfr_type
=auto
10184 lib_type
=`eval echo \$with_libmpfr_type`
10191 names_already_handled
=
10192 names_next_round
='mpfr gmp'
10193 while test -n "$names_next_round"; do
10194 names_this_round
="$names_next_round"
10196 for name
in $names_this_round; do
10198 for n
in $names_already_handled; do
10199 if test "$n" = "$name"; then
10200 already_handled
=yes
10204 if test -z "$already_handled"; then
10205 names_already_handled
="$names_already_handled $name"
10206 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10207 eval value
=\"\
$HAVE_LIB$uppername\"
10208 if test -n "$value"; then
10209 if test "$value" = yes; then
10210 eval value
=\"\
$LIB$uppername\"
10211 test -z "$value" || LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$value"
10212 eval value
=\"\
$LTLIB$uppername\"
10213 test -z "$value" || LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$value"
10222 if test $use_additional = yes; then
10223 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10224 found_dir
="$additional_libdir"
10225 found_so
="$additional_libdir/lib$name.$shlibext"
10226 if test -f "$additional_libdir/lib$name.la"; then
10227 found_la
="$additional_libdir/lib$name.la"
10229 elif test x
$lib_type != xshared
; then
10230 if test -f "$additional_libdir/lib$name.$libext"; then
10231 found_dir
="$additional_libdir"
10232 found_a
="$additional_libdir/lib$name.$libext"
10233 if test -f "$additional_libdir/lib$name.la"; then
10234 found_la
="$additional_libdir/lib$name.la"
10239 if test "X$found_dir" = "X"; then
10240 for x
in $LDFLAGS $LTLIBMPFR; do
10242 acl_save_prefix
="$prefix"
10243 prefix
="$acl_final_prefix"
10244 acl_save_exec_prefix
="$exec_prefix"
10245 exec_prefix
="$acl_final_exec_prefix"
10247 exec_prefix
="$acl_save_exec_prefix"
10248 prefix
="$acl_save_prefix"
10252 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10253 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10255 found_so
="$dir/lib$name.$shlibext"
10256 if test -f "$dir/lib$name.la"; then
10257 found_la
="$dir/lib$name.la"
10259 elif test x
$lib_type != xshared
; then
10260 if test -f "$dir/lib$name.$libext"; then
10262 found_a
="$dir/lib$name.$libext"
10263 if test -f "$dir/lib$name.la"; then
10264 found_la
="$dir/lib$name.la"
10270 if test "X$found_dir" != "X"; then
10275 if test "X$found_dir" != "X"; then
10276 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$found_dir -l$name"
10277 if test "X$found_so" != "X"; then
10278 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10279 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10282 for x
in $ltrpathdirs; do
10283 if test "X$x" = "X$found_dir"; then
10288 if test -z "$haveit"; then
10289 ltrpathdirs
="$ltrpathdirs $found_dir"
10291 if test "$hardcode_direct" = yes; then
10292 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10294 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10295 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10297 for x
in $rpathdirs; do
10298 if test "X$x" = "X$found_dir"; then
10303 if test -z "$haveit"; then
10304 rpathdirs
="$rpathdirs $found_dir"
10308 for x
in $LDFLAGS $LIBMPFR; do
10310 acl_save_prefix
="$prefix"
10311 prefix
="$acl_final_prefix"
10312 acl_save_exec_prefix
="$exec_prefix"
10313 exec_prefix
="$acl_final_exec_prefix"
10315 exec_prefix
="$acl_save_exec_prefix"
10316 prefix
="$acl_save_prefix"
10318 if test "X$x" = "X-L$found_dir"; then
10323 if test -z "$haveit"; then
10324 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir"
10326 if test "$hardcode_minus_L" != no
; then
10327 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10329 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10335 if test "X$found_a" != "X"; then
10336 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_a"
10338 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir -l$name"
10341 additional_includedir
=
10342 case "$found_dir" in
10344 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10345 additional_includedir
="$basedir/include"
10348 if test "X$additional_includedir" != "X"; then
10349 if test "X$additional_includedir" != "X/usr/include"; then
10351 if test "X$additional_includedir" = "X/usr/local/include"; then
10352 if test -n "$GCC"; then
10354 linux
*) haveit
=yes;;
10358 if test -z "$haveit"; then
10359 for x
in $CPPFLAGS $INCMPFR; do
10361 acl_save_prefix
="$prefix"
10362 prefix
="$acl_final_prefix"
10363 acl_save_exec_prefix
="$exec_prefix"
10364 exec_prefix
="$acl_final_exec_prefix"
10366 exec_prefix
="$acl_save_exec_prefix"
10367 prefix
="$acl_save_prefix"
10369 if test "X$x" = "X-I$additional_includedir"; then
10374 if test -z "$haveit"; then
10375 if test -d "$additional_includedir"; then
10376 INCMPFR
="${INCMPFR}${INCMPFR:+ }-I$additional_includedir"
10382 if test -n "$found_la"; then
10383 save_libdir
="$libdir"
10384 case "$found_la" in
10385 */* |
*\\*) .
"$found_la" ;;
10386 *) .
"./$found_la" ;;
10388 libdir
="$save_libdir"
10389 for dep
in $dependency_libs; do
10392 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10393 if test "X$additional_libdir" != "X/usr/lib"; then
10395 if test "X$additional_libdir" = "X/usr/local/lib"; then
10396 if test -n "$GCC"; then
10398 linux
*) haveit
=yes;;
10402 if test -z "$haveit"; then
10404 for x
in $LDFLAGS $LIBMPFR; do
10406 acl_save_prefix
="$prefix"
10407 prefix
="$acl_final_prefix"
10408 acl_save_exec_prefix
="$exec_prefix"
10409 exec_prefix
="$acl_final_exec_prefix"
10411 exec_prefix
="$acl_save_exec_prefix"
10412 prefix
="$acl_save_prefix"
10414 if test "X$x" = "X-L$additional_libdir"; then
10419 if test -z "$haveit"; then
10420 if test -d "$additional_libdir"; then
10421 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$additional_libdir"
10425 for x
in $LDFLAGS $LTLIBMPFR; do
10427 acl_save_prefix
="$prefix"
10428 prefix
="$acl_final_prefix"
10429 acl_save_exec_prefix
="$exec_prefix"
10430 exec_prefix
="$acl_final_exec_prefix"
10432 exec_prefix
="$acl_save_exec_prefix"
10433 prefix
="$acl_save_prefix"
10435 if test "X$x" = "X-L$additional_libdir"; then
10440 if test -z "$haveit"; then
10441 if test -d "$additional_libdir"; then
10442 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$additional_libdir"
10449 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10450 if test "$enable_rpath" != no
; then
10452 for x
in $rpathdirs; do
10453 if test "X$x" = "X$dir"; then
10458 if test -z "$haveit"; then
10459 rpathdirs
="$rpathdirs $dir"
10462 for x
in $ltrpathdirs; do
10463 if test "X$x" = "X$dir"; then
10468 if test -z "$haveit"; then
10469 ltrpathdirs
="$ltrpathdirs $dir"
10474 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10477 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10480 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$dep"
10481 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$dep"
10487 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
10488 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10489 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l$name"
10491 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l:lib$name.$libext"
10492 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l:lib$name.$libext"
10499 if test "X$rpathdirs" != "X"; then
10500 if test -n "$hardcode_libdir_separator"; then
10502 for found_dir
in $rpathdirs; do
10503 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10505 acl_save_libdir
="$libdir"
10507 eval flag
=\"$hardcode_libdir_flag_spec\"
10508 libdir
="$acl_save_libdir"
10509 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10511 for found_dir
in $rpathdirs; do
10512 acl_save_libdir
="$libdir"
10513 libdir
="$found_dir"
10514 eval flag
=\"$hardcode_libdir_flag_spec\"
10515 libdir
="$acl_save_libdir"
10516 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10520 if test "X$ltrpathdirs" != "X"; then
10521 for found_dir
in $ltrpathdirs; do
10522 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-R$found_dir"
10527 ac_save_CPPFLAGS
="$CPPFLAGS"
10529 for element
in $INCMPFR; do
10531 for x
in $CPPFLAGS; do
10533 acl_save_prefix
="$prefix"
10534 prefix
="$acl_final_prefix"
10535 acl_save_exec_prefix
="$exec_prefix"
10536 exec_prefix
="$acl_final_exec_prefix"
10538 exec_prefix
="$acl_save_exec_prefix"
10539 prefix
="$acl_save_prefix"
10541 if test "X$x" = "X$element"; then
10546 if test -z "$haveit"; then
10547 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpfr" >&5
10553 $as_echo_n "checking for libmpfr... " >&6; }
10554 if ${ac_cv_libmpfr+:} false
; then :
10555 $as_echo_n "(cached) " >&6
10558 ac_save_LIBS
="$LIBS"
10559 LIBS
="$LIBS $LIBMPFR"
10560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10561 /* end confdefs.h. */
10566 mpfr_exp_t exp; mpfr_t x;
10567 mpfr_frexp (&exp, x, x, MPFR_RNDN);
10572 if ac_fn_c_try_link
"$LINENO"; then :
10577 rm -f core conftest.err conftest.
$ac_objext \
10578 conftest
$ac_exeext conftest.
$ac_ext
10579 LIBS
="$ac_save_LIBS"
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmpfr" >&5
10583 $as_echo "$ac_cv_libmpfr" >&6; }
10584 if test "$ac_cv_libmpfr" = yes; then
10587 $as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libmpfr" >&5
10590 $as_echo_n "checking how to link with libmpfr... " >&6; }
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPFR" >&5
10592 $as_echo "$LIBMPFR" >&6; }
10595 CPPFLAGS
="$ac_save_CPPFLAGS"
10605 if test "$HAVE_LIBMPFR" != yes; then
10606 if test "$with_mpfr" = yes; then
10607 as_fn_error $?
"MPFR is missing or unusable" "$LINENO" 5
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR is missing or unusable; some features may be unavailable." >&5
10610 $as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;}
10615 # --------------------- #
10616 # Check for libpython. #
10617 # --------------------- #
10624 # Check whether --with-python was given.
10625 if test "${with_python+set}" = set; then :
10626 withval
=$with_python;
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10632 $as_echo_n "checking whether to use python... " >&6; }
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10634 $as_echo "$with_python" >&6; }
10636 if test "${with_python}" = no
; then
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10638 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10641 case "${with_python}" in
10643 if test -d "${with_python}"; then
10644 # Assume the python binary is ${with_python}/bin/python.
10645 python_prog
="${with_python}/bin/python"
10647 # If python does not exit ${with_python}/bin, then try in
10648 # ${with_python}. On Windows/MinGW, this is where the Python
10650 if test ! -x "${python_prog}"; then
10651 python_prog
="${with_python}/python"
10654 if test ! -x "${python_prog}"; then
10655 # Fall back to gdb 7.0/7.1 behaviour.
10656 python_prog
=missing
10657 python_prefix
=${with_python}
10659 elif test -x "${with_python}"; then
10660 # While we can't run python compiled for $host (unless host == build),
10661 # the user could write a script that provides the needed information,
10662 # so we support that.
10663 python_prog
=${with_python}
10666 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
10670 # Disallow --with-python=foo/bar.
10671 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
10674 # The user has either specified auto, yes, or the name of the python
10675 # program assumed to be in $PATH.
10677 case "${with_python}" in
10679 if test "${build}" = "${host}"; then
10680 # Extract the first word of "python", so it can be a program name with args.
10681 set dummy python
; ac_word
=$2
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10683 $as_echo_n "checking for $ac_word... " >&6; }
10684 if ${ac_cv_path_python_prog_path+:} false
; then :
10685 $as_echo_n "(cached) " >&6
10687 case $python_prog_path in
10689 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10692 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10693 for as_dir
in $PATH
10696 test -z "$as_dir" && as_dir
=.
10697 for ac_exec_ext
in '' $ac_executable_extensions; do
10698 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10699 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10707 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10711 python_prog_path
=$ac_cv_path_python_prog_path
10712 if test -n "$python_prog_path"; then
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10714 $as_echo "$python_prog_path" >&6; }
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10717 $as_echo "no" >&6; }
10721 if test "${python_prog_path}" = missing
; then
10722 python_prog
=missing
10724 python_prog
=${python_prog_path}
10727 # Not much we can do except assume the cross-compiler will find the
10729 python_prog
=missing
10733 # While we can't run python compiled for $host (unless host == build),
10734 # the user could write a script that provides the needed information,
10735 # so we support that.
10736 python_prog
="${with_python}"
10737 # Extract the first word of "${python_prog}", so it can be a program name with args.
10738 set dummy
${python_prog}; ac_word
=$2
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10740 $as_echo_n "checking for $ac_word... " >&6; }
10741 if ${ac_cv_path_python_prog_path+:} false
; then :
10742 $as_echo_n "(cached) " >&6
10744 case $python_prog_path in
10746 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10749 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10750 for as_dir
in $PATH
10753 test -z "$as_dir" && as_dir
=.
10754 for ac_exec_ext
in '' $ac_executable_extensions; do
10755 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10756 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10764 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10768 python_prog_path
=$ac_cv_path_python_prog_path
10769 if test -n "$python_prog_path"; then
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10771 $as_echo "$python_prog_path" >&6; }
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10774 $as_echo "no" >&6; }
10778 if test "${python_prog_path}" = missing
; then
10779 as_fn_error $?
"unable to find python program ${python_prog}" "$LINENO" 5
10785 if test "${python_prog}" != missing
; then
10786 # We have a python program to use, but it may be too old.
10787 # Don't flag an error for --with-python=auto (the default).
10788 have_python_config
=yes
10789 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
10790 if test $?
!= 0; then
10791 have_python_config
=failed
10792 if test "${with_python}" != auto
; then
10793 as_fn_error $?
"failure running python-config --includes" "$LINENO" 5
10796 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10797 if test $?
!= 0; then
10798 have_python_config
=failed
10799 if test "${with_python}" != auto
; then
10800 as_fn_error $?
"failure running python-config --ldflags" "$LINENO" 5
10803 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10804 if test $?
!= 0; then
10805 have_python_config
=failed
10806 if test "${with_python}" != auto
; then
10807 as_fn_error $?
"failure running python-config --exec-prefix" "$LINENO" 5
10811 # We do not have a python executable we can use to determine where
10812 # to find the Python headers and libs. We cannot guess the include
10813 # path from the python_prefix either, because that include path
10814 # depends on the Python version. So, there is nothing much we can
10815 # do except assume that the compiler will be able to find those files.
10818 have_python_config
=no
10821 # If we have python-config, only try the configuration it provides.
10822 # Otherwise fallback on the old way of trying different versions of
10826 if test "${have_python_config}" = yes; then
10829 new_CPPFLAGS
=${python_includes}
10830 new_LIBS
=${python_libs}
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
10832 $as_echo_n "checking for python... " >&6; }
10833 save_CPPFLAGS
=$CPPFLAGS
10835 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10836 LIBS
="$new_LIBS $LIBS"
10837 found_usable_python
=no
10838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10839 /* end confdefs.h. */
10840 #include "Python.h"
10849 if ac_fn_c_try_link
"$LINENO"; then :
10851 found_usable_python
=yes
10852 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10853 PYTHON_LIBS
=$new_LIBS
10855 rm -f core conftest.err conftest.
$ac_objext \
10856 conftest
$ac_exeext conftest.
$ac_ext
10857 CPPFLAGS
=$save_CPPFLAGS
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10860 $as_echo "${found_usable_python}" >&6; }
10862 elif test "${have_python_config}" != failed
; then
10863 if test "${have_libpython}" = no
; then
10866 new_CPPFLAGS
=${python_includes}
10867 new_LIBS
="-lpython2.7 ${python_libs}"
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
10869 $as_echo_n "checking for python... " >&6; }
10870 save_CPPFLAGS
=$CPPFLAGS
10872 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10873 LIBS
="$new_LIBS $LIBS"
10874 found_usable_python
=no
10875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10876 /* end confdefs.h. */
10877 #include "Python.h"
10886 if ac_fn_c_try_link
"$LINENO"; then :
10888 found_usable_python
=yes
10889 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10890 PYTHON_LIBS
=$new_LIBS
10892 rm -f core conftest.err conftest.
$ac_objext \
10893 conftest
$ac_exeext conftest.
$ac_ext
10894 CPPFLAGS
=$save_CPPFLAGS
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10897 $as_echo "${found_usable_python}" >&6; }
10900 if test "${have_libpython}" = no
; then
10903 new_CPPFLAGS
=${python_includes}
10904 new_LIBS
="-lpython2.6 ${python_libs}"
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
10906 $as_echo_n "checking for python... " >&6; }
10907 save_CPPFLAGS
=$CPPFLAGS
10909 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10910 LIBS
="$new_LIBS $LIBS"
10911 found_usable_python
=no
10912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10913 /* end confdefs.h. */
10914 #include "Python.h"
10923 if ac_fn_c_try_link
"$LINENO"; then :
10925 found_usable_python
=yes
10926 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10927 PYTHON_LIBS
=$new_LIBS
10929 rm -f core conftest.err conftest.
$ac_objext \
10930 conftest
$ac_exeext conftest.
$ac_ext
10931 CPPFLAGS
=$save_CPPFLAGS
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10934 $as_echo "${found_usable_python}" >&6; }
10939 if test "${have_libpython}" = no
; then
10940 case "${with_python}" in
10942 as_fn_error $?
"python is missing or unusable" "$LINENO" 5
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10946 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10949 as_fn_error $?
"no usable python found at ${with_python}" "$LINENO" 5
10953 if test -n "${python_prefix}"; then
10955 cat >>confdefs.h
<<_ACEOF
10956 #define WITH_PYTHON_PATH "${python_prefix}"
10960 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
10961 if test "x$prefix" = xNONE
; then
10962 test_prefix
=/usr
/local
10964 test_prefix
=$prefix
10967 test_prefix
=$exec_prefix
10970 case ${python_prefix} in
10971 "${test_prefix}"|
"${test_prefix}/"*|\
10972 '${exec_prefix}'|
'${exec_prefix}/'*)
10977 cat >>confdefs.h
<<_ACEOF
10978 #define PYTHON_PATH_RELOCATABLE $value
10987 # Check whether --with-python-libdir was given.
10988 if test "${with_python_libdir+set}" = set; then :
10989 withval
=$with_python_libdir;
10992 # If no python libdir is specified then select one based on
10993 # python's prefix path.
10994 if test -n "${python_prefix}"; then
10995 with_python_libdir
=${python_prefix}/lib
11001 if test "${have_libpython}" != no
; then
11003 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
11005 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
11006 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
11007 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
11008 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
11009 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
11011 if test -n "${with_python_libdir}"; then
11013 cat >>confdefs.h
<<_ACEOF
11014 #define WITH_PYTHON_LIBDIR "${with_python_libdir}"
11018 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
11019 if test "x$prefix" = xNONE
; then
11020 test_prefix
=/usr
/local
11022 test_prefix
=$prefix
11025 test_prefix
=$exec_prefix
11028 case ${with_python_libdir} in
11029 "${test_prefix}"|
"${test_prefix}/"*|\
11030 '${exec_prefix}'|
'${exec_prefix}/'*)
11035 cat >>confdefs.h
<<_ACEOF
11036 #define PYTHON_LIBDIR_RELOCATABLE $value
11042 # Flags needed to compile Python code (taken from python-config --cflags).
11043 # We cannot call python-config directly because it will output whatever was
11044 # used when compiling the Python interpreter itself, including flags which
11045 # would make the python-related objects be compiled differently from the
11046 # rest of GDB (e.g., -O2 and -fPIC).
11047 if test "${GCC}" = yes; then
11048 tentative_python_cflags
="-fno-strict-aliasing -fwrapv"
11049 # Python headers recommend -DNDEBUG, but it's unclear if that just
11050 # refers to building Python itself. In release mode, though, it
11051 # doesn't hurt for the Python code in gdb to follow.
11052 $development || tentative_python_cflags
="$tentative_python_cflags -DNDEBUG"
11055 if test "x${tentative_python_cflags}" != x
; then
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
11057 $as_echo_n "checking compiler flags for python code... " >&6; }
11058 for flag
in ${tentative_python_cflags}; do
11059 # Check that the compiler accepts it
11060 saved_CFLAGS
="$CFLAGS"
11061 CFLAGS
="$CFLAGS $flag"
11062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11063 /* end confdefs.h. */
11073 if ac_fn_c_try_compile
"$LINENO"; then :
11074 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
11076 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11077 CFLAGS
="$saved_CFLAGS"
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
11080 $as_echo "${PYTHON_CFLAGS}" >&6; }
11083 # On x64 Windows, Python's include headers, and pyconfig.h in
11084 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
11085 # version of Windows. Unfortunately, MS_WIN64 is only defined if
11086 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
11087 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
11088 # The issue was reported to the Python community, but still isn't
11089 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
11091 case "$gdb_host" in
11093 if test "${GCC}" = yes; then
11094 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
11099 # Even if Python support is not compiled in, we need to have this file
11100 # included so that the "python" command, et.al., still exists.
11101 CONFIG_OBS
="$CONFIG_OBS python/python.o"
11102 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
11105 # Work around Python http://bugs.python.org/issue10112. See also
11106 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
11107 # no effect. Note that the only test after this that uses Python is
11108 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
11109 # run without -export-dynamic too.
11110 PYTHON_LIBS
=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
11115 if test "${have_libpython}" != no
; then
11117 HAVE_PYTHON_FALSE
='#'
11119 HAVE_PYTHON_TRUE
='#'
11124 # -------------------- #
11125 # Check for libguile. #
11126 # -------------------- #
11133 # Check whether --with-guile was given.
11134 if test "${with_guile+set}" = set; then :
11135 withval
=$with_guile;
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
11141 $as_echo_n "checking whether to use guile... " >&6; }
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
11143 $as_echo "$with_guile" >&6; }
11145 # Extract the first word of "pkg-config", so it can be a program name with args.
11146 set dummy pkg-config
; ac_word
=$2
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11148 $as_echo_n "checking for $ac_word... " >&6; }
11149 if ${ac_cv_path_pkg_config_prog_path+:} false
; then :
11150 $as_echo_n "(cached) " >&6
11152 case $pkg_config_prog_path in
11154 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
11157 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11158 for as_dir
in $PATH
11161 test -z "$as_dir" && as_dir
=.
11162 for ac_exec_ext
in '' $ac_executable_extensions; do
11163 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11164 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
11165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11172 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
11176 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
11177 if test -n "$pkg_config_prog_path"; then
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
11179 $as_echo "$pkg_config_prog_path" >&6; }
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11182 $as_echo "no" >&6; }
11187 try_guile_versions
="guile-3.0 guile-2.2 guile-2.0"
11189 case "${with_guile}" in
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
11192 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
11195 if test "${pkg_config_prog_path}" = "missing"; then
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
11197 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
11200 pkg_config
=${pkg_config_prog_path}
11201 guile_version_list
=${try_guile_versions}
11204 found_usable_guile
=checking
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11206 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11207 for guile_version
in ${guile_version_list}; do
11208 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11209 if test $?
!= 0; then
11212 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11213 if test $?
!= 0; then
11214 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11216 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11217 if test $?
!= 0; then
11218 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11220 found_usable_guile
=${guile_version}
11223 if test "${found_usable_guile}" = "checking"; then
11224 if test "${flag_errors}" = "yes"; then
11225 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11227 found_usable_guile
=no
11230 if test "${found_usable_guile}" != no
; then
11231 save_CPPFLAGS
=$CPPFLAGS
11233 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11234 LIBS
="$LIBS $new_LIBS"
11235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11236 /* end confdefs.h. */
11237 #include "libguile.h"
11246 if ac_fn_c_try_link
"$LINENO"; then :
11248 GUILE_CPPFLAGS
=$new_CPPFLAGS
11249 GUILE_LIBS
=$new_LIBS
11251 found_usable_guile
=no
11253 rm -f core conftest.err conftest.
$ac_objext \
11254 conftest
$ac_exeext conftest.
$ac_ext
11255 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11256 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11258 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11263 CPPFLAGS
=$save_CPPFLAGS
11265 if test "${found_usable_guile}" = no
; then
11266 if test "${flag_errors}" = yes; then
11267 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11269 as_fn_error $?
"linking guile version ${guile_version} test program failed
11270 See \`config.log' for more details" "$LINENO" 5; }
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11275 $as_echo "${found_usable_guile}" >&6; }
11280 if test "${pkg_config_prog_path}" = "missing"; then
11281 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11284 pkg_config
=${pkg_config_prog_path}
11285 guile_version_list
=${try_guile_versions}
11288 found_usable_guile
=checking
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11290 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11291 for guile_version
in ${guile_version_list}; do
11292 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11293 if test $?
!= 0; then
11296 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11297 if test $?
!= 0; then
11298 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11300 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11301 if test $?
!= 0; then
11302 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11304 found_usable_guile
=${guile_version}
11307 if test "${found_usable_guile}" = "checking"; then
11308 if test "${flag_errors}" = "yes"; then
11309 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11311 found_usable_guile
=no
11314 if test "${found_usable_guile}" != no
; then
11315 save_CPPFLAGS
=$CPPFLAGS
11317 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11318 LIBS
="$LIBS $new_LIBS"
11319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11320 /* end confdefs.h. */
11321 #include "libguile.h"
11330 if ac_fn_c_try_link
"$LINENO"; then :
11332 GUILE_CPPFLAGS
=$new_CPPFLAGS
11333 GUILE_LIBS
=$new_LIBS
11335 found_usable_guile
=no
11337 rm -f core conftest.err conftest.
$ac_objext \
11338 conftest
$ac_exeext conftest.
$ac_ext
11339 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11340 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11342 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11347 CPPFLAGS
=$save_CPPFLAGS
11349 if test "${found_usable_guile}" = no
; then
11350 if test "${flag_errors}" = yes; then
11351 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11353 as_fn_error $?
"linking guile version ${guile_version} test program failed
11354 See \`config.log' for more details" "$LINENO" 5; }
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11359 $as_echo "${found_usable_guile}" >&6; }
11363 if test -x "${with_guile}"; then
11365 pkg_config
=${with_guile}
11366 guile_version_list
=${try_guile_versions}
11369 found_usable_guile
=checking
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11371 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11372 for guile_version
in ${guile_version_list}; do
11373 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11374 if test $?
!= 0; then
11377 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11378 if test $?
!= 0; then
11379 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11381 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11382 if test $?
!= 0; then
11383 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11385 found_usable_guile
=${guile_version}
11388 if test "${found_usable_guile}" = "checking"; then
11389 if test "${flag_errors}" = "yes"; then
11390 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11392 found_usable_guile
=no
11395 if test "${found_usable_guile}" != no
; then
11396 save_CPPFLAGS
=$CPPFLAGS
11398 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11399 LIBS
="$LIBS $new_LIBS"
11400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11401 /* end confdefs.h. */
11402 #include "libguile.h"
11411 if ac_fn_c_try_link
"$LINENO"; then :
11413 GUILE_CPPFLAGS
=$new_CPPFLAGS
11414 GUILE_LIBS
=$new_LIBS
11416 found_usable_guile
=no
11418 rm -f core conftest.err conftest.
$ac_objext \
11419 conftest
$ac_exeext conftest.
$ac_ext
11420 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11421 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11423 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11428 CPPFLAGS
=$save_CPPFLAGS
11430 if test "${found_usable_guile}" = no
; then
11431 if test "${flag_errors}" = yes; then
11432 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11434 as_fn_error $?
"linking guile version ${guile_version} test program failed
11435 See \`config.log' for more details" "$LINENO" 5; }
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11440 $as_echo "${found_usable_guile}" >&6; }
11443 as_fn_error $?
"Guile config program not executable: ${with_guile}" "$LINENO" 5
11447 # Disallow --with=guile="" and --with-guile=foo/bar.
11448 as_fn_error $?
"invalid value for --with-guile" "$LINENO" 5
11451 # A space separate list of guile versions to try, in order.
11452 if test "${pkg_config_prog_path}" = "missing"; then
11453 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11456 pkg_config
=${pkg_config_prog_path}
11457 guile_version_list
=${with_guile}
11460 found_usable_guile
=checking
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11462 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11463 for guile_version
in ${guile_version_list}; do
11464 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11465 if test $?
!= 0; then
11468 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11469 if test $?
!= 0; then
11470 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11472 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11473 if test $?
!= 0; then
11474 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11476 found_usable_guile
=${guile_version}
11479 if test "${found_usable_guile}" = "checking"; then
11480 if test "${flag_errors}" = "yes"; then
11481 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11483 found_usable_guile
=no
11486 if test "${found_usable_guile}" != no
; then
11487 save_CPPFLAGS
=$CPPFLAGS
11489 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11490 LIBS
="$LIBS $new_LIBS"
11491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11492 /* end confdefs.h. */
11493 #include "libguile.h"
11502 if ac_fn_c_try_link
"$LINENO"; then :
11504 GUILE_CPPFLAGS
=$new_CPPFLAGS
11505 GUILE_LIBS
=$new_LIBS
11507 found_usable_guile
=no
11509 rm -f core conftest.err conftest.
$ac_objext \
11510 conftest
$ac_exeext conftest.
$ac_ext
11511 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11512 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11514 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11519 CPPFLAGS
=$save_CPPFLAGS
11521 if test "${found_usable_guile}" = no
; then
11522 if test "${flag_errors}" = yes; then
11523 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11525 as_fn_error $?
"linking guile version ${guile_version} test program failed
11526 See \`config.log' for more details" "$LINENO" 5; }
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11531 $as_echo "${found_usable_guile}" >&6; }
11536 if test "${have_libguile}" != no
; then
11537 case "${with_guile}" in
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11541 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11542 if ${ac_cv_guild_program_name+:} false
; then :
11543 $as_echo_n "(cached) " >&6
11545 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
11547 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11548 # the 'guild' and 'bindir' variables. In that case, try to guess
11549 # what the program name is, at the risk of getting it wrong if
11550 # Guile was configured with '--program-suffix' or similar.
11551 if test "x$ac_cv_guild_program_name" = "x"; then
11552 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
11553 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11558 $as_echo "$ac_cv_guild_program_name" >&6; }
11560 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11561 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11564 GUILD
="$ac_cv_guild_program_name"
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11571 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11572 if ${ac_cv_guild_program_name+:} false
; then :
11573 $as_echo_n "(cached) " >&6
11575 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
11577 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11578 # the 'guild' and 'bindir' variables. In that case, try to guess
11579 # what the program name is, at the risk of getting it wrong if
11580 # Guile was configured with '--program-suffix' or similar.
11581 if test "x$ac_cv_guild_program_name" = "x"; then
11582 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
11583 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11588 $as_echo "$ac_cv_guild_program_name" >&6; }
11590 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11591 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11594 GUILD
="$ac_cv_guild_program_name"
11601 if test "$cross_compiling" = no
; then
11604 GUILD_TARGET_FLAG
="--target=$host"
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
11611 $as_echo_n "checking whether guild supports this host... " >&6; }
11612 if ${ac_cv_guild_ok+:} false
; then :
11613 $as_echo_n "(cached) " >&6
11615 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
11616 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
11623 $as_echo "$ac_cv_guild_ok" >&6; }
11625 if test "$ac_cv_guild_ok" = no
; then
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
11628 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
11632 if test "${have_libguile}" != no
; then
11634 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
11636 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
11637 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
11638 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
11639 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
11640 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
11643 save_CPPFLAGS
="$CPPFLAGS"
11645 CPPFLAGS
="$GUILE_CPPFLAGS"
11646 for ac_func
in scm_new_smob
11648 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
11649 if test "x$ac_cv_func_scm_new_smob" = xyes
; then :
11650 cat >>confdefs.h
<<_ACEOF
11651 #define HAVE_SCM_NEW_SMOB 1
11658 CPPFLAGS
="$save_CPPFLAGS"
11660 # Even if Guile support is not compiled in, we need to have these files
11662 CONFIG_OBS
="$CONFIG_OBS guile/guile.o"
11663 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
11667 if test "${have_libguile}" != no
; then
11669 HAVE_GUILE_FALSE
='#'
11671 HAVE_GUILE_TRUE
='#'
11676 # ---------------------------- #
11677 # Check for source highlight. #
11678 # ---------------------------- #
11683 # Check whether --enable-source-highlight was given.
11684 if test "${enable_source_highlight+set}" = set; then :
11685 enableval
=$enable_source_highlight; case "${enableval}" in
11686 yes) enable_source_highlight
=yes ;;
11687 no
) enable_source_highlight
=no
;;
11688 *) as_fn_error $?
"bad value ${enableval} for source-highlight option" "$LINENO" 5 ;;
11691 enable_source_highlight
=auto
11695 if test "${enable_source_highlight}" != "no"; then
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
11697 $as_echo_n "checking for the source-highlight library... " >&6; }
11698 if test "${pkg_config_prog_path}" = "missing"; then
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
11700 $as_echo "no - pkg-config not found" >&6; }
11701 if test "${enable_source_highlight}" = "yes"; then
11702 as_fn_error $?
"pkg-config was not found in your system" "$LINENO" 5
11707 as_fn_error $?
"source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
11711 if ${pkg_config_prog_path} --exists source-highlight
; then
11712 SRCHIGH_CFLAGS
=`${pkg_config_prog_path} --cflags source-highlight`
11713 SRCHIGH_LIBS
=`${pkg_config_prog_path} --libs source-highlight`
11715 $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11718 $as_echo "yes" >&6; }
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11721 $as_echo "no" >&6; }
11722 if test "${enable_source_highlight}" = "yes"; then
11723 as_fn_error $?
"source-highlight was not found in your system" "$LINENO" 5
11731 # ------------------------- #
11732 # Checks for header files. #
11733 # ------------------------- #
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11736 $as_echo_n "checking for ANSI C header files... " >&6; }
11737 if ${ac_cv_header_stdc+:} false
; then :
11738 $as_echo_n "(cached) " >&6
11740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11741 /* end confdefs.h. */
11742 #include <stdlib.h>
11743 #include <stdarg.h>
11744 #include <string.h>
11755 if ac_fn_c_try_compile
"$LINENO"; then :
11756 ac_cv_header_stdc
=yes
11758 ac_cv_header_stdc
=no
11760 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11762 if test $ac_cv_header_stdc = yes; then
11763 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11765 /* end confdefs.h. */
11766 #include <string.h>
11769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11770 $EGREP "memchr" >/dev
/null
2>&1; then :
11773 ac_cv_header_stdc
=no
11779 if test $ac_cv_header_stdc = yes; then
11780 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11782 /* end confdefs.h. */
11783 #include <stdlib.h>
11786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11787 $EGREP "free" >/dev
/null
2>&1; then :
11790 ac_cv_header_stdc
=no
11796 if test $ac_cv_header_stdc = yes; then
11797 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11798 if test "$cross_compiling" = yes; then :
11801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11802 /* end confdefs.h. */
11804 #include <stdlib.h>
11805 #if ((' ' & 0x0FF) == 0x020)
11806 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11807 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11809 # define ISLOWER(c) \
11810 (('a' <= (c) && (c) <= 'i') \
11811 || ('j' <= (c) && (c) <= 'r') \
11812 || ('s' <= (c) && (c) <= 'z'))
11813 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11816 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11821 for (i = 0; i < 256; i++)
11822 if (XOR (islower (i), ISLOWER (i))
11823 || toupper (i) != TOUPPER (i))
11828 if ac_fn_c_try_run
"$LINENO"; then :
11831 ac_cv_header_stdc
=no
11833 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11834 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11840 $as_echo "$ac_cv_header_stdc" >&6; }
11841 if test $ac_cv_header_stdc = yes; then
11843 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11847 # elf_hp.h is for HP/UX 64-bit shared library support.
11848 for ac_header
in nlist.h machine
/reg.h \
11850 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
11851 sys
/resource.h sys
/ptrace.h ptrace.h \
11852 sys
/reg.h sys
/debugreg.h \
11855 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11856 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11857 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
11858 cat >>confdefs.h
<<_ACEOF
11859 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11866 for ac_header
in sys
/user.h
11868 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
11869 # include <sys/param.h>
11873 if test "x$ac_cv_header_sys_user_h" = xyes
; then :
11874 cat >>confdefs.h
<<_ACEOF
11875 #define HAVE_SYS_USER_H 1
11883 for ac_header
in curses.h cursesX.h ncurses.h ncursesw
/ncurses.h ncurses
/ncurses.h ncurses
/term.h
11885 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11886 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11887 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
11888 cat >>confdefs.h
<<_ACEOF
11889 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11896 for ac_header
in term.h
11898 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
11899 # include <curses.h>
11903 if test "x$ac_cv_header_term_h" = xyes
; then :
11904 cat >>confdefs.h
<<_ACEOF
11905 #define HAVE_TERM_H 1
11913 for ac_header
in sys
/socket.h
11915 ac_fn_c_check_header_mongrel
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
11916 if test "x$ac_cv_header_sys_socket_h" = xyes
; then :
11917 cat >>confdefs.h
<<_ACEOF
11918 #define HAVE_SYS_SOCKET_H 1
11925 for ac_header
in ws2tcpip.h
11927 ac_fn_c_check_header_mongrel
"$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
11928 if test "x$ac_cv_header_ws2tcpip_h" = xyes
; then :
11929 cat >>confdefs.h
<<_ACEOF
11930 #define HAVE_WS2TCPIP_H 1
11938 # ------------------------- #
11939 # Checks for declarations. #
11940 # ------------------------- #
11943 # Check for presence and size of long long.
11944 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
11945 if test "x$ac_cv_type_long_long" = xyes
; then :
11947 cat >>confdefs.h
<<_ACEOF
11948 #define HAVE_LONG_LONG 1
11951 # The cast to long int works around a bug in the HP C Compiler
11952 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11953 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11954 # This bug is HP SR number 8606223364.
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
11956 $as_echo_n "checking size of long long... " >&6; }
11957 if ${ac_cv_sizeof_long_long+:} false
; then :
11958 $as_echo_n "(cached) " >&6
11960 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
11963 if test "$ac_cv_type_long_long" = yes; then
11964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11966 as_fn_error
77 "cannot compute sizeof (long long)
11967 See \`config.log' for more details" "$LINENO" 5; }
11969 ac_cv_sizeof_long_long
=0
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
11975 $as_echo "$ac_cv_sizeof_long_long" >&6; }
11979 cat >>confdefs.h
<<_ACEOF
11980 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11987 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
11988 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
11989 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
11995 cat >>confdefs.h
<<_ACEOF
11996 #define HAVE_DECL_BASENAME $ac_have_decl
11998 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
11999 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
12005 cat >>confdefs.h
<<_ACEOF
12006 #define HAVE_DECL_FFS $ac_have_decl
12008 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12009 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
12015 cat >>confdefs.h
<<_ACEOF
12016 #define HAVE_DECL_ASPRINTF $ac_have_decl
12018 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12019 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
12025 cat >>confdefs.h
<<_ACEOF
12026 #define HAVE_DECL_VASPRINTF $ac_have_decl
12028 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12029 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12035 cat >>confdefs.h
<<_ACEOF
12036 #define HAVE_DECL_SNPRINTF $ac_have_decl
12038 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12039 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
12045 cat >>confdefs.h
<<_ACEOF
12046 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12049 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
12050 if test "x$ac_cv_have_decl_strtol" = xyes
; then :
12056 cat >>confdefs.h
<<_ACEOF
12057 #define HAVE_DECL_STRTOL $ac_have_decl
12059 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
12060 if test "x$ac_cv_have_decl_strtoul" = xyes
; then :
12066 cat >>confdefs.h
<<_ACEOF
12067 #define HAVE_DECL_STRTOUL $ac_have_decl
12069 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
12070 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
12076 cat >>confdefs.h
<<_ACEOF
12077 #define HAVE_DECL_STRTOLL $ac_have_decl
12079 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
12080 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
12086 cat >>confdefs.h
<<_ACEOF
12087 #define HAVE_DECL_STRTOULL $ac_have_decl
12090 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12091 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
12097 cat >>confdefs.h
<<_ACEOF
12098 #define HAVE_DECL_STRVERSCMP $ac_have_decl
12103 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12104 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12110 cat >>confdefs.h
<<_ACEOF
12111 #define HAVE_DECL_SNPRINTF $ac_have_decl
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12116 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12117 if ${am_cv_val_LC_MESSAGES+:} false
; then :
12118 $as_echo_n "(cached) " >&6
12120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12121 /* end confdefs.h. */
12122 #include <locale.h>
12131 if ac_fn_c_try_link
"$LINENO"; then :
12132 am_cv_val_LC_MESSAGES
=yes
12134 am_cv_val_LC_MESSAGES
=no
12136 rm -f core conftest.err conftest.
$ac_objext \
12137 conftest
$ac_exeext conftest.
$ac_ext
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12140 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12141 if test $am_cv_val_LC_MESSAGES = yes; then
12143 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12148 # ------------------ #
12149 # Checks for types. #
12150 # ------------------ #
12152 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12153 #if HAVE_SYS_SOCKET_H
12154 # include <sys/socket.h>
12155 #elif HAVE_WS2TCPIP_H
12156 # include <ws2tcpip.h>
12160 if test "x$ac_cv_type_socklen_t" = xyes
; then :
12162 cat >>confdefs.h
<<_ACEOF
12163 #define HAVE_SOCKLEN_T 1
12170 # ------------------------------------- #
12171 # Checks for compiler characteristics. #
12172 # ------------------------------------- #
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12175 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12176 if ${ac_cv_c_const+:} false
; then :
12177 $as_echo_n "(cached) " >&6
12179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12180 /* end confdefs.h. */
12186 #ifndef __cplusplus
12187 /* Ultrix mips cc rejects this sort of thing. */
12188 typedef int charset[2];
12189 const charset cs = { 0, 0 };
12190 /* SunOS 4.1.1 cc rejects this. */
12191 char const *const *pcpcc;
12193 /* NEC SVR4.0.2 mips cc rejects this. */
12194 struct point {int x, y;};
12195 static struct point const zero = {0,0};
12196 /* AIX XL C 1.02.0.0 rejects this.
12197 It does not let you subtract one const X* pointer from another in
12198 an arm of an if-expression whose if-part is not a constant
12200 const char *g = "string";
12201 pcpcc = &g + (g ? g-g : 0);
12202 /* HPUX 7.0 cc rejects these. */
12204 ppc = (char**) pcpcc;
12205 pcpcc = (char const *const *) ppc;
12206 { /* SCO 3.2v4 cc rejects this sort of thing. */
12209 char const *s = 0 ? (char *) 0 : (char const *) 0;
12214 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12215 int x[] = {25, 17};
12216 const int *foo = &x[0];
12219 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12220 typedef const int *iptr;
12224 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12225 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12226 struct s { int j; const int *ap[3]; } bx;
12227 struct s *b = &bx; b->j = 5;
12229 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12230 const int foo = 10;
12231 if (!foo) return 0;
12233 return !cs[0] && !zero.x;
12240 if ac_fn_c_try_compile
"$LINENO"; then :
12245 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12248 $as_echo "$ac_cv_c_const" >&6; }
12249 if test $ac_cv_c_const = no
; then
12251 $as_echo "#define const /**/" >>confdefs.h
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12256 $as_echo_n "checking for inline... " >&6; }
12257 if ${ac_cv_c_inline+:} false
; then :
12258 $as_echo_n "(cached) " >&6
12261 for ac_kw
in inline __inline__ __inline
; do
12262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12263 /* end confdefs.h. */
12264 #ifndef __cplusplus
12266 static $ac_kw foo_t static_foo () {return 0; }
12267 $ac_kw foo_t foo () {return 0; }
12271 if ac_fn_c_try_compile
"$LINENO"; then :
12272 ac_cv_c_inline
=$ac_kw
12274 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12275 test "$ac_cv_c_inline" != no
&& break
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12280 $as_echo "$ac_cv_c_inline" >&6; }
12282 case $ac_cv_c_inline in
12285 case $ac_cv_c_inline in
12287 *) ac_val
=$ac_cv_c_inline;;
12289 cat >>confdefs.h
<<_ACEOF
12290 #ifndef __cplusplus
12291 #define inline $ac_val
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12298 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12299 if ${ac_cv_c_bigendian+:} false
; then :
12300 $as_echo_n "(cached) " >&6
12302 ac_cv_c_bigendian
=unknown
12303 # See if we're dealing with a universal compiler.
12304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12305 /* end confdefs.h. */
12306 #ifndef __APPLE_CC__
12307 not a universal capable compiler
12312 if ac_fn_c_try_compile
"$LINENO"; then :
12314 # Check for potential -arch flags. It is not universal unless
12315 # there are at least two -arch flags with different values.
12318 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12319 if test -n "$ac_prev"; then
12321 i?
86 | x86_64 | ppc | ppc64
)
12322 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12325 ac_cv_c_bigendian
=universal
12331 elif test "x$ac_word" = "x-arch"; then
12336 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12337 if test $ac_cv_c_bigendian = unknown
; then
12338 # See if sys/param.h defines the BYTE_ORDER macro.
12339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12340 /* end confdefs.h. */
12341 #include <sys/types.h>
12342 #include <sys/param.h>
12347 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12348 && defined LITTLE_ENDIAN && BYTE_ORDER && 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 <sys/types.h>
12362 #include <sys/param.h>
12367 #if BYTE_ORDER != BIG_ENDIAN
12375 if ac_fn_c_try_compile
"$LINENO"; then :
12376 ac_cv_c_bigendian
=yes
12378 ac_cv_c_bigendian
=no
12380 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12382 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12384 if test $ac_cv_c_bigendian = unknown
; then
12385 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12387 /* end confdefs.h. */
12388 #include <limits.h>
12393 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12394 bogus endian macros
12401 if ac_fn_c_try_compile
"$LINENO"; then :
12402 # It does; now see whether it defined to _BIG_ENDIAN or not.
12403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12404 /* end confdefs.h. */
12405 #include <limits.h>
12410 #ifndef _BIG_ENDIAN
12418 if ac_fn_c_try_compile
"$LINENO"; then :
12419 ac_cv_c_bigendian
=yes
12421 ac_cv_c_bigendian
=no
12423 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12425 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12427 if test $ac_cv_c_bigendian = unknown
; then
12428 # Compile a test program.
12429 if test "$cross_compiling" = yes; then :
12430 # Try to guess by grepping values from an object file.
12431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12432 /* end confdefs.h. */
12433 short int ascii_mm[] =
12434 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12435 short int ascii_ii[] =
12436 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12437 int use_ascii (int i) {
12438 return ascii_mm[i] + ascii_ii[i];
12440 short int ebcdic_ii[] =
12441 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12442 short int ebcdic_mm[] =
12443 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12444 int use_ebcdic (int i) {
12445 return ebcdic_mm[i] + ebcdic_ii[i];
12452 return use_ascii (foo) == use_ebcdic (foo);
12457 if ac_fn_c_try_compile
"$LINENO"; then :
12458 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12459 ac_cv_c_bigendian
=yes
12461 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12462 if test "$ac_cv_c_bigendian" = unknown
; then
12463 ac_cv_c_bigendian
=no
12465 # finding both strings is unlikely to happen, but who knows?
12466 ac_cv_c_bigendian
=unknown
12470 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12473 /* end confdefs.h. */
12474 $ac_includes_default
12479 /* Are we little or big endian? From Harbison&Steele. */
12483 char c[sizeof (long int)];
12486 return u.c[sizeof (long int) - 1] == 1;
12492 if ac_fn_c_try_run
"$LINENO"; then :
12493 ac_cv_c_bigendian
=no
12495 ac_cv_c_bigendian
=yes
12497 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12498 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12504 $as_echo "$ac_cv_c_bigendian" >&6; }
12505 case $ac_cv_c_bigendian in #(
12507 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12513 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12517 as_fn_error $?
"unknown endianness
12518 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12522 # ------------------------------ #
12523 # Checks for library functions. #
12524 # ------------------------------ #
12526 for ac_func
in getuid getgid \
12527 pipe pread pread64 pwrite resize_term \
12529 sigaction sigsetmask socketpair \
12530 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
12531 setrlimit getrlimit posix_madvise waitpid \
12534 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12535 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12536 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12537 cat >>confdefs.h
<<_ACEOF
12538 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12546 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12547 if ${am_cv_langinfo_codeset+:} false
; then :
12548 $as_echo_n "(cached) " >&6
12550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12551 /* end confdefs.h. */
12552 #include <langinfo.h>
12556 char* cs = nl_langinfo(CODESET);
12561 if ac_fn_c_try_link
"$LINENO"; then :
12562 am_cv_langinfo_codeset
=yes
12564 am_cv_langinfo_codeset
=no
12566 rm -f core conftest.err conftest.
$ac_objext \
12567 conftest
$ac_exeext conftest.
$ac_ext
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12571 $as_echo "$am_cv_langinfo_codeset" >&6; }
12572 if test $am_cv_langinfo_codeset = yes; then
12574 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12578 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12579 if test "x$ac_cv_type_size_t" = xyes
; then :
12583 cat >>confdefs.h
<<_ACEOF
12584 #define size_t unsigned int
12592 for ac_header
in $ac_header_list
12594 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12595 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12597 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12598 cat >>confdefs.h
<<_ACEOF
12599 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12612 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12613 if test "x$ac_cv_type_pid_t" = xyes
; then :
12617 cat >>confdefs.h
<<_ACEOF
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12624 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12625 if ${ac_cv_path_SED+:} false
; then :
12626 $as_echo_n "(cached) " >&6
12628 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
12629 for ac_i
in 1 2 3 4 5 6 7; do
12630 ac_script
="$ac_script$as_nl$ac_script"
12632 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
12633 { ac_script
=; unset ac_script
;}
12634 if test -z "$SED"; then
12635 ac_path_SED_found
=false
12636 # Loop through the user's path and test for each of PROGNAME-LIST
12637 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12638 for as_dir
in $PATH
12641 test -z "$as_dir" && as_dir
=.
12642 for ac_prog
in sed gsed
; do
12643 for ac_exec_ext
in '' $ac_executable_extensions; do
12644 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12645 as_fn_executable_p
"$ac_path_SED" ||
continue
12646 # Check for GNU ac_path_SED and select it if it is found.
12647 # Check for GNU $ac_path_SED
12648 case `"$ac_path_SED" --version 2>&1` in
12650 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12653 $as_echo_n 0123456789 >"conftest.in"
12656 cat "conftest.in" "conftest.in" >"conftest.tmp"
12657 mv "conftest.tmp" "conftest.in"
12658 cp "conftest.in" "conftest.nl"
12659 $as_echo '' >> "conftest.nl"
12660 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12661 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12662 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12663 if test $ac_count -gt ${ac_path_SED_max-0}; then
12664 # Best one so far, save it but keep looking for a better one
12665 ac_cv_path_SED
="$ac_path_SED"
12666 ac_path_SED_max
=$ac_count
12668 # 10*(2^10) chars as input seems more than enough
12669 test $ac_count -gt 10 && break
12671 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12674 $ac_path_SED_found && break 3
12679 if test -z "$ac_cv_path_SED"; then
12680 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12683 ac_cv_path_SED
=$SED
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12688 $as_echo "$ac_cv_path_SED" >&6; }
12689 SED
="$ac_cv_path_SED"
12693 # Set the 'development' global.
12694 .
$srcdir/..
/bfd
/development.sh
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12697 $as_echo_n "checking for ANSI C header files... " >&6; }
12698 if ${ac_cv_header_stdc+:} false
; then :
12699 $as_echo_n "(cached) " >&6
12701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12702 /* end confdefs.h. */
12703 #include <stdlib.h>
12704 #include <stdarg.h>
12705 #include <string.h>
12716 if ac_fn_c_try_compile
"$LINENO"; then :
12717 ac_cv_header_stdc
=yes
12719 ac_cv_header_stdc
=no
12721 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12723 if test $ac_cv_header_stdc = yes; then
12724 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12726 /* end confdefs.h. */
12727 #include <string.h>
12730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12731 $EGREP "memchr" >/dev
/null
2>&1; then :
12734 ac_cv_header_stdc
=no
12740 if test $ac_cv_header_stdc = yes; then
12741 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12743 /* end confdefs.h. */
12744 #include <stdlib.h>
12747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12748 $EGREP "free" >/dev
/null
2>&1; then :
12751 ac_cv_header_stdc
=no
12757 if test $ac_cv_header_stdc = yes; then
12758 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12759 if test "$cross_compiling" = yes; then :
12762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12763 /* end confdefs.h. */
12765 #include <stdlib.h>
12766 #if ((' ' & 0x0FF) == 0x020)
12767 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12768 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12770 # define ISLOWER(c) \
12771 (('a' <= (c) && (c) <= 'i') \
12772 || ('j' <= (c) && (c) <= 'r') \
12773 || ('s' <= (c) && (c) <= 'z'))
12774 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12777 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12782 for (i = 0; i < 256; i++)
12783 if (XOR (islower (i), ISLOWER (i))
12784 || toupper (i) != TOUPPER (i))
12789 if ac_fn_c_try_run
"$LINENO"; then :
12792 ac_cv_header_stdc
=no
12794 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12795 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12801 $as_echo "$ac_cv_header_stdc" >&6; }
12802 if test $ac_cv_header_stdc = yes; then
12804 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12808 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12809 # for constant arguments. Useless!
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12811 $as_echo_n "checking for working alloca.h... " >&6; }
12812 if ${ac_cv_working_alloca_h+:} false
; then :
12813 $as_echo_n "(cached) " >&6
12815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12816 /* end confdefs.h. */
12817 #include <alloca.h>
12821 char *p = (char *) alloca (2 * sizeof (int));
12827 if ac_fn_c_try_link
"$LINENO"; then :
12828 ac_cv_working_alloca_h
=yes
12830 ac_cv_working_alloca_h
=no
12832 rm -f core conftest.err conftest.
$ac_objext \
12833 conftest
$ac_exeext conftest.
$ac_ext
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12836 $as_echo "$ac_cv_working_alloca_h" >&6; }
12837 if test $ac_cv_working_alloca_h = yes; then
12839 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12844 $as_echo_n "checking for alloca... " >&6; }
12845 if ${ac_cv_func_alloca_works+:} false
; then :
12846 $as_echo_n "(cached) " >&6
12848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12849 /* end confdefs.h. */
12851 # define alloca __builtin_alloca
12854 # include <malloc.h>
12855 # define alloca _alloca
12857 # ifdef HAVE_ALLOCA_H
12858 # include <alloca.h>
12863 # ifndef alloca /* predefined by HP cc +Olibcalls */
12864 void *alloca (size_t);
12874 char *p = (char *) alloca (1);
12880 if ac_fn_c_try_link
"$LINENO"; then :
12881 ac_cv_func_alloca_works
=yes
12883 ac_cv_func_alloca_works
=no
12885 rm -f core conftest.err conftest.
$ac_objext \
12886 conftest
$ac_exeext conftest.
$ac_ext
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12889 $as_echo "$ac_cv_func_alloca_works" >&6; }
12891 if test $ac_cv_func_alloca_works = yes; then
12893 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12896 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12897 # that cause trouble. Some versions do not even contain alloca or
12898 # contain a buggy version. If you still want to use their alloca,
12899 # use ar to extract alloca.o from them instead of compiling alloca.c.
12901 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
12903 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12907 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12908 if ${ac_cv_os_cray+:} false
; then :
12909 $as_echo_n "(cached) " >&6
12911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12912 /* end confdefs.h. */
12913 #if defined CRAY && ! defined CRAY2
12920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12921 $EGREP "webecray" >/dev
/null
2>&1; then :
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12930 $as_echo "$ac_cv_os_cray" >&6; }
12931 if test $ac_cv_os_cray = yes; then
12932 for ac_func
in _getb67 GETB67 getb67
; do
12933 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12934 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12935 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12937 cat >>confdefs.h
<<_ACEOF
12938 #define CRAY_STACKSEG_END $ac_func
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12948 $as_echo_n "checking stack direction for C alloca... " >&6; }
12949 if ${ac_cv_c_stack_direction+:} false
; then :
12950 $as_echo_n "(cached) " >&6
12952 if test "$cross_compiling" = yes; then :
12953 ac_cv_c_stack_direction
=0
12955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12956 /* end confdefs.h. */
12957 $ac_includes_default
12959 find_stack_direction (int *addr, int depth)
12961 int dir, dummy = 0;
12964 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
12965 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
12966 return dir + dummy;
12970 main (int argc, char **argv)
12972 return find_stack_direction (0, argc + !argv + 20) < 0;
12975 if ac_fn_c_try_run
"$LINENO"; then :
12976 ac_cv_c_stack_direction
=1
12978 ac_cv_c_stack_direction
=-1
12980 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12981 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12986 $as_echo "$ac_cv_c_stack_direction" >&6; }
12987 cat >>confdefs.h
<<_ACEOF
12988 #define STACK_DIRECTION $ac_cv_c_stack_direction
12999 $as_echo "#define USE_WIN32API 1" >>confdefs.h
13001 WIN32APILIBS
="-lws2_32"
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13007 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13008 if ${am_cv_langinfo_codeset+:} false
; then :
13009 $as_echo_n "(cached) " >&6
13011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13012 /* end confdefs.h. */
13013 #include <langinfo.h>
13017 char* cs = nl_langinfo(CODESET);
13022 if ac_fn_c_try_link
"$LINENO"; then :
13023 am_cv_langinfo_codeset
=yes
13025 am_cv_langinfo_codeset
=no
13027 rm -f core conftest.err conftest.
$ac_objext \
13028 conftest
$ac_exeext conftest.
$ac_ext
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13032 $as_echo "$am_cv_langinfo_codeset" >&6; }
13033 if test $am_cv_langinfo_codeset = yes; then
13035 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13040 for ac_header
in linux
/perf_event.h locale.h memory.h signal.h sys
/resource.h sys
/socket.h sys
/un.h sys
/wait.h thread_db.h
wait.h termios.h dlfcn.h linux
/elf.h proc_service.h poll.h sys
/poll.h sys
/select.h
13042 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13043 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13044 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13045 cat >>confdefs.h
<<_ACEOF
13046 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13055 for ac_func
in getpagesize
13057 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13058 if test "x$ac_cv_func_getpagesize" = xyes
; then :
13059 cat >>confdefs.h
<<_ACEOF
13060 #define HAVE_GETPAGESIZE 1
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13067 $as_echo_n "checking for working mmap... " >&6; }
13068 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
13069 $as_echo_n "(cached) " >&6
13071 if test "$cross_compiling" = yes; then :
13072 ac_cv_func_mmap_fixed_mapped
=no
13074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13075 /* end confdefs.h. */
13076 $ac_includes_default
13077 /* malloc might have been renamed as rpl_malloc. */
13080 /* Thanks to Mike Haertel and Jim Avera for this test.
13081 Here is a matrix of mmap possibilities:
13082 mmap private not fixed
13083 mmap private fixed at somewhere currently unmapped
13084 mmap private fixed at somewhere already mapped
13085 mmap shared not fixed
13086 mmap shared fixed at somewhere currently unmapped
13087 mmap shared fixed at somewhere already mapped
13088 For private mappings, we should verify that changes cannot be read()
13089 back from the file, nor mmap's back from the file at a different
13090 address. (There have been systems where private was not correctly
13091 implemented like the infamous i386 svr4.0, and systems where the
13092 VM page cache was not coherent with the file system buffer cache
13093 like early versions of FreeBSD and possibly contemporary NetBSD.)
13094 For shared mappings, we should conversely verify that changes get
13095 propagated back to all the places they're supposed to be.
13097 Grep wants private fixed already mapped.
13098 The main things grep needs to know about mmap are:
13099 * does it exist and is it safe to write into the mmap'd area
13100 * how to use it (BSD variants) */
13103 #include <sys/mman.h>
13105 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13109 /* This mess was copied from the GNU getpagesize.h. */
13110 #ifndef HAVE_GETPAGESIZE
13111 # ifdef _SC_PAGESIZE
13112 # define getpagesize() sysconf(_SC_PAGESIZE)
13113 # else /* no _SC_PAGESIZE */
13114 # ifdef HAVE_SYS_PARAM_H
13115 # include <sys/param.h>
13116 # ifdef EXEC_PAGESIZE
13117 # define getpagesize() EXEC_PAGESIZE
13118 # else /* no EXEC_PAGESIZE */
13120 # define getpagesize() NBPG * CLSIZE
13123 # endif /* no CLSIZE */
13124 # else /* no NBPG */
13126 # define getpagesize() NBPC
13127 # else /* no NBPC */
13129 # define getpagesize() PAGESIZE
13130 # endif /* PAGESIZE */
13131 # endif /* no NBPC */
13132 # endif /* no NBPG */
13133 # endif /* no EXEC_PAGESIZE */
13134 # else /* no HAVE_SYS_PARAM_H */
13135 # define getpagesize() 8192 /* punt totally */
13136 # endif /* no HAVE_SYS_PARAM_H */
13137 # endif /* no _SC_PAGESIZE */
13139 #endif /* no HAVE_GETPAGESIZE */
13144 char *data, *data2, *data3;
13145 const char *cdata2;
13149 pagesize = getpagesize ();
13151 /* First, make a file with some known garbage in it. */
13152 data = (char *) malloc (pagesize);
13155 for (i = 0; i < pagesize; ++i)
13156 *(data + i) = rand ();
13158 fd = creat ("conftest.mmap", 0600);
13161 if (write (fd, data, pagesize) != pagesize)
13165 /* Next, check that the tail of a page is zero-filled. File must have
13166 non-zero length, otherwise we risk SIGBUS for entire page. */
13167 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13171 if (write (fd2, cdata2, 1) != 1)
13173 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13174 if (data2 == MAP_FAILED)
13176 for (i = 0; i < pagesize; ++i)
13180 if (munmap (data2, pagesize))
13183 /* Next, try to mmap the file at a fixed address which already has
13184 something else allocated at it. If we can, also make sure that
13185 we see the same garbage. */
13186 fd = open ("conftest.mmap", O_RDWR);
13189 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13190 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13192 for (i = 0; i < pagesize; ++i)
13193 if (*(data + i) != *(data2 + i))
13196 /* Finally, make sure that changes to the mapped area do not
13197 percolate back to the file as seen by read(). (This is a bug on
13198 some variants of i386 svr4.0.) */
13199 for (i = 0; i < pagesize; ++i)
13200 *(data2 + i) = *(data2 + i) + 1;
13201 data3 = (char *) malloc (pagesize);
13204 if (read (fd, data3, pagesize) != pagesize)
13206 for (i = 0; i < pagesize; ++i)
13207 if (*(data + i) != *(data3 + i))
13213 if ac_fn_c_try_run
"$LINENO"; then :
13214 ac_cv_func_mmap_fixed_mapped
=yes
13216 ac_cv_func_mmap_fixed_mapped
=no
13218 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13219 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13224 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13225 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13227 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13230 rm -f conftest.mmap conftest.txt
13232 for ac_header
in vfork.h
13234 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13235 if test "x$ac_cv_header_vfork_h" = xyes
; then :
13236 cat >>confdefs.h
<<_ACEOF
13237 #define HAVE_VFORK_H 1
13244 for ac_func
in fork vfork
13246 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13247 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13248 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13249 cat >>confdefs.h
<<_ACEOF
13250 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13256 if test "x$ac_cv_func_fork" = xyes
; then
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13258 $as_echo_n "checking for working fork... " >&6; }
13259 if ${ac_cv_func_fork_works+:} false
; then :
13260 $as_echo_n "(cached) " >&6
13262 if test "$cross_compiling" = yes; then :
13263 ac_cv_func_fork_works
=cross
13265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13266 /* end confdefs.h. */
13267 $ac_includes_default
13272 /* By Ruediger Kuhlmann. */
13273 return fork () < 0;
13279 if ac_fn_c_try_run
"$LINENO"; then :
13280 ac_cv_func_fork_works
=yes
13282 ac_cv_func_fork_works
=no
13284 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13285 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13290 $as_echo "$ac_cv_func_fork_works" >&6; }
13293 ac_cv_func_fork_works
=$ac_cv_func_fork
13295 if test "x$ac_cv_func_fork_works" = xcross
; then
13297 *-*-amigaos* |
*-*-msdosdjgpp*)
13298 # Override, as these systems have only a dummy fork() stub
13299 ac_cv_func_fork_works
=no
13302 ac_cv_func_fork_works
=yes
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13306 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13308 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13309 if test "x$ac_cv_func_vfork" = xyes
; then
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13311 $as_echo_n "checking for working vfork... " >&6; }
13312 if ${ac_cv_func_vfork_works+:} false
; then :
13313 $as_echo_n "(cached) " >&6
13315 if test "$cross_compiling" = yes; then :
13316 ac_cv_func_vfork_works
=cross
13318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13319 /* end confdefs.h. */
13320 /* Thanks to Paul Eggert for this test. */
13321 $ac_includes_default
13322 #include <sys/wait.h>
13323 #ifdef HAVE_VFORK_H
13324 # include <vfork.h>
13326 /* On some sparc systems, changes by the child to local and incoming
13327 argument registers are propagated back to the parent. The compiler
13328 is told about this with #include <vfork.h>, but some compilers
13329 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13330 static variable whose address is put into a register that is
13331 clobbered by the vfork. */
13334 sparc_address_test (int arg)
13336 sparc_address_test (arg) int arg;
13339 static pid_t child;
13357 pid_t parent = getpid ();
13360 sparc_address_test (0);
13365 /* Here is another test for sparc vfork register problems. This
13366 test uses lots of local variables, at least as many local
13367 variables as main has allocated so far including compiler
13368 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13369 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13370 reuse the register of parent for one of the local variables,
13371 since it will think that parent can't possibly be used any more
13372 in this routine. Assigning to the local variable will thus
13373 munge parent in the parent process. */
13375 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13376 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13377 /* Convince the compiler that p..p7 are live; otherwise, it might
13378 use the same hardware register for all 8 local variables. */
13379 if (p != p1 || p != p2 || p != p3 || p != p4
13380 || p != p5 || p != p6 || p != p7)
13383 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13384 from child file descriptors. If the child closes a descriptor
13385 before it execs or exits, this munges the parent's descriptor
13386 as well. Test for this by closing stdout in the child. */
13387 _exit(close(fileno(stdout)) != 0);
13392 while (wait(&status) != child)
13395 /* Was there some problem with vforking? */
13398 /* Did the child fail? (This shouldn't happen.) */
13401 /* Did the vfork/compiler bug occur? */
13402 || parent != getpid()
13404 /* Did the file descriptor bug occur? */
13405 || fstat(fileno(stdout), &st) != 0
13410 if ac_fn_c_try_run
"$LINENO"; then :
13411 ac_cv_func_vfork_works
=yes
13413 ac_cv_func_vfork_works
=no
13415 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13416 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13421 $as_echo "$ac_cv_func_vfork_works" >&6; }
13424 if test "x$ac_cv_func_fork_works" = xcross
; then
13425 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13427 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13430 if test "x$ac_cv_func_vfork_works" = xyes
; then
13432 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13436 $as_echo "#define vfork fork" >>confdefs.h
13439 if test "x$ac_cv_func_fork_works" = xyes
; then
13441 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13445 for ac_func
in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
13446 ptrace64 sbrk setns sigaltstack sigprocmask \
13447 setpgid setpgrp getrusage getauxval
13449 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13450 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13451 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13452 cat >>confdefs.h
<<_ACEOF
13453 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13460 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
13462 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
13468 cat >>confdefs.h
<<_ACEOF
13469 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
13473 if test "$cross_compiling" = yes; then :
13474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13475 /* end confdefs.h. */
13476 #include <sys/personality.h>
13481 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
13482 # define ADDR_NO_RANDOMIZE 0x0040000
13484 /* Test the flag could be set and stays set. */
13485 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13486 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13492 if ac_fn_c_try_link
"$LINENO"; then :
13493 have_personality
=true
13495 have_personality
=false
13497 rm -f core conftest.err conftest.
$ac_objext \
13498 conftest
$ac_exeext conftest.
$ac_ext
13500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13501 /* end confdefs.h. */
13502 #include <sys/personality.h>
13507 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
13508 # define ADDR_NO_RANDOMIZE 0x0040000
13510 /* Test the flag could be set and stays set. */
13511 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13512 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13518 if ac_fn_c_try_run
"$LINENO"; then :
13519 have_personality
=true
13521 have_personality
=false
13523 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13524 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13527 if $have_personality
13530 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
13534 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13535 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
13541 cat >>confdefs.h
<<_ACEOF
13542 #define HAVE_DECL_STRSTR $ac_have_decl
13546 # ----------------------- #
13547 # Checks for structures. #
13548 # ----------------------- #
13550 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13551 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
13553 cat >>confdefs.h
<<_ACEOF
13554 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13559 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
13560 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
13562 cat >>confdefs.h
<<_ACEOF
13563 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
13571 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
13572 if ${ac_cv_search_kinfo_getfile+:} false
; then :
13573 $as_echo_n "(cached) " >&6
13575 ac_func_search_save_LIBS
=$LIBS
13576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13577 /* end confdefs.h. */
13579 /* Override any GCC internal prototype to avoid an error.
13580 Use char because int might match the return type of a GCC
13581 builtin and then its argument prototype would still apply. */
13585 char kinfo_getfile ();
13589 return kinfo_getfile ();
13594 for ac_lib
in '' util util-freebsd
; do
13595 if test -z "$ac_lib"; then
13596 ac_res
="none required"
13599 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13601 if ac_fn_c_try_link
"$LINENO"; then :
13602 ac_cv_search_kinfo_getfile
=$ac_res
13604 rm -f core conftest.err conftest.
$ac_objext \
13606 if ${ac_cv_search_kinfo_getfile+:} false
; then :
13610 if ${ac_cv_search_kinfo_getfile+:} false
; then :
13613 ac_cv_search_kinfo_getfile
=no
13615 rm conftest.
$ac_ext
13616 LIBS
=$ac_func_search_save_LIBS
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
13619 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
13620 ac_res
=$ac_cv_search_kinfo_getfile
13621 if test "$ac_res" != no
; then :
13622 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13624 $as_echo "#define HAVE_KINFO_GETFILE 1" >>confdefs.h
13629 # Check for std::thread. This does not work on some platforms, like
13632 ac_cpp
='$CXXCPP $CPPFLAGS'
13633 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13634 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13635 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
13642 ac_cpp
='$CPP $CPPFLAGS'
13643 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13644 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13645 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13649 # We used to check for pthread.h first, but this fails if pthread.h
13650 # requires special compiler flags (e.g. on Tru64 or Sequent).
13651 # It gets checked for in the link test anyway.
13653 # First of all, check if the user has set any of the PTHREAD_LIBS,
13654 # etcetera environment variables, and if threads linking works using
13656 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
13657 ax_pthread_save_CC
="$CC"
13658 ax_pthread_save_CFLAGS
="$CFLAGS"
13659 ax_pthread_save_LIBS
="$LIBS"
13660 if test "x$PTHREAD_CC" != "x"; then :
13663 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
13664 LIBS
="$PTHREAD_LIBS $LIBS"
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
13666 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
13667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13668 /* end confdefs.h. */
13670 /* Override any GCC internal prototype to avoid an error.
13671 Use char because int might match the return type of a GCC
13672 builtin and then its argument prototype would still apply. */
13676 char pthread_join ();
13680 return pthread_join ();
13685 if ac_fn_c_try_link
"$LINENO"; then :
13688 rm -f core conftest.err conftest.
$ac_objext \
13689 conftest
$ac_exeext conftest.
$ac_ext
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
13691 $as_echo "$ax_pthread_ok" >&6; }
13692 if test "x$ax_pthread_ok" = "xno"; then
13696 CC
="$ax_pthread_save_CC"
13697 CFLAGS
="$ax_pthread_save_CFLAGS"
13698 LIBS
="$ax_pthread_save_LIBS"
13701 # We must check for the threads library under a number of different
13702 # names; the ordering is very important because some systems
13703 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
13704 # libraries is broken (non-POSIX).
13706 # Create a list of thread flags to try. Items starting with a "-" are
13707 # C compiler flags, and other items are library names, except for "none"
13708 # which indicates that we try without any flags at all, and "pthread-config"
13709 # which is a program returning the flags for the Pth emulation library.
13711 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
13713 # The ordering *is* (sometimes) important. Some notes on the
13714 # individual items follow:
13716 # pthreads: AIX (must check this before -lpthread)
13717 # none: in case threads are in libc; should be tried before -Kthread and
13718 # other compiler flags to prevent continual compiler warnings
13719 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
13720 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
13721 # (Note: HP C rejects this with "bad form for `-t' option")
13722 # -pthreads: Solaris/gcc (Note: HP C also rejects)
13723 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
13724 # doesn't hurt to check since this sometimes defines pthreads and
13725 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
13726 # is present but should not be used directly; and before -mthreads,
13727 # because the compiler interprets this as "-mt" + "-hreads")
13728 # -mthreads: Mingw32/gcc, Lynx/gcc
13729 # pthread: Linux, etcetera
13730 # --thread-safe: KAI C++
13731 # pthread-config: use pthread-config program (for GNU Pth library)
13737 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
13738 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
13740 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
13745 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
13746 # multi-threading and also sets -lpthread."
13748 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
13753 # IBM z/OS requires a feature-test macro to be defined in order to
13754 # enable POSIX threads at all, so give the user a hint if this is
13755 # not set. (We don't define these ourselves, as they can affect
13756 # other portions of the system API in unpredictable ways.)
13758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13759 /* end confdefs.h. */
13761 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
13762 AX_PTHREAD_ZOS_MISSING
13766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13767 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
13769 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
13777 # On Solaris (at least, for some versions), libc contains stubbed
13778 # (non-functional) versions of the pthreads routines, so link-based
13779 # tests will erroneously succeed. (N.B.: The stubs are missing
13780 # pthread_cleanup_push, or rather a function called by this macro,
13781 # so we could check for that, but who knows whether they'll stub
13782 # that too in a future libc.) So we'll check first for the
13783 # standard Solaris way of linking pthreads (-mt -lpthread).
13785 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
13789 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
13791 if test "x$GCC" = "xyes"; then :
13792 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
13795 # The presence of a feature test macro requesting re-entrant function
13796 # definitions is, on some systems, a strong hint that pthreads support is
13797 # correctly enabled
13800 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
13801 ax_pthread_check_macro
="_REENTRANT"
13805 ax_pthread_check_macro
="_THREAD_SAFE"
13809 ax_pthread_check_macro
="--"
13812 if test "x$ax_pthread_check_macro" = "x--"; then :
13813 ax_pthread_check_cond
=0
13815 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
13818 # Are we compiling with Clang?
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
13821 $as_echo_n "checking whether $CC is Clang... " >&6; }
13822 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
13823 $as_echo_n "(cached) " >&6
13825 ax_cv_PTHREAD_CLANG
=no
13826 # Note that Autoconf sets GCC=yes for Clang as well as GCC
13827 if test "x$GCC" = "xyes"; then
13828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13829 /* end confdefs.h. */
13830 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
13831 # if defined(__clang__) && defined(__llvm__)
13832 AX_PTHREAD_CC_IS_CLANG
13836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13837 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
13838 ax_cv_PTHREAD_CLANG
=yes
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
13846 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
13847 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
13849 ax_pthread_clang_warning
=no
13851 # Clang needs special handling, because older versions handle the -pthread
13852 # option in a rather... idiosyncratic way
13854 if test "x$ax_pthread_clang" = "xyes"; then
13856 # Clang takes -pthread; it has never supported any other flag
13858 # (Note 1: This will need to be revisited if a system that Clang
13859 # supports has POSIX threads in a separate library. This tends not
13860 # to be the way of modern systems, but it's conceivable.)
13862 # (Note 2: On some systems, notably Darwin, -pthread is not needed
13863 # to get POSIX threads support; the API is always present and
13864 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
13865 # -pthread does define _REENTRANT, and while the Darwin headers
13866 # ignore this macro, third-party headers might not.)
13868 PTHREAD_CFLAGS
="-pthread"
13873 # However, older versions of Clang make a point of warning the user
13874 # that, in an invocation where only linking and no compilation is
13875 # taking place, the -pthread option has no effect ("argument unused
13876 # during compilation"). They expect -pthread to be passed in only
13877 # when source code is being compiled.
13879 # Problem is, this is at odds with the way Automake and most other
13880 # C build frameworks function, which is that the same flags used in
13881 # compilation (CFLAGS) are also used in linking. Many systems
13882 # supported by AX_PTHREAD require exactly this for POSIX threads
13883 # support, and in fact it is often not straightforward to specify a
13884 # flag that is used only in the compilation phase and not in
13885 # linking. Such a scenario is extremely rare in practice.
13887 # Even though use of the -pthread flag in linking would only print
13888 # a warning, this can be a nuisance for well-run software projects
13889 # that build with -Werror. So if the active version of Clang has
13890 # this misfeature, we search for an option to squash it.
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
13893 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
13894 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
13895 $as_echo_n "(cached) " >&6
13897 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
13898 # Create an alternate version of $ac_link that compiles and
13899 # links in two steps (.c -> .o, .o -> exe) instead of one
13900 # (.c -> exe), because the warning occurs only in the second
13902 ax_pthread_save_ac_link
="$ac_link"
13903 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
13904 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
13905 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
13906 ax_pthread_save_CFLAGS
="$CFLAGS"
13907 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
13908 if test "x$ax_pthread_try" = "xunknown"; then :
13911 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
13912 ac_link
="$ax_pthread_save_ac_link"
13913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13914 /* end confdefs.h. */
13915 int main(void){return 0;}
13917 if ac_fn_c_try_link
"$LINENO"; then :
13918 ac_link
="$ax_pthread_2step_ac_link"
13919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13920 /* end confdefs.h. */
13921 int main(void){return 0;}
13923 if ac_fn_c_try_link
"$LINENO"; then :
13926 rm -f core conftest.err conftest.
$ac_objext \
13927 conftest
$ac_exeext conftest.
$ac_ext
13930 rm -f core conftest.err conftest.
$ac_objext \
13931 conftest
$ac_exeext conftest.
$ac_ext
13933 ac_link
="$ax_pthread_save_ac_link"
13934 CFLAGS
="$ax_pthread_save_CFLAGS"
13935 if test "x$ax_pthread_try" = "x"; then :
13938 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
13942 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
13944 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
13946 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
13949 fi # $ax_pthread_clang = yes
13951 if test "x$ax_pthread_ok" = "xno"; then
13952 for ax_pthread_try_flag
in $ax_pthread_flags; do
13954 case $ax_pthread_try_flag in
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
13957 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
13962 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
13963 PTHREAD_CFLAGS
="-mt"
13964 PTHREAD_LIBS
="-lpthread"
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
13969 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
13970 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
13974 # Extract the first word of "pthread-config", so it can be a program name with args.
13975 set dummy pthread-config
; ac_word
=$2
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13977 $as_echo_n "checking for $ac_word... " >&6; }
13978 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
13979 $as_echo_n "(cached) " >&6
13981 if test -n "$ax_pthread_config"; then
13982 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
13984 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13985 for as_dir
in $PATH
13988 test -z "$as_dir" && as_dir
=.
13989 for ac_exec_ext
in '' $ac_executable_extensions; do
13990 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13991 ac_cv_prog_ax_pthread_config
="yes"
13992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13999 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
14002 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
14003 if test -n "$ax_pthread_config"; then
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
14005 $as_echo "$ax_pthread_config" >&6; }
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14008 $as_echo "no" >&6; }
14012 if test "x$ax_pthread_config" = "xno"; then :
14015 PTHREAD_CFLAGS
="`pthread-config --cflags`"
14016 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
14021 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
14022 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
14026 ax_pthread_save_CFLAGS
="$CFLAGS"
14027 ax_pthread_save_LIBS
="$LIBS"
14028 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
14029 LIBS
="$PTHREAD_LIBS $LIBS"
14031 # Check for various functions. We must include pthread.h,
14032 # since some functions may be macros. (On the Sequent, we
14033 # need a special flag -Kthread to make this header compile.)
14034 # We check for pthread_join because it is in -lpthread on IRIX
14035 # while pthread_create is in libc. We check for pthread_attr_init
14036 # due to DEC craziness with -lpthreads. We check for
14037 # pthread_cleanup_push because it is one of the few pthread
14038 # functions on Solaris that doesn't have a non-functional libc stub.
14039 # We try pthread_create on general principles.
14041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14042 /* end confdefs.h. */
14043 #include <pthread.h>
14044 # if $ax_pthread_check_cond
14045 # error "$ax_pthread_check_macro must be defined"
14047 static void routine(void *a) { a = 0; }
14048 static void *start_routine(void *a) { return a; }
14052 pthread_t th; pthread_attr_t attr;
14053 pthread_create(&th, 0, start_routine, 0);
14054 pthread_join(th, 0);
14055 pthread_attr_init(&attr);
14056 pthread_cleanup_push(routine, 0);
14057 pthread_cleanup_pop(0) /* ; */
14062 if ac_fn_c_try_link
"$LINENO"; then :
14065 rm -f core conftest.err conftest.
$ac_objext \
14066 conftest
$ac_exeext conftest.
$ac_ext
14068 CFLAGS
="$ax_pthread_save_CFLAGS"
14069 LIBS
="$ax_pthread_save_LIBS"
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14072 $as_echo "$ax_pthread_ok" >&6; }
14073 if test "x$ax_pthread_ok" = "xyes"; then :
14082 # Various other checks:
14083 if test "x$ax_pthread_ok" = "xyes"; then
14084 ax_pthread_save_CFLAGS
="$CFLAGS"
14085 ax_pthread_save_LIBS
="$LIBS"
14086 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
14087 LIBS
="$PTHREAD_LIBS $LIBS"
14089 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14091 $as_echo_n "checking for joinable pthread attribute... " >&6; }
14092 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
14093 $as_echo_n "(cached) " >&6
14095 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
14096 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
14097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14098 /* end confdefs.h. */
14099 #include <pthread.h>
14103 int attr = $ax_pthread_attr; return attr /* ; */
14108 if ac_fn_c_try_link
"$LINENO"; then :
14109 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
14111 rm -f core conftest.err conftest.
$ac_objext \
14112 conftest
$ac_exeext conftest.
$ac_ext
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
14117 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
14118 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
14119 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
14120 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
14122 cat >>confdefs.h
<<_ACEOF
14123 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
14126 ax_pthread_joinable_attr_defined
=yes
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
14131 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
14132 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
14133 $as_echo_n "(cached) " >&6
14135 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
14138 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
14144 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
14145 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
14146 test "x$ax_pthread_special_flags_added" != "xyes"; then :
14147 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
14148 ax_pthread_special_flags_added
=yes
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
14152 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
14153 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
14154 $as_echo_n "(cached) " >&6
14156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14157 /* end confdefs.h. */
14158 #include <pthread.h>
14162 int i = PTHREAD_PRIO_INHERIT;
14167 if ac_fn_c_try_link
"$LINENO"; then :
14168 ax_cv_PTHREAD_PRIO_INHERIT
=yes
14170 ax_cv_PTHREAD_PRIO_INHERIT
=no
14172 rm -f core conftest.err conftest.
$ac_objext \
14173 conftest
$ac_exeext conftest.
$ac_ext
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
14177 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
14178 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
14179 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
14181 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
14183 ax_pthread_prio_inherit_defined
=yes
14187 CFLAGS
="$ax_pthread_save_CFLAGS"
14188 LIBS
="$ax_pthread_save_LIBS"
14190 # More AIX lossage: compile with *_r variant
14191 if test "x$GCC" != "xyes"; then
14195 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
14196 #handle absolute path differently from PATH based program lookup
14199 if as_fn_executable_p
${CC}_r
; then :
14200 PTHREAD_CC
="${CC}_r"
14203 for ac_prog
in ${CC}_r
14205 # Extract the first word of "$ac_prog", so it can be a program name with args.
14206 set dummy
$ac_prog; ac_word
=$2
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14208 $as_echo_n "checking for $ac_word... " >&6; }
14209 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
14210 $as_echo_n "(cached) " >&6
14212 if test -n "$PTHREAD_CC"; then
14213 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
14215 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14216 for as_dir
in $PATH
14219 test -z "$as_dir" && as_dir
=.
14220 for ac_exec_ext
in '' $ac_executable_extensions; do
14221 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14222 ac_cv_prog_PTHREAD_CC
="$ac_prog"
14223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14232 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
14233 if test -n "$PTHREAD_CC"; then
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14235 $as_echo "$PTHREAD_CC" >&6; }
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14238 $as_echo "no" >&6; }
14242 test -n "$PTHREAD_CC" && break
14244 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
14255 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
14261 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14262 if test "x$ax_pthread_ok" = "xyes"; then
14270 ac_cpp
='$CXXCPP $CPPFLAGS'
14271 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14272 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14273 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
14276 if test "$threads" = "yes"; then
14278 LIBS
="$PTHREAD_LIBS $LIBS"
14279 save_CXXFLAGS
="$CXXFLAGS"
14280 CXXFLAGS
="$PTHREAD_CFLAGS $save_CXXFLAGS"
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
14282 $as_echo_n "checking for std::thread... " >&6; }
14283 if ${gdb_cv_cxx_std_thread+:} false
; then :
14284 $as_echo_n "(cached) " >&6
14286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14287 /* end confdefs.h. */
14289 void callback() { }
14293 std::thread t(callback);
14298 if ac_fn_cxx_try_compile
"$LINENO"; then :
14299 gdb_cv_cxx_std_thread
=yes
14301 gdb_cv_cxx_std_thread
=no
14303 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
14306 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
14308 # This check must be here, while LIBS includes any necessary
14309 # threading library.
14310 for ac_func
in pthread_sigmask pthread_setname_np
14312 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14313 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14314 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14315 cat >>confdefs.h
<<_ACEOF
14316 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14324 CXXFLAGS
="$save_CXXFLAGS"
14326 if test "$gdb_cv_cxx_std_thread" = "yes"; then
14328 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
14332 ac_cpp
='$CPP $CPPFLAGS'
14333 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14334 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14335 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
14339 $as_echo_n "checking for sigsetjmp... " >&6; }
14340 if ${gdb_cv_func_sigsetjmp+:} false
; then :
14341 $as_echo_n "(cached) " >&6
14343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14344 /* end confdefs.h. */
14346 #include <setjmp.h>
14351 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
14356 if ac_fn_c_try_compile
"$LINENO"; then :
14357 gdb_cv_func_sigsetjmp
=yes
14359 gdb_cv_func_sigsetjmp
=no
14361 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
14364 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
14365 if test "$gdb_cv_func_sigsetjmp" = "yes"; then
14367 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
14372 # Check whether --with-intel_pt was given.
14373 if test "${with_intel_pt+set}" = set; then :
14374 withval
=$with_intel_pt;
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
14380 $as_echo_n "checking whether to use intel pt... " >&6; }
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
14382 $as_echo "$with_intel_pt" >&6; }
14384 if test "${with_intel_pt}" = no
; then
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
14386 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
14389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14390 /* end confdefs.h. */
14392 #include <linux/perf_event.h>
14393 #ifndef PERF_ATTR_SIZE_VER5
14398 if ac_fn_c_try_cpp
"$LINENO"; then :
14403 rm -f conftest.err conftest.i conftest.
$ac_ext
14404 if test "$perf_event" != yes; then
14405 if test "$with_intel_pt" = yes; then
14406 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
14409 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
14423 acl_save_prefix
="$prefix"
14424 prefix
="$acl_final_prefix"
14425 acl_save_exec_prefix
="$exec_prefix"
14426 exec_prefix
="$acl_final_exec_prefix"
14428 eval additional_includedir
=\"$includedir\"
14429 eval additional_libdir
=\"$libdir\"
14431 exec_prefix
="$acl_save_exec_prefix"
14432 prefix
="$acl_save_prefix"
14435 # Check whether --with-libipt-prefix was given.
14436 if test "${with_libipt_prefix+set}" = set; then :
14437 withval
=$with_libipt_prefix;
14438 if test "X$withval" = "Xno"; then
14441 if test "X$withval" = "X"; then
14443 acl_save_prefix
="$prefix"
14444 prefix
="$acl_final_prefix"
14445 acl_save_exec_prefix
="$exec_prefix"
14446 exec_prefix
="$acl_final_exec_prefix"
14448 eval additional_includedir
=\"$includedir\"
14449 eval additional_libdir
=\"$libdir\"
14451 exec_prefix
="$acl_save_exec_prefix"
14452 prefix
="$acl_save_prefix"
14455 additional_includedir
="$withval/include"
14456 additional_libdir
="$withval/lib"
14463 # Check whether --with-libipt-type was given.
14464 if test "${with_libipt_type+set}" = set; then :
14465 withval
=$with_libipt_type; with_libipt_type
=$withval
14467 with_libipt_type
=auto
14470 lib_type
=`eval echo \$with_libipt_type`
14477 names_already_handled
=
14478 names_next_round
='ipt '
14479 while test -n "$names_next_round"; do
14480 names_this_round
="$names_next_round"
14482 for name
in $names_this_round; do
14484 for n
in $names_already_handled; do
14485 if test "$n" = "$name"; then
14486 already_handled
=yes
14490 if test -z "$already_handled"; then
14491 names_already_handled
="$names_already_handled $name"
14492 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14493 eval value
=\"\
$HAVE_LIB$uppername\"
14494 if test -n "$value"; then
14495 if test "$value" = yes; then
14496 eval value
=\"\
$LIB$uppername\"
14497 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
14498 eval value
=\"\
$LTLIB$uppername\"
14499 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
14508 if test $use_additional = yes; then
14509 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
14510 found_dir
="$additional_libdir"
14511 found_so
="$additional_libdir/lib$name.$shlibext"
14512 if test -f "$additional_libdir/lib$name.la"; then
14513 found_la
="$additional_libdir/lib$name.la"
14515 elif test x
$lib_type != xshared
; then
14516 if test -f "$additional_libdir/lib$name.$libext"; then
14517 found_dir
="$additional_libdir"
14518 found_a
="$additional_libdir/lib$name.$libext"
14519 if test -f "$additional_libdir/lib$name.la"; then
14520 found_la
="$additional_libdir/lib$name.la"
14525 if test "X$found_dir" = "X"; then
14526 for x
in $LDFLAGS $LTLIBIPT; do
14528 acl_save_prefix
="$prefix"
14529 prefix
="$acl_final_prefix"
14530 acl_save_exec_prefix
="$exec_prefix"
14531 exec_prefix
="$acl_final_exec_prefix"
14533 exec_prefix
="$acl_save_exec_prefix"
14534 prefix
="$acl_save_prefix"
14538 dir
=`echo "X$x" | sed -e 's/^X-L//'`
14539 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
14541 found_so
="$dir/lib$name.$shlibext"
14542 if test -f "$dir/lib$name.la"; then
14543 found_la
="$dir/lib$name.la"
14545 elif test x
$lib_type != xshared
; then
14546 if test -f "$dir/lib$name.$libext"; then
14548 found_a
="$dir/lib$name.$libext"
14549 if test -f "$dir/lib$name.la"; then
14550 found_la
="$dir/lib$name.la"
14556 if test "X$found_dir" != "X"; then
14561 if test "X$found_dir" != "X"; then
14562 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
14563 if test "X$found_so" != "X"; then
14564 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
14565 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14568 for x
in $ltrpathdirs; do
14569 if test "X$x" = "X$found_dir"; then
14574 if test -z "$haveit"; then
14575 ltrpathdirs
="$ltrpathdirs $found_dir"
14577 if test "$hardcode_direct" = yes; then
14578 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14580 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
14581 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14583 for x
in $rpathdirs; do
14584 if test "X$x" = "X$found_dir"; then
14589 if test -z "$haveit"; then
14590 rpathdirs
="$rpathdirs $found_dir"
14594 for x
in $LDFLAGS $LIBIPT; do
14596 acl_save_prefix
="$prefix"
14597 prefix
="$acl_final_prefix"
14598 acl_save_exec_prefix
="$exec_prefix"
14599 exec_prefix
="$acl_final_exec_prefix"
14601 exec_prefix
="$acl_save_exec_prefix"
14602 prefix
="$acl_save_prefix"
14604 if test "X$x" = "X-L$found_dir"; then
14609 if test -z "$haveit"; then
14610 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
14612 if test "$hardcode_minus_L" != no
; then
14613 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
14615 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
14621 if test "X$found_a" != "X"; then
14622 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
14624 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
14627 additional_includedir
=
14628 case "$found_dir" in
14630 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14631 additional_includedir
="$basedir/include"
14634 if test "X$additional_includedir" != "X"; then
14635 if test "X$additional_includedir" != "X/usr/include"; then
14637 if test "X$additional_includedir" = "X/usr/local/include"; then
14638 if test -n "$GCC"; then
14640 linux
*) haveit
=yes;;
14644 if test -z "$haveit"; then
14645 for x
in $CPPFLAGS $INCIPT; do
14647 acl_save_prefix
="$prefix"
14648 prefix
="$acl_final_prefix"
14649 acl_save_exec_prefix
="$exec_prefix"
14650 exec_prefix
="$acl_final_exec_prefix"
14652 exec_prefix
="$acl_save_exec_prefix"
14653 prefix
="$acl_save_prefix"
14655 if test "X$x" = "X-I$additional_includedir"; then
14660 if test -z "$haveit"; then
14661 if test -d "$additional_includedir"; then
14662 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
14668 if test -n "$found_la"; then
14669 save_libdir
="$libdir"
14670 case "$found_la" in
14671 */* |
*\\*) .
"$found_la" ;;
14672 *) .
"./$found_la" ;;
14674 libdir
="$save_libdir"
14675 for dep
in $dependency_libs; do
14678 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
14679 if test "X$additional_libdir" != "X/usr/lib"; then
14681 if test "X$additional_libdir" = "X/usr/local/lib"; then
14682 if test -n "$GCC"; then
14684 linux
*) haveit
=yes;;
14688 if test -z "$haveit"; then
14690 for x
in $LDFLAGS $LIBIPT; do
14692 acl_save_prefix
="$prefix"
14693 prefix
="$acl_final_prefix"
14694 acl_save_exec_prefix
="$exec_prefix"
14695 exec_prefix
="$acl_final_exec_prefix"
14697 exec_prefix
="$acl_save_exec_prefix"
14698 prefix
="$acl_save_prefix"
14700 if test "X$x" = "X-L$additional_libdir"; then
14705 if test -z "$haveit"; then
14706 if test -d "$additional_libdir"; then
14707 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
14711 for x
in $LDFLAGS $LTLIBIPT; do
14713 acl_save_prefix
="$prefix"
14714 prefix
="$acl_final_prefix"
14715 acl_save_exec_prefix
="$exec_prefix"
14716 exec_prefix
="$acl_final_exec_prefix"
14718 exec_prefix
="$acl_save_exec_prefix"
14719 prefix
="$acl_save_prefix"
14721 if test "X$x" = "X-L$additional_libdir"; then
14726 if test -z "$haveit"; then
14727 if test -d "$additional_libdir"; then
14728 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
14735 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
14736 if test "$enable_rpath" != no
; then
14738 for x
in $rpathdirs; do
14739 if test "X$x" = "X$dir"; then
14744 if test -z "$haveit"; then
14745 rpathdirs
="$rpathdirs $dir"
14748 for x
in $ltrpathdirs; do
14749 if test "X$x" = "X$dir"; then
14754 if test -z "$haveit"; then
14755 ltrpathdirs
="$ltrpathdirs $dir"
14760 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14763 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14766 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
14767 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
14773 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
14774 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
14775 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
14777 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
14778 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
14785 if test "X$rpathdirs" != "X"; then
14786 if test -n "$hardcode_libdir_separator"; then
14788 for found_dir
in $rpathdirs; do
14789 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14791 acl_save_libdir
="$libdir"
14793 eval flag
=\"$hardcode_libdir_flag_spec\"
14794 libdir
="$acl_save_libdir"
14795 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
14797 for found_dir
in $rpathdirs; do
14798 acl_save_libdir
="$libdir"
14799 libdir
="$found_dir"
14800 eval flag
=\"$hardcode_libdir_flag_spec\"
14801 libdir
="$acl_save_libdir"
14802 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
14806 if test "X$ltrpathdirs" != "X"; then
14807 for found_dir
in $ltrpathdirs; do
14808 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
14813 ac_save_CPPFLAGS
="$CPPFLAGS"
14815 for element
in $INCIPT; do
14817 for x
in $CPPFLAGS; do
14819 acl_save_prefix
="$prefix"
14820 prefix
="$acl_final_prefix"
14821 acl_save_exec_prefix
="$exec_prefix"
14822 exec_prefix
="$acl_final_exec_prefix"
14824 exec_prefix
="$acl_save_exec_prefix"
14825 prefix
="$acl_save_prefix"
14827 if test "X$x" = "X$element"; then
14832 if test -z "$haveit"; then
14833 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
14839 $as_echo_n "checking for libipt... " >&6; }
14840 if ${ac_cv_libipt+:} false
; then :
14841 $as_echo_n "(cached) " >&6
14844 ac_save_LIBS
="$LIBS"
14845 LIBS
="$LIBS $LIBIPT"
14846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14847 /* end confdefs.h. */
14848 #include "intel-pt.h"
14852 pt_insn_alloc_decoder (0);
14857 if ac_fn_c_try_link
"$LINENO"; then :
14862 rm -f core conftest.err conftest.
$ac_objext \
14863 conftest
$ac_exeext conftest.
$ac_ext
14864 LIBS
="$ac_save_LIBS"
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
14868 $as_echo "$ac_cv_libipt" >&6; }
14869 if test "$ac_cv_libipt" = yes; then
14872 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
14875 $as_echo_n "checking how to link with libipt... " >&6; }
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
14877 $as_echo "$LIBIPT" >&6; }
14880 CPPFLAGS
="$ac_save_CPPFLAGS"
14890 if test "$HAVE_LIBIPT" != yes; then
14891 if test "$with_intel_pt" = yes; then
14892 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
14895 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
14899 LIBS
="$LIBS $LIBIPT"
14900 for ac_func
in pt_insn_event
14902 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
14903 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
14904 cat >>confdefs.h
<<_ACEOF
14905 #define HAVE_PT_INSN_EVENT 1
14911 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
14913 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
14915 cat >>confdefs.h
<<_ACEOF
14916 #define HAVE_STRUCT_PT_INSN_ENABLED 1
14921 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
14923 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
14925 cat >>confdefs.h
<<_ACEOF
14926 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
14937 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
14939 for ac_header
in sys
/procfs.h
14941 ac_fn_c_check_header_mongrel
"$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
14942 if test "x$ac_cv_header_sys_procfs_h" = xyes
; then :
14943 cat >>confdefs.h
<<_ACEOF
14944 #define HAVE_SYS_PROCFS_H 1
14951 if test "$ac_cv_header_sys_procfs_h" = yes; then
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
14954 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
14955 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
14956 $as_echo_n "(cached) " >&6
14958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14959 /* end confdefs.h. */
14962 #include <sys/procfs.h>
14971 if ac_fn_c_try_compile
"$LINENO"; then :
14972 bfd_cv_have_sys_procfs_type_gregset_t
=yes
14974 bfd_cv_have_sys_procfs_type_gregset_t
=no
14977 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14980 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
14982 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
14986 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
14990 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
14991 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
14992 $as_echo_n "(cached) " >&6
14994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14995 /* end confdefs.h. */
14998 #include <sys/procfs.h>
15007 if ac_fn_c_try_compile
"$LINENO"; then :
15008 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
15010 bfd_cv_have_sys_procfs_type_fpregset_t
=no
15013 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15016 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
15018 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
15022 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
15026 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
15027 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
15028 $as_echo_n "(cached) " >&6
15030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15031 /* end confdefs.h. */
15034 #include <sys/procfs.h>
15043 if ac_fn_c_try_compile
"$LINENO"; then :
15044 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
15046 bfd_cv_have_sys_procfs_type_prgregset_t
=no
15049 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15052 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
15054 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
15058 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
15062 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
15063 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
15064 $as_echo_n "(cached) " >&6
15066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15067 /* end confdefs.h. */
15070 #include <sys/procfs.h>
15079 if ac_fn_c_try_compile
"$LINENO"; then :
15080 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
15082 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
15085 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15088 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
15090 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
15094 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
15098 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
15099 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
15100 $as_echo_n "(cached) " >&6
15102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15103 /* end confdefs.h. */
15106 #include <sys/procfs.h>
15115 if ac_fn_c_try_compile
"$LINENO"; then :
15116 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
15118 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
15121 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15124 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
15126 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
15130 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
15134 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
15135 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
15136 $as_echo_n "(cached) " >&6
15138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15139 /* end confdefs.h. */
15142 #include <sys/procfs.h>
15151 if ac_fn_c_try_compile
"$LINENO"; then :
15152 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
15154 bfd_cv_have_sys_procfs_type_lwpid_t
=no
15157 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15160 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
15162 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
15166 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
15170 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
15171 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
15172 $as_echo_n "(cached) " >&6
15174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15175 /* end confdefs.h. */
15178 #include <sys/procfs.h>
15187 if ac_fn_c_try_compile
"$LINENO"; then :
15188 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
15190 bfd_cv_have_sys_procfs_type_psaddr_t
=no
15193 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15196 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
15198 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
15202 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
15206 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
15207 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
15208 $as_echo_n "(cached) " >&6
15210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15211 /* end confdefs.h. */
15214 #include <sys/procfs.h>
15218 elf_fpregset_t avar
15223 if ac_fn_c_try_compile
"$LINENO"; then :
15224 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
15226 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
15229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15232 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
15234 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
15238 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
15243 # Check the return and argument types of ptrace.
15246 for ac_header
in sys
/ptrace.h ptrace.h
15248 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15249 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15250 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
15251 cat >>confdefs.h
<<_ACEOF
15252 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15260 gdb_ptrace_headers
='
15261 #include <sys/types.h>
15262 #if HAVE_SYS_PTRACE_H
15263 # include <sys/ptrace.h>
15266 # include <unistd.h>
15270 # Check return type. Varargs (used on GNU/Linux) conflict with the
15271 # empty argument list, so check for that explicitly.
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
15273 $as_echo_n "checking return type of ptrace... " >&6; }
15274 if ${gdb_cv_func_ptrace_ret+:} false
; then :
15275 $as_echo_n "(cached) " >&6
15277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15278 /* end confdefs.h. */
15279 $gdb_ptrace_headers
15283 extern long ptrace (enum __ptrace_request, ...);
15288 if ac_fn_c_try_compile
"$LINENO"; then :
15289 gdb_cv_func_ptrace_ret
='long'
15291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15292 /* end confdefs.h. */
15293 $gdb_ptrace_headers
15297 extern int ptrace ();
15302 if ac_fn_c_try_compile
"$LINENO"; then :
15303 gdb_cv_func_ptrace_ret
='int'
15305 gdb_cv_func_ptrace_ret
='long'
15307 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15309 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
15312 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
15314 cat >>confdefs.h
<<_ACEOF
15315 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
15318 # Check argument types.
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
15320 $as_echo_n "checking types of arguments for ptrace... " >&6; }
15321 if ${gdb_cv_func_ptrace_args+:} false
; then :
15322 $as_echo_n "(cached) " >&6
15325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15326 /* end confdefs.h. */
15327 $gdb_ptrace_headers
15331 extern long ptrace (enum __ptrace_request, ...);
15336 if ac_fn_c_try_compile
"$LINENO"; then :
15337 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
15340 for gdb_arg1
in 'int' 'long'; do
15341 for gdb_arg2
in 'pid_t' 'int' 'long'; do
15342 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
15343 for gdb_arg4
in 'int' 'long' 'void *'; do
15344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15345 /* end confdefs.h. */
15346 $gdb_ptrace_headers
15351 extern $gdb_cv_func_ptrace_ret
15352 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
15358 if ac_fn_c_try_compile
"$LINENO"; then :
15359 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
15362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15363 for gdb_arg5
in 'int *' 'int' 'long'; do
15364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15365 /* end confdefs.h. */
15366 $gdb_ptrace_headers
15371 extern $gdb_cv_func_ptrace_ret
15372 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
15378 if ac_fn_c_try_compile
"$LINENO"; then :
15380 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
15383 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15389 # Provide a safe default value.
15390 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
15393 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
15396 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
15397 ac_save_IFS
=$IFS; IFS
=','
15398 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
15402 cat >>confdefs.h
<<_ACEOF
15403 #define PTRACE_TYPE_ARG1 $1
15407 cat >>confdefs.h
<<_ACEOF
15408 #define PTRACE_TYPE_ARG3 $3
15412 cat >>confdefs.h
<<_ACEOF
15413 #define PTRACE_TYPE_ARG4 $4
15416 if test -n "$5"; then
15418 cat >>confdefs.h
<<_ACEOF
15419 #define PTRACE_TYPE_ARG5 $5
15425 if test "$cross_compiling" = no
; then
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
15427 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
15428 if ${ac_cv_func_setpgrp_void+:} false
; then :
15429 $as_echo_n "(cached) " >&6
15431 if test "$cross_compiling" = yes; then :
15432 as_fn_error $?
"cannot check setpgrp when cross compiling" "$LINENO" 5
15434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15435 /* end confdefs.h. */
15436 $ac_includes_default
15440 /* If this system has a BSD-style setpgrp which takes arguments,
15441 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
15442 exit successfully. */
15443 return setpgrp (1,1) != -1;
15448 if ac_fn_c_try_run
"$LINENO"; then :
15449 ac_cv_func_setpgrp_void
=no
15451 ac_cv_func_setpgrp_void
=yes
15453 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15454 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
15459 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
15460 if test $ac_cv_func_setpgrp_void = yes; then
15462 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
15468 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
15469 if ${ac_cv_func_setpgrp_void+:} false
; then :
15470 $as_echo_n "(cached) " >&6
15472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15473 /* end confdefs.h. */
15475 #include <unistd.h>
15481 if (setpgrp(1,1) == -1)
15490 if ac_fn_c_try_compile
"$LINENO"; then :
15491 ac_cv_func_setpgrp_void
=no
15493 ac_cv_func_setpgrp_void
=yes
15495 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
15498 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
15499 if test "$ac_cv_func_setpgrp_void" = yes; then
15500 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
15505 # Assume we'll default to using the included libiberty regex.
15506 gdb_use_included_regex
=yes
15508 # However, if the system regex is GNU regex, then default to *not*
15509 # using the included regex.
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
15511 $as_echo_n "checking for GNU regex... " >&6; }
15512 if ${gdb_cv_have_gnu_regex+:} false
; then :
15513 $as_echo_n "(cached) " >&6
15515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15516 /* end confdefs.h. */
15517 #include <gnu-versions.h>
15521 #define REGEX_INTERFACE_VERSION 1
15522 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
15523 # error "Version mismatch"
15529 if ac_fn_c_try_compile
"$LINENO"; then :
15530 gdb_cv_have_gnu_regex
=yes
15532 gdb_cv_have_gnu_regex
=no
15534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
15537 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
15538 if test "$gdb_cv_have_gnu_regex" = yes; then
15539 gdb_use_included_regex
=no
15543 # Check whether --with-included-regex was given.
15544 if test "${with_included_regex+set}" = set; then :
15545 withval
=$with_included_regex; gdb_with_regex
=$withval
15547 gdb_with_regex
=$gdb_use_included_regex
15550 if test "$gdb_with_regex" = yes; then
15552 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
15556 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
15557 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
15558 #include <sys/proc.h>
15561 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes
; then :
15563 cat >>confdefs.h
<<_ACEOF
15564 #define HAVE_STRUCT_THREAD_TD_PCB 1
15571 # See if <sys/lwp.h> defines `struct lwp`.
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
15573 $as_echo_n "checking for struct lwp... " >&6; }
15574 if ${gdb_cv_struct_lwp+:} false
; then :
15575 $as_echo_n "(cached) " >&6
15577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15578 /* end confdefs.h. */
15579 #include <sys/param.h>
15581 #include <sys/lwp.h>
15590 if ac_fn_c_try_compile
"$LINENO"; then :
15591 gdb_cv_struct_lwp
=yes
15593 gdb_cv_struct_lwp
=no
15595 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
15598 $as_echo "$gdb_cv_struct_lwp" >&6; }
15599 if test "$gdb_cv_struct_lwp" = yes; then
15601 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
15605 # See if <machine/reg.h> degines `struct reg'.
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
15607 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
15608 if ${gdb_cv_struct_reg+:} false
; then :
15609 $as_echo_n "(cached) " >&6
15611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15612 /* end confdefs.h. */
15613 #include <sys/types.h>
15614 #include <machine/reg.h>
15623 if ac_fn_c_try_compile
"$LINENO"; then :
15624 gdb_cv_struct_reg
=yes
15626 gdb_cv_struct_reg
=no
15628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
15631 $as_echo "$gdb_cv_struct_reg" >&6; }
15632 if test "$gdb_cv_struct_reg" = yes; then
15634 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
15638 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
15639 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
15640 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
15641 #include <machine/reg.h>
15643 if test "x$ac_cv_member_struct_reg_r_fs" = xyes
; then :
15645 cat >>confdefs.h
<<_ACEOF
15646 #define HAVE_STRUCT_REG_R_FS 1
15651 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
15652 #include <machine/reg.h>
15654 if test "x$ac_cv_member_struct_reg_r_gs" = xyes
; then :
15656 cat >>confdefs.h
<<_ACEOF
15657 #define HAVE_STRUCT_REG_R_GS 1
15664 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
15666 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
15667 if ${gdb_cv_have_ptrace_getregs+:} false
; then :
15668 $as_echo_n "(cached) " >&6
15670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15671 /* end confdefs.h. */
15672 #include <sys/ptrace.h>
15681 if ac_fn_c_try_compile
"$LINENO"; then :
15682 gdb_cv_have_ptrace_getregs
=yes
15684 gdb_cv_have_ptrace_getregs
=no
15686 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
15690 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
15691 if test "$gdb_cv_have_ptrace_getregs" = yes; then
15693 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
15697 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
15699 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
15700 if ${gdb_cv_have_ptrace_getfpxregs+:} false
; then :
15701 $as_echo_n "(cached) " >&6
15703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15704 /* end confdefs.h. */
15705 #include <sys/ptrace.h>
15714 if ac_fn_c_try_compile
"$LINENO"; then :
15715 gdb_cv_have_ptrace_getfpxregs
=yes
15717 gdb_cv_have_ptrace_getfpxregs
=no
15719 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
15723 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
15724 if test "$gdb_cv_have_ptrace_getfpxregs" = yes; then
15726 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
15730 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
15732 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
15733 if ${gdb_cv_have_pt_getdbregs+:} false
; then :
15734 $as_echo_n "(cached) " >&6
15736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15737 /* end confdefs.h. */
15738 #include <sys/types.h>
15739 #include <sys/ptrace.h>
15748 if ac_fn_c_try_compile
"$LINENO"; then :
15749 gdb_cv_have_pt_getdbregs
=yes
15751 gdb_cv_have_pt_getdbregs
=no
15753 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
15757 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
15758 if test "$gdb_cv_have_pt_getdbregs" = yes; then
15760 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
15764 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
15766 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
15767 if ${gdb_cv_have_pt_getxmmregs+:} false
; then :
15768 $as_echo_n "(cached) " >&6
15770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15771 /* end confdefs.h. */
15772 #include <sys/types.h>
15773 #include <sys/ptrace.h>
15782 if ac_fn_c_try_compile
"$LINENO"; then :
15783 gdb_cv_have_pt_getxmmregs
=yes
15785 gdb_cv_have_pt_getxmmregs
=no
15787 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
15791 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
15792 if test "$gdb_cv_have_pt_getxmmregs" = yes; then
15794 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
15798 # See if <sys/ptrace.h> supports LWP names on FreeBSD
15799 # Older FreeBSD versions don't have the pl_tdname member of
15800 # `struct ptrace_lwpinfo'.
15801 ac_fn_c_check_member
"$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
15803 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes
; then :
15805 cat >>confdefs.h
<<_ACEOF
15806 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
15813 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
15814 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
15816 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>
15818 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes
; then :
15820 cat >>confdefs.h
<<_ACEOF
15821 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
15828 # Check if the compiler supports the `long long' type.
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
15831 $as_echo_n "checking for long long support in compiler... " >&6; }
15832 if ${gdb_cv_c_long_long+:} false
; then :
15833 $as_echo_n "(cached) " >&6
15835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15836 /* end confdefs.h. */
15837 extern long long foo;
15841 switch (foo & 2) { case 0: return 1; }
15846 if ac_fn_c_try_compile
"$LINENO"; then :
15847 gdb_cv_c_long_long
=yes
15849 gdb_cv_c_long_long
=no
15851 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
15854 $as_echo "$gdb_cv_c_long_long" >&6; }
15855 if test "$gdb_cv_c_long_long" != yes; then
15856 # libdecnumber requires long long.
15857 as_fn_error $?
"Compiler must support long long for GDB." "$LINENO" 5
15860 # Check if the compiler and runtime support printing long longs.
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
15863 $as_echo_n "checking for long long support in printf... " >&6; }
15864 if ${gdb_cv_printf_has_long_long+:} false
; then :
15865 $as_echo_n "(cached) " >&6
15867 if test "$cross_compiling" = yes; then :
15868 gdb_cv_printf_has_long_long
=no
15870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15871 /* end confdefs.h. */
15872 $ac_includes_default
15878 l = (l << 16) + 0x0123;
15879 l = (l << 16) + 0x4567;
15880 l = (l << 16) + 0x89ab;
15881 l = (l << 16) + 0xcdef;
15882 sprintf (buf, "0x%016llx", l);
15883 return (strcmp ("0x0123456789abcdef", buf));
15888 if ac_fn_c_try_run
"$LINENO"; then :
15889 gdb_cv_printf_has_long_long
=yes
15891 gdb_cv_printf_has_long_long
=no
15893 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15894 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
15899 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
15900 if test "$gdb_cv_printf_has_long_long" = yes; then
15902 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
15906 # Check if the compiler and runtime support printing decfloats.
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
15909 $as_echo_n "checking for decfloat support in printf... " >&6; }
15910 if ${gdb_cv_printf_has_decfloat+:} false
; then :
15911 $as_echo_n "(cached) " >&6
15913 if test "$cross_compiling" = yes; then :
15914 gdb_cv_printf_has_decfloat
=no
15916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15917 /* end confdefs.h. */
15918 $ac_includes_default
15923 _Decimal32 d32 = 1.2345df;
15924 _Decimal64 d64 = 1.2345dd;
15925 _Decimal128 d128 = 1.2345dl;
15926 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
15927 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
15932 if ac_fn_c_try_run
"$LINENO"; then :
15933 gdb_cv_printf_has_decfloat
=yes
15935 gdb_cv_printf_has_decfloat
=no
15937 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15938 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
15943 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
15944 if test "$gdb_cv_printf_has_decfloat" = yes; then
15946 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
15950 # Check if the compiler supports the `long double' type. We can't use
15951 # AC_C_LONG_DOUBLE because that one does additional checks on the
15952 # constants defined in <float.h> that fail on some systems,
15953 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
15956 $as_echo_n "checking for long double support in compiler... " >&6; }
15957 if ${gdb_cv_c_long_double+:} false
; then :
15958 $as_echo_n "(cached) " >&6
15960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15961 /* end confdefs.h. */
15964 if ac_fn_c_try_compile
"$LINENO"; then :
15965 gdb_cv_c_long_double
=yes
15967 gdb_cv_c_long_double
=no
15969 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
15972 $as_echo "$gdb_cv_c_long_double" >&6; }
15973 if test "$gdb_cv_c_long_double" = yes; then
15975 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
15979 # Check if the compiler and runtime support printing long doubles.
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
15982 $as_echo_n "checking for long double support in printf... " >&6; }
15983 if ${gdb_cv_printf_has_long_double+:} false
; then :
15984 $as_echo_n "(cached) " >&6
15986 if test "$cross_compiling" = yes; then :
15987 gdb_cv_printf_has_long_double
=no
15989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15990 /* end confdefs.h. */
15991 $ac_includes_default
15996 long double f = 3.141592653;
15997 sprintf (buf, "%Lg", f);
15998 return (strncmp ("3.14159", buf, 7));
16003 if ac_fn_c_try_run
"$LINENO"; then :
16004 gdb_cv_printf_has_long_double
=yes
16006 gdb_cv_printf_has_long_double
=no
16008 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16009 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
16014 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
16015 if test "$gdb_cv_printf_has_long_double" = yes; then
16017 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
16021 # Check if the compiler and runtime support scanning long doubles.
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
16024 $as_echo_n "checking for long double support in scanf... " >&6; }
16025 if ${gdb_cv_scanf_has_long_double+:} false
; then :
16026 $as_echo_n "(cached) " >&6
16028 if test "$cross_compiling" = yes; then :
16029 gdb_cv_scanf_has_long_double
=no
16031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16032 /* end confdefs.h. */
16037 char *buf = "3.141592653";
16039 sscanf (buf, "%Lg", &f);
16040 return !(f > 3.14159 && f < 3.14160);
16045 if ac_fn_c_try_run
"$LINENO"; then :
16046 gdb_cv_scanf_has_long_double
=yes
16048 gdb_cv_scanf_has_long_double
=no
16050 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16051 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
16056 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
16057 if test "$gdb_cv_scanf_has_long_double" = yes; then
16059 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
16066 $as_echo_n "checking for -bbigtoc option... " >&6; }
16067 if ${gdb_cv_bigtoc+:} false
; then :
16068 $as_echo_n "(cached) " >&6
16071 SAVE_LDFLAGS
=$LDFLAGS
16074 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
16075 *) gdb_cv_bigtoc
=-bbigtoc ;;
16078 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
16079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16080 /* end confdefs.h. */
16090 if ac_fn_c_try_link
"$LINENO"; then :
16095 rm -f core conftest.err conftest.
$ac_objext \
16096 conftest
$ac_exeext conftest.
$ac_ext
16097 LDFLAGS
="${SAVE_LDFLAGS}"
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
16101 $as_echo "$gdb_cv_bigtoc" >&6; }
16102 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
16107 $as_echo_n "checking for the dynamic export flag... " >&6; }
16109 if test "${gdb_native}" = yes; then
16110 # The dynamically loaded libthread_db needs access to symbols in the gdb
16111 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
16112 # may not be supported there.
16113 old_LDFLAGS
="$LDFLAGS"
16114 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
16115 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
16116 LDFLAGS
="$LDFLAGS $RDYNAMIC"
16117 if test "${have_libpython}" = no
; then
16118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16119 /* end confdefs.h. */
16129 if ac_fn_c_try_link
"$LINENO"; then :
16132 rm -f core conftest.err conftest.
$ac_objext \
16133 conftest
$ac_exeext conftest.
$ac_ext
16135 # Workaround http://bugs.python.org/issue4434 where static
16136 # libpythonX.Y.a would get its symbols required for
16137 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
16138 # Problem does not happen for the recommended libpythonX.Y.so linkage.
16140 # Note the workaround for Python
16141 # http://bugs.python.org/issue10112 earlier has removed
16142 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
16143 # here too, as otherwise it'd make this -Wl,--dynamic-list test
16145 old_CFLAGS
="$CFLAGS"
16146 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
16148 LIBS
="$LIBS $PYTHON_LIBS"
16149 old_CPPFLAGS
="$CPPFLAGS"
16150 CPPFLAGS
="$CPPFLAGS $PYTHON_CPPFLAGS"
16151 if test "$cross_compiling" = yes; then :
16154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16155 /* end confdefs.h. */
16156 #include "Python.h"
16162 err = PyRun_SimpleString ("import itertools\n");
16164 return err == 0 ? 0 : 1;
16169 if ac_fn_c_try_run
"$LINENO"; then :
16172 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16173 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16177 CFLAGS
="$old_CFLAGS"
16178 CPPFLAGS
="$old_CPPFLAGS"
16180 LDFLAGS
="$old_LDFLAGS"
16182 if $dynamic_list; then
16183 found
="-Wl,--dynamic-list"
16184 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
16187 RDYNAMIC
="-rdynamic"
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
16191 $as_echo "$found" >&6; }
16194 if test "${build}" = "${host}" -a "${host}" = "${target}" ; then
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
16198 $as_echo_n "checking for AiX thread debugging library... " >&6; }
16199 if ${gdb_cv_have_aix_thread_debug+:} false
; then :
16200 $as_echo_n "(cached) " >&6
16202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16203 /* end confdefs.h. */
16204 #include <sys/pthdebug.h>
16208 #ifndef PTHDB_VERSION_3
16215 if ac_fn_c_try_compile
"$LINENO"; then :
16216 gdb_cv_have_aix_thread_debug
=yes
16218 gdb_cv_have_aix_thread_debug
=no
16220 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
16224 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
16225 if test "$gdb_cv_have_aix_thread_debug" = yes; then
16226 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
16227 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
16228 LIBS
="$LIBS -lpthdebug"
16230 # Older versions of AIX do not provide the declaration for
16231 # the getthrds function (it appears that it was introduced
16233 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
16235 if test "x$ac_cv_have_decl_getthrds" = xyes
; then :
16241 cat >>confdefs.h
<<_ACEOF
16242 #define HAVE_DECL_GETTHRDS $ac_have_decl
16251 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
16253 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
16254 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false
; then :
16255 $as_echo_n "(cached) " >&6
16257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16258 /* end confdefs.h. */
16259 #include <thread_db.h>
16263 int i = TD_NOTALLOC;
16268 if ac_fn_c_try_compile
"$LINENO"; then :
16269 gdb_cv_thread_db_h_has_td_notalloc
=yes
16271 gdb_cv_thread_db_h_has_td_notalloc
=no
16274 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
16278 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
16280 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
16281 if ${gdb_cv_thread_db_h_has_td_version+:} false
; then :
16282 $as_echo_n "(cached) " >&6
16284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16285 /* end confdefs.h. */
16286 #include <thread_db.h>
16290 int i = TD_VERSION;
16295 if ac_fn_c_try_compile
"$LINENO"; then :
16296 gdb_cv_thread_db_h_has_td_version
=yes
16298 gdb_cv_thread_db_h_has_td_version
=no
16301 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
16305 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
16307 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
16308 if ${gdb_cv_thread_db_h_has_td_notls+:} false
; then :
16309 $as_echo_n "(cached) " >&6
16311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16312 /* end confdefs.h. */
16313 #include <thread_db.h>
16322 if ac_fn_c_try_compile
"$LINENO"; then :
16323 gdb_cv_thread_db_h_has_td_notls
=yes
16325 gdb_cv_thread_db_h_has_td_notls
=no
16328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
16332 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
16334 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
16336 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
16339 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
16341 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
16344 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
16346 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
16359 cat >>confdefs.h
<<_ACEOF
16360 #define GDBINIT "$gdbinit"
16365 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
16366 # except that the argument to --with-sysroot is optional.
16367 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
16368 if test "x$with_sysroot" = xyes
; then
16369 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
16372 # Check whether --with-sysroot was given.
16373 if test "${with_sysroot+set}" = set; then :
16374 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
16376 TARGET_SYSTEM_ROOT
=
16380 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16381 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16382 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
16383 ac_define_dir
=`eval echo $ac_define_dir`
16385 cat >>confdefs.h
<<_ACEOF
16386 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
16392 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16393 if test "x$prefix" = xNONE
; then
16394 test_prefix
=/usr
/local
16396 test_prefix
=$prefix
16399 test_prefix
=$exec_prefix
16402 case ${ac_define_dir} in
16403 "${test_prefix}"|
"${test_prefix}/"*|\
16404 '${exec_prefix}'|
'${exec_prefix}/'*)
16409 cat >>confdefs.h
<<_ACEOF
16410 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
16417 # Check whether --with-system-gdbinit was given.
16418 if test "${with_system_gdbinit+set}" = set; then :
16419 withval
=$with_system_gdbinit;
16420 SYSTEM_GDBINIT
=$withval
16426 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16427 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16428 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
16429 ac_define_dir
=`eval echo $ac_define_dir`
16431 cat >>confdefs.h
<<_ACEOF
16432 #define SYSTEM_GDBINIT "$ac_define_dir"
16438 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16439 if test "x$prefix" = xNONE
; then
16440 test_prefix
=/usr
/local
16442 test_prefix
=$prefix
16445 test_prefix
=$exec_prefix
16448 case ${ac_define_dir} in
16449 "${test_prefix}"|
"${test_prefix}/"*|\
16450 '${exec_prefix}'|
'${exec_prefix}/'*)
16455 cat >>confdefs.h
<<_ACEOF
16456 #define SYSTEM_GDBINIT_RELOCATABLE $value
16463 # Check whether --with-system-gdbinit-dir was given.
16464 if test "${with_system_gdbinit_dir+set}" = set; then :
16465 withval
=$with_system_gdbinit_dir;
16466 SYSTEM_GDBINIT_DIR
=$withval
16468 SYSTEM_GDBINIT_DIR
=
16472 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16473 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16474 ac_define_dir
=`eval echo $SYSTEM_GDBINIT_DIR`
16475 ac_define_dir
=`eval echo $ac_define_dir`
16477 cat >>confdefs.h
<<_ACEOF
16478 #define SYSTEM_GDBINIT_DIR "$ac_define_dir"
16484 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16485 if test "x$prefix" = xNONE
; then
16486 test_prefix
=/usr
/local
16488 test_prefix
=$prefix
16491 test_prefix
=$exec_prefix
16494 case ${ac_define_dir} in
16495 "${test_prefix}"|
"${test_prefix}/"*|\
16496 '${exec_prefix}'|
'${exec_prefix}/'*)
16501 cat >>confdefs.h
<<_ACEOF
16502 #define SYSTEM_GDBINIT_DIR_RELOCATABLE $value
16509 # Check whether --enable-werror was given.
16510 if test "${enable_werror+set}" = set; then :
16511 enableval
=$enable_werror; case "${enableval}" in
16512 yes | y
) ERROR_ON_WARNING
="yes" ;;
16513 no | n
) ERROR_ON_WARNING
="no" ;;
16514 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16519 # Enable -Werror by default when using gcc. Turn it off for releases.
16520 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
16521 ERROR_ON_WARNING
=yes
16525 if test "${ERROR_ON_WARNING}" = yes ; then
16526 WERROR_CFLAGS
="-Werror"
16529 # The options we'll try to enable.
16530 build_warnings
="-Wall -Wpointer-arith \
16531 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
16532 -Wno-switch -Wno-char-subscripts \
16533 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
16534 -Wno-sign-compare -Wno-error=maybe-uninitialized \
16535 -Wno-mismatched-tags \
16536 -Wno-error=deprecated-register \
16537 -Wsuggest-override \
16538 -Wimplicit-fallthrough=3 \
16539 -Wduplicated-cond \
16541 -Wdeprecated-copy \
16542 -Wdeprecated-copy-dtor \
16544 -Wmissing-declarations \
16545 -Wmissing-prototypes \
16546 -Wstrict-null-sentinel \
16551 # Enable -Wno-format by default when using gcc on mingw since many
16552 # GCC versions complain about %I64.
16553 build_warnings
="$build_warnings -Wno-format" ;;
16555 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
16556 # doesn't understand.
16557 build_warnings
="$build_warnings -Wno-unknown-pragmas"
16558 # Solaris 11 <unistd.h> marks vfork deprecated.
16559 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
16561 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
16562 # but there's a special case for this below.
16563 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
16566 # Check whether --enable-build-warnings was given.
16567 if test "${enable_build_warnings+set}" = set; then :
16568 enableval
=$enable_build_warnings; case "${enableval}" in
16570 no
) build_warnings
="-w";;
16571 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16572 build_warnings
="${build_warnings} ${t}";;
16573 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16574 build_warnings
="${t} ${build_warnings}";;
16575 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16577 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
16578 echo "Setting compiler warning flags = $build_warnings" 6>&1
16581 # Check whether --enable-gdb-build-warnings was given.
16582 if test "${enable_gdb_build_warnings+set}" = set; then :
16583 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
16585 no
) build_warnings
="-w";;
16586 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16587 build_warnings
="${build_warnings} ${t}";;
16588 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16589 build_warnings
="${t} ${build_warnings}";;
16590 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16592 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
16593 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
16597 # The set of warnings supported by a C++ compiler is not the same as
16598 # of the C compiler.
16600 ac_cpp
='$CXXCPP $CPPFLAGS'
16601 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16602 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16603 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
16607 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
16610 $as_echo_n "checking compiler warning flags... " >&6; }
16611 # Separate out the -Werror flag as some files just cannot be
16612 # compiled with it enabled.
16613 for w
in ${build_warnings}; do
16614 # GCC does not complain about -Wno-unknown-warning. Invert
16615 # and test -Wunknown-warning instead.
16618 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
16619 -Wformat-nonliteral)
16620 # gcc requires -Wformat before -Wformat-nonliteral
16621 # will work, so stick them together.
16630 -Werr*) WERROR_CFLAGS
=-Werror ;;
16632 # Check whether GCC accepts it.
16633 saved_CFLAGS
="$CFLAGS"
16634 CFLAGS
="$CFLAGS -Werror $wtest"
16635 saved_CXXFLAGS
="$CXXFLAGS"
16636 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
16637 if test "x$w" = "x-Wunused-variable"; then
16638 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
16639 # fixed in GCC 4.9. This test is derived from the gdb
16640 # source code that triggered this bug in GCC.
16641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16642 /* end confdefs.h. */
16643 struct scoped_restore_base {};
16644 struct scoped_restore_tmpl : public scoped_restore_base {
16645 ~scoped_restore_tmpl() {}
16650 const scoped_restore_base &b = scoped_restore_tmpl();
16655 if ac_fn_cxx_try_compile
"$LINENO"; then :
16656 WARN_CFLAGS
="${WARN_CFLAGS} $w"
16658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16661 /* end confdefs.h. */
16671 if ac_fn_cxx_try_compile
"$LINENO"; then :
16672 WARN_CFLAGS
="${WARN_CFLAGS} $w"
16674 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16676 CFLAGS
="$saved_CFLAGS"
16677 CXXFLAGS
="$saved_CXXFLAGS"
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
16681 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
16687 ac_cpp='$CPP $CPPFLAGS'
16688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16694 # Check whether --enable-ubsan was given.
16695 if test "${enable_ubsan+set}" = set; then :
16696 enableval=$enable_ubsan;
16701 if test "x
$enable_ubsan" = xauto; then
16702 if $development; then
16707 ac_cpp='$CXXCPP $CPPFLAGS'
16708 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16709 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16710 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16712 if test "x
$enable_ubsan" = xyes; then
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
-fsanitize=undefined is accepted
" >&5
16714 $as_echo_n "checking whether
-fsanitize=undefined is accepted...
" >&6; }
16715 saved_CXXFLAGS="$CXXFLAGS"
16716 CXXFLAGS="$CXXFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
16717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16718 /* end confdefs.h. */
16728 if ac_fn_cxx_try_link "$LINENO"; then :
16733 rm -f core conftest.err conftest.$ac_objext \
16734 conftest$ac_exeext conftest.$ac_ext
16735 CXXFLAGS="$saved_CXXFLAGS"
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $enable_ubsan" >&5
16737 $as_echo "$enable_ubsan" >&6; }
16738 if test "x
$enable_ubsan" = xyes; then
16739 WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
16740 CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined
"
16744 ac_cpp='$CPP $CPPFLAGS'
16745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16751 # In the Cygwin environment, we need some additional flags.
16752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
16753 $as_echo_n "checking
for cygwin...
" >&6; }
16754 if ${gdb_cv_os_cygwin+:} false; then :
16755 $as_echo_n "(cached
) " >&6
16757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16758 /* end confdefs.h. */
16760 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
16764 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
16765 $EGREP "^lose$
" >/dev/null 2>&1; then :
16766 gdb_cv_os_cygwin=yes
16768 gdb_cv_os_cygwin=no
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
16774 $as_echo "$gdb_cv_os_cygwin" >&6; }
16777 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
16779 *go32* ) SER_HARDWIRE=ser-go32.o ;;
16780 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
16781 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
16782 *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o
" ;;
16786 # libreadline needs libuser32.a in a cygwin environment
16788 if test x"$gdb_cv_os_cygwin" = xyes; then
16789 WIN32LIBS="-luser32"
16790 case "${target}" in
16791 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
16796 # The ser-tcp.c module requires sockets.
16797 # Note that WIN32APILIBS is set by GDB_AC_COMMON.
16798 WIN32LIBS="$WIN32LIBS $WIN32APILIBS"
16800 # Add ELF support to GDB, but only if BFD includes ELF support.
16803 OLD_LDFLAGS=$LDFLAGS
16805 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
16806 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
16807 # always want our bfd.
16808 CFLAGS="-I${srcdir}/..
/include
-I..
/bfd
-I${srcdir}/..
/bfd
$CFLAGS"
16809 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
16810 LDFLAGS="-L..
/bfd
-L..
/libiberty
$ZLIBDIR $LDFLAGS"
16811 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
16812 LIBS="-lbfd -liberty -lz $intl $LIBS"
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ELF support
in BFD
" >&5
16814 $as_echo_n "checking
for ELF support
in BFD...
" >&6; }
16815 if ${gdb_cv_var_elf+:} false; then :
16816 $as_echo_n "(cached
) " >&6
16818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16819 /* end confdefs.h. */
16820 #include <stdlib.h>
16822 #include "elf-bfd.h
"
16827 return bfd_get_elf_phdr_upper_bound (NULL);
16832 if ac_fn_c_try_link "$LINENO"; then :
16837 rm -f core conftest.err conftest.$ac_objext \
16838 conftest$ac_exeext conftest.$ac_ext
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_var_elf" >&5
16841 $as_echo "$gdb_cv_var_elf" >&6; }
16843 LDFLAGS=$OLD_LDFLAGS
16845 if test "$gdb_cv_var_elf" = yes; then
16846 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o
"
16848 $as_echo "#define HAVE_ELF 1" >>confdefs.h
16850 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
16851 if test "$plugins" = "yes"; then
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16853 $as_echo_n "checking for library containing dlopen... " >&6; }
16854 if ${ac_cv_search_dlopen+:} false
; then :
16855 $as_echo_n "(cached) " >&6
16857 ac_func_search_save_LIBS
=$LIBS
16858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16859 /* end confdefs.h. */
16861 /* Override any GCC internal prototype to avoid an error.
16862 Use char because int might match the return type of a GCC
16863 builtin and then its argument prototype would still apply. */
16876 for ac_lib
in '' dl
; do
16877 if test -z "$ac_lib"; then
16878 ac_res
="none required"
16881 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
16883 if ac_fn_c_try_link
"$LINENO"; then :
16884 ac_cv_search_dlopen
=$ac_res
16886 rm -f core conftest.err conftest.
$ac_objext \
16888 if ${ac_cv_search_dlopen+:} false
; then :
16892 if ${ac_cv_search_dlopen+:} false
; then :
16895 ac_cv_search_dlopen
=no
16897 rm conftest.
$ac_ext
16898 LIBS
=$ac_func_search_save_LIBS
16900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16901 $as_echo "$ac_cv_search_dlopen" >&6; }
16902 ac_res
=$ac_cv_search_dlopen
16903 if test "$ac_res" != no
; then :
16904 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
16911 # Add macho support to GDB, but only if BFD includes it.
16914 OLD_LDFLAGS
=$LDFLAGS
16916 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
16917 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
16918 # always want our bfd.
16919 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
16920 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
16921 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
16922 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
16923 LIBS
="-lbfd -liberty -lz $intl $LIBS"
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
16925 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
16926 if ${gdb_cv_var_macho+:} false
; then :
16927 $as_echo_n "(cached) " >&6
16929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16930 /* end confdefs.h. */
16931 #include <stdlib.h>
16933 #include "mach-o.h"
16938 return bfd_mach_o_lookup_command (NULL, 0, NULL);
16943 if ac_fn_c_try_link
"$LINENO"; then :
16944 gdb_cv_var_macho
=yes
16946 gdb_cv_var_macho
=no
16948 rm -f core conftest.err conftest.
$ac_objext \
16949 conftest
$ac_exeext conftest.
$ac_ext
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
16952 $as_echo "$gdb_cv_var_macho" >&6; }
16954 LDFLAGS
=$OLD_LDFLAGS
16956 if test "$gdb_cv_var_macho" = yes; then
16957 CONFIG_OBS
="$CONFIG_OBS machoread.o"
16960 # Add any host-specific objects to GDB.
16961 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
16963 # If building on ELF, look for lzma support for embedded compressed debug info.
16964 if test "$gdb_cv_var_elf" = yes; then
16966 # Check whether --with-lzma was given.
16967 if test "${with_lzma+set}" = set; then :
16968 withval
=$with_lzma;
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
16974 $as_echo_n "checking whether to use lzma... " >&6; }
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
16976 $as_echo "$with_lzma" >&6; }
16978 if test "${with_lzma}" != no
; then
16989 acl_save_prefix
="$prefix"
16990 prefix
="$acl_final_prefix"
16991 acl_save_exec_prefix
="$exec_prefix"
16992 exec_prefix
="$acl_final_exec_prefix"
16994 eval additional_includedir
=\"$includedir\"
16995 eval additional_libdir
=\"$libdir\"
16997 exec_prefix
="$acl_save_exec_prefix"
16998 prefix
="$acl_save_prefix"
17001 # Check whether --with-liblzma-prefix was given.
17002 if test "${with_liblzma_prefix+set}" = set; then :
17003 withval
=$with_liblzma_prefix;
17004 if test "X$withval" = "Xno"; then
17007 if test "X$withval" = "X"; then
17009 acl_save_prefix
="$prefix"
17010 prefix
="$acl_final_prefix"
17011 acl_save_exec_prefix
="$exec_prefix"
17012 exec_prefix
="$acl_final_exec_prefix"
17014 eval additional_includedir
=\"$includedir\"
17015 eval additional_libdir
=\"$libdir\"
17017 exec_prefix
="$acl_save_exec_prefix"
17018 prefix
="$acl_save_prefix"
17021 additional_includedir
="$withval/include"
17022 additional_libdir
="$withval/lib"
17029 # Check whether --with-liblzma-type was given.
17030 if test "${with_liblzma_type+set}" = set; then :
17031 withval
=$with_liblzma_type; with_liblzma_type
=$withval
17033 with_liblzma_type
=auto
17036 lib_type
=`eval echo \$with_liblzma_type`
17043 names_already_handled
=
17044 names_next_round
='lzma '
17045 while test -n "$names_next_round"; do
17046 names_this_round
="$names_next_round"
17048 for name
in $names_this_round; do
17050 for n
in $names_already_handled; do
17051 if test "$n" = "$name"; then
17052 already_handled
=yes
17056 if test -z "$already_handled"; then
17057 names_already_handled
="$names_already_handled $name"
17058 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17059 eval value
=\"\
$HAVE_LIB$uppername\"
17060 if test -n "$value"; then
17061 if test "$value" = yes; then
17062 eval value
=\"\
$LIB$uppername\"
17063 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
17064 eval value
=\"\
$LTLIB$uppername\"
17065 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
17074 if test $use_additional = yes; then
17075 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
17076 found_dir
="$additional_libdir"
17077 found_so
="$additional_libdir/lib$name.$shlibext"
17078 if test -f "$additional_libdir/lib$name.la"; then
17079 found_la
="$additional_libdir/lib$name.la"
17081 elif test x
$lib_type != xshared
; then
17082 if test -f "$additional_libdir/lib$name.$libext"; then
17083 found_dir
="$additional_libdir"
17084 found_a
="$additional_libdir/lib$name.$libext"
17085 if test -f "$additional_libdir/lib$name.la"; then
17086 found_la
="$additional_libdir/lib$name.la"
17091 if test "X$found_dir" = "X"; then
17092 for x
in $LDFLAGS $LTLIBLZMA; do
17094 acl_save_prefix
="$prefix"
17095 prefix
="$acl_final_prefix"
17096 acl_save_exec_prefix
="$exec_prefix"
17097 exec_prefix
="$acl_final_exec_prefix"
17099 exec_prefix
="$acl_save_exec_prefix"
17100 prefix
="$acl_save_prefix"
17104 dir
=`echo "X$x" | sed -e 's/^X-L//'`
17105 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
17107 found_so
="$dir/lib$name.$shlibext"
17108 if test -f "$dir/lib$name.la"; then
17109 found_la
="$dir/lib$name.la"
17111 elif test x
$lib_type != xshared
; then
17112 if test -f "$dir/lib$name.$libext"; then
17114 found_a
="$dir/lib$name.$libext"
17115 if test -f "$dir/lib$name.la"; then
17116 found_la
="$dir/lib$name.la"
17122 if test "X$found_dir" != "X"; then
17127 if test "X$found_dir" != "X"; then
17128 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
17129 if test "X$found_so" != "X"; then
17130 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
17131 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17134 for x
in $ltrpathdirs; do
17135 if test "X$x" = "X$found_dir"; then
17140 if test -z "$haveit"; then
17141 ltrpathdirs
="$ltrpathdirs $found_dir"
17143 if test "$hardcode_direct" = yes; then
17144 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17146 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
17147 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17149 for x
in $rpathdirs; do
17150 if test "X$x" = "X$found_dir"; then
17155 if test -z "$haveit"; then
17156 rpathdirs
="$rpathdirs $found_dir"
17160 for x
in $LDFLAGS $LIBLZMA; 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-L$found_dir"; then
17175 if test -z "$haveit"; then
17176 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
17178 if test "$hardcode_minus_L" != no
; then
17179 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
17181 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
17187 if test "X$found_a" != "X"; then
17188 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
17190 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
17193 additional_includedir
=
17194 case "$found_dir" in
17196 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17197 additional_includedir
="$basedir/include"
17200 if test "X$additional_includedir" != "X"; then
17201 if test "X$additional_includedir" != "X/usr/include"; then
17203 if test "X$additional_includedir" = "X/usr/local/include"; then
17204 if test -n "$GCC"; then
17206 linux
*) haveit
=yes;;
17210 if test -z "$haveit"; then
17211 for x
in $CPPFLAGS $INCLZMA; do
17213 acl_save_prefix
="$prefix"
17214 prefix
="$acl_final_prefix"
17215 acl_save_exec_prefix
="$exec_prefix"
17216 exec_prefix
="$acl_final_exec_prefix"
17218 exec_prefix
="$acl_save_exec_prefix"
17219 prefix
="$acl_save_prefix"
17221 if test "X$x" = "X-I$additional_includedir"; then
17226 if test -z "$haveit"; then
17227 if test -d "$additional_includedir"; then
17228 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
17234 if test -n "$found_la"; then
17235 save_libdir
="$libdir"
17236 case "$found_la" in
17237 */* |
*\\*) .
"$found_la" ;;
17238 *) .
"./$found_la" ;;
17240 libdir
="$save_libdir"
17241 for dep
in $dependency_libs; do
17244 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
17245 if test "X$additional_libdir" != "X/usr/lib"; then
17247 if test "X$additional_libdir" = "X/usr/local/lib"; then
17248 if test -n "$GCC"; then
17250 linux
*) haveit
=yes;;
17254 if test -z "$haveit"; then
17256 for x
in $LDFLAGS $LIBLZMA; do
17258 acl_save_prefix
="$prefix"
17259 prefix
="$acl_final_prefix"
17260 acl_save_exec_prefix
="$exec_prefix"
17261 exec_prefix
="$acl_final_exec_prefix"
17263 exec_prefix
="$acl_save_exec_prefix"
17264 prefix
="$acl_save_prefix"
17266 if test "X$x" = "X-L$additional_libdir"; then
17271 if test -z "$haveit"; then
17272 if test -d "$additional_libdir"; then
17273 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
17277 for x
in $LDFLAGS $LTLIBLZMA; do
17279 acl_save_prefix
="$prefix"
17280 prefix
="$acl_final_prefix"
17281 acl_save_exec_prefix
="$exec_prefix"
17282 exec_prefix
="$acl_final_exec_prefix"
17284 exec_prefix
="$acl_save_exec_prefix"
17285 prefix
="$acl_save_prefix"
17287 if test "X$x" = "X-L$additional_libdir"; then
17292 if test -z "$haveit"; then
17293 if test -d "$additional_libdir"; then
17294 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
17301 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
17302 if test "$enable_rpath" != no
; then
17304 for x
in $rpathdirs; do
17305 if test "X$x" = "X$dir"; then
17310 if test -z "$haveit"; then
17311 rpathdirs
="$rpathdirs $dir"
17314 for x
in $ltrpathdirs; do
17315 if test "X$x" = "X$dir"; then
17320 if test -z "$haveit"; then
17321 ltrpathdirs
="$ltrpathdirs $dir"
17326 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17329 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17332 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
17333 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
17339 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
17340 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
17341 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
17343 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l:lib$name.$libext"
17344 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l:lib$name.$libext"
17351 if test "X$rpathdirs" != "X"; then
17352 if test -n "$hardcode_libdir_separator"; then
17354 for found_dir
in $rpathdirs; do
17355 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17357 acl_save_libdir
="$libdir"
17359 eval flag
=\"$hardcode_libdir_flag_spec\"
17360 libdir
="$acl_save_libdir"
17361 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
17363 for found_dir
in $rpathdirs; do
17364 acl_save_libdir
="$libdir"
17365 libdir
="$found_dir"
17366 eval flag
=\"$hardcode_libdir_flag_spec\"
17367 libdir
="$acl_save_libdir"
17368 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
17372 if test "X$ltrpathdirs" != "X"; then
17373 for found_dir
in $ltrpathdirs; do
17374 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
17379 ac_save_CPPFLAGS
="$CPPFLAGS"
17381 for element
in $INCLZMA; do
17383 for x
in $CPPFLAGS; do
17385 acl_save_prefix
="$prefix"
17386 prefix
="$acl_final_prefix"
17387 acl_save_exec_prefix
="$exec_prefix"
17388 exec_prefix
="$acl_final_exec_prefix"
17390 exec_prefix
="$acl_save_exec_prefix"
17391 prefix
="$acl_save_prefix"
17393 if test "X$x" = "X$element"; then
17398 if test -z "$haveit"; then
17399 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
17404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
17405 $as_echo_n "checking for liblzma... " >&6; }
17406 if ${ac_cv_liblzma+:} false
; then :
17407 $as_echo_n "(cached) " >&6
17410 ac_save_LIBS
="$LIBS"
17411 LIBS
="$LIBS $LIBLZMA"
17412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17413 /* end confdefs.h. */
17418 lzma_index_iter iter;
17419 lzma_index_iter_init (&iter, 0);
17420 lzma_mf_is_supported (LZMA_MF_HC3);
17425 if ac_fn_c_try_link
"$LINENO"; then :
17430 rm -f core conftest.err conftest.
$ac_objext \
17431 conftest
$ac_exeext conftest.
$ac_ext
17432 LIBS
="$ac_save_LIBS"
17435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
17436 $as_echo "$ac_cv_liblzma" >&6; }
17437 if test "$ac_cv_liblzma" = yes; then
17440 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
17443 $as_echo_n "checking how to link with liblzma... " >&6; }
17444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
17445 $as_echo "$LIBLZMA" >&6; }
17448 CPPFLAGS
="$ac_save_CPPFLAGS"
17458 if test "$HAVE_LIBLZMA" != yes; then
17459 if test "$with_lzma" = yes; then
17460 as_fn_error $?
"missing liblzma for --with-lzma" "$LINENO" 5
17466 LIBGUI
="../libgui/src/libgui.a"
17467 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
17476 *-*-cygwin* |
*-*-mingw* )
17485 if test "${enable_gdbtk}" = "yes"; then
17487 # Gdbtk must have an absolute path to srcdir in order to run
17488 # properly when not installed.
17491 GDBTK_SRC_DIR
=`pwd`
17496 # Ok, lets find the tcl configuration
17497 # First, look for one uninstalled.
17498 # the alternative search directory is invoked by --with-tcl
17501 if test x
"${no_tcl}" = x
; then
17502 # we reset no_tcl in case something fails here
17505 # Check whether --with-tcl was given.
17506 if test "${with_tcl+set}" = set; then :
17507 withval
=$with_tcl; with_tclconfig
=${withval}
17510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
17511 $as_echo_n "checking for Tcl configuration... " >&6; }
17512 if ${ac_cv_c_tclconfig+:} false
; then :
17513 $as_echo_n "(cached) " >&6
17517 # First check to see if --with-tcl was specified.
17519 *-*-cygwin*) platDir
="win" ;;
17520 *) platDir
="unix" ;;
17522 if test x
"${with_tclconfig}" != x
; then
17523 if test -f "${with_tclconfig}/tclConfig.sh" ; then
17524 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
17526 as_fn_error $?
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
17530 # then check for a private Tcl installation
17531 if test x
"${ac_cv_c_tclconfig}" = x
; then
17534 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17535 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
17536 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
17538 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17539 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
17540 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
17542 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17543 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
17544 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
17545 if test -f "$i/$platDir/tclConfig.sh" ; then
17546 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
17552 # on Darwin, check in Framework installation locations
17553 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
17554 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
17555 `ls -d /Library/Frameworks 2>/dev/null` \
17556 `ls -d /Network/Library/Frameworks 2>/dev/null` \
17557 `ls -d /System/Library/Frameworks 2>/dev/null` \
17559 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
17560 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
17566 # check in a few common install locations
17567 if test x
"${ac_cv_c_tclconfig}" = x
; then
17568 for i
in `ls -d ${libdir} 2>/dev/null` \
17569 `ls -d ${exec_prefix}/lib 2>/dev/null` \
17570 `ls -d ${prefix}/lib 2>/dev/null` \
17571 `ls -d /usr/local/lib 2>/dev/null` \
17572 `ls -d /usr/contrib/lib 2>/dev/null` \
17573 `ls -d /usr/lib 2>/dev/null` \
17575 if test -f "$i/tclConfig.sh" ; then
17576 ac_cv_c_tclconfig
=`(cd $i; pwd)`
17582 # check in a few other private locations
17583 if test x
"${ac_cv_c_tclconfig}" = x
; then
17586 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17587 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
17588 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
17589 if test -f "$i/$platDir/tclConfig.sh" ; then
17590 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
17599 if test x
"${ac_cv_c_tclconfig}" = x
; then
17600 TCL_BIN_DIR
="# no Tcl configs found"
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
17602 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
17605 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
17607 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
17612 # If $no_tk is nonempty, then we can't do Tk, and there is no
17613 # point to doing Tcl.
17616 # Ok, lets find the tk configuration
17617 # First, look for one uninstalled.
17618 # the alternative search directory is invoked by --with-tk
17621 if test x
"${no_tk}" = x
; then
17622 # we reset no_tk in case something fails here
17625 # Check whether --with-tk was given.
17626 if test "${with_tk+set}" = set; then :
17627 withval
=$with_tk; with_tkconfig
=${withval}
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
17631 $as_echo_n "checking for Tk configuration... " >&6; }
17632 if ${ac_cv_c_tkconfig+:} false
; then :
17633 $as_echo_n "(cached) " >&6
17637 # First check to see if --with-tkconfig was specified.
17638 if test x
"${with_tkconfig}" != x
; then
17639 if test -f "${with_tkconfig}/tkConfig.sh" ; then
17640 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
17642 as_fn_error $?
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
17646 # then check for a private Tk library
17648 *-*-cygwin*) platDir
="win" ;;
17649 *) platDir
="unix" ;;
17651 if test x
"${ac_cv_c_tkconfig}" = x
; then
17654 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17655 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
17656 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
17658 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17659 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
17660 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
17662 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17663 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
17664 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
17665 if test -f "$i/$platDir/tkConfig.sh" ; then
17666 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
17672 # on Darwin, check in Framework installation locations
17673 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
17674 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
17675 `ls -d /Library/Frameworks 2>/dev/null` \
17676 `ls -d /Network/Library/Frameworks 2>/dev/null` \
17677 `ls -d /System/Library/Frameworks 2>/dev/null` \
17679 if test -f "$i/Tk.framework/tkConfig.sh" ; then
17680 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
17686 # check in a few common install locations
17687 if test x
"${ac_cv_c_tkconfig}" = x
; then
17688 for i
in `ls -d ${libdir} 2>/dev/null` \
17689 `ls -d ${exec_prefix}/lib 2>/dev/null` \
17690 `ls -d ${prefix}/lib 2>/dev/null` \
17691 `ls -d /usr/local/lib 2>/dev/null` \
17692 `ls -d /usr/contrib/lib 2>/dev/null` \
17693 `ls -d /usr/lib 2>/dev/null` \
17695 if test -f "$i/tkConfig.sh" ; then
17696 ac_cv_c_tkconfig
=`(cd $i; pwd)`
17701 # check in a few other private locations
17702 if test x
"${ac_cv_c_tkconfig}" = x
; then
17705 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17706 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
17707 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
17708 if test -f "$i/$platDir/tkConfig.sh" ; then
17709 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
17718 if test x
"${ac_cv_c_tkconfig}" = x
; then
17719 TK_BIN_DIR
="# no Tk configs found"
17720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
17721 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
17724 TK_BIN_DIR
=${ac_cv_c_tkconfig}
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
17726 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
17731 if test -z "${no_tcl}" -a -z "${no_tk}"; then
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
17734 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
17736 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
17738 $as_echo "loading" >&6; }
17739 .
${TCL_BIN_DIR}/tclConfig.sh
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
17742 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
17745 # eval is required to do the TCL_DBGX substitution
17746 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
17747 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
17749 # If the TCL_BIN_DIR is the build directory (not the install directory),
17750 # then set the common variable name to the value of the build variables.
17751 # For example, the variable TCL_LIB_SPEC will be set to the value
17752 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
17753 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
17754 # installed and uninstalled version of Tcl.
17755 if test -f "${TCL_BIN_DIR}/Makefile" ; then
17756 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
17757 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
17758 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
17759 elif test "`uname -s`" = "Darwin"; then
17760 # If Tcl was built as a framework, attempt to use the libraries
17761 # from the framework at the given location so that linking works
17762 # against Tcl.framework installed in an arbitrary location.
17763 case ${TCL_DEFS} in
17765 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
17766 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
17767 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
17768 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
17769 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
17774 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
17775 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
17776 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
17782 # eval is required to do the TCL_DBGX substitution
17783 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
17784 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
17785 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
17786 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
17802 # Check for in-tree tcl
17809 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
17813 # Find Tcl private headers
17814 if test x
"${intree}" = xno
; then
17816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
17817 $as_echo_n "checking for Tcl private headers... " >&6; }
17819 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
17820 if test -f ${dir}/tclInt.h
; then
17824 if test x
"${private_dir}" = x
; then
17825 as_fn_error $?
"could not find private Tcl headers" "$LINENO" 5
17827 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
17829 $as_echo "${private_dir}" >&6; }
17832 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
17833 TCL_LIBRARY
="${TCL_LIB_SPEC}"
17836 # If building tcl in the same src tree, private headers
17837 # are not needed, but we need to be sure to use the right
17839 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
17840 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
17841 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
17849 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
17851 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
17852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
17853 $as_echo "loading" >&6; }
17854 .
${TK_BIN_DIR}/tkConfig.sh
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
17857 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
17860 # eval is required to do the TK_DBGX substitution
17861 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
17862 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
17864 # If the TK_BIN_DIR is the build directory (not the install directory),
17865 # then set the common variable name to the value of the build variables.
17866 # For example, the variable TK_LIB_SPEC will be set to the value
17867 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
17868 # instead of TK_BUILD_LIB_SPEC since it will work with both an
17869 # installed and uninstalled version of Tcl.
17870 if test -f "${TK_BIN_DIR}/Makefile" ; then
17871 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
17872 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
17873 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
17874 elif test "`uname -s`" = "Darwin"; then
17875 # If Tk was built as a framework, attempt to use the libraries
17876 # from the framework at the given location so that linking works
17877 # against Tk.framework installed in an arbitrary location.
17880 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
17881 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
17882 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
17883 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
17884 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
17889 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
17890 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
17891 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
17897 # eval is required to do the TK_DBGX substitution
17898 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
17899 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
17900 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
17901 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
17916 # Check for in-tree Tk
17918 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
17922 # Find Tk private headers
17923 if test x
"${intree}" = xno
; then
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
17926 $as_echo_n "checking for Tk private headers... " >&6; }
17928 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
17929 if test -f ${dir}/tkInt.h
; then
17933 if test x
"${private_dir}" = x
; then
17934 as_fn_error $?
"could not find Tk private headers" "$LINENO" 5
17936 TK_PRIVATE_INCLUDE
="-I${private_dir}"
17937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
17938 $as_echo "${private_dir}" >&6; }
17941 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
17942 TK_LIBRARY
=${TK_LIB_SPEC}
17945 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
17946 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
17947 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
17954 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
17956 # Include some libraries that Tcl and Tk want.
17957 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
17958 # Yes, the ordering seems wrong here. But it isn't.
17959 # TK_LIBS is the list of libraries that need to be linked
17960 # after Tcl/Tk. Note that this isn't put into LIBS. If it
17961 # were in LIBS then any link tests after this point would
17962 # try to include things like `$(LIBGUI)', which wouldn't work.
17963 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
17965 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
17966 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
17967 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
17968 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
17969 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
17970 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
17971 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
17973 if test x
"$gdb_cv_os_cygwin" = xyes
; then
17974 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
17975 WIN32LDAPP
="-Wl,--subsystem,console"
17976 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
17979 subdirs
="$subdirs gdbtk"
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
17992 $as_echo_n "checking for X... " >&6; }
17995 # Check whether --with-x was given.
17996 if test "${with_x+set}" = set; then :
18000 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18001 if test "x$with_x" = xno
; then
18002 # The user explicitly disabled X.
18005 case $x_includes,$x_libraries in #(
18006 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
18007 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
18008 $as_echo_n "(cached) " >&6
18010 # One or both of the vars are not set, and there is no cached value.
18011 ac_x_includes
=no ac_x_libraries
=no
18012 rm -f -r conftest.dir
18013 if mkdir conftest.dir
; then
18015 cat >Imakefile
<<'_ACEOF'
18017 @echo incroot='${INCROOT}'
18019 @echo usrlibdir='${USRLIBDIR}'
18021 @echo libdir='${LIBDIR}'
18023 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
18024 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
18025 for ac_var
in incroot usrlibdir libdir
; do
18026 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18028 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18029 for ac_extension
in a so sl dylib la dll
; do
18030 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18031 test -f "$ac_im_libdir/libX11.$ac_extension"; then
18032 ac_im_usrlibdir
=$ac_im_libdir; break
18035 # Screen out bogus values from the imake configuration. They are
18036 # bogus both because they are the default anyway, and because
18037 # using them would break gcc on systems where it needs fixed includes.
18038 case $ac_im_incroot in
18039 /usr
/include
) ac_x_includes
= ;;
18040 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
18042 case $ac_im_usrlibdir in
18043 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
18044 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
18048 rm -f -r conftest.dir
18051 # Standard set of common directories for X headers.
18052 # Check X11 before X11Rn because it is often a symlink to the current release.
18066 /usr/local/X11/include
18067 /usr/local/X11R7/include
18068 /usr/local/X11R6/include
18069 /usr/local/X11R5/include
18070 /usr/local/X11R4/include
18072 /usr/local/include/X11
18073 /usr/local/include/X11R7
18074 /usr/local/include/X11R6
18075 /usr/local/include/X11R5
18076 /usr/local/include/X11R4
18080 /usr/XFree86/include/X11
18084 /usr/unsupported/include
18085 /usr/athena/include
18086 /usr/local/x11r5/include
18087 /usr/lpp/Xamples/include
18089 /usr/openwin/include
18090 /usr/openwin/share/include'
18092 if test "$ac_x_includes" = no
; then
18093 # Guess where to find include files, by looking for Xlib.h.
18094 # First, try using that file with no special directory specified.
18095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18096 /* end confdefs.h. */
18097 #include <X11/Xlib.h>
18099 if ac_fn_c_try_cpp
"$LINENO"; then :
18100 # We can compile using X headers with no special include directory.
18103 for ac_dir
in $ac_x_header_dirs; do
18104 if test -r "$ac_dir/X11/Xlib.h"; then
18105 ac_x_includes
=$ac_dir
18110 rm -f conftest.err conftest.i conftest.
$ac_ext
18111 fi # $ac_x_includes = no
18113 if test "$ac_x_libraries" = no
; then
18114 # Check for the libraries.
18115 # See if we find them without any special options.
18116 # Don't add to $LIBS permanently.
18119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18120 /* end confdefs.h. */
18121 #include <X11/Xlib.h>
18130 if ac_fn_c_try_link
"$LINENO"; then :
18132 # We can link X programs with no special library path.
18136 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18138 # Don't even attempt the hair of trying to link an X program!
18139 for ac_extension
in a so sl dylib la dll
; do
18140 if test -r "$ac_dir/libX11.$ac_extension"; then
18141 ac_x_libraries
=$ac_dir
18147 rm -f core conftest.err conftest.
$ac_objext \
18148 conftest
$ac_exeext conftest.
$ac_ext
18149 fi # $ac_x_libraries = no
18151 case $ac_x_includes,$ac_x_libraries in #(
18152 no
,* |
*,no |
*\'*)
18153 # Didn't find X, or a directory has "'" in its name.
18154 ac_cv_have_x
="have_x=no";; #(
18156 # Record where we found X for the cache.
18157 ac_cv_have_x
="have_x=yes\
18158 ac_x_includes='$ac_x_includes'\
18159 ac_x_libraries='$ac_x_libraries'"
18165 eval "$ac_cv_have_x"
18168 if test "$have_x" != yes; then
18169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
18170 $as_echo "$have_x" >&6; }
18173 # If each of the values was on the command line, it overrides each guess.
18174 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
18175 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
18176 # Update the cache value to reflect the command line values.
18177 ac_cv_have_x
="have_x=yes\
18178 ac_x_includes='$x_includes'\
18179 ac_x_libraries='$x_libraries'"
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
18181 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
18185 # Unlike the sim directory, whether a simulator is linked is controlled by
18186 # presence of a gdb_sim definition in the target configure.tgt entry.
18187 # This code just checks for a few cases where we'd like to ignore those
18188 # definitions, even when they're present in the '.mt' file. These cases
18189 # are when --disable-sim is specified, or if the simulator directory is
18190 # not part of the source tree.
18192 # Check whether --enable-sim was given.
18193 if test "${enable_sim+set}" = set; then :
18194 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
18195 echo "enableval = ${enableval}";
18196 case "${enableval}" in
18197 yes) ignore_sim
=false
;;
18198 no
) ignore_sim
=true
;;
18199 *) ignore_sim
=false
;;
18206 if test ! -d "${srcdir}/../sim"; then
18212 if test "${ignore_sim}" = "false"; then
18213 if test x
"${gdb_sim}" != x
; then
18215 SIM_OBS
="remote-sim.o"
18217 $as_echo "#define WITH_SIM 1" >>confdefs.h
18220 # Some tdep code should only be compiled in when the ppc sim is
18221 # built. PR sim/13418.
18225 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
18245 # List of host floatformats.
18247 cat >>confdefs.h
<<_ACEOF
18248 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
18252 cat >>confdefs.h
<<_ACEOF
18253 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
18257 cat >>confdefs.h
<<_ACEOF
18258 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
18262 # target_subdir is used by the testsuite to find the target libraries.
18264 if test "${host}" != "${target}"; then
18265 target_subdir
="${target_alias}/"
18269 # Import nat definitions.
18270 nat_makefile_frag
=/dev
/null
18271 if test "${gdb_native}" = "yes"; then
18272 .
${srcdir}/configure.nat
18273 nativefile
=$NAT_FILE
18286 if test x
"${gdb_osabi}" != x
; then
18288 cat >>confdefs.h
<<_ACEOF
18289 #define GDB_OSABI_DEFAULT $gdb_osabi
18294 # Check for babeltrace and babeltrace-ctf
18296 # Check whether --with-babeltrace was given.
18297 if test "${with_babeltrace+set}" = set; then :
18298 withval
=$with_babeltrace;
18300 with_babeltrace
=auto
18303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
18304 $as_echo_n "checking whether to use babeltrace... " >&6; }
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
18306 $as_echo "$with_babeltrace" >&6; }
18308 if test "x$with_babeltrace" = "xno"; then
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
18310 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
18312 # Append -Werror to CFLAGS so that configure can catch the warning
18313 # "assignment from incompatible pointer type", which is related to
18314 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
18315 # in GDB, while babeltrace 1.0.3 is broken.
18316 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
18317 # safe to save and restore CFLAGS here.
18318 saved_CFLAGS
=$CFLAGS
18319 CFLAGS
="$CFLAGS -Werror"
18330 acl_save_prefix
="$prefix"
18331 prefix
="$acl_final_prefix"
18332 acl_save_exec_prefix
="$exec_prefix"
18333 exec_prefix
="$acl_final_exec_prefix"
18335 eval additional_includedir
=\"$includedir\"
18336 eval additional_libdir
=\"$libdir\"
18338 exec_prefix
="$acl_save_exec_prefix"
18339 prefix
="$acl_save_prefix"
18342 # Check whether --with-libbabeltrace-prefix was given.
18343 if test "${with_libbabeltrace_prefix+set}" = set; then :
18344 withval
=$with_libbabeltrace_prefix;
18345 if test "X$withval" = "Xno"; then
18348 if test "X$withval" = "X"; then
18350 acl_save_prefix
="$prefix"
18351 prefix
="$acl_final_prefix"
18352 acl_save_exec_prefix
="$exec_prefix"
18353 exec_prefix
="$acl_final_exec_prefix"
18355 eval additional_includedir
=\"$includedir\"
18356 eval additional_libdir
=\"$libdir\"
18358 exec_prefix
="$acl_save_exec_prefix"
18359 prefix
="$acl_save_prefix"
18362 additional_includedir
="$withval/include"
18363 additional_libdir
="$withval/lib"
18370 # Check whether --with-libbabeltrace-type was given.
18371 if test "${with_libbabeltrace_type+set}" = set; then :
18372 withval
=$with_libbabeltrace_type; with_libbabeltrace_type
=$withval
18374 with_libbabeltrace_type
=auto
18377 lib_type
=`eval echo \$with_libbabeltrace_type`
18384 names_already_handled
=
18385 names_next_round
='babeltrace babeltrace-ctf'
18386 while test -n "$names_next_round"; do
18387 names_this_round
="$names_next_round"
18389 for name
in $names_this_round; do
18391 for n
in $names_already_handled; do
18392 if test "$n" = "$name"; then
18393 already_handled
=yes
18397 if test -z "$already_handled"; then
18398 names_already_handled
="$names_already_handled $name"
18399 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18400 eval value
=\"\
$HAVE_LIB$uppername\"
18401 if test -n "$value"; then
18402 if test "$value" = yes; then
18403 eval value
=\"\
$LIB$uppername\"
18404 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
18405 eval value
=\"\
$LTLIB$uppername\"
18406 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
18415 if test $use_additional = yes; then
18416 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18417 found_dir
="$additional_libdir"
18418 found_so
="$additional_libdir/lib$name.$shlibext"
18419 if test -f "$additional_libdir/lib$name.la"; then
18420 found_la
="$additional_libdir/lib$name.la"
18422 elif test x
$lib_type != xshared
; then
18423 if test -f "$additional_libdir/lib$name.$libext"; then
18424 found_dir
="$additional_libdir"
18425 found_a
="$additional_libdir/lib$name.$libext"
18426 if test -f "$additional_libdir/lib$name.la"; then
18427 found_la
="$additional_libdir/lib$name.la"
18432 if test "X$found_dir" = "X"; then
18433 for x
in $LDFLAGS $LTLIBBABELTRACE; do
18435 acl_save_prefix
="$prefix"
18436 prefix
="$acl_final_prefix"
18437 acl_save_exec_prefix
="$exec_prefix"
18438 exec_prefix
="$acl_final_exec_prefix"
18440 exec_prefix
="$acl_save_exec_prefix"
18441 prefix
="$acl_save_prefix"
18445 dir
=`echo "X$x" | sed -e 's/^X-L//'`
18446 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18448 found_so
="$dir/lib$name.$shlibext"
18449 if test -f "$dir/lib$name.la"; then
18450 found_la
="$dir/lib$name.la"
18452 elif test x
$lib_type != xshared
; then
18453 if test -f "$dir/lib$name.$libext"; then
18455 found_a
="$dir/lib$name.$libext"
18456 if test -f "$dir/lib$name.la"; then
18457 found_la
="$dir/lib$name.la"
18463 if test "X$found_dir" != "X"; then
18468 if test "X$found_dir" != "X"; then
18469 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
18470 if test "X$found_so" != "X"; then
18471 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
18472 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18475 for x
in $ltrpathdirs; do
18476 if test "X$x" = "X$found_dir"; then
18481 if test -z "$haveit"; then
18482 ltrpathdirs
="$ltrpathdirs $found_dir"
18484 if test "$hardcode_direct" = yes; then
18485 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18487 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
18488 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18490 for x
in $rpathdirs; do
18491 if test "X$x" = "X$found_dir"; then
18496 if test -z "$haveit"; then
18497 rpathdirs
="$rpathdirs $found_dir"
18501 for x
in $LDFLAGS $LIBBABELTRACE; 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-L$found_dir"; then
18516 if test -z "$haveit"; then
18517 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
18519 if test "$hardcode_minus_L" != no
; then
18520 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18522 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
18528 if test "X$found_a" != "X"; then
18529 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
18531 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
18534 additional_includedir
=
18535 case "$found_dir" in
18537 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18538 additional_includedir
="$basedir/include"
18541 if test "X$additional_includedir" != "X"; then
18542 if test "X$additional_includedir" != "X/usr/include"; then
18544 if test "X$additional_includedir" = "X/usr/local/include"; then
18545 if test -n "$GCC"; then
18547 linux
*) haveit
=yes;;
18551 if test -z "$haveit"; then
18552 for x
in $CPPFLAGS $INCBABELTRACE; do
18554 acl_save_prefix
="$prefix"
18555 prefix
="$acl_final_prefix"
18556 acl_save_exec_prefix
="$exec_prefix"
18557 exec_prefix
="$acl_final_exec_prefix"
18559 exec_prefix
="$acl_save_exec_prefix"
18560 prefix
="$acl_save_prefix"
18562 if test "X$x" = "X-I$additional_includedir"; then
18567 if test -z "$haveit"; then
18568 if test -d "$additional_includedir"; then
18569 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
18575 if test -n "$found_la"; then
18576 save_libdir
="$libdir"
18577 case "$found_la" in
18578 */* |
*\\*) .
"$found_la" ;;
18579 *) .
"./$found_la" ;;
18581 libdir
="$save_libdir"
18582 for dep
in $dependency_libs; do
18585 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
18586 if test "X$additional_libdir" != "X/usr/lib"; then
18588 if test "X$additional_libdir" = "X/usr/local/lib"; then
18589 if test -n "$GCC"; then
18591 linux
*) haveit
=yes;;
18595 if test -z "$haveit"; then
18597 for x
in $LDFLAGS $LIBBABELTRACE; do
18599 acl_save_prefix
="$prefix"
18600 prefix
="$acl_final_prefix"
18601 acl_save_exec_prefix
="$exec_prefix"
18602 exec_prefix
="$acl_final_exec_prefix"
18604 exec_prefix
="$acl_save_exec_prefix"
18605 prefix
="$acl_save_prefix"
18607 if test "X$x" = "X-L$additional_libdir"; then
18612 if test -z "$haveit"; then
18613 if test -d "$additional_libdir"; then
18614 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
18618 for x
in $LDFLAGS $LTLIBBABELTRACE; do
18620 acl_save_prefix
="$prefix"
18621 prefix
="$acl_final_prefix"
18622 acl_save_exec_prefix
="$exec_prefix"
18623 exec_prefix
="$acl_final_exec_prefix"
18625 exec_prefix
="$acl_save_exec_prefix"
18626 prefix
="$acl_save_prefix"
18628 if test "X$x" = "X-L$additional_libdir"; then
18633 if test -z "$haveit"; then
18634 if test -d "$additional_libdir"; then
18635 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
18642 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
18643 if test "$enable_rpath" != no
; then
18645 for x
in $rpathdirs; do
18646 if test "X$x" = "X$dir"; then
18651 if test -z "$haveit"; then
18652 rpathdirs
="$rpathdirs $dir"
18655 for x
in $ltrpathdirs; do
18656 if test "X$x" = "X$dir"; then
18661 if test -z "$haveit"; then
18662 ltrpathdirs
="$ltrpathdirs $dir"
18667 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18670 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18673 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
18674 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
18680 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
18681 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
18682 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
18684 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l:lib$name.$libext"
18685 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l:lib$name.$libext"
18692 if test "X$rpathdirs" != "X"; then
18693 if test -n "$hardcode_libdir_separator"; then
18695 for found_dir
in $rpathdirs; do
18696 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18698 acl_save_libdir
="$libdir"
18700 eval flag
=\"$hardcode_libdir_flag_spec\"
18701 libdir
="$acl_save_libdir"
18702 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
18704 for found_dir
in $rpathdirs; do
18705 acl_save_libdir
="$libdir"
18706 libdir
="$found_dir"
18707 eval flag
=\"$hardcode_libdir_flag_spec\"
18708 libdir
="$acl_save_libdir"
18709 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
18713 if test "X$ltrpathdirs" != "X"; then
18714 for found_dir
in $ltrpathdirs; do
18715 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
18720 ac_save_CPPFLAGS
="$CPPFLAGS"
18722 for element
in $INCBABELTRACE; do
18724 for x
in $CPPFLAGS; do
18726 acl_save_prefix
="$prefix"
18727 prefix
="$acl_final_prefix"
18728 acl_save_exec_prefix
="$exec_prefix"
18729 exec_prefix
="$acl_final_exec_prefix"
18731 exec_prefix
="$acl_save_exec_prefix"
18732 prefix
="$acl_save_prefix"
18734 if test "X$x" = "X$element"; then
18739 if test -z "$haveit"; then
18740 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
18745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
18746 $as_echo_n "checking for libbabeltrace... " >&6; }
18747 if ${ac_cv_libbabeltrace+:} false
; then :
18748 $as_echo_n "(cached) " >&6
18751 ac_save_LIBS
="$LIBS"
18752 LIBS
="$LIBS $LIBBABELTRACE"
18753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18754 /* end confdefs.h. */
18755 #include <babeltrace/babeltrace.h>
18756 #include <babeltrace/ctf/events.h>
18757 #include <babeltrace/ctf/iterator.h>
18761 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
18762 struct bt_ctf_event *event = NULL;
18763 const struct bt_definition *scope;
18765 pos->type = BT_SEEK_BEGIN;
18766 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
18767 scope = bt_ctf_get_top_level_scope (event,
18768 BT_STREAM_EVENT_HEADER);
18769 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
18775 if ac_fn_c_try_link
"$LINENO"; then :
18776 ac_cv_libbabeltrace
=yes
18778 ac_cv_libbabeltrace
=no
18780 rm -f core conftest.err conftest.
$ac_objext \
18781 conftest
$ac_exeext conftest.
$ac_ext
18782 LIBS
="$ac_save_LIBS"
18785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
18786 $as_echo "$ac_cv_libbabeltrace" >&6; }
18787 if test "$ac_cv_libbabeltrace" = yes; then
18788 HAVE_LIBBABELTRACE
=yes
18790 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
18792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
18793 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
18794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
18795 $as_echo "$LIBBABELTRACE" >&6; }
18797 HAVE_LIBBABELTRACE
=no
18798 CPPFLAGS
="$ac_save_CPPFLAGS"
18808 CFLAGS
=$saved_CFLAGS
18810 if test "$HAVE_LIBBABELTRACE" != yes; then
18811 if test "$with_babeltrace" = yes; then
18812 as_fn_error $?
"babeltrace is missing or unusable" "$LINENO" 5
18814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
18815 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
18822 # Check whether --with-xxhash was given.
18823 if test "${with_xxhash+set}" = set; then :
18824 withval
=$with_xxhash;
18830 # Check whether --enable-libctf was given.
18831 if test "${enable_libctf+set}" = set; then :
18832 enableval
=$enable_libctf;
18833 case "$enableval" in
18835 *) as_fn_error $?
"Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
18843 if test x
${enable_static} = xno
; then
18844 LIBCTF
="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so"
18845 CTF_DEPS
="../libctf/.libs/libctf.so"
18847 LIBCTF
="../libctf/.libs/libctf.a"
18850 if test "${enable_libctf}" = yes; then
18852 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
18862 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
18865 if test "x$with_xxhash" != "xno"; then
18876 acl_save_prefix
="$prefix"
18877 prefix
="$acl_final_prefix"
18878 acl_save_exec_prefix
="$exec_prefix"
18879 exec_prefix
="$acl_final_exec_prefix"
18881 eval additional_includedir
=\"$includedir\"
18882 eval additional_libdir
=\"$libdir\"
18884 exec_prefix
="$acl_save_exec_prefix"
18885 prefix
="$acl_save_prefix"
18888 # Check whether --with-libxxhash-prefix was given.
18889 if test "${with_libxxhash_prefix+set}" = set; then :
18890 withval
=$with_libxxhash_prefix;
18891 if test "X$withval" = "Xno"; then
18894 if test "X$withval" = "X"; then
18896 acl_save_prefix
="$prefix"
18897 prefix
="$acl_final_prefix"
18898 acl_save_exec_prefix
="$exec_prefix"
18899 exec_prefix
="$acl_final_exec_prefix"
18901 eval additional_includedir
=\"$includedir\"
18902 eval additional_libdir
=\"$libdir\"
18904 exec_prefix
="$acl_save_exec_prefix"
18905 prefix
="$acl_save_prefix"
18908 additional_includedir
="$withval/include"
18909 additional_libdir
="$withval/lib"
18916 # Check whether --with-libxxhash-type was given.
18917 if test "${with_libxxhash_type+set}" = set; then :
18918 withval
=$with_libxxhash_type; with_libxxhash_type
=$withval
18920 with_libxxhash_type
=auto
18923 lib_type
=`eval echo \$with_libxxhash_type`
18930 names_already_handled
=
18931 names_next_round
='xxhash '
18932 while test -n "$names_next_round"; do
18933 names_this_round
="$names_next_round"
18935 for name
in $names_this_round; do
18937 for n
in $names_already_handled; do
18938 if test "$n" = "$name"; then
18939 already_handled
=yes
18943 if test -z "$already_handled"; then
18944 names_already_handled
="$names_already_handled $name"
18945 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18946 eval value
=\"\
$HAVE_LIB$uppername\"
18947 if test -n "$value"; then
18948 if test "$value" = yes; then
18949 eval value
=\"\
$LIB$uppername\"
18950 test -z "$value" || LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$value"
18951 eval value
=\"\
$LTLIB$uppername\"
18952 test -z "$value" || LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$value"
18961 if test $use_additional = yes; then
18962 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18963 found_dir
="$additional_libdir"
18964 found_so
="$additional_libdir/lib$name.$shlibext"
18965 if test -f "$additional_libdir/lib$name.la"; then
18966 found_la
="$additional_libdir/lib$name.la"
18968 elif test x
$lib_type != xshared
; then
18969 if test -f "$additional_libdir/lib$name.$libext"; then
18970 found_dir
="$additional_libdir"
18971 found_a
="$additional_libdir/lib$name.$libext"
18972 if test -f "$additional_libdir/lib$name.la"; then
18973 found_la
="$additional_libdir/lib$name.la"
18978 if test "X$found_dir" = "X"; then
18979 for x
in $LDFLAGS $LTLIBXXHASH; do
18981 acl_save_prefix
="$prefix"
18982 prefix
="$acl_final_prefix"
18983 acl_save_exec_prefix
="$exec_prefix"
18984 exec_prefix
="$acl_final_exec_prefix"
18986 exec_prefix
="$acl_save_exec_prefix"
18987 prefix
="$acl_save_prefix"
18991 dir
=`echo "X$x" | sed -e 's/^X-L//'`
18992 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
18994 found_so
="$dir/lib$name.$shlibext"
18995 if test -f "$dir/lib$name.la"; then
18996 found_la
="$dir/lib$name.la"
18998 elif test x
$lib_type != xshared
; then
18999 if test -f "$dir/lib$name.$libext"; then
19001 found_a
="$dir/lib$name.$libext"
19002 if test -f "$dir/lib$name.la"; then
19003 found_la
="$dir/lib$name.la"
19009 if test "X$found_dir" != "X"; then
19014 if test "X$found_dir" != "X"; then
19015 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$found_dir -l$name"
19016 if test "X$found_so" != "X"; then
19017 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
19018 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19021 for x
in $ltrpathdirs; do
19022 if test "X$x" = "X$found_dir"; then
19027 if test -z "$haveit"; then
19028 ltrpathdirs
="$ltrpathdirs $found_dir"
19030 if test "$hardcode_direct" = yes; then
19031 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19033 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
19034 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19036 for x
in $rpathdirs; do
19037 if test "X$x" = "X$found_dir"; then
19042 if test -z "$haveit"; then
19043 rpathdirs
="$rpathdirs $found_dir"
19047 for x
in $LDFLAGS $LIBXXHASH; 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-L$found_dir"; then
19062 if test -z "$haveit"; then
19063 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir"
19065 if test "$hardcode_minus_L" != no
; then
19066 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
19068 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
19074 if test "X$found_a" != "X"; then
19075 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_a"
19077 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir -l$name"
19080 additional_includedir
=
19081 case "$found_dir" in
19083 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
19084 additional_includedir
="$basedir/include"
19087 if test "X$additional_includedir" != "X"; then
19088 if test "X$additional_includedir" != "X/usr/include"; then
19090 if test "X$additional_includedir" = "X/usr/local/include"; then
19091 if test -n "$GCC"; then
19093 linux
*) haveit
=yes;;
19097 if test -z "$haveit"; then
19098 for x
in $CPPFLAGS $INCXXHASH; do
19100 acl_save_prefix
="$prefix"
19101 prefix
="$acl_final_prefix"
19102 acl_save_exec_prefix
="$exec_prefix"
19103 exec_prefix
="$acl_final_exec_prefix"
19105 exec_prefix
="$acl_save_exec_prefix"
19106 prefix
="$acl_save_prefix"
19108 if test "X$x" = "X-I$additional_includedir"; then
19113 if test -z "$haveit"; then
19114 if test -d "$additional_includedir"; then
19115 INCXXHASH
="${INCXXHASH}${INCXXHASH:+ }-I$additional_includedir"
19121 if test -n "$found_la"; then
19122 save_libdir
="$libdir"
19123 case "$found_la" in
19124 */* |
*\\*) .
"$found_la" ;;
19125 *) .
"./$found_la" ;;
19127 libdir
="$save_libdir"
19128 for dep
in $dependency_libs; do
19131 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
19132 if test "X$additional_libdir" != "X/usr/lib"; then
19134 if test "X$additional_libdir" = "X/usr/local/lib"; then
19135 if test -n "$GCC"; then
19137 linux
*) haveit
=yes;;
19141 if test -z "$haveit"; then
19143 for x
in $LDFLAGS $LIBXXHASH; do
19145 acl_save_prefix
="$prefix"
19146 prefix
="$acl_final_prefix"
19147 acl_save_exec_prefix
="$exec_prefix"
19148 exec_prefix
="$acl_final_exec_prefix"
19150 exec_prefix
="$acl_save_exec_prefix"
19151 prefix
="$acl_save_prefix"
19153 if test "X$x" = "X-L$additional_libdir"; then
19158 if test -z "$haveit"; then
19159 if test -d "$additional_libdir"; then
19160 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$additional_libdir"
19164 for x
in $LDFLAGS $LTLIBXXHASH; do
19166 acl_save_prefix
="$prefix"
19167 prefix
="$acl_final_prefix"
19168 acl_save_exec_prefix
="$exec_prefix"
19169 exec_prefix
="$acl_final_exec_prefix"
19171 exec_prefix
="$acl_save_exec_prefix"
19172 prefix
="$acl_save_prefix"
19174 if test "X$x" = "X-L$additional_libdir"; then
19179 if test -z "$haveit"; then
19180 if test -d "$additional_libdir"; then
19181 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$additional_libdir"
19188 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
19189 if test "$enable_rpath" != no
; then
19191 for x
in $rpathdirs; do
19192 if test "X$x" = "X$dir"; then
19197 if test -z "$haveit"; then
19198 rpathdirs
="$rpathdirs $dir"
19201 for x
in $ltrpathdirs; do
19202 if test "X$x" = "X$dir"; then
19207 if test -z "$haveit"; then
19208 ltrpathdirs
="$ltrpathdirs $dir"
19213 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19216 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19219 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$dep"
19220 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$dep"
19226 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
19227 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
19228 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l$name"
19230 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l:lib$name.$libext"
19231 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l:lib$name.$libext"
19238 if test "X$rpathdirs" != "X"; then
19239 if test -n "$hardcode_libdir_separator"; then
19241 for found_dir
in $rpathdirs; do
19242 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
19244 acl_save_libdir
="$libdir"
19246 eval flag
=\"$hardcode_libdir_flag_spec\"
19247 libdir
="$acl_save_libdir"
19248 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
19250 for found_dir
in $rpathdirs; do
19251 acl_save_libdir
="$libdir"
19252 libdir
="$found_dir"
19253 eval flag
=\"$hardcode_libdir_flag_spec\"
19254 libdir
="$acl_save_libdir"
19255 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
19259 if test "X$ltrpathdirs" != "X"; then
19260 for found_dir
in $ltrpathdirs; do
19261 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-R$found_dir"
19266 ac_save_CPPFLAGS
="$CPPFLAGS"
19268 for element
in $INCXXHASH; do
19270 for x
in $CPPFLAGS; do
19272 acl_save_prefix
="$prefix"
19273 prefix
="$acl_final_prefix"
19274 acl_save_exec_prefix
="$exec_prefix"
19275 exec_prefix
="$acl_final_exec_prefix"
19277 exec_prefix
="$acl_save_exec_prefix"
19278 prefix
="$acl_save_prefix"
19280 if test "X$x" = "X$element"; then
19285 if test -z "$haveit"; then
19286 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
19291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5
19292 $as_echo_n "checking for libxxhash... " >&6; }
19293 if ${ac_cv_libxxhash+:} false
; then :
19294 $as_echo_n "(cached) " >&6
19297 ac_save_LIBS
="$LIBS"
19298 LIBS
="$LIBS $LIBXXHASH"
19299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19300 /* end confdefs.h. */
19301 #include <xxhash.h>
19305 XXH32("foo", 3, 0);
19311 if ac_fn_c_try_link
"$LINENO"; then :
19312 ac_cv_libxxhash
=yes
19316 rm -f core conftest.err conftest.
$ac_objext \
19317 conftest
$ac_exeext conftest.
$ac_ext
19318 LIBS
="$ac_save_LIBS"
19321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxxhash" >&5
19322 $as_echo "$ac_cv_libxxhash" >&6; }
19323 if test "$ac_cv_libxxhash" = yes; then
19326 $as_echo "#define HAVE_LIBXXHASH 1" >>confdefs.h
19328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libxxhash" >&5
19329 $as_echo_n "checking how to link with libxxhash... " >&6; }
19330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXXHASH" >&5
19331 $as_echo "$LIBXXHASH" >&6; }
19334 CPPFLAGS
="$ac_save_CPPFLAGS"
19344 if test "$HAVE_LIBXXHASH" != yes; then
19345 if test "$with_xxhash" = yes; then
19346 as_fn_error $?
"xxhash is missing or unusable" "$LINENO" 5
19349 if test "x$with_xxhash" = "xauto"; then
19350 with_xxhash
="$HAVE_LIBXXHASH"
19354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
19355 $as_echo_n "checking whether to use xxhash... " >&6; }
19356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
19357 $as_echo "$with_xxhash" >&6; }
19361 if test "${nativefile}" != ""; then
19362 case "${nativefile}" in
19363 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
19364 * ) GDB_NM_FILE
="${nativefile}"
19366 ac_config_links
="$ac_config_links nm.h:$GDB_NM_FILE"
19369 cat >>confdefs.h
<<_ACEOF
19370 #define GDB_NM_FILE "${GDB_NM_FILE}"
19378 for ac_prog
in xsltproc
19380 # Extract the first word of "$ac_prog", so it can be a program name with args.
19381 set dummy
$ac_prog; ac_word
=$2
19382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19383 $as_echo_n "checking for $ac_word... " >&6; }
19384 if ${ac_cv_path_XSLTPROC+:} false
; then :
19385 $as_echo_n "(cached) " >&6
19389 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
19392 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19393 for as_dir
in $PATH
19396 test -z "$as_dir" && as_dir
=.
19397 for ac_exec_ext
in '' $ac_executable_extensions; do
19398 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19399 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
19400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19410 XSLTPROC
=$ac_cv_path_XSLTPROC
19411 if test -n "$XSLTPROC"; then
19412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19413 $as_echo "$XSLTPROC" >&6; }
19415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19416 $as_echo "no" >&6; }
19420 test -n "$XSLTPROC" && break
19422 test -n "$XSLTPROC" || XSLTPROC
="missing"
19424 if test "x$USE_MAINTAINER_MODE" = xyes
; then
19425 if test "${XSLTPROC}" = missing
; then
19426 as_fn_error $?
"unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
19434 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
19438 # Check whether we will enable the inclusion of unit tests when
19441 # The default value of this option changes depending whether we're on
19442 # development mode (in which case it's "true") or not (in which case
19443 # it's "false"). The $development variable is set by the GDB_AC_COMMON
19444 # macro, which must therefore be used before GDB_AC_SELFTEST.
19446 if test "x$development" != xtrue
&& test "x$development" != xfalse
; then :
19447 as_fn_error $?
"Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
19450 # Check whether --enable-unit-tests was given.
19451 if test "${enable_unit_tests+set}" = set; then :
19452 enableval
=$enable_unit_tests; case "${enableval}" in
19453 yes) enable_unittests
=true
;;
19454 no
) enable_unittests
=false
;;
19455 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
19458 enable_unittests
=$development
19462 if $enable_unittests; then
19464 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
19467 CONFIG_OBS
="$CONFIG_OBS \$(SELFTESTS_OBS)"
19468 CONFIG_SRCS
="$CONFIG_SRCS \$(SELFTESTS_SRCS)"
19474 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19475 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
19476 if test "x$GDB_TRANSFORM_NAME" = x
; then
19477 GDB_TRANSFORM_NAME
=gdb
19482 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19483 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
19484 if test "x$GCORE_TRANSFORM_NAME" = x
; then
19485 GCORE_TRANSFORM_NAME
=gcore
19489 ac_config_files
="$ac_config_files gcore"
19491 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
19494 cat >confcache
<<\_ACEOF
19495 # This file is a shell script that caches the results of configure
19496 # tests run on this system so they can be shared between configure
19497 # scripts and configure runs, see configure's option --config-cache.
19498 # It is not useful on other systems. If it contains results you don't
19499 # want to keep, you may remove or edit it.
19501 # config.status only pays attention to the cache file if you give it
19502 # the --recheck option to rerun configure.
19504 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19505 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19506 # following values.
19510 # The following way of writing the cache mishandles newlines in values,
19511 # but we know of no workaround that is simple, portable, and efficient.
19512 # So, we kill variables containing newlines.
19513 # Ultrix sh set writes to stderr and can't be redirected directly,
19514 # and sets the high bit in the cache file unless we assign to the vars.
19516 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19517 eval ac_val
=\$
$ac_var
19521 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19522 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19525 _ | IFS | as_nl
) ;; #(
19526 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
19527 *) { eval $ac_var=; unset $ac_var;} ;;
19533 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19534 *${as_nl}ac_space
=\
*)
19535 # `set' does not quote correctly, so add quotes: double-quote
19536 # substitution turns \\\\ into \\, and sed turns \\ into \.
19539 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19542 # `set' quotes correctly as required by POSIX, so do not add quotes.
19543 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19552 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19554 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19556 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
19557 if test -w "$cache_file"; then
19558 if test "x$cache_file" != "x/dev/null"; then
19559 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19560 $as_echo "$as_me: updating cache $cache_file" >&6;}
19561 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
19562 cat confcache
>"$cache_file"
19564 case $cache_file in #(
19566 mv -f confcache
"$cache_file"$$
&&
19567 mv -f "$cache_file"$$
"$cache_file" ;; #(
19569 mv -f confcache
"$cache_file" ;;
19574 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19575 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19580 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19581 # Let make expand exec_prefix.
19582 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19584 DEFS
=-DHAVE_CONFIG_H
19589 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19590 # 1. Remove the extension, and $U if already installed.
19591 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
19592 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
19593 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19594 # will be set to the directory where LIBOBJS objects are built.
19595 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19596 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
19598 LIBOBJS
=$ac_libobjs
19600 LTLIBOBJS
=$ac_ltlibobjs
19603 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19604 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
19605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19607 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
19608 as_fn_error $?
"conditional \"HAVE_PYTHON\" was never defined.
19609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19611 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
19612 as_fn_error $?
"conditional \"HAVE_GUILE\" was never defined.
19613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19617 : "${CONFIG_STATUS=./config.status}"
19619 ac_clean_files_save
=$ac_clean_files
19620 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19621 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19622 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19624 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19626 # Generated by $as_me.
19627 # Run this file to recreate the current configuration.
19628 # Compiler output produced by configure, useful for debugging
19629 # configure, is in config.log if it exists.
19632 ac_cs_recheck=false
19635 SHELL=\${CONFIG_SHELL-$SHELL}
19638 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
19639 ## -------------------- ##
19640 ## M4sh Initialization. ##
19641 ## -------------------- ##
19643 # Be more Bourne compatible
19644 DUALCASE
=1; export DUALCASE
# for MKS sh
19645 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
19648 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19649 # is contrary to our usage. Disable this feature.
19650 alias -g '${1+"$@"}'='"$@"'
19651 setopt NO_GLOB_SUBST
19653 case `(set -o) 2>/dev/null` in #(
19665 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19666 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19667 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19668 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19669 # Prefer a ksh shell builtin over an external printf program on Solaris,
19670 # but without wasting forks for bash or zsh.
19671 if test -z "$BASH_VERSION$ZSH_VERSION" \
19672 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19673 as_echo='print
-r --'
19674 as_echo_n='print
-rn --'
19675 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19676 as_echo='printf %s
\n'
19677 as_echo_n='printf %s
'
19679 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19680 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
19681 as_echo_n='/usr
/ucb
/echo -n'
19683 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19684 as_echo_n_body='eval
19688 expr "X$arg" : "X\\(.*\\)$as_nl";
19689 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19691 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
19693 export as_echo_n_body
19694 as_echo_n='sh
-c $as_echo_n_body as_echo
'
19696 export as_echo_body
19697 as_echo='sh
-c $as_echo_body as_echo
'
19700 # The user is always right.
19701 if test "${PATH_SEPARATOR+set}" != set; then
19703 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19704 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19711 # We need space, tab and new line, in precisely that order. Quoting is
19712 # there to prevent editors from complaining about space-tab.
19713 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19714 # splitting by setting IFS to empty value.)
19717 # Find who we are. Look in the path if we contain no directory separator.
19720 *[\\/]* ) as_myself=$0 ;;
19721 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19722 for as_dir in $PATH
19725 test -z "$as_dir" && as_dir=.
19726 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19732 # We did not find ourselves, most probably we were run as `sh COMMAND'
19733 # in which case we are not to be found in the path.
19734 if test "x$as_myself" = x
; then
19737 if test ! -f "$as_myself"; then
19738 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19742 # Unset variables that we do not need and which cause bugs (e.g. in
19743 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19744 # suppresses any "Segmentation fault" message there. '((' could
19745 # trigger a bug in pdksh 5.2.14.
19746 for as_var
in BASH_ENV ENV MAIL MAILPATH
19747 do eval test x\
${$as_var+set} = xset \
19748 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
19761 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
19764 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19765 # ----------------------------------------
19766 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19767 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19768 # script with STATUS, using 1 if that was 0.
19771 as_status
=$1; test $as_status -eq 0 && as_status
=1
19773 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
19774 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19776 $as_echo "$as_me: error: $2" >&2
19777 as_fn_exit
$as_status
19781 # as_fn_set_status STATUS
19782 # -----------------------
19783 # Set $? to STATUS, without forking.
19784 as_fn_set_status
()
19787 } # as_fn_set_status
19789 # as_fn_exit STATUS
19790 # -----------------
19791 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19795 as_fn_set_status
$1
19801 # Portably unset VAR.
19804 { eval $1=; unset $1;}
19806 as_unset
=as_fn_unset
19807 # as_fn_append VAR VALUE
19808 # ----------------------
19809 # Append the text in VALUE to the end of the definition contained in VAR. Take
19810 # advantage of any shell optimizations that allow amortized linear growth over
19811 # repeated appends, instead of the typical quadratic growth present in naive
19813 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
19814 eval 'as_fn_append ()
19825 # as_fn_arith ARG...
19826 # ------------------
19827 # Perform arithmetic evaluation on the ARGs, and store the result in the
19828 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19829 # must be portable across $(()) and expr.
19830 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
19831 eval 'as_fn_arith ()
19838 as_val
=`expr "$@" || test $? -eq 1`
19843 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
19844 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
19850 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19851 as_basename
=basename
19856 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
19862 as_me
=`$as_basename -- "$0" ||
19863 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19864 X"$0" : 'X\(//\)$' \| \
19865 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19867 sed '/^.*\/\([^/][^/]*\)\/*$/{
19881 # Avoid depending upon Character Ranges.
19882 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19883 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19884 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19885 as_cr_digits
='0123456789'
19886 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19888 ECHO_C
= ECHO_N
= ECHO_T
=
19889 case `echo -n x` in #(((((
19891 case `echo 'xy\c'` in
19892 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
19894 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
19901 rm -f conf$$ conf$$.exe conf$$.
file
19902 if test -d conf$$.dir
; then
19903 rm -f conf$$.dir
/conf$$.
file
19906 mkdir conf$$.dir
2>/dev
/null
19908 if (echo >conf$$.
file) 2>/dev
/null
; then
19909 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19911 # ... but there are two gotchas:
19912 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19913 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19914 # In both cases, we have to default to `cp -pR'.
19915 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
19917 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19925 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
19926 rmdir conf$$.dir
2>/dev
/null
19931 # Create "$as_dir" as a directory, including parents if necessary.
19936 -*) as_dir
=.
/$as_dir;;
19938 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
19942 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19943 *) as_qdir
=$as_dir;;
19945 as_dirs
="'$as_qdir' $as_dirs"
19946 as_dir
=`$as_dirname -- "$as_dir" ||
19947 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19948 X"$as_dir" : 'X\(//\)[^/]' \| \
19949 X"$as_dir" : 'X\(//\)$' \| \
19950 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19951 $as_echo X"$as_dir" |
19952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19956 /^X\(\/\/\)[^/].*/{
19969 test -d "$as_dir" && break
19971 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19972 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
19976 if mkdir
-p .
2>/dev
/null
; then
19977 as_mkdir_p
='mkdir -p "$as_dir"'
19979 test -d .
/-p && rmdir .
/-p
19984 # as_fn_executable_p FILE
19985 # -----------------------
19986 # Test if FILE is an executable regular file.
19987 as_fn_executable_p
()
19989 test -f "$1" && test -x "$1"
19990 } # as_fn_executable_p
19991 as_test_x
='test -x'
19992 as_executable_p
=as_fn_executable_p
19994 # Sed expression to map a string onto a valid CPP name.
19995 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19997 # Sed expression to map a string onto a valid variable name.
19998 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20002 ## ----------------------------------- ##
20003 ## Main body of $CONFIG_STATUS script. ##
20004 ## ----------------------------------- ##
20006 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
20008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20009 # Save the log message, to keep $0 and so on meaningful, and to
20010 # report actual input values of CONFIG_FILES etc. instead of their
20011 # values after options handling.
20013 This file was extended by $as_me, which was
20014 generated by GNU Autoconf 2.69. Invocation command line was
20016 CONFIG_FILES = $CONFIG_FILES
20017 CONFIG_HEADERS = $CONFIG_HEADERS
20018 CONFIG_LINKS = $CONFIG_LINKS
20019 CONFIG_COMMANDS = $CONFIG_COMMANDS
20022 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20027 case $ac_config_files in *"
20028 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
20031 case $ac_config_headers in *"
20032 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
20036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20037 # Files that config.status was made for.
20038 config_files="$ac_config_files"
20039 config_headers="$ac_config_headers"
20040 config_links="$ac_config_links"
20041 config_commands="$ac_config_commands"
20045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20047 \`$as_me' instantiates files and other configuration actions
20048 from templates according to the current configuration. Unless the files
20049 and actions are specified as TAGs, all are instantiated by default.
20051 Usage: $0 [OPTION]... [TAG]...
20053 -h, --help print this help, then exit
20054 -V, --version print version number and configuration settings, then exit
20055 --config print configuration, then exit
20056 -q, --quiet, --silent
20057 do not print progress messages
20058 -d, --debug don't remove temporary files
20059 --recheck update $as_me by reconfiguring in the same conditions
20060 --file=FILE[:TEMPLATE]
20061 instantiate the configuration file FILE
20062 --header=FILE[:TEMPLATE]
20063 instantiate the configuration header FILE
20065 Configuration files:
20068 Configuration headers:
20071 Configuration links:
20074 Configuration commands:
20077 Report bugs to the package provider."
20080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20081 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20084 configured by $0, generated by GNU Autoconf 2.69,
20085 with options \\"\$ac_cs_config\\"
20087 Copyright (C) 2012 Free Software Foundation, Inc.
20088 This config.status script is free software; the Free Software Foundation
20089 gives unlimited permission to copy, distribute and modify it."
20095 test -n "\$AWK" || AWK=awk
20098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20099 # The default lists apply if the user does not specify any file.
20105 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20106 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20110 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20122 # Handling of the options.
20123 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20125 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20126 $as_echo "$ac_cs_version"; exit ;;
20127 --config |
--confi |
--conf |
--con |
--co |
--c )
20128 $as_echo "$ac_cs_config"; exit ;;
20129 --debug |
--debu |
--deb |
--de |
--d |
-d )
20131 --file |
--fil |
--fi |
--f )
20134 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20135 '') as_fn_error $?
"missing file argument" ;;
20137 as_fn_append CONFIG_FILES
" '$ac_optarg'"
20138 ac_need_defaults
=false
;;
20139 --header |
--heade |
--head |
--hea )
20142 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20144 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
20145 ac_need_defaults
=false
;;
20147 # Conflict between --help and --header
20148 as_fn_error $?
"ambiguous option: \`$1'
20149 Try \`$0 --help' for more information.";;
20150 --help |
--hel |
-h )
20151 $as_echo "$ac_cs_usage"; exit ;;
20152 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20153 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20156 # This is an error.
20157 -*) as_fn_error $?
"unrecognized option: \`$1'
20158 Try \`$0 --help' for more information." ;;
20160 *) as_fn_append ac_config_targets
" $1"
20161 ac_need_defaults
=false
;;
20167 ac_configure_extra_args
=
20169 if $ac_cs_silent; then
20171 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20176 if \$ac_cs_recheck; then
20177 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20179 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20180 CONFIG_SHELL='$SHELL'
20181 export CONFIG_SHELL
20186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20190 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20191 ## Running $as_me. ##
20197 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20201 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
20202 GDB_NM_FILE=$GDB_NM_FILE
20206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20208 # Handling of arguments.
20209 for ac_config_target
in $ac_config_targets
20211 case $ac_config_target in
20212 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
20213 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
20214 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
20215 "nm.h") CONFIG_LINKS
="$CONFIG_LINKS nm.h:$GDB_NM_FILE" ;;
20216 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
20217 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20218 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
20219 "gdb-gdb.py") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.py" ;;
20220 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
20221 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
20223 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20228 # If the user did not use the arguments to specify the items to instantiate,
20229 # then the envvar interface is used. Set only those that are not.
20230 # We use the long form for the default assignment because of an extremely
20231 # bizarre bug on SunOS 4.1.3.
20232 if $ac_need_defaults; then
20233 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20234 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20235 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
20236 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20239 # Have a temporary directory for convenience. Make it in the build tree
20240 # simply because there is no reason against having it here, and in addition,
20241 # creating and moving files from /tmp can sometimes cause problems.
20242 # Hook for its removal unless debugging.
20243 # Note that there is a small window in which the directory will not be cleaned:
20244 # after its creation but before its name has been assigned to `$tmp'.
20248 trap 'exit_status=$?
20249 : "${ac_tmp:=$tmp}"
20250 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20252 trap 'as_fn_exit 1' 1 2 13 15
20254 # Create a (secure) tmp directory for tmp files.
20257 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20261 tmp
=.
/conf$$
-$RANDOM
20262 (umask 077 && mkdir
"$tmp")
20263 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
20266 # Set up the scripts for CONFIG_FILES section.
20267 # No need to generate them if there are no CONFIG_FILES.
20268 # This happens for instance with `./config.status config.h'.
20269 if test -n "$CONFIG_FILES"; then
20271 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
20272 ac_cs_awk_getline
=:
20273 ac_cs_awk_pipe_init
=
20274 ac_cs_awk_read_file
='
20275 while ((getline aline < (F[key])) > 0)
20278 ac_cs_awk_pipe_fini
=
20280 ac_cs_awk_getline
=false
20281 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
20282 ac_cs_awk_read_file
='
20284 print "cat " F[key] " &&"
20285 '$ac_cs_awk_pipe_init
20286 # The final `:' finishes the AND list.
20287 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
20289 ac_cr
=`echo X | tr X '\015'`
20290 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20291 # But we know of no other shell where ac_cr would be empty at this
20292 # point, so we can use a bashism as a fallback.
20293 if test "x$ac_cr" = x
; then
20294 eval ac_cr
=\$
\'\\r
\'
20296 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20297 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20300 ac_cs_awk_cr
=$ac_cr
20303 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20306 # Create commands to substitute file output variables.
20308 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20309 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
20310 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
20313 } >conf$
$files.sh
&&
20314 . .
/conf$
$files.sh ||
20315 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
20316 rm -f conf$
$files.sh
20319 echo "cat >conf$$subs.awk <<_ACEOF" &&
20320 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20322 } >conf$$subs.sh ||
20323 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20324 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20326 for ac_last_try in false false false false false :; do
20327 . ./conf$$subs.sh ||
20328 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20330 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20331 if test $ac_delim_n = $ac_delim_num; then
20333 elif $ac_last_try; then
20334 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20336 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20339 rm -f conf$$subs.sh
20341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20342 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
20346 s/^/S["/; s
/!.
*/"]=/
20356 s/\(.\{148\}\)..*/\1/
20358 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
20363 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20370 s/\(.\{148\}\)..*/\1/
20372 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
20376 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20381 ' <conf$$subs.awk | sed '
20386 ' >>$CONFIG_STATUS || ac_write_fail=1
20387 rm -f conf$$subs.awk
20388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20390 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
20391 for (key in S) S_is_set[key] = 1
20393 \$ac_cs_awk_pipe_init
20397 nfields = split(line, field, "@
")
20399 len = length(field[1])
20400 for (i = 2; i < nfields; i++) {
20402 keylen = length(key)
20403 if (S_is_set[key]) {
20405 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20406 len += length(value) + length(field[++i])
20411 if (nfields == 3 && !substed) {
20413 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
20414 \$ac_cs_awk_read_file
20420 \$ac_cs_awk_pipe_fini
20423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20424 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20425 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
20428 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
20429 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
20432 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20433 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
20434 # trailing colons and then remove the whole line if VPATH becomes empty
20435 # (actually we leave an empty line to preserve line numbers).
20436 if test "x
$srcdir" = x.; then
20437 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20456 fi # test -n "$CONFIG_FILES"
20458 # Set up the scripts for CONFIG_HEADERS section.
20459 # No need to generate them if there are no CONFIG_HEADERS.
20460 # This happens for instance with `./config.status Makefile'.
20461 if test -n "$CONFIG_HEADERS"; then
20462 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
20466 # Transform confdefs.h into an awk script `defines.awk', embedded as
20467 # here-document in config.status, that substitutes the proper values into
20468 # config.h.in to produce config.h.
20470 # Create a delimiter string that does not exist in confdefs.h, to ease
20471 # handling of long lines.
20473 for ac_last_try in false false :; do
20474 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
20475 if test -z "$ac_tt"; then
20477 elif $ac_last_try; then
20478 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
20480 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20484 # For the awk script, D is an array of macro values keyed by name,
20485 # likewise P contains macro parameters if any. Preserve backslash
20486 # newline sequences.
20488 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20490 s/.\{148\}/&'"$ac_delim"'/g
20493 s/^[ ]*#[ ]*define[ ][ ]*/ /
20500 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
20502 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
20506 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
20507 D["\
1"]=" \
3\\\\\\n
"\\/p
20509 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
20514 s/.\{148\}/&'"$ac_delim"'/g
20519 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
20522 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
20524 ' <confdefs.h | sed '
20525 s/'"$ac_delim"'/"\\\
20526 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20528 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20529 for (key in D) D_is_set[key] = 1
20532 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20534 split(line, arg, " ")
20535 if (arg[1] == "#") {
20539 defundef
= substr
(arg
[1], 2)
20542 split(mac1
, mac2
, "(") #)
20544 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
20545 if (D_is_set
[macro
]) {
20546 # Preserve the white space surrounding the "#".
20547 print prefix
"define", macro P
[macro
] D
[macro
]
20550 # Replace #undef with comments. This is necessary, for example,
20551 # in the case of _POSIX_SOURCE, which is predefined and required
20552 # on some systems where configure will not decide to define it.
20553 if (defundef
== "undef") {
20554 print
"/*", prefix defundef
, macro
, "*/"
20562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20563 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
20564 fi # test -n "$CONFIG_HEADERS"
20567 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
20572 :[FHLC
]) ac_mode
=$ac_tag; continue;;
20574 case $ac_mode$ac_tag in
20576 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
20577 :[FH
]-) ac_tag
=-:-;;
20578 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
20595 -) ac_f
="$ac_tmp/stdin";;
20596 *) # Look for the file first in the build tree, then in the source tree
20597 # (if the path is not absolute). The absolute path cannot be DOS-style,
20598 # because $ac_f cannot contain `:'.
20602 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
20604 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20606 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20607 as_fn_append ac_file_inputs
" '$ac_f'"
20610 # Let's still pretend it is `configure' which instantiates (i.e., don't
20611 # use $as_me), people would be surprised to read:
20612 # /* config.h. Generated by config.status. */
20613 configure_input
='Generated from '`
20614 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20616 if test x
"$ac_file" != x-
; then
20617 configure_input
="$ac_file. $configure_input"
20618 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20619 $as_echo "$as_me: creating $ac_file" >&6;}
20621 # Neutralize special characters interpreted by sed in replacement strings.
20622 case $configure_input in #(
20623 *\
&* |
*\|
* |
*\\* )
20624 ac_sed_conf_input
=`$as_echo "$configure_input" |
20625 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20626 *) ac_sed_conf_input
=$configure_input;;
20630 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
20631 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
20636 ac_dir
=`$as_dirname -- "$ac_file" ||
20637 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20638 X"$ac_file" : 'X\(//\)[^/]' \| \
20639 X"$ac_file" : 'X\(//\)$' \| \
20640 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20641 $as_echo X"$ac_file" |
20642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20646 /^X\(\/\/\)[^/].*/{
20659 as_dir
="$ac_dir"; as_fn_mkdir_p
20663 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20665 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20666 # A ".." for each directory in $ac_dir_suffix.
20667 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20668 case $ac_top_builddir_sub in
20669 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20670 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20673 ac_abs_top_builddir
=$ac_pwd
20674 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
20675 # for backward compatibility:
20676 ac_top_builddir
=$ac_top_build_prefix
20679 .
) # We are building in place.
20681 ac_top_srcdir
=$ac_top_builddir_sub
20682 ac_abs_top_srcdir
=$ac_pwd ;;
20683 [\\/]* | ?
:[\\/]* ) # Absolute name.
20684 ac_srcdir
=$srcdir$ac_dir_suffix;
20685 ac_top_srcdir
=$srcdir
20686 ac_abs_top_srcdir
=$srcdir ;;
20687 *) # Relative name.
20688 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
20689 ac_top_srcdir
=$ac_top_build_prefix$srcdir
20690 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
20692 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
20702 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20703 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
20707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20708 # If the template does not know about datarootdir, expand it.
20709 # FIXME: This hack should be removed a few years after 2.60.
20710 ac_datarootdir_hack
=; ac_datarootdir_seen
=
20721 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20722 *datarootdir
*) ac_datarootdir_seen
=yes;;
20723 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
20724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20725 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20728 ac_datarootdir_hack='
20729 s&@datadir@&$datadir&g
20730 s&@docdir@&$docdir&g
20731 s&@infodir@&$infodir&g
20732 s&@localedir@&$localedir&g
20733 s&@mandir@&$mandir&g
20734 s&\\\${datarootdir}&$datarootdir&g' ;;
20738 # Neutralize VPATH when `$srcdir' = `.'.
20739 # Shell code in configure.ac might set extrasub.
20740 # FIXME: do we really want to maintain this feature?
20741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20742 ac_sed_extra="$ac_vpsub
20745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20747 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20748 s|@configure_input@|
$ac_sed_conf_input|
;t t
20749 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
20750 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
20751 s
&@srcdir@
&$ac_srcdir&;t t
20752 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
20753 s
&@top_srcdir@
&$ac_top_srcdir&;t t
20754 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
20755 s
&@builddir@
&$ac_builddir&;t t
20756 s
&@abs_builddir@
&$ac_abs_builddir&;t t
20757 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
20758 s
&@INSTALL@
&$ac_INSTALL&;t t
20759 $ac_datarootdir_hack
20761 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
20762 if $ac_cs_awk_getline; then
20763 $AWK -f "$ac_tmp/subs.
awk"
20765 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
20767 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
20769 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20770 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
20771 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20772 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
20773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
20774 which seems to be undefined. Please make sure it is defined" >&5
20775 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
20776 which seems to be undefined. Please make sure it is defined" >&2;}
20778 rm -f "$ac_tmp/stdin"
20780 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20781 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20783 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20789 if test x"$ac_file" != x-; then
20791 $as_echo "/* $configure_input */" \
20792 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20793 } >"$ac_tmp/config.h" \
20794 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20795 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20796 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20797 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20800 mv "$ac_tmp/config.h" "$ac_file" \
20801 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20804 $as_echo "/* $configure_input */" \
20805 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20806 || as_fn_error $? "could not create -" "$LINENO" 5
20814 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
20817 # Prefer the file from the source tree if names are identical.
20818 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
20819 ac_source=$srcdir/$ac_source
20822 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
20823 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
20825 if test ! -r "$ac_source"; then
20826 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
20830 # Try a relative symlink, then a hard link, then a copy.
20832 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
20833 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
20835 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
20836 ln "$ac_source" "$ac_file" 2>/dev/null ||
20837 cp -p "$ac_source" "$ac_file" ||
20838 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
20841 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20842 $as_echo "$as_me: executing $ac_file commands" >&6;}
20847 case $ac_file$ac_mode in
20848 "config.h":H) echo > stamp-h ;;
20849 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
20850 "nm.h":L) echo > stamp-nmh ;;
20851 "gcore":F) chmod +x gcore ;;
20859 ac_clean_files=$ac_clean_files_save
20861 test $ac_write_fail = 0 ||
20862 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20865 # configure is writing to config.log, and then calls config.status.
20866 # config.status does its own redirection, appending to config.log.
20867 # Unfortunately, on DOS this fails, as config.log is still kept open
20868 # by configure, so config.status won't be able to
write to it
; its
20869 # output is simply discarded. So we exec the FD to /dev/null,
20870 # effectively closing config.log, so it can be properly (re)opened and
20871 # appended to by config.status. When coming back to configure, we
20872 # need to make the FD available again.
20873 if test "$no_create" != yes; then
20875 ac_config_status_args
=
20876 test "$silent" = yes &&
20877 ac_config_status_args
="$ac_config_status_args --quiet"
20879 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20881 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20882 # would make configure fail if this is the last instruction.
20883 $ac_cs_success || as_fn_exit
1
20887 # CONFIG_SUBDIRS section.
20889 if test "$no_recursion" != yes; then
20891 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
20892 # so they do not pile up.
20893 ac_sub_configure_args
=
20895 eval "set x $ac_configure_args"
20899 if test -n "$ac_prev"; then
20904 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
20905 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
20906 ac_prev
=cache_file
;;
20907 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
20908 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
20911 --config-cache |
-C)
20913 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
20915 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
20917 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
20919 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
20921 --disable-option-checking)
20925 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20927 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
20931 # Always prepend --prefix to ensure using the same prefix
20932 # in subdir configurations.
20933 ac_arg
="--prefix=$prefix"
20935 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20937 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
20940 if test "$silent" = yes; then
20941 ac_sub_configure_args
="--silent $ac_sub_configure_args"
20944 # Always prepend --disable-option-checking to silence warnings, since
20945 # different subdirs can have different --enable and --with options.
20946 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
20949 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
20951 # Do not complain, so a configure script can configure whichever
20952 # parts of a large source tree are present.
20953 test -d "$srcdir/$ac_dir" ||
continue
20955 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20956 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
20957 $as_echo "$ac_msg" >&6
20958 as_dir
="$ac_dir"; as_fn_mkdir_p
20962 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20964 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20965 # A ".." for each directory in $ac_dir_suffix.
20966 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20967 case $ac_top_builddir_sub in
20968 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20969 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20972 ac_abs_top_builddir
=$ac_pwd
20973 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
20974 # for backward compatibility:
20975 ac_top_builddir
=$ac_top_build_prefix
20978 .
) # We are building in place.
20980 ac_top_srcdir
=$ac_top_builddir_sub
20981 ac_abs_top_srcdir
=$ac_pwd ;;
20982 [\\/]* | ?
:[\\/]* ) # Absolute name.
20983 ac_srcdir
=$srcdir$ac_dir_suffix;
20984 ac_top_srcdir
=$srcdir
20985 ac_abs_top_srcdir
=$srcdir ;;
20986 *) # Relative name.
20987 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
20988 ac_top_srcdir
=$ac_top_build_prefix$srcdir
20989 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
20991 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
20996 # Check for guested configure; otherwise get Cygnus style configure.
20997 if test -f "$ac_srcdir/configure.gnu"; then
20998 ac_sub_configure
=$ac_srcdir/configure.gnu
20999 elif test -f "$ac_srcdir/configure"; then
21000 ac_sub_configure
=$ac_srcdir/configure
21001 elif test -f "$ac_srcdir/configure.in"; then
21002 # This should be Cygnus configure.
21003 ac_sub_configure
=$ac_aux_dir/configure
21005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
21006 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21010 # The recursion is here.
21011 if test -n "$ac_sub_configure"; then
21012 # Make the cache file name correct relative to the subdirectory.
21013 case $cache_file in
21014 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
21015 *) # Relative name.
21016 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
21019 { $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
21020 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21021 # The eval makes quoting arguments work.
21022 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21023 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21024 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
21030 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
21031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21032 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}