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
633 HAVE_NATIVE_GCORE_HOST
725 READLINE_TEXI_INCFLAG
748 HAVE_NATIVE_GCORE_TARGET
775 INSTALL_STRIP_PROGRAM
804 MAINTAINER_MODE_FALSE
833 program_transform_name
844 ac_subst_files
='nat_makefile_frag'
846 enable_option_checking
847 enable_maintainer_mode
850 with_separate_debug_dir
852 with_relocated_sources
854 with_auto_load_safe_path
886 enable_build_warnings
887 enable_gdb_build_warnings
897 with_libbabeltrace_prefix
899 ac_precious_vars
='build_alias
916 ac_subdirs_all
='testsuite
921 # Initialize some variables set by options.
923 ac_init_version
=false
924 ac_unrecognized_opts
=
926 # The variables have the same names as the options, with
927 # dashes changed to underlines.
935 program_transform_name
=s
,x
,x
,
943 # Installation directory options.
944 # These are left unexpanded so users can "make install exec_prefix=/foo"
945 # and all the variables that are supposed to be based on exec_prefix
946 # by default will actually change.
947 # Use braces instead of parens because sh, perl, etc. also accept them.
948 # (The list follows the same order as the GNU Coding Standards.)
949 bindir
='${exec_prefix}/bin'
950 sbindir
='${exec_prefix}/sbin'
951 libexecdir
='${exec_prefix}/libexec'
952 datarootdir
='${prefix}/share'
953 datadir
='${datarootdir}'
954 sysconfdir
='${prefix}/etc'
955 sharedstatedir
='${prefix}/com'
956 localstatedir
='${prefix}/var'
957 includedir
='${prefix}/include'
958 oldincludedir
='/usr/include'
959 docdir
='${datarootdir}/doc/${PACKAGE}'
960 infodir
='${datarootdir}/info'
965 libdir
='${exec_prefix}/lib'
966 localedir
='${datarootdir}/locale'
967 mandir
='${datarootdir}/man'
973 # If the previous option needs an argument, assign it.
974 if test -n "$ac_prev"; then
975 eval $ac_prev=\
$ac_option
981 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
986 # Accept the important Cygnus configure options, so we can diagnose typos.
988 case $ac_dashdash$ac_option in
992 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
994 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
997 -build |
--build |
--buil |
--bui |
--bu)
998 ac_prev
=build_alias
;;
999 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1000 build_alias
=$ac_optarg ;;
1002 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1003 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1004 ac_prev
=cache_file
;;
1005 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1006 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1007 cache_file
=$ac_optarg ;;
1009 --config-cache |
-C)
1010 cache_file
=config.cache
;;
1012 -datadir |
--datadir |
--datadi |
--datad)
1014 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1015 datadir
=$ac_optarg ;;
1017 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1018 |
--dataroo |
--dataro |
--datar)
1019 ac_prev
=datarootdir
;;
1020 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1021 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1022 datarootdir
=$ac_optarg ;;
1024 -disable-* |
--disable-*)
1025 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1026 # Reject names that are not valid shell variable names.
1027 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1028 as_fn_error $?
"invalid feature name: $ac_useropt"
1029 ac_useropt_orig
=$ac_useropt
1030 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031 case $ac_user_opts in
1033 "enable_
$ac_useropt"
1035 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1036 ac_unrecognized_sep
=', ';;
1038 eval enable_
$ac_useropt=no
;;
1040 -docdir |
--docdir |
--docdi |
--doc |
--do)
1042 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1043 docdir
=$ac_optarg ;;
1045 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1047 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1048 dvidir
=$ac_optarg ;;
1050 -enable-* |
--enable-*)
1051 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1054 as_fn_error $?
"invalid feature name: $ac_useropt"
1055 ac_useropt_orig
=$ac_useropt
1056 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057 case $ac_user_opts in
1059 "enable_
$ac_useropt"
1061 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1062 ac_unrecognized_sep
=', ';;
1064 eval enable_
$ac_useropt=\
$ac_optarg ;;
1066 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1067 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1068 |
--exec |
--exe |
--ex)
1069 ac_prev
=exec_prefix
;;
1070 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1071 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1072 |
--exec=* |
--exe=* |
--ex=*)
1073 exec_prefix
=$ac_optarg ;;
1075 -gas |
--gas |
--ga |
--g)
1076 # Obsolete; use --with-gas.
1079 -help |
--help |
--hel |
--he |
-h)
1080 ac_init_help
=long
;;
1081 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1082 ac_init_help
=recursive
;;
1083 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1084 ac_init_help
=short
;;
1086 -host |
--host |
--hos |
--ho)
1087 ac_prev
=host_alias
;;
1088 -host=* |
--host=* |
--hos=* |
--ho=*)
1089 host_alias
=$ac_optarg ;;
1091 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1093 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1095 htmldir
=$ac_optarg ;;
1097 -includedir |
--includedir |
--includedi |
--included |
--include \
1098 |
--includ |
--inclu |
--incl |
--inc)
1099 ac_prev
=includedir
;;
1100 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1101 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1102 includedir
=$ac_optarg ;;
1104 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1106 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1107 infodir
=$ac_optarg ;;
1109 -libdir |
--libdir |
--libdi |
--libd)
1111 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1112 libdir
=$ac_optarg ;;
1114 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1115 |
--libexe |
--libex |
--libe)
1116 ac_prev
=libexecdir
;;
1117 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1118 |
--libexe=* |
--libex=* |
--libe=*)
1119 libexecdir
=$ac_optarg ;;
1121 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1122 ac_prev
=localedir
;;
1123 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1124 localedir
=$ac_optarg ;;
1126 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1127 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1128 ac_prev
=localstatedir
;;
1129 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1130 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1131 localstatedir
=$ac_optarg ;;
1133 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1135 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1136 mandir
=$ac_optarg ;;
1138 -nfp |
--nfp |
--nf)
1139 # Obsolete; use --without-fp.
1142 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1143 |
--no-cr |
--no-c |
-n)
1146 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1147 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1150 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1151 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1152 |
--oldin |
--oldi |
--old |
--ol |
--o)
1153 ac_prev
=oldincludedir
;;
1154 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1155 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1156 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1157 oldincludedir
=$ac_optarg ;;
1159 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1161 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1162 prefix
=$ac_optarg ;;
1164 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1165 |
--program-pre |
--program-pr |
--program-p)
1166 ac_prev
=program_prefix
;;
1167 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1168 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1169 program_prefix
=$ac_optarg ;;
1171 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1172 |
--program-suf |
--program-su |
--program-s)
1173 ac_prev
=program_suffix
;;
1174 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1175 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1176 program_suffix
=$ac_optarg ;;
1178 -program-transform-name |
--program-transform-name \
1179 |
--program-transform-nam |
--program-transform-na \
1180 |
--program-transform-n |
--program-transform- \
1181 |
--program-transform |
--program-transfor \
1182 |
--program-transfo |
--program-transf \
1183 |
--program-trans |
--program-tran \
1184 |
--progr-tra |
--program-tr |
--program-t)
1185 ac_prev
=program_transform_name
;;
1186 -program-transform-name=* |
--program-transform-name=* \
1187 |
--program-transform-nam=* |
--program-transform-na=* \
1188 |
--program-transform-n=* |
--program-transform-=* \
1189 |
--program-transform=* |
--program-transfor=* \
1190 |
--program-transfo=* |
--program-transf=* \
1191 |
--program-trans=* |
--program-tran=* \
1192 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1193 program_transform_name
=$ac_optarg ;;
1195 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1197 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1198 pdfdir
=$ac_optarg ;;
1200 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1202 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1205 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1206 |
-silent |
--silent |
--silen |
--sile |
--sil)
1209 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1211 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1213 sbindir
=$ac_optarg ;;
1215 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1216 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1217 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1219 ac_prev
=sharedstatedir
;;
1220 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1221 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1222 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1224 sharedstatedir
=$ac_optarg ;;
1226 -site |
--site |
--sit)
1228 -site=* |
--site=* |
--sit=*)
1231 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1233 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1234 srcdir
=$ac_optarg ;;
1236 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1237 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1238 ac_prev
=sysconfdir
;;
1239 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1240 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1241 sysconfdir
=$ac_optarg ;;
1243 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1244 ac_prev
=target_alias
;;
1245 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1246 target_alias
=$ac_optarg ;;
1248 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1251 -version |
--version |
--versio |
--versi |
--vers |
-V)
1252 ac_init_version
=: ;;
1255 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1258 as_fn_error $?
"invalid package name: $ac_useropt"
1259 ac_useropt_orig
=$ac_useropt
1260 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261 case $ac_user_opts in
1265 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1266 ac_unrecognized_sep
=', ';;
1268 eval with_
$ac_useropt=\
$ac_optarg ;;
1270 -without-* |
--without-*)
1271 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1272 # Reject names that are not valid shell variable names.
1273 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1274 as_fn_error $?
"invalid package name: $ac_useropt"
1275 ac_useropt_orig
=$ac_useropt
1276 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1277 case $ac_user_opts in
1281 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1282 ac_unrecognized_sep
=', ';;
1284 eval with_
$ac_useropt=no
;;
1287 # Obsolete; use --with-x.
1290 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1291 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1292 ac_prev
=x_includes
;;
1293 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1294 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1295 x_includes
=$ac_optarg ;;
1297 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1298 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1299 ac_prev
=x_libraries
;;
1300 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1301 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1302 x_libraries
=$ac_optarg ;;
1304 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1305 Try \`$0 --help' for more information"
1309 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1310 # Reject names that are not valid shell variable names.
1311 case $ac_envvar in #(
1312 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1313 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1315 eval $ac_envvar=\
$ac_optarg
1316 export $ac_envvar ;;
1319 # FIXME: should be removed in autoconf 3.0.
1320 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1321 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1322 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1323 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1329 if test -n "$ac_prev"; then
1330 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1331 as_fn_error $?
"missing argument to $ac_option"
1334 if test -n "$ac_unrecognized_opts"; then
1335 case $enable_option_checking in
1337 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1338 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1342 # Check all directory arguments for consistency.
1343 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1344 datadir sysconfdir sharedstatedir localstatedir includedir \
1345 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1346 libdir localedir mandir
1348 eval ac_val
=\$
$ac_var
1349 # Remove trailing slashes.
1352 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1353 eval $ac_var=\
$ac_val;;
1355 # Be sure to have absolute directory names.
1357 [\\/$
]* | ?
:[\\/]* ) continue;;
1358 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1360 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1363 # There might be people who depend on the old broken behavior: `$host'
1364 # used to hold the argument of --host etc.
1365 # FIXME: To remove some day.
1368 target
=$target_alias
1370 # FIXME: To remove some day.
1371 if test "x$host_alias" != x
; then
1372 if test "x$build_alias" = x
; then
1373 cross_compiling
=maybe
1374 elif test "x$build_alias" != "x$host_alias"; then
1380 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1382 test "$silent" = yes && exec 6>/dev
/null
1385 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1386 ac_ls_di
=`ls -di .` &&
1387 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1388 as_fn_error $?
"working directory cannot be determined"
1389 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1390 as_fn_error $?
"pwd does not report name of working directory"
1393 # Find the source files, if location was not specified.
1394 if test -z "$srcdir"; then
1395 ac_srcdir_defaulted
=yes
1396 # Try the directory containing this script, then the parent directory.
1397 ac_confdir
=`$as_dirname -- "$as_myself" ||
1398 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1399 X"$as_myself" : 'X\(//\)[^/]' \| \
1400 X"$as_myself" : 'X\(//\)$' \| \
1401 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1402 $as_echo X"$as_myself" |
1403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1421 if test ! -r "$srcdir/$ac_unique_file"; then
1425 ac_srcdir_defaulted
=no
1427 if test ! -r "$srcdir/$ac_unique_file"; then
1428 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1429 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1431 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1433 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1435 # When building in place, set srcdir=.
1436 if test "$ac_abs_confdir" = "$ac_pwd"; then
1439 # Remove unnecessary trailing slashes from srcdir.
1440 # Double slashes in file names in object file debugging info
1441 # mess up M-x gdb in Emacs.
1443 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1445 for ac_var
in $ac_precious_vars; do
1446 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1447 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1448 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1449 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1453 # Report the --help message.
1455 if test "$ac_init_help" = "long"; then
1456 # Omit some internal or obsolete options to make the list less imposing.
1457 # This message is too long to be a string in the A/UX 3.1 sh.
1459 \`configure' configures this package to adapt to many kinds of systems.
1461 Usage: $0 [OPTION]... [VAR=VALUE]...
1463 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1464 VAR=VALUE. See below for descriptions of some of the useful variables.
1466 Defaults for the options are specified in brackets.
1469 -h, --help display this help and exit
1470 --help=short display options specific to this package
1471 --help=recursive display the short help of all the included packages
1472 -V, --version display version information and exit
1473 -q, --quiet, --silent do not print \`checking ...' messages
1474 --cache-file=FILE cache test results in FILE [disabled]
1475 -C, --config-cache alias for \`--cache-file=config.cache'
1476 -n, --no-create do not create output files
1477 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1479 Installation directories:
1480 --prefix=PREFIX install architecture-independent files in PREFIX
1481 [$ac_default_prefix]
1482 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1485 By default, \`make install' will install all the files in
1486 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1487 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1488 for instance \`--prefix=\$HOME'.
1490 For better control, use the options below.
1492 Fine tuning of the installation directories:
1493 --bindir=DIR user executables [EPREFIX/bin]
1494 --sbindir=DIR system admin executables [EPREFIX/sbin]
1495 --libexecdir=DIR program executables [EPREFIX/libexec]
1496 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1497 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1498 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1499 --libdir=DIR object code libraries [EPREFIX/lib]
1500 --includedir=DIR C header files [PREFIX/include]
1501 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1502 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1503 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1504 --infodir=DIR info documentation [DATAROOTDIR/info]
1505 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1506 --mandir=DIR man documentation [DATAROOTDIR/man]
1507 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1508 --htmldir=DIR html documentation [DOCDIR]
1509 --dvidir=DIR dvi documentation [DOCDIR]
1510 --pdfdir=DIR pdf documentation [DOCDIR]
1511 --psdir=DIR ps documentation [DOCDIR]
1517 --program-prefix=PREFIX prepend PREFIX to installed program names
1518 --program-suffix=SUFFIX append SUFFIX to installed program names
1519 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1522 --x-includes=DIR X include files are
in DIR
1523 --x-libraries=DIR X library files are
in DIR
1526 --build=BUILD configure
for building on BUILD
[guessed
]
1527 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1528 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1532 if test -n "$ac_init_help"; then
1537 --disable-option-checking ignore unrecognized
--enable/--with options
1538 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1539 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1540 --enable-maintainer-mode
1541 enable make rules and dependencies not useful
(and
1542 sometimes confusing
) to the casual installer
1543 --enable-plugins Enable support
for plugins
1544 --disable-largefile omit support
for large files
1545 --enable-targets=TARGETS
1546 alternative target configurations
1547 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1548 --disable-gdbcli disable command-line interface
(CLI
)
1549 --disable-gdbmi disable machine-interface
(MI
)
1550 --enable-tui enable full-screen terminal user interface
(TUI
)
1551 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1552 --enable-profiling enable profiling of GDB
1553 --disable-rpath do not hardcode runtime library paths
1554 --enable-libmcheck Try linking with
-lmcheck if available
1555 --enable-werror treat compile warnings as errors
1556 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1557 --enable-gdb-build-warnings
1558 enable GDB specific build-time compiler warnings
if
1560 --enable-sim link gdb with simulator
1561 --enable-multi-ice build the multi-ice-gdb-server
1562 --enable-gdbserver automatically build gdbserver
(yes
/no
/auto
, default
1566 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1567 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1568 --with-separate-debug-dir=PATH
1569 look for global separate debug info
in this path
1571 --with-gdb-datadir=PATH
look for global separate data files
in this path
1573 --with-relocated-sources=PATH
1574 automatically relocate this path
for source files
1575 --with-auto-load-dir=PATH
1576 directories from
which to load auto-loaded scripts
1577 [$debugdir:$datadir/auto-load
]
1578 --with-auto-load-safe-path=PATH
1579 directories safe to hold auto-loaded files
1580 [--with-auto-load-dir]
1581 --without-auto-load-safe-path
1582 do not restrict auto-loaded files locations
1583 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1584 --with-curses use the curses library instead of the termcap
1586 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1587 --with-bugurl=URL Direct users to URL to report a bug
1588 --with-system-zlib use installed libz
1589 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1590 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1591 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1592 --with-iconv-bin=PATH specify where to find the iconv program
1593 --with-system-readline use installed readline library
1594 --with-jit-reader-dir=PATH
1595 directory to load the JIT readers from
1596 --with-expat include expat support (auto/yes/no)
1597 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1598 --without-libexpat-prefix don't search
for libexpat
in includedir and libdir
1599 --with-mpfr include MPFR support
(auto
/yes
/no
)
1600 --with-libmpfr-prefix[=DIR
] search
for libmpfr
in DIR
/include and DIR
/lib
1601 --without-libmpfr-prefix don
't search for libmpfr in includedir and libdir
1602 --with-python[=PYTHON] include python support
1603 (auto/yes/no/<python-program>)
1604 --with-guile[=GUILE] include guile support
1605 (auto/yes/no/<guile-version>/<pkg-config-program>)
1606 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1607 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1608 --without-libipt-prefix don't search
for libipt
in includedir and libdir
1609 --without-included-regex
1610 don
't use included regex; this is the default on
1611 systems with version 2 of the GNU C library (use
1612 with caution on other system)
1613 --with-sysroot[=DIR] search for usr/lib et al within DIR
1614 --with-system-gdbinit=PATH
1615 automatically load a system-wide gdbinit file
1616 --with-lzma support lzma compression (auto/yes/no)
1617 --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib
1618 --without-liblzma-prefix don't search
for liblzma
in includedir and libdir
1619 --with-tcl directory containing tcl configuration
(tclConfig.sh
)
1620 --with-tk directory containing tk configuration
(tkConfig.sh
)
1621 --with-x use the X Window System
1622 --with-babeltrace include babeltrace support
(auto
/yes
/no
)
1623 --with-libbabeltrace-prefix[=DIR
] search
for libbabeltrace
in DIR
/include and DIR
/lib
1624 --without-libbabeltrace-prefix don
't search for libbabeltrace in includedir and libdir
1626 Some influential environment variables:
1627 CC C compiler command
1628 CFLAGS C compiler flags
1629 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1630 nonstandard directory <lib dir>
1631 LIBS libraries to pass to the linker, e.g. -l<library>
1632 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1633 you have headers in a nonstandard directory <include dir>
1634 CXX C++ compiler command
1635 CXXFLAGS C++ compiler flags
1637 MAKEINFO Parent configure detects if it is of sufficient version.
1639 Parameters for MAKEINFO.
1640 YACC The `Yet Another Compiler Compiler' implementation to use.
1641 Defaults to the first program found out of
: `bison -y', `byacc
',
1643 YFLAGS The list of arguments that will be passed by default to
$YACC.
1644 This
script will default YFLAGS to the empty string to avoid a
1645 default value of
`-d' given by some make applications.
1646 XMKMF Path to xmkmf, Makefile generator for X Window System
1648 Use these variables to override the choices made by `configure
' or to help
1649 it to find libraries and programs with nonstandard names/locations.
1651 Report bugs to the package provider.
1656 if test "$ac_init_help" = "recursive"; then
1657 # If there are subdirs, report their specific --help.
1658 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1659 test -d "$ac_dir" ||
1660 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1665 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1667 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.
[\\/]||
'`
1668 # A ".." for each directory in $ac_dir_suffix.
1669 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|
/[^
\\/]*|
/..|g
;s|
/||
'`
1670 case $ac_top_builddir_sub in
1671 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1672 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1675 ac_abs_top_builddir=$ac_pwd
1676 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1677 # for backward compatibility:
1678 ac_top_builddir=$ac_top_build_prefix
1681 .) # We are building in place.
1683 ac_top_srcdir=$ac_top_builddir_sub
1684 ac_abs_top_srcdir=$ac_pwd ;;
1685 [\\/]* | ?:[\\/]* ) # Absolute name.
1686 ac_srcdir=$srcdir$ac_dir_suffix;
1687 ac_top_srcdir=$srcdir
1688 ac_abs_top_srcdir=$srcdir ;;
1690 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1691 ac_top_srcdir=$ac_top_build_prefix$srcdir
1692 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1694 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1696 cd "$ac_dir" || { ac_status=$?; continue; }
1697 # Check for guested configure.
1698 if test -f "$ac_srcdir/configure.gnu"; then
1700 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1701 elif test -f "$ac_srcdir/configure"; then
1703 $SHELL "$ac_srcdir/configure" --help=recursive
1705 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1707 cd "$ac_pwd" || { ac_status=$?; break; }
1711 test -n "$ac_init_help" && exit $ac_status
1712 if $ac_init_version; then
1715 generated by GNU Autoconf 2.69
1717 Copyright (C) 2012 Free Software Foundation, Inc.
1718 This configure script is free software; the Free Software Foundation
1719 gives unlimited permission to copy, distribute and modify it.
1724 ## ------------------------ ##
1725 ## Autoconf initialization. ##
1726 ## ------------------------ ##
1728 # ac_fn_c_try_compile LINENO
1729 # --------------------------
1730 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1731 ac_fn_c_try_compile ()
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 rm -f conftest.$ac_objext
1735 if { { ac_try="$ac_compile"
1737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738 *) ac_try_echo=$ac_try;;
1740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741 $as_echo "$ac_try_echo"; } >&5
1742 (eval "$ac_compile") 2>conftest.err
1744 if test -s conftest.err; then
1745 grep -v '^
*+' conftest.err >conftest.er1
1746 cat conftest.er1 >&5
1747 mv -f conftest.er1 conftest.err
1749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750 test $ac_status = 0; } && {
1751 test -z "$ac_c_werror_flag" ||
1752 test ! -s conftest.err
1753 } && test -s conftest.$ac_objext; then :
1756 $as_echo "$as_me: failed program was:" >&5
1757 sed 's
/^
/|
/' conftest.$ac_ext >&5
1761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762 as_fn_set_status $ac_retval
1764 } # ac_fn_c_try_compile
1766 # ac_fn_cxx_try_compile LINENO
1767 # ----------------------------
1768 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1769 ac_fn_cxx_try_compile ()
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 rm -f conftest.$ac_objext
1773 if { { ac_try="$ac_compile"
1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776 *) ac_try_echo=$ac_try;;
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780 (eval "$ac_compile") 2>conftest.err
1782 if test -s conftest.err; then
1783 grep -v '^
*+' conftest.err >conftest.er1
1784 cat conftest.er1 >&5
1785 mv -f conftest.er1 conftest.err
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; } && {
1789 test -z "$ac_cxx_werror_flag" ||
1790 test ! -s conftest.err
1791 } && test -s conftest.$ac_objext; then :
1794 $as_echo "$as_me: failed program was:" >&5
1795 sed 's
/^
/|
/' conftest.$ac_ext >&5
1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800 as_fn_set_status $ac_retval
1802 } # ac_fn_cxx_try_compile
1804 # ac_fn_c_try_cpp LINENO
1805 # ----------------------
1806 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 if { { ac_try="$ac_cpp conftest.$ac_ext"
1812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813 *) ac_try_echo=$ac_try;;
1815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816 $as_echo "$ac_try_echo"; } >&5
1817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1819 if test -s conftest.err; then
1820 grep -v '^
*+' conftest.err >conftest.er1
1821 cat conftest.er1 >&5
1822 mv -f conftest.er1 conftest.err
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; } > conftest.i && {
1826 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1827 test ! -s conftest.err
1831 $as_echo "$as_me: failed program was:" >&5
1832 sed 's
/^
/|
/' conftest.$ac_ext >&5
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837 as_fn_set_status $ac_retval
1841 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1842 # -------------------------------------------------------
1843 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1844 # the include files in INCLUDES and setting the cache variable VAR
1846 ac_fn_c_check_header_mongrel ()
1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849 if eval \${$3+:} false; then :
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1851 $as_echo_n "checking for $2... " >&6; }
1852 if eval \${$3+:} false; then :
1853 $as_echo_n "(cached) " >&6
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857 $as_echo "$ac_res" >&6; }
1859 # Is the header compilable?
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1861 $as_echo_n "checking $2 usability... " >&6; }
1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863 /* end confdefs.h. */
1867 if ac_fn_c_try_compile "$LINENO"; then :
1868 ac_header_compiler=yes
1870 ac_header_compiler=no
1872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1874 $as_echo "$ac_header_compiler" >&6; }
1876 # Is the header present?
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1878 $as_echo_n "checking $2 presence... " >&6; }
1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880 /* end confdefs.h. */
1883 if ac_fn_c_try_cpp "$LINENO"; then :
1884 ac_header_preproc=yes
1886 ac_header_preproc=no
1888 rm -f conftest.err conftest.i conftest.$ac_ext
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1890 $as_echo "$ac_header_preproc" >&6; }
1892 # So? What about this header?
1893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1896 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1898 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1902 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1904 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1906 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1908 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1910 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914 $as_echo_n "checking for $2... " >&6; }
1915 if eval \${$3+:} false; then :
1916 $as_echo_n "(cached) " >&6
1918 eval "$3=\$ac_header_compiler"
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1922 $as_echo "$ac_res" >&6; }
1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 } # ac_fn_c_check_header_mongrel
1928 # ac_fn_c_try_run LINENO
1929 # ----------------------
1930 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1931 # that executables *can* be run.
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 if { { ac_try="$ac_link"
1937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938 *) ac_try_echo=$ac_try;;
1940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 $as_echo "$ac_try_echo"; } >&5
1942 (eval "$ac_link") 2>&5
1944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1945 test $ac_status = 0; } && { ac_try='.
/conftest
$ac_exeext'
1946 { { case "(($ac_try" in
1947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948 *) ac_try_echo=$ac_try;;
1950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951 $as_echo "$ac_try_echo"; } >&5
1952 (eval "$ac_try") 2>&5
1954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1955 test $ac_status = 0; }; }; then :
1958 $as_echo "$as_me: program exited with status $ac_status" >&5
1959 $as_echo "$as_me: failed program was:" >&5
1960 sed 's
/^
/|
/' conftest.$ac_ext >&5
1962 ac_retval=$ac_status
1964 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1965 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1966 as_fn_set_status $ac_retval
1970 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1971 # -------------------------------------------------------
1972 # Tests whether HEADER exists and can be compiled using the include files in
1973 # INCLUDES, setting the cache variable VAR accordingly.
1974 ac_fn_c_check_header_compile ()
1976 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1978 $as_echo_n "checking for $2... " >&6; }
1979 if eval \${$3+:} false; then :
1980 $as_echo_n "(cached) " >&6
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h. */
1987 if ac_fn_c_try_compile "$LINENO"; then :
1992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996 $as_echo "$ac_res" >&6; }
1997 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999 } # ac_fn_c_check_header_compile
2001 # ac_fn_c_try_link LINENO
2002 # -----------------------
2003 # Try to link conftest.$ac_ext, and return whether this succeeded.
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 rm -f conftest.$ac_objext conftest$ac_exeext
2008 if { { ac_try="$ac_link"
2010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2011 *) ac_try_echo=$ac_try;;
2013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2014 $as_echo "$ac_try_echo"; } >&5
2015 (eval "$ac_link") 2>conftest.err
2017 if test -s conftest.err; then
2018 grep -v '^
*+' conftest.err >conftest.er1
2019 cat conftest.er1 >&5
2020 mv -f conftest.er1 conftest.err
2022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2023 test $ac_status = 0; } && {
2024 test -z "$ac_c_werror_flag" ||
2025 test ! -s conftest.err
2026 } && test -s conftest$ac_exeext && {
2027 test "$cross_compiling" = yes ||
2028 test -x conftest$ac_exeext
2032 $as_echo "$as_me: failed program was:" >&5
2033 sed 's
/^
/|
/' conftest.$ac_ext >&5
2037 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2038 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2039 # interfere with the next link command; also delete a directory that is
2040 # left behind by Apple's compiler. We
do this before executing the actions.
2041 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2042 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2043 as_fn_set_status
$ac_retval
2045 } # ac_fn_c_try_link
2047 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2048 # --------------------------------------------
2049 # Tries to find the compile-time value of EXPR in a program that includes
2050 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2052 ac_fn_c_compute_int
()
2054 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2055 if test "$cross_compiling" = yes; then
2056 # Depending upon the size, compute the lo and hi bounds.
2057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h. */
2063 static int test_array [1 - 2 * !(($2) >= 0)];
2065 return test_array [0];
2071 if ac_fn_c_try_compile
"$LINENO"; then :
2074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2075 /* end confdefs.h. */
2080 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2082 return test_array [0];
2088 if ac_fn_c_try_compile
"$LINENO"; then :
2089 ac_hi
=$ac_mid; break
2091 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2092 if test $ac_lo -le $ac_mid; then
2096 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2098 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2107 static int test_array [1 - 2 * !(($2) < 0)];
2109 return test_array [0];
2115 if ac_fn_c_try_compile
"$LINENO"; then :
2118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2124 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2126 return test_array [0];
2132 if ac_fn_c_try_compile
"$LINENO"; then :
2133 ac_lo
=$ac_mid; break
2135 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2136 if test $ac_mid -le $ac_hi; then
2140 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2142 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2147 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2150 # Binary search between lo and hi bounds.
2151 while test "x$ac_lo" != "x$ac_hi"; do
2152 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2154 /* end confdefs.h. */
2159 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2161 return test_array [0];
2167 if ac_fn_c_try_compile
"$LINENO"; then :
2170 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2172 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2175 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h. */
2182 static long int longval () { return $2; }
2183 static unsigned long int ulongval () { return $2; }
2190 FILE *f = fopen ("conftest.val", "w");
2195 long int i = longval ();
2198 fprintf (f, "%ld", i);
2202 unsigned long int i = ulongval ();
2205 fprintf (f, "%lu", i);
2207 /* Do not output a trailing newline, as this causes \r\n confusion
2208 on some platforms. */
2209 return ferror (f) || fclose (f) != 0;
2215 if ac_fn_c_try_run
"$LINENO"; then :
2216 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2220 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2221 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2225 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2226 as_fn_set_status
$ac_retval
2228 } # ac_fn_c_compute_int
2230 # ac_fn_c_check_func LINENO FUNC VAR
2231 # ----------------------------------
2232 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2233 ac_fn_c_check_func
()
2235 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2237 $as_echo_n "checking for $2... " >&6; }
2238 if eval \
${$3+:} false
; then :
2239 $as_echo_n "(cached) " >&6
2241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2243 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2245 #define $2 innocuous_$2
2247 /* System header to define __stub macros and hopefully few prototypes,
2248 which can conflict with char $2 (); below.
2249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2250 <limits.h> exists even on freestanding compilers. */
2253 # include <limits.h>
2255 # include <assert.h>
2260 /* Override any GCC internal prototype to avoid an error.
2261 Use char because int might match the return type of a GCC
2262 builtin and then its argument prototype would still apply. */
2267 /* The GNU C library defines this for functions which it implements
2268 to always fail with ENOSYS. Some functions are actually named
2269 something starting with __ and the normal name is an alias. */
2270 #if defined __stub_$2 || defined __stub___$2
2282 if ac_fn_c_try_link
"$LINENO"; then :
2287 rm -f core conftest.err conftest.
$ac_objext \
2288 conftest
$ac_exeext conftest.
$ac_ext
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2292 $as_echo "$ac_res" >&6; }
2293 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2295 } # ac_fn_c_check_func
2297 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2298 # ----------------------------------------------------
2299 # Tries to find if the field MEMBER exists in type AGGR, after including
2300 # INCLUDES, setting cache variable VAR accordingly.
2301 ac_fn_c_check_member
()
2303 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2305 $as_echo_n "checking for $2.$3... " >&6; }
2306 if eval \
${$4+:} false
; then :
2307 $as_echo_n "(cached) " >&6
2309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2310 /* end confdefs.h. */
2322 if ac_fn_c_try_compile
"$LINENO"; then :
2325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2326 /* end confdefs.h. */
2332 if (sizeof ac_aggr.$3)
2338 if ac_fn_c_try_compile
"$LINENO"; then :
2343 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2345 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2349 $as_echo "$ac_res" >&6; }
2350 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2352 } # ac_fn_c_check_member
2354 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2355 # -------------------------------------------
2356 # Tests whether TYPE exists after having included INCLUDES, setting cache
2357 # variable VAR accordingly.
2358 ac_fn_c_check_type
()
2360 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2362 $as_echo_n "checking for $2... " >&6; }
2363 if eval \
${$3+:} false
; then :
2364 $as_echo_n "(cached) " >&6
2367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2368 /* end confdefs.h. */
2379 if ac_fn_c_try_compile
"$LINENO"; then :
2380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2381 /* end confdefs.h. */
2392 if ac_fn_c_try_compile
"$LINENO"; then :
2397 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2399 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2403 $as_echo "$ac_res" >&6; }
2404 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2406 } # ac_fn_c_check_type
2408 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2409 # ---------------------------------------------
2410 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2412 ac_fn_c_check_decl
()
2414 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2415 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2416 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2418 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2419 if eval \
${$3+:} false
; then :
2420 $as_echo_n "(cached) " >&6
2422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2423 /* end confdefs.h. */
2428 #ifndef $as_decl_name
2430 (void) $as_decl_use;
2432 (void) $as_decl_name;
2440 if ac_fn_c_try_compile
"$LINENO"; then :
2445 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2449 $as_echo "$ac_res" >&6; }
2450 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2452 } # ac_fn_c_check_decl
2453 cat >config.log
<<_ACEOF
2454 This file contains any messages produced by compilers while
2455 running configure, to aid debugging if configure makes a mistake.
2457 It was created by $as_me, which was
2458 generated by GNU Autoconf 2.69. Invocation command line was
2470 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2471 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2472 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2473 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2474 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2476 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2477 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2479 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2480 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2481 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2482 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2483 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2484 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2485 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2489 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2493 test -z "$as_dir" && as_dir
=.
2494 $as_echo "PATH: $as_dir"
2510 # Keep a trace of the command line.
2511 # Strip out --no-create and --no-recursion so they do not pile up.
2512 # Strip out --silent because we don't want to record it for future runs.
2513 # Also quote any args containing shell meta-characters.
2514 # Make two passes to allow for proper duplicate-argument suppression.
2518 ac_must_keep_next
=false
2524 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2525 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2526 |
-silent |
--silent |
--silen |
--sile |
--sil)
2529 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2532 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2534 as_fn_append ac_configure_args1
" '$ac_arg'"
2535 if test $ac_must_keep_next = true
; then
2536 ac_must_keep_next
=false
# Got value, back to normal.
2539 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2540 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2541 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2542 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2543 case "$ac_configure_args0 " in
2544 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2547 -* ) ac_must_keep_next
=true
;;
2550 as_fn_append ac_configure_args
" '$ac_arg'"
2555 { ac_configure_args0
=; unset ac_configure_args0
;}
2556 { ac_configure_args1
=; unset ac_configure_args1
;}
2558 # When interrupted or exit'd, cleanup temporary files, and complete
2559 # config.log. We remove comments because anyway the quotes in there
2560 # would cause problems or look ugly.
2561 # WARNING: Use '\'' to represent an apostrophe within the trap.
2562 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2563 trap 'exit_status=$?
2564 # Save into config.log some information that might help in debugging.
2568 $as_echo "## ---------------- ##
2569 ## Cache variables. ##
2570 ## ---------------- ##"
2572 # The following way of writing the cache mishandles newlines in values,
2574 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2575 eval ac_val=\$$ac_var
2579 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2580 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2583 _ | IFS | as_nl) ;; #(
2584 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2585 *) { eval $ac_var=; unset $ac_var;} ;;
2590 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2591 *${as_nl}ac_space=\ *)
2593 "s/'\''/'\''\\\\'\'''\''/g;
2594 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2597 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2604 $as_echo "## ----------------- ##
2605 ## Output variables. ##
2606 ## ----------------- ##"
2608 for ac_var in $ac_subst_vars
2610 eval ac_val=\$$ac_var
2612 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2614 $as_echo "$ac_var='\''$ac_val'\''"
2618 if test -n "$ac_subst_files"; then
2619 $as_echo "## ------------------- ##
2620 ## File substitutions. ##
2621 ## ------------------- ##"
2623 for ac_var
in $ac_subst_files
2625 eval ac_val
=\$
$ac_var
2627 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2629 $as_echo "$ac_var='\''$ac_val'\''"
2634 if test -s confdefs.h; then
2635 $as_echo "## ----------- ##
2642 test "$ac_signal" != 0 &&
2643 $as_echo "$as_me: caught signal $ac_signal"
2644 $as_echo "$as_me: exit $exit_status"
2646 rm -f core *.core core.conftest.* &&
2647 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2650 for ac_signal
in 1 2 13 15; do
2651 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2655 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2656 rm -f -r conftest
* confdefs.h
2658 $as_echo "/* confdefs.h */" > confdefs.h
2660 # Predefined preprocessor variables.
2662 cat >>confdefs.h
<<_ACEOF
2663 #define PACKAGE_NAME "$PACKAGE_NAME"
2666 cat >>confdefs.h
<<_ACEOF
2667 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2670 cat >>confdefs.h
<<_ACEOF
2671 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2674 cat >>confdefs.h
<<_ACEOF
2675 #define PACKAGE_STRING "$PACKAGE_STRING"
2678 cat >>confdefs.h
<<_ACEOF
2679 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2682 cat >>confdefs.h
<<_ACEOF
2683 #define PACKAGE_URL "$PACKAGE_URL"
2687 # Let the site file select an alternate cache file if it wants to.
2688 # Prefer an explicitly selected file to automatically selected ones.
2691 if test -n "$CONFIG_SITE"; then
2692 # We do not want a PATH search for config.site.
2693 case $CONFIG_SITE in #((
2694 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2695 */*) ac_site_file1
=$CONFIG_SITE;;
2696 *) ac_site_file1
=.
/$CONFIG_SITE;;
2698 elif test "x$prefix" != xNONE
; then
2699 ac_site_file1
=$prefix/share
/config.site
2700 ac_site_file2
=$prefix/etc
/config.site
2702 ac_site_file1
=$ac_default_prefix/share
/config.site
2703 ac_site_file2
=$ac_default_prefix/etc
/config.site
2705 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2707 test "x$ac_site_file" = xNONE
&& continue
2708 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2710 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2711 sed 's/^/| /' "$ac_site_file" >&5
2713 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2715 as_fn_error $?
"failed to load site script $ac_site_file
2716 See \`config.log' for more details" "$LINENO" 5; }
2720 if test -r "$cache_file"; then
2721 # Some versions of bash will fail to source /dev/null (special files
2722 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2723 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2725 $as_echo "$as_me: loading cache $cache_file" >&6;}
2727 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2728 *) .
"./$cache_file";;
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2733 $as_echo "$as_me: creating cache $cache_file" >&6;}
2737 as_fn_append ac_header_list
" stdlib.h"
2738 as_fn_append ac_header_list
" unistd.h"
2739 as_fn_append ac_header_list
" sys/param.h"
2740 # Check that the precious variables saved in the cache have kept the same
2742 ac_cache_corrupted
=false
2743 for ac_var
in $ac_precious_vars; do
2744 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2745 eval ac_new_set
=\
$ac_env_${ac_var}_set
2746 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2747 eval ac_new_val
=\
$ac_env_${ac_var}_value
2748 case $ac_old_set,$ac_new_set in
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2751 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2752 ac_cache_corrupted
=: ;;
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2755 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2756 ac_cache_corrupted
=: ;;
2759 if test "x$ac_old_val" != "x$ac_new_val"; then
2760 # differences in whitespace do not lead to failure.
2761 ac_old_val_w
=`echo x $ac_old_val`
2762 ac_new_val_w
=`echo x $ac_new_val`
2763 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2765 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2766 ac_cache_corrupted
=:
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2769 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2770 eval $ac_var=\
$ac_old_val
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2773 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2775 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2778 # Pass precious variables to config.status.
2779 if test "$ac_new_set" = set; then
2781 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2782 *) ac_arg
=$ac_var=$ac_new_val ;;
2784 case " $ac_configure_args " in
2785 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2786 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2790 if $ac_cache_corrupted; then
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2794 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2795 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2797 ## -------------------- ##
2798 ## Main body of script. ##
2799 ## -------------------- ##
2802 ac_cpp
='$CPP $CPPFLAGS'
2803 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2804 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2805 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2811 ac_config_headers
="$ac_config_headers config.h:config.in"
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2815 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2816 # Check whether --enable-maintainer-mode was given.
2817 if test "${enable_maintainer_mode+set}" = set; then :
2818 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2820 USE_MAINTAINER_MODE
=no
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2824 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2825 if test $USE_MAINTAINER_MODE = yes; then
2826 MAINTAINER_MODE_TRUE
=
2827 MAINTAINER_MODE_FALSE
='#'
2829 MAINTAINER_MODE_TRUE
='#'
2830 MAINTAINER_MODE_FALSE
=
2833 MAINT
=$MAINTAINER_MODE_TRUE
2837 # Set the 'development' global.
2838 .
$srcdir/..
/bfd
/development.sh
2841 ac_cpp
='$CPP $CPPFLAGS'
2842 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2843 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2844 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2845 if test -n "$ac_tool_prefix"; then
2846 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2847 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2849 $as_echo_n "checking for $ac_word... " >&6; }
2850 if ${ac_cv_prog_CC+:} false
; then :
2851 $as_echo_n "(cached) " >&6
2853 if test -n "$CC"; then
2854 ac_cv_prog_CC
="$CC" # Let the user override the test.
2856 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2860 test -z "$as_dir" && as_dir
=.
2861 for ac_exec_ext
in '' $ac_executable_extensions; do
2862 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2863 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2874 if test -n "$CC"; then
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2876 $as_echo "$CC" >&6; }
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2879 $as_echo "no" >&6; }
2884 if test -z "$ac_cv_prog_CC"; then
2886 # Extract the first word of "gcc", so it can be a program name with args.
2887 set dummy gcc
; ac_word
=$2
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2889 $as_echo_n "checking for $ac_word... " >&6; }
2890 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2891 $as_echo_n "(cached) " >&6
2893 if test -n "$ac_ct_CC"; then
2894 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2896 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2900 test -z "$as_dir" && as_dir
=.
2901 for ac_exec_ext
in '' $ac_executable_extensions; do
2902 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2903 ac_cv_prog_ac_ct_CC
="gcc"
2904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2913 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2914 if test -n "$ac_ct_CC"; then
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2916 $as_echo "$ac_ct_CC" >&6; }
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2919 $as_echo "no" >&6; }
2922 if test "x$ac_ct_CC" = x
; then
2925 case $cross_compiling:$ac_tool_warned in
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2929 ac_tool_warned
=yes ;;
2937 if test -z "$CC"; then
2938 if test -n "$ac_tool_prefix"; then
2939 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2940 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2942 $as_echo_n "checking for $ac_word... " >&6; }
2943 if ${ac_cv_prog_CC+:} false
; then :
2944 $as_echo_n "(cached) " >&6
2946 if test -n "$CC"; then
2947 ac_cv_prog_CC
="$CC" # Let the user override the test.
2949 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2953 test -z "$as_dir" && as_dir
=.
2954 for ac_exec_ext
in '' $ac_executable_extensions; do
2955 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2956 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 if test -n "$CC"; then
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2969 $as_echo "$CC" >&6; }
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972 $as_echo "no" >&6; }
2978 if test -z "$CC"; then
2979 # Extract the first word of "cc", so it can be a program name with args.
2980 set dummy cc
; ac_word
=$2
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982 $as_echo_n "checking for $ac_word... " >&6; }
2983 if ${ac_cv_prog_CC+:} false
; then :
2984 $as_echo_n "(cached) " >&6
2986 if test -n "$CC"; then
2987 ac_cv_prog_CC
="$CC" # Let the user override the test.
2990 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2994 test -z "$as_dir" && as_dir
=.
2995 for ac_exec_ext
in '' $ac_executable_extensions; do
2996 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2997 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2998 ac_prog_rejected
=yes
3002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3009 if test $ac_prog_rejected = yes; then
3010 # We found a bogon in the path, so make sure we never use it.
3011 set dummy
$ac_cv_prog_CC
3013 if test $# != 0; then
3014 # We chose a different compiler from the bogus one.
3015 # However, it has the same basename, so the bogon will be chosen
3016 # first if we set CC to just the basename; use the full file name.
3018 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3024 if test -n "$CC"; then
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3026 $as_echo "$CC" >&6; }
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029 $as_echo "no" >&6; }
3034 if test -z "$CC"; then
3035 if test -n "$ac_tool_prefix"; then
3036 for ac_prog
in cl.exe
3038 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3039 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3041 $as_echo_n "checking for $ac_word... " >&6; }
3042 if ${ac_cv_prog_CC+:} false
; then :
3043 $as_echo_n "(cached) " >&6
3045 if test -n "$CC"; then
3046 ac_cv_prog_CC
="$CC" # Let the user override the test.
3048 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3052 test -z "$as_dir" && as_dir
=.
3053 for ac_exec_ext
in '' $ac_executable_extensions; do
3054 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3055 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3066 if test -n "$CC"; then
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3068 $as_echo "$CC" >&6; }
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3071 $as_echo "no" >&6; }
3075 test -n "$CC" && break
3078 if test -z "$CC"; then
3080 for ac_prog
in cl.exe
3082 # Extract the first word of "$ac_prog", so it can be a program name with args.
3083 set dummy
$ac_prog; ac_word
=$2
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3085 $as_echo_n "checking for $ac_word... " >&6; }
3086 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3087 $as_echo_n "(cached) " >&6
3089 if test -n "$ac_ct_CC"; then
3090 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3092 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3096 test -z "$as_dir" && as_dir
=.
3097 for ac_exec_ext
in '' $ac_executable_extensions; do
3098 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3099 ac_cv_prog_ac_ct_CC
="$ac_prog"
3100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3109 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3110 if test -n "$ac_ct_CC"; then
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3112 $as_echo "$ac_ct_CC" >&6; }
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3115 $as_echo "no" >&6; }
3119 test -n "$ac_ct_CC" && break
3122 if test "x$ac_ct_CC" = x
; then
3125 case $cross_compiling:$ac_tool_warned in
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3129 ac_tool_warned
=yes ;;
3138 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3140 as_fn_error $?
"no acceptable C compiler found in \$PATH
3141 See \`config.log' for more details" "$LINENO" 5; }
3143 # Provide some information about the compiler.
3144 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3147 for ac_option
in --version -v -V -qversion; do
3148 { { ac_try
="$ac_compiler $ac_option >&5"
3150 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3154 $as_echo "$ac_try_echo"; } >&5
3155 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3157 if test -s conftest.err; then
3159 ... rest of stderr output deleted ...
3160 10q' conftest.err >conftest.er1
3161 cat conftest.er1 >&5
3163 rm -f conftest.er1 conftest.err
3164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3165 test $ac_status = 0; }
3168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3169 /* end confdefs.h. */
3179 ac_clean_files_save=$ac_clean_files
3180 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3181 # Try to create an executable without -o first, disregard a.out.
3182 # It will help us diagnose broken compilers, and finding out an intuition
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3185 $as_echo_n "checking whether the C compiler works... " >&6; }
3186 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3188 # The possible output files:
3189 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3192 for ac_file in $ac_files
3195 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3196 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3201 if { { ac_try="$ac_link_default"
3203 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3204 *) ac_try_echo
=$ac_try;;
3206 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3207 $as_echo "$ac_try_echo"; } >&5
3208 (eval "$ac_link_default") 2>&5
3210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3211 test $ac_status = 0; }; then :
3212 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3213 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3214 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3215 # so that the user can short-circuit this test for compilers unknown to
3217 for ac_file
in $ac_files ''
3219 test -f "$ac_file" ||
continue
3221 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3224 # We found the default executable, but exeext='' is most
3228 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3230 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3232 # We set ac_cv_exeext here because the later test for it is not
3233 # safe: cross compilers may not add the suffix if given an `-o'
3234 # argument, so we may need to know it at that point already.
3235 # Even if this section looks crufty: it has the advantage of
3242 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3247 if test -z "$ac_file"; then :
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249 $as_echo "no" >&6; }
3250 $as_echo "$as_me: failed program was:" >&5
3251 sed 's/^/| /' conftest.
$ac_ext >&5
3253 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3255 as_fn_error
77 "C compiler cannot create executables
3256 See \`config.log' for more details" "$LINENO" 5; }
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3259 $as_echo "yes" >&6; }
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3262 $as_echo_n "checking for C compiler default output file name... " >&6; }
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3264 $as_echo "$ac_file" >&6; }
3265 ac_exeext
=$ac_cv_exeext
3267 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3268 ac_clean_files
=$ac_clean_files_save
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3270 $as_echo_n "checking for suffix of executables... " >&6; }
3271 if { { ac_try
="$ac_link"
3273 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3276 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3277 $as_echo "$ac_try_echo"; } >&5
3278 (eval "$ac_link") 2>&5
3280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3281 test $ac_status = 0; }; then :
3282 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3283 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3284 # work properly (i.e., refer to `conftest.exe'), while it won't with
3286 for ac_file
in conftest.exe conftest conftest.
*; do
3287 test -f "$ac_file" ||
continue
3289 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3290 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3298 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3299 See \`config.log' for more details" "$LINENO" 5; }
3301 rm -f conftest conftest
$ac_cv_exeext
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3303 $as_echo "$ac_cv_exeext" >&6; }
3305 rm -f conftest.
$ac_ext
3306 EXEEXT
=$ac_cv_exeext
3308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3309 /* end confdefs.h. */
3314 FILE *f = fopen ("conftest.out", "w");
3315 return ferror (f) || fclose (f) != 0;
3321 ac_clean_files
="$ac_clean_files conftest.out"
3322 # Check that the compiler produces executables we can run. If not, either
3323 # the compiler is broken, or we cross compile.
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3325 $as_echo_n "checking whether we are cross compiling... " >&6; }
3326 if test "$cross_compiling" != yes; then
3327 { { ac_try
="$ac_link"
3329 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3330 *) ac_try_echo=$ac_try;;
3332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3333 $as_echo "$ac_try_echo"; } >&5
3334 (eval "$ac_link") 2>&5
3336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3337 test $ac_status = 0; }
3338 if { ac_try='./conftest$ac_cv_exeext'
3339 { { case "(($ac_try" in
3340 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3341 *) ac_try_echo
=$ac_try;;
3343 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3344 $as_echo "$ac_try_echo"; } >&5
3345 (eval "$ac_try") 2>&5
3347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3348 test $ac_status = 0; }; }; then
3351 if test "$cross_compiling" = maybe
; then
3354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3356 as_fn_error $?
"cannot run C compiled programs.
3357 If you meant to cross compile, use \`--host'.
3358 See \`config.log' for more details" "$LINENO" 5; }
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3363 $as_echo "$cross_compiling" >&6; }
3365 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3366 ac_clean_files
=$ac_clean_files_save
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3368 $as_echo_n "checking for suffix of object files... " >&6; }
3369 if ${ac_cv_objext+:} false
; then :
3370 $as_echo_n "(cached) " >&6
3372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3373 /* end confdefs.h. */
3383 rm -f conftest.o conftest.obj
3384 if { { ac_try
="$ac_compile"
3386 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3390 $as_echo "$ac_try_echo"; } >&5
3391 (eval "$ac_compile") 2>&5
3393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3394 test $ac_status = 0; }; then :
3395 for ac_file in conftest.o conftest.obj conftest.*; do
3396 test -f "$ac_file" || continue;
3398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3399 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3404 $as_echo "$as_me: failed program was:" >&5
3405 sed 's/^/| /' conftest.$ac_ext >&5
3407 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3408 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3409 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3410 See \
`config.log' for more details" "$LINENO" 5; }
3412 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3415 $as_echo "$ac_cv_objext" >&6; }
3416 OBJEXT=$ac_cv_objext
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3419 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3420 if ${ac_cv_c_compiler_gnu+:} false; then :
3421 $as_echo_n "(cached) " >&6
3423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424 /* end confdefs.h. */
3437 if ac_fn_c_try_compile "$LINENO"; then :
3442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3443 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3447 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3448 if test $ac_compiler_gnu = yes; then
3453 ac_test_CFLAGS=${CFLAGS+set}
3454 ac_save_CFLAGS=$CFLAGS
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3456 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3457 if ${ac_cv_prog_cc_g+:} false; then :
3458 $as_echo_n "(cached) " >&6
3460 ac_save_c_werror_flag=$ac_c_werror_flag
3461 ac_c_werror_flag=yes
3464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3465 /* end confdefs.h. */
3475 if ac_fn_c_try_compile "$LINENO"; then :
3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h. */
3490 if ac_fn_c_try_compile "$LINENO"; then :
3493 ac_c_werror_flag=$ac_save_c_werror_flag
3495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496 /* end confdefs.h. */
3506 if ac_fn_c_try_compile "$LINENO"; then :
3509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3514 ac_c_werror_flag=$ac_save_c_werror_flag
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3517 $as_echo "$ac_cv_prog_cc_g" >&6; }
3518 if test "$ac_test_CFLAGS" = set; then
3519 CFLAGS=$ac_save_CFLAGS
3520 elif test $ac_cv_prog_cc_g = yes; then
3521 if test "$GCC" = yes; then
3527 if test "$GCC" = yes; then
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3534 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3535 if ${ac_cv_prog_cc_c89+:} false; then :
3536 $as_echo_n "(cached) " >&6
3538 ac_cv_prog_cc_c89=no
3540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541 /* end confdefs.h. */
3545 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3546 struct buf { int x; };
3547 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3548 static char *e (p, i)
3554 static char *f (char * (*g) (char **, int), char **p, ...)
3559 s = g (p, va_arg (v,int));
3564 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3565 function prototypes and stuff, but not '\xHH' hex character constants.
3566 These don't provoke an error unfortunately, instead are silently treated
3567 as 'x'. The following induces an error, until -std is added to get
3568 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3569 array size at least. It's necessary to write '\x00'==0 to get something
3570 that's true only with -std. */
3571 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3573 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3574 inside strings and character constants. */
3576 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3578 int test (int i, double x);
3579 struct s1 {int (*f) (int a);};
3580 struct s2 {int (*f) (double a);};
3581 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3587 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3592 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3593 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3595 CC="$ac_save_CC $ac_arg"
3596 if ac_fn_c_try_compile "$LINENO"; then :
3597 ac_cv_prog_cc_c89=$ac_arg
3599 rm -f core conftest.err conftest.$ac_objext
3600 test "x$ac_cv_prog_cc_c89" != "xno" && break
3602 rm -f conftest.$ac_ext
3607 case "x$ac_cv_prog_cc_c89" in
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3610 $as_echo "none needed" >&6; } ;;
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3613 $as_echo "unsupported" >&6; } ;;
3615 CC="$CC $ac_cv_prog_cc_c89"
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3617 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3619 if test "x$ac_cv_prog_cc_c89" != xno; then :
3624 ac_cpp='$CPP $CPPFLAGS'
3625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3630 ac_cpp='$CXXCPP $CPPFLAGS'
3631 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3632 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3633 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3634 if test -z "$CXX"; then
3635 if test -n "$CCC"; then
3638 if test -n "$ac_tool_prefix"; then
3639 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3641 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3642 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3644 $as_echo_n "checking for $ac_word... " >&6; }
3645 if ${ac_cv_prog_CXX+:} false; then :
3646 $as_echo_n "(cached) " >&6
3648 if test -n "$CXX"; then
3649 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 test -z "$as_dir" && as_dir=.
3656 for ac_exec_ext in '' $ac_executable_extensions; do
3657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3658 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3669 if test -n "$CXX"; then
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3671 $as_echo "$CXX" >&6; }
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674 $as_echo "no" >&6; }
3678 test -n "$CXX" && break
3681 if test -z "$CXX"; then
3683 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3685 # Extract the first word of "$ac_prog", so it can be a program name with args.
3686 set dummy $ac_prog; ac_word=$2
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3688 $as_echo_n "checking for $ac_word... " >&6; }
3689 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3690 $as_echo_n "(cached) " >&6
3692 if test -n "$ac_ct_CXX"; then
3693 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699 test -z "$as_dir" && as_dir=.
3700 for ac_exec_ext in '' $ac_executable_extensions; do
3701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3702 ac_cv_prog_ac_ct_CXX="$ac_prog"
3703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3712 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3713 if test -n "$ac_ct_CXX"; then
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3715 $as_echo "$ac_ct_CXX" >&6; }
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3718 $as_echo "no" >&6; }
3722 test -n "$ac_ct_CXX" && break
3725 if test "x$ac_ct_CXX" = x; then
3728 case $cross_compiling:$ac_tool_warned in
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3731 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3732 ac_tool_warned=yes ;;
3740 # Provide some information about the compiler.
3741 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3744 for ac_option in --version -v -V -qversion; do
3745 { { ac_try="$ac_compiler $ac_option >&5"
3747 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3748 *) ac_try_echo
=$ac_try;;
3750 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3751 $as_echo "$ac_try_echo"; } >&5
3752 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3754 if test -s conftest.err
; then
3756 ... rest of stderr output deleted ...
3757 10q' conftest.err
>conftest.er1
3758 cat conftest.er1
>&5
3760 rm -f conftest.er1 conftest.err
3761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3762 test $ac_status = 0; }
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3766 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3767 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3768 $as_echo_n "(cached) " >&6
3770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3771 /* end confdefs.h. */
3784 if ac_fn_cxx_try_compile
"$LINENO"; then :
3789 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3790 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3794 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3795 if test $ac_compiler_gnu = yes; then
3800 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3801 ac_save_CXXFLAGS
=$CXXFLAGS
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3803 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3804 if ${ac_cv_prog_cxx_g+:} false
; then :
3805 $as_echo_n "(cached) " >&6
3807 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3808 ac_cxx_werror_flag
=yes
3811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3812 /* end confdefs.h. */
3822 if ac_fn_cxx_try_compile
"$LINENO"; then :
3823 ac_cv_prog_cxx_g
=yes
3826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3827 /* end confdefs.h. */
3837 if ac_fn_cxx_try_compile
"$LINENO"; then :
3840 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3843 /* end confdefs.h. */
3853 if ac_fn_cxx_try_compile
"$LINENO"; then :
3854 ac_cv_prog_cxx_g
=yes
3856 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3858 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3860 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3861 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3864 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3865 if test "$ac_test_CXXFLAGS" = set; then
3866 CXXFLAGS
=$ac_save_CXXFLAGS
3867 elif test $ac_cv_prog_cxx_g = yes; then
3868 if test "$GXX" = yes; then
3874 if test "$GXX" = yes; then
3881 ac_cpp
='$CPP $CPPFLAGS'
3882 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3883 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3884 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3889 ac_cpp
='$CPP $CPPFLAGS'
3890 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3891 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3892 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3894 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3895 # On Suns, sometimes $CPP names a directory.
3896 if test -n "$CPP" && test -d "$CPP"; then
3899 if test -z "$CPP"; then
3900 if ${ac_cv_prog_CPP+:} false
; then :
3901 $as_echo_n "(cached) " >&6
3903 # Double quotes because CPP needs to be expanded
3904 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3907 for ac_c_preproc_warn_flag
in '' yes
3909 # Use a header file that comes with gcc, so configuring glibc
3910 # with a fresh cross-compiler works.
3911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3912 # <limits.h> exists even on freestanding compilers.
3913 # On the NeXT, cc -E runs the code through the compiler's parser,
3914 # not just through cpp. "Syntax error" is here to catch this case.
3915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3916 /* end confdefs.h. */
3918 # include <limits.h>
3920 # include <assert.h>
3924 if ac_fn_c_try_cpp
"$LINENO"; then :
3927 # Broken: fails on valid input.
3930 rm -f conftest.err conftest.i conftest.
$ac_ext
3932 # OK, works on sane cases. Now check whether nonexistent headers
3933 # can be detected and how.
3934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3935 /* end confdefs.h. */
3936 #include <ac_nonexistent.h>
3938 if ac_fn_c_try_cpp
"$LINENO"; then :
3939 # Broken: success on invalid input.
3942 # Passes both tests.
3946 rm -f conftest.err conftest.i conftest.
$ac_ext
3949 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3950 rm -f conftest.i conftest.err conftest.
$ac_ext
3951 if $ac_preproc_ok; then :
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3964 $as_echo "$CPP" >&6; }
3966 for ac_c_preproc_warn_flag
in '' yes
3968 # Use a header file that comes with gcc, so configuring glibc
3969 # with a fresh cross-compiler works.
3970 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3971 # <limits.h> exists even on freestanding compilers.
3972 # On the NeXT, cc -E runs the code through the compiler's parser,
3973 # not just through cpp. "Syntax error" is here to catch this case.
3974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3975 /* end confdefs.h. */
3977 # include <limits.h>
3979 # include <assert.h>
3983 if ac_fn_c_try_cpp
"$LINENO"; then :
3986 # Broken: fails on valid input.
3989 rm -f conftest.err conftest.i conftest.
$ac_ext
3991 # OK, works on sane cases. Now check whether nonexistent headers
3992 # can be detected and how.
3993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h. */
3995 #include <ac_nonexistent.h>
3997 if ac_fn_c_try_cpp
"$LINENO"; then :
3998 # Broken: success on invalid input.
4001 # Passes both tests.
4005 rm -f conftest.err conftest.i conftest.
$ac_ext
4008 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4009 rm -f conftest.i conftest.err conftest.
$ac_ext
4010 if $ac_preproc_ok; then :
4013 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4015 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4016 See \`config.log' for more details" "$LINENO" 5; }
4020 ac_cpp
='$CPP $CPPFLAGS'
4021 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4022 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4023 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4027 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4028 if ${ac_cv_path_GREP+:} false
; then :
4029 $as_echo_n "(cached) " >&6
4031 if test -z "$GREP"; then
4032 ac_path_GREP_found
=false
4033 # Loop through the user's path and test for each of PROGNAME-LIST
4034 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4035 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4038 test -z "$as_dir" && as_dir
=.
4039 for ac_prog
in grep ggrep
; do
4040 for ac_exec_ext
in '' $ac_executable_extensions; do
4041 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4042 as_fn_executable_p
"$ac_path_GREP" ||
continue
4043 # Check for GNU ac_path_GREP and select it if it is found.
4044 # Check for GNU $ac_path_GREP
4045 case `"$ac_path_GREP" --version 2>&1` in
4047 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4050 $as_echo_n 0123456789 >"conftest.in"
4053 cat "conftest.in" "conftest.in" >"conftest.tmp"
4054 mv "conftest.tmp" "conftest.in"
4055 cp "conftest.in" "conftest.nl"
4056 $as_echo 'GREP' >> "conftest.nl"
4057 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4058 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4059 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4060 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4061 # Best one so far, save it but keep looking for a better one
4062 ac_cv_path_GREP
="$ac_path_GREP"
4063 ac_path_GREP_max
=$ac_count
4065 # 10*(2^10) chars as input seems more than enough
4066 test $ac_count -gt 10 && break
4068 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4071 $ac_path_GREP_found && break 3
4076 if test -z "$ac_cv_path_GREP"; then
4077 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4080 ac_cv_path_GREP
=$GREP
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4085 $as_echo "$ac_cv_path_GREP" >&6; }
4086 GREP
="$ac_cv_path_GREP"
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4090 $as_echo_n "checking for egrep... " >&6; }
4091 if ${ac_cv_path_EGREP+:} false
; then :
4092 $as_echo_n "(cached) " >&6
4094 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4095 then ac_cv_path_EGREP
="$GREP -E"
4097 if test -z "$EGREP"; then
4098 ac_path_EGREP_found
=false
4099 # Loop through the user's path and test for each of PROGNAME-LIST
4100 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4101 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4104 test -z "$as_dir" && as_dir
=.
4105 for ac_prog
in egrep; do
4106 for ac_exec_ext
in '' $ac_executable_extensions; do
4107 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4108 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4109 # Check for GNU ac_path_EGREP and select it if it is found.
4110 # Check for GNU $ac_path_EGREP
4111 case `"$ac_path_EGREP" --version 2>&1` in
4113 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4116 $as_echo_n 0123456789 >"conftest.in"
4119 cat "conftest.in" "conftest.in" >"conftest.tmp"
4120 mv "conftest.tmp" "conftest.in"
4121 cp "conftest.in" "conftest.nl"
4122 $as_echo 'EGREP' >> "conftest.nl"
4123 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4124 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4125 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4126 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4127 # Best one so far, save it but keep looking for a better one
4128 ac_cv_path_EGREP
="$ac_path_EGREP"
4129 ac_path_EGREP_max
=$ac_count
4131 # 10*(2^10) chars as input seems more than enough
4132 test $ac_count -gt 10 && break
4134 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4137 $ac_path_EGREP_found && break 3
4142 if test -z "$ac_cv_path_EGREP"; then
4143 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4146 ac_cv_path_EGREP
=$EGREP
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4152 $as_echo "$ac_cv_path_EGREP" >&6; }
4153 EGREP
="$ac_cv_path_EGREP"
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4157 $as_echo_n "checking for ANSI C header files... " >&6; }
4158 if ${ac_cv_header_stdc+:} false
; then :
4159 $as_echo_n "(cached) " >&6
4161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h. */
4176 if ac_fn_c_try_compile
"$LINENO"; then :
4177 ac_cv_header_stdc
=yes
4179 ac_cv_header_stdc
=no
4181 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4183 if test $ac_cv_header_stdc = yes; then
4184 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4186 /* end confdefs.h. */
4190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4191 $EGREP "memchr" >/dev
/null
2>&1; then :
4194 ac_cv_header_stdc
=no
4200 if test $ac_cv_header_stdc = yes; then
4201 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h. */
4207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4208 $EGREP "free" >/dev
/null
2>&1; then :
4211 ac_cv_header_stdc
=no
4217 if test $ac_cv_header_stdc = yes; then
4218 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4219 if test "$cross_compiling" = yes; then :
4222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h. */
4226 #if ((' ' & 0x0FF) == 0x020)
4227 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4228 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4230 # define ISLOWER(c) \
4231 (('a' <= (c) && (c) <= 'i') \
4232 || ('j' <= (c) && (c) <= 'r') \
4233 || ('s' <= (c) && (c) <= 'z'))
4234 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4237 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4242 for (i = 0; i < 256; i++)
4243 if (XOR (islower (i), ISLOWER (i))
4244 || toupper (i) != TOUPPER (i))
4249 if ac_fn_c_try_run
"$LINENO"; then :
4252 ac_cv_header_stdc
=no
4254 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4255 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4261 $as_echo "$ac_cv_header_stdc" >&6; }
4262 if test $ac_cv_header_stdc = yes; then
4264 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4268 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4269 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4270 inttypes.h stdint.h unistd.h
4272 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4273 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4275 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4276 cat >>confdefs.h
<<_ACEOF
4277 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4286 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4287 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4294 if test "$MINIX" = yes; then
4296 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4299 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4302 $as_echo "#define _MINIX 1" >>confdefs.h
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4308 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4309 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4310 $as_echo_n "(cached) " >&6
4312 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4313 /* end confdefs.h. */
4315 # define __EXTENSIONS__ 1
4316 $ac_includes_default
4325 if ac_fn_c_try_compile
"$LINENO"; then :
4326 ac_cv_safe_to_define___extensions__
=yes
4328 ac_cv_safe_to_define___extensions__
=no
4330 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4333 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4334 test $ac_cv_safe_to_define___extensions__ = yes &&
4335 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4337 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4339 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4341 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4343 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4347 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4348 if test -f "$ac_dir/install-sh"; then
4350 ac_install_sh
="$ac_aux_dir/install-sh -c"
4352 elif test -f "$ac_dir/install.sh"; then
4354 ac_install_sh
="$ac_aux_dir/install.sh -c"
4356 elif test -f "$ac_dir/shtool"; then
4358 ac_install_sh
="$ac_aux_dir/shtool install -c"
4362 if test -z "$ac_aux_dir"; then
4363 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4366 # These three variables are undocumented and unsupported,
4367 # and are intended to be withdrawn in a future Autoconf release.
4368 # They can cause serious problems if a builder's source tree is in a directory
4369 # whose full name contains unusual characters.
4370 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4371 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4372 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4375 # Make sure we can run config.sub.
4376 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4377 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4380 $as_echo_n "checking build system type... " >&6; }
4381 if ${ac_cv_build+:} false
; then :
4382 $as_echo_n "(cached) " >&6
4384 ac_build_alias
=$build_alias
4385 test "x$ac_build_alias" = x
&&
4386 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4387 test "x$ac_build_alias" = x
&&
4388 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4389 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4390 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4394 $as_echo "$ac_cv_build" >&6; }
4395 case $ac_cv_build in
4397 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4400 ac_save_IFS
=$IFS; IFS
='-'
4406 # Remember, the first character of IFS is used to create $*,
4407 # except with old shells:
4410 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4414 $as_echo_n "checking host system type... " >&6; }
4415 if ${ac_cv_host+:} false
; then :
4416 $as_echo_n "(cached) " >&6
4418 if test "x$host_alias" = x
; then
4419 ac_cv_host
=$ac_cv_build
4421 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4422 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4427 $as_echo "$ac_cv_host" >&6; }
4430 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4433 ac_save_IFS
=$IFS; IFS
='-'
4439 # Remember, the first character of IFS is used to create $*,
4440 # except with old shells:
4443 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4447 $as_echo_n "checking target system type... " >&6; }
4448 if ${ac_cv_target+:} false
; then :
4449 $as_echo_n "(cached) " >&6
4451 if test "x$target_alias" = x
; then
4452 ac_cv_target
=$ac_cv_host
4454 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4455 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4460 $as_echo "$ac_cv_target" >&6; }
4461 case $ac_cv_target in
4463 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4465 target
=$ac_cv_target
4466 ac_save_IFS
=$IFS; IFS
='-'
4472 # Remember, the first character of IFS is used to create $*,
4473 # except with old shells:
4476 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4479 # The aliases save the names the user supplied, while $host etc.
4480 # will get canonicalized.
4481 test -n "$target_alias" &&
4482 test "$program_prefix$program_suffix$program_transform_name" = \
4484 program_prefix
=${target_alias}-
4486 # The tests for host and target for $enable_largefile require
4491 # As the $enable_largefile decision depends on --enable-plugins we must set it
4492 # even in directories otherwise not depending on the $plugins option.
4496 for ac_header
in dlfcn.h
4498 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4500 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
4501 cat >>confdefs.h
<<_ACEOF
4502 #define HAVE_DLFCN_H 1
4509 for ac_header
in windows.h
4511 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4513 if test "x$ac_cv_header_windows_h" = xyes
; then :
4514 cat >>confdefs.h
<<_ACEOF
4515 #define HAVE_WINDOWS_H 1
4523 # Check whether --enable-plugins was given.
4524 if test "${enable_plugins+set}" = set; then :
4525 enableval
=$enable_plugins; case "${enableval}" in
4528 if test "$maybe_plugins" != "yes" ; then
4529 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4533 plugins
=$maybe_plugins
4537 if test "$plugins" = "yes"; then
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4539 $as_echo_n "checking for library containing dlsym... " >&6; }
4540 if ${ac_cv_search_dlsym+:} false
; then :
4541 $as_echo_n "(cached) " >&6
4543 ac_func_search_save_LIBS
=$LIBS
4544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h. */
4547 /* Override any GCC internal prototype to avoid an error.
4548 Use char because int might match the return type of a GCC
4549 builtin and then its argument prototype would still apply. */
4562 for ac_lib
in '' dl
; do
4563 if test -z "$ac_lib"; then
4564 ac_res
="none required"
4567 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4569 if ac_fn_c_try_link
"$LINENO"; then :
4570 ac_cv_search_dlsym
=$ac_res
4572 rm -f core conftest.err conftest.
$ac_objext \
4574 if ${ac_cv_search_dlsym+:} false
; then :
4578 if ${ac_cv_search_dlsym+:} false
; then :
4581 ac_cv_search_dlsym
=no
4584 LIBS
=$ac_func_search_save_LIBS
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4587 $as_echo "$ac_cv_search_dlsym" >&6; }
4588 ac_res
=$ac_cv_search_dlsym
4589 if test "$ac_res" != no
; then :
4590 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4598 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4599 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4600 # are mutually exclusive; and without procfs support, the bfd/ elf module
4601 # cannot provide certain routines such as elfcore_write_prpsinfo
4602 # or elfcore_write_prstatus. So unless the user explicitly requested
4603 # large-file support through the --enable-largefile switch, disable
4604 # large-file support in favor of procfs support.
4605 test "${target}" = "${host}" -a "x$plugins" = xno \
4606 && : ${enable_largefile="no"}
4610 # Check whether --enable-largefile was given.
4611 if test "${enable_largefile+set}" = set; then :
4612 enableval
=$enable_largefile;
4615 if test "$enable_largefile" != no
; then
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4618 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4619 if ${ac_cv_sys_largefile_CC+:} false
; then :
4620 $as_echo_n "(cached) " >&6
4622 ac_cv_sys_largefile_CC
=no
4623 if test "$GCC" != yes; then
4626 # IRIX 6.2 and later do not support large files by default,
4627 # so use the C compiler's -n32 option if that helps.
4628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4629 /* end confdefs.h. */
4630 #include <sys/types.h>
4631 /* Check that off_t can represent 2**63 - 1 correctly.
4632 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4633 since some C++ compilers masquerading as C compilers
4634 incorrectly reject 9223372036854775807. */
4635 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4636 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4637 && LARGE_OFF_T % 2147483647 == 1)
4647 if ac_fn_c_try_compile
"$LINENO"; then :
4650 rm -f core conftest.err conftest.
$ac_objext
4652 if ac_fn_c_try_compile
"$LINENO"; then :
4653 ac_cv_sys_largefile_CC
=' -n32'; break
4655 rm -f core conftest.err conftest.
$ac_objext
4659 rm -f conftest.
$ac_ext
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4663 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4664 if test "$ac_cv_sys_largefile_CC" != no
; then
4665 CC
=$CC$ac_cv_sys_largefile_CC
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4669 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4670 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4671 $as_echo_n "(cached) " >&6
4674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4675 /* end confdefs.h. */
4676 #include <sys/types.h>
4677 /* Check that off_t can represent 2**63 - 1 correctly.
4678 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4679 since some C++ compilers masquerading as C compilers
4680 incorrectly reject 9223372036854775807. */
4681 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4682 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4683 && LARGE_OFF_T % 2147483647 == 1)
4693 if ac_fn_c_try_compile
"$LINENO"; then :
4694 ac_cv_sys_file_offset_bits
=no
; break
4696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4698 /* end confdefs.h. */
4699 #define _FILE_OFFSET_BITS 64
4700 #include <sys/types.h>
4701 /* Check that off_t can represent 2**63 - 1 correctly.
4702 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4703 since some C++ compilers masquerading as C compilers
4704 incorrectly reject 9223372036854775807. */
4705 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4706 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4707 && LARGE_OFF_T % 2147483647 == 1)
4717 if ac_fn_c_try_compile
"$LINENO"; then :
4718 ac_cv_sys_file_offset_bits
=64; break
4720 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4721 ac_cv_sys_file_offset_bits
=unknown
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4726 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4727 case $ac_cv_sys_file_offset_bits in #(
4730 cat >>confdefs.h
<<_ACEOF
4731 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4736 if test $ac_cv_sys_file_offset_bits = unknown
; then
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4738 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4739 if ${ac_cv_sys_large_files+:} false
; then :
4740 $as_echo_n "(cached) " >&6
4743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4745 #include <sys/types.h>
4746 /* Check that off_t can represent 2**63 - 1 correctly.
4747 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4748 since some C++ compilers masquerading as C compilers
4749 incorrectly reject 9223372036854775807. */
4750 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4751 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4752 && LARGE_OFF_T % 2147483647 == 1)
4762 if ac_fn_c_try_compile
"$LINENO"; then :
4763 ac_cv_sys_large_files
=no
; break
4765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h. */
4768 #define _LARGE_FILES 1
4769 #include <sys/types.h>
4770 /* Check that off_t can represent 2**63 - 1 correctly.
4771 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4772 since some C++ compilers masquerading as C compilers
4773 incorrectly reject 9223372036854775807. */
4774 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4775 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4776 && LARGE_OFF_T % 2147483647 == 1)
4786 if ac_fn_c_try_compile
"$LINENO"; then :
4787 ac_cv_sys_large_files
=1; break
4789 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4790 ac_cv_sys_large_files
=unknown
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4795 $as_echo "$ac_cv_sys_large_files" >&6; }
4796 case $ac_cv_sys_large_files in #(
4799 cat >>confdefs.h
<<_ACEOF
4800 #define _LARGE_FILES $ac_cv_sys_large_files
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4815 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4816 if ${am_cv_prog_cc_stdc+:} false
; then :
4817 $as_echo_n "(cached) " >&6
4819 am_cv_prog_cc_stdc
=no
4821 # Don't try gcc -ansi; that turns off useful extensions and
4822 # breaks some systems' header files.
4823 # AIX -qlanglvl=ansi
4824 # Ultrix and OSF/1 -std1
4825 # HP-UX 10.20 and later -Ae
4826 # HP-UX older versions -Aa -D_HPUX_SOURCE
4827 # SVR4 -Xc -D__EXTENSIONS__
4828 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4830 CC
="$ac_save_CC $ac_arg"
4831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4832 /* end confdefs.h. */
4835 #include <sys/types.h>
4836 #include <sys/stat.h>
4837 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4838 struct buf { int x; };
4839 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4840 static char *e (p, i)
4846 static char *f (char * (*g) (char **, int), char **p, ...)
4851 s = g (p, va_arg (v,int));
4855 int test (int i, double x);
4856 struct s1 {int (*f) (int a);};
4857 struct s2 {int (*f) (double a);};
4858 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4866 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4872 if ac_fn_c_try_compile
"$LINENO"; then :
4873 am_cv_prog_cc_stdc
="$ac_arg"; break
4875 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4881 if test -z "$am_cv_prog_cc_stdc"; then
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4883 $as_echo "none needed" >&6; }
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4886 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4888 case "x$am_cv_prog_cc_stdc" in
4890 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4893 # Expand $ac_aux_dir to an absolute path.
4894 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
4896 if test x
"${install_sh+set}" != xset
; then
4899 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
4901 install_sh
="\${SHELL} $am_aux_dir/install-sh"
4905 # Installed binaries are usually stripped using 'strip' when the user
4906 # run "make install-strip". However 'strip' might not be the right
4907 # tool to use in cross-compilation environments, therefore Automake
4908 # will honor the 'STRIP' environment variable to overrule this program.
4909 if test "$cross_compiling" != no
; then
4910 if test -n "$ac_tool_prefix"; then
4911 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4912 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4914 $as_echo_n "checking for $ac_word... " >&6; }
4915 if ${ac_cv_prog_STRIP+:} false
; then :
4916 $as_echo_n "(cached) " >&6
4918 if test -n "$STRIP"; then
4919 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4921 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4925 test -z "$as_dir" && as_dir
=.
4926 for ac_exec_ext
in '' $ac_executable_extensions; do
4927 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4928 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4938 STRIP
=$ac_cv_prog_STRIP
4939 if test -n "$STRIP"; then
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4941 $as_echo "$STRIP" >&6; }
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4944 $as_echo "no" >&6; }
4949 if test -z "$ac_cv_prog_STRIP"; then
4951 # Extract the first word of "strip", so it can be a program name with args.
4952 set dummy strip
; ac_word
=$2
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4954 $as_echo_n "checking for $ac_word... " >&6; }
4955 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
4956 $as_echo_n "(cached) " >&6
4958 if test -n "$ac_ct_STRIP"; then
4959 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
4961 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4965 test -z "$as_dir" && as_dir
=.
4966 for ac_exec_ext
in '' $ac_executable_extensions; do
4967 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4968 ac_cv_prog_ac_ct_STRIP
="strip"
4969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4978 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4979 if test -n "$ac_ct_STRIP"; then
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4981 $as_echo "$ac_ct_STRIP" >&6; }
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984 $as_echo "no" >&6; }
4987 if test "x$ac_ct_STRIP" = x
; then
4990 case $cross_compiling:$ac_tool_warned in
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4994 ac_tool_warned
=yes ;;
4999 STRIP
="$ac_cv_prog_STRIP"
5003 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
5007 for ac_dir
in ..
"$srcdir"/..
; do
5008 if test -f "$ac_dir/install-sh"; then
5010 ac_install_sh
="$ac_aux_dir/install-sh -c"
5012 elif test -f "$ac_dir/install.sh"; then
5014 ac_install_sh
="$ac_aux_dir/install.sh -c"
5016 elif test -f "$ac_dir/shtool"; then
5018 ac_install_sh
="$ac_aux_dir/shtool install -c"
5022 if test -z "$ac_aux_dir"; then
5023 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
5026 # These three variables are undocumented and unsupported,
5027 # and are intended to be withdrawn in a future Autoconf release.
5028 # They can cause serious problems if a builder's source tree is in a directory
5029 # whose full name contains unusual characters.
5030 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5031 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5032 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5036 test "$program_prefix" != NONE
&&
5037 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
5038 # Use a double $ so make ignores it.
5039 test "$program_suffix" != NONE
&&
5040 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
5041 # Double any \ or $.
5042 # By default was `s,x,x', remove it if useless.
5043 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
5044 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
5047 # We require a C++11 compiler. Check if one is available, and if
5048 # necessary, set CXX_DIALECT to some -std=xxx switch.
5050 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5052 ac_cpp
='$CXXCPP $CPPFLAGS'
5053 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5054 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5055 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5059 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5060 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5061 $as_echo_n "(cached) " >&6
5063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5064 /* end confdefs.h. */
5067 // If the compiler admits that it is not ready for C++11, why torture it?
5068 // Hopefully, this will speed up the test.
5072 #error "This is not a C++ compiler"
5074 #elif __cplusplus < 201103L
5076 #error "This is not a C++11 compiler"
5083 namespace test_static_assert
5086 template <typename T>
5089 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5094 namespace test_final_override
5102 struct Derived : public Base
5104 virtual void f() override {}
5109 namespace test_double_right_angle_brackets
5112 template < typename T >
5115 typedef check<void> single_type;
5116 typedef check<check<void>> double_type;
5117 typedef check<check<check<void>>> triple_type;
5118 typedef check<check<check<check<void>>>> quadruple_type;
5122 namespace test_decltype
5135 namespace test_type_deduction
5138 template < typename T1, typename T2 >
5141 static const bool value = false;
5144 template < typename T >
5145 struct is_same<T, T>
5147 static const bool value = true;
5150 template < typename T1, typename T2 >
5152 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5158 test(const int c, volatile int v)
5160 static_assert(is_same<int, decltype(0)>::value == true, "");
5161 static_assert(is_same<int, decltype(c)>::value == false, "");
5162 static_assert(is_same<int, decltype(v)>::value == false, "");
5165 auto sumi = ac + av + 'x';
5166 auto sumf = ac + av + 1.0;
5167 static_assert(is_same<int, decltype(ac)>::value == true, "");
5168 static_assert(is_same<int, decltype(av)>::value == true, "");
5169 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5170 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5171 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5172 return (sumf > 0.0) ? sumi : add(c, v);
5177 namespace test_noexcept
5180 int f() { return 0; }
5181 int g() noexcept { return 0; }
5183 static_assert(noexcept(f()) == false, "");
5184 static_assert(noexcept(g()) == true, "");
5188 namespace test_constexpr
5191 template < typename CharT >
5192 unsigned long constexpr
5193 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5195 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5198 template < typename CharT >
5199 unsigned long constexpr
5200 strlen_c(const CharT *const s) noexcept
5202 return strlen_c_r(s, 0UL);
5205 static_assert(strlen_c("") == 0UL, "");
5206 static_assert(strlen_c("1") == 1UL, "");
5207 static_assert(strlen_c("example") == 7UL, "");
5208 static_assert(strlen_c("another\0example") == 7UL, "");
5212 namespace test_rvalue_references
5218 static constexpr int value = N;
5221 answer<1> f(int&) { return answer<1>(); }
5222 answer<2> f(const int&) { return answer<2>(); }
5223 answer<3> f(int&&) { return answer<3>(); }
5230 static_assert(decltype(f(i))::value == 1, "");
5231 static_assert(decltype(f(c))::value == 2, "");
5232 static_assert(decltype(f(0))::value == 3, "");
5237 namespace test_uniform_initialization
5242 static const int zero {};
5243 static const int one {1};
5246 static_assert(test::zero == 0, "");
5247 static_assert(test::one == 1, "");
5251 namespace test_lambdas
5257 auto lambda1 = [](){};
5258 auto lambda2 = lambda1;
5266 auto a = [](int i, int j){ return i + j; }(1, 2);
5267 auto b = []() -> int { return '0'; }();
5268 auto c = [=](){ return a + b; }();
5269 auto d = [&](){ return c; }();
5270 auto e = [a, &b](int x) mutable {
5271 const auto identity = [](int y){ return y; };
5272 for (auto i = 0; i < a; ++i)
5274 return x + identity(a + b);
5276 return a + b + c + d + e;
5282 const auto nullary = [](){ return 0; };
5283 const auto unary = [](int x){ return x; };
5284 using nullary_t = decltype(nullary);
5285 using unary_t = decltype(unary);
5286 const auto higher1st = [](nullary_t f){ return f(); };
5287 const auto higher2nd = [unary](nullary_t f1){
5288 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5290 return higher1st(nullary) + higher2nd(nullary)(unary);
5295 namespace test_variadic_templates
5301 template <int N0, int... N1toN>
5302 struct sum<N0, N1toN...>
5304 static constexpr auto value = N0 + sum<N1toN...>::value;
5310 static constexpr auto value = 0;
5313 static_assert(sum<>::value == 0, "");
5314 static_assert(sum<1>::value == 1, "");
5315 static_assert(sum<23>::value == 23, "");
5316 static_assert(sum<1, 2>::value == 3, "");
5317 static_assert(sum<5, 5, 11>::value == 21, "");
5318 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5322 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5323 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5325 namespace test_template_alias_sfinae
5330 template<typename T>
5331 using member = typename T::member_type;
5333 template<typename T>
5336 template<typename T>
5337 void func(member<T>*) {}
5341 void test() { func<foo>(0); }
5345 } // namespace cxx11
5347 #endif // __cplusplus >= 201103L
5352 if ac_fn_cxx_try_compile
"$LINENO"; then :
5353 ax_cv_cxx_compile_cxx11
=yes
5355 ax_cv_cxx_compile_cxx11
=no
5357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5360 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5361 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
5365 if test x
$ac_success = xno
; then
5366 for alternative
in ${ax_cxx_compile_alternatives}; do
5367 switch
="-std=gnu++${alternative}"
5368 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5370 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5371 if eval \
${$cachevar+:} false
; then :
5372 $as_echo_n "(cached) " >&6
5376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5377 /* end confdefs.h. */
5380 // If the compiler admits that it is not ready for C++11, why torture it?
5381 // Hopefully, this will speed up the test.
5385 #error "This is not a C++ compiler"
5387 #elif __cplusplus < 201103L
5389 #error "This is not a C++11 compiler"
5396 namespace test_static_assert
5399 template <typename T>
5402 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5407 namespace test_final_override
5415 struct Derived : public Base
5417 virtual void f() override {}
5422 namespace test_double_right_angle_brackets
5425 template < typename T >
5428 typedef check<void> single_type;
5429 typedef check<check<void>> double_type;
5430 typedef check<check<check<void>>> triple_type;
5431 typedef check<check<check<check<void>>>> quadruple_type;
5435 namespace test_decltype
5448 namespace test_type_deduction
5451 template < typename T1, typename T2 >
5454 static const bool value = false;
5457 template < typename T >
5458 struct is_same<T, T>
5460 static const bool value = true;
5463 template < typename T1, typename T2 >
5465 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5471 test(const int c, volatile int v)
5473 static_assert(is_same<int, decltype(0)>::value == true, "");
5474 static_assert(is_same<int, decltype(c)>::value == false, "");
5475 static_assert(is_same<int, decltype(v)>::value == false, "");
5478 auto sumi = ac + av + 'x';
5479 auto sumf = ac + av + 1.0;
5480 static_assert(is_same<int, decltype(ac)>::value == true, "");
5481 static_assert(is_same<int, decltype(av)>::value == true, "");
5482 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5483 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5484 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5485 return (sumf > 0.0) ? sumi : add(c, v);
5490 namespace test_noexcept
5493 int f() { return 0; }
5494 int g() noexcept { return 0; }
5496 static_assert(noexcept(f()) == false, "");
5497 static_assert(noexcept(g()) == true, "");
5501 namespace test_constexpr
5504 template < typename CharT >
5505 unsigned long constexpr
5506 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5508 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5511 template < typename CharT >
5512 unsigned long constexpr
5513 strlen_c(const CharT *const s) noexcept
5515 return strlen_c_r(s, 0UL);
5518 static_assert(strlen_c("") == 0UL, "");
5519 static_assert(strlen_c("1") == 1UL, "");
5520 static_assert(strlen_c("example") == 7UL, "");
5521 static_assert(strlen_c("another\0example") == 7UL, "");
5525 namespace test_rvalue_references
5531 static constexpr int value = N;
5534 answer<1> f(int&) { return answer<1>(); }
5535 answer<2> f(const int&) { return answer<2>(); }
5536 answer<3> f(int&&) { return answer<3>(); }
5543 static_assert(decltype(f(i))::value == 1, "");
5544 static_assert(decltype(f(c))::value == 2, "");
5545 static_assert(decltype(f(0))::value == 3, "");
5550 namespace test_uniform_initialization
5555 static const int zero {};
5556 static const int one {1};
5559 static_assert(test::zero == 0, "");
5560 static_assert(test::one == 1, "");
5564 namespace test_lambdas
5570 auto lambda1 = [](){};
5571 auto lambda2 = lambda1;
5579 auto a = [](int i, int j){ return i + j; }(1, 2);
5580 auto b = []() -> int { return '0'; }();
5581 auto c = [=](){ return a + b; }();
5582 auto d = [&](){ return c; }();
5583 auto e = [a, &b](int x) mutable {
5584 const auto identity = [](int y){ return y; };
5585 for (auto i = 0; i < a; ++i)
5587 return x + identity(a + b);
5589 return a + b + c + d + e;
5595 const auto nullary = [](){ return 0; };
5596 const auto unary = [](int x){ return x; };
5597 using nullary_t = decltype(nullary);
5598 using unary_t = decltype(unary);
5599 const auto higher1st = [](nullary_t f){ return f(); };
5600 const auto higher2nd = [unary](nullary_t f1){
5601 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5603 return higher1st(nullary) + higher2nd(nullary)(unary);
5608 namespace test_variadic_templates
5614 template <int N0, int... N1toN>
5615 struct sum<N0, N1toN...>
5617 static constexpr auto value = N0 + sum<N1toN...>::value;
5623 static constexpr auto value = 0;
5626 static_assert(sum<>::value == 0, "");
5627 static_assert(sum<1>::value == 1, "");
5628 static_assert(sum<23>::value == 23, "");
5629 static_assert(sum<1, 2>::value == 3, "");
5630 static_assert(sum<5, 5, 11>::value == 21, "");
5631 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5635 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5636 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5638 namespace test_template_alias_sfinae
5643 template<typename T>
5644 using member = typename T::member_type;
5646 template<typename T>
5649 template<typename T>
5650 void func(member<T>*) {}
5654 void test() { func<foo>(0); }
5658 } // namespace cxx11
5660 #endif // __cplusplus >= 201103L
5665 if ac_fn_cxx_try_compile
"$LINENO"; then :
5670 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5673 eval ac_res
=\$
$cachevar
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5675 $as_echo "$ac_res" >&6; }
5676 if eval test x\$
$cachevar = xyes
; then
5677 CXX_DIALECT
="$switch"
5684 if test x
$ac_success = xno
; then
5685 for alternative
in ${ax_cxx_compile_alternatives}; do
5686 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5687 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
5689 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
5690 if eval \${$cachevar+:} false; then :
5691 $as_echo_n "(cached
) " >&6
5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696 /* end confdefs.h. */
5699 // If the compiler admits that it is not ready for C++11, why torture it?
5700 // Hopefully, this will speed up the test.
5704 #error "This is not a C
++ compiler
"
5706 #elif __cplusplus < 201103L
5708 #error "This is not a C
++11 compiler
"
5715 namespace test_static_assert
5718 template <typename T>
5721 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
5726 namespace test_final_override
5734 struct Derived : public Base
5736 virtual void f() override {}
5741 namespace test_double_right_angle_brackets
5744 template < typename T >
5747 typedef check<void> single_type;
5748 typedef check<check<void>> double_type;
5749 typedef check<check<check<void>>> triple_type;
5750 typedef check<check<check<check<void>>>> quadruple_type;
5754 namespace test_decltype
5767 namespace test_type_deduction
5770 template < typename T1, typename T2 >
5773 static const bool value = false;
5776 template < typename T >
5777 struct is_same<T, T>
5779 static const bool value = true;
5782 template < typename T1, typename T2 >
5784 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5790 test(const int c, volatile int v)
5792 static_assert(is_same<int, decltype(0)>::value == true, "");
5793 static_assert(is_same<int, decltype(c)>::value == false, "");
5794 static_assert(is_same<int, decltype(v)>::value == false, "");
5797 auto sumi = ac + av + 'x';
5798 auto sumf = ac + av + 1.0;
5799 static_assert(is_same<int, decltype(ac)>::value == true, "");
5800 static_assert(is_same<int, decltype(av)>::value == true, "");
5801 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5802 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5803 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5804 return (sumf > 0.0) ? sumi : add(c, v);
5809 namespace test_noexcept
5812 int f() { return 0; }
5813 int g() noexcept { return 0; }
5815 static_assert(noexcept(f()) == false, "");
5816 static_assert(noexcept(g()) == true, "");
5820 namespace test_constexpr
5823 template < typename CharT >
5824 unsigned long constexpr
5825 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5827 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5830 template < typename CharT >
5831 unsigned long constexpr
5832 strlen_c(const CharT *const s) noexcept
5834 return strlen_c_r(s, 0UL);
5837 static_assert(strlen_c("") == 0UL, "");
5838 static_assert(strlen_c("1") == 1UL, "");
5839 static_assert(strlen_c("example
") == 7UL, "");
5840 static_assert(strlen_c("another\
0example
") == 7UL, "");
5844 namespace test_rvalue_references
5850 static constexpr int value = N;
5853 answer<1> f(int&) { return answer<1>(); }
5854 answer<2> f(const int&) { return answer<2>(); }
5855 answer<3> f(int&&) { return answer<3>(); }
5862 static_assert(decltype(f(i))::value == 1, "");
5863 static_assert(decltype(f(c))::value == 2, "");
5864 static_assert(decltype(f(0))::value == 3, "");
5869 namespace test_uniform_initialization
5874 static const int zero {};
5875 static const int one {1};
5878 static_assert(test::zero == 0, "");
5879 static_assert(test::one == 1, "");
5883 namespace test_lambdas
5889 auto lambda1 = [](){};
5890 auto lambda2 = lambda1;
5898 auto a = [](int i, int j){ return i + j; }(1, 2);
5899 auto b = []() -> int { return '0'; }();
5900 auto c = [=](){ return a + b; }();
5901 auto d = [&](){ return c; }();
5902 auto e = [a, &b](int x) mutable {
5903 const auto identity = [](int y){ return y; };
5904 for (auto i = 0; i < a; ++i)
5906 return x + identity(a + b);
5908 return a + b + c + d + e;
5914 const auto nullary = [](){ return 0; };
5915 const auto unary = [](int x){ return x; };
5916 using nullary_t = decltype(nullary);
5917 using unary_t = decltype(unary);
5918 const auto higher1st = [](nullary_t f){ return f(); };
5919 const auto higher2nd = [unary](nullary_t f1){
5920 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5922 return higher1st(nullary) + higher2nd(nullary)(unary);
5927 namespace test_variadic_templates
5933 template <int N0, int... N1toN>
5934 struct sum<N0, N1toN...>
5936 static constexpr auto value = N0 + sum<N1toN...>::value;
5942 static constexpr auto value = 0;
5945 static_assert(sum<>::value == 0, "");
5946 static_assert(sum<1>::value == 1, "");
5947 static_assert(sum<23>::value == 23, "");
5948 static_assert(sum<1, 2>::value == 3, "");
5949 static_assert(sum<5, 5, 11>::value == 21, "");
5950 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5954 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5955 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5957 namespace test_template_alias_sfinae
5962 template<typename T>
5963 using member = typename T::member_type;
5965 template<typename T>
5968 template<typename T>
5969 void func(member<T>*) {}
5973 void test() { func<foo>(0); }
5977 } // namespace cxx11
5979 #endif // __cplusplus >= 201103L
5984 if ac_fn_cxx_try_compile "$LINENO"; then :
5989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5992 eval ac_res=\$$cachevar
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
5994 $as_echo "$ac_res" >&6; }
5995 if eval test x\$$cachevar = xyes; then
5996 CXX_DIALECT="$switch"
6001 if test x$ac_success = xyes; then
6007 ac_cpp='$CPP $CPPFLAGS'
6008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6012 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6013 if test x$ac_success = xno; then
6014 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6017 if test x$ac_success = xno; then
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6020 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6024 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6031 # Dependency checking.
6032 rm -rf .tst
2>/dev
/null
6033 mkdir .tst
2>/dev
/null
6034 if test -d .tst
; then
6039 rmdir .tst
2>/dev
/null
6041 DEPDIR
="${am__leading_dot}deps"
6043 ac_config_commands
="$ac_config_commands depdir"
6046 depcc
="$CC" am_compiler_list
=
6048 am_depcomp
=$ac_aux_dir/depcomp
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6050 $as_echo_n "checking dependency style of $depcc... " >&6; }
6051 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
6052 $as_echo_n "(cached) " >&6
6054 if test -f "$am_depcomp"; then
6055 # We make a subdir and do the tests there. Otherwise we can end up
6056 # making bogus files that we don't know about and never remove. For
6057 # instance it was reported that on HP-UX the gcc test will end up
6058 # making a dummy file named `D' -- because `-MD' means `put the output
6061 # Copy depcomp to subdir because otherwise we won't find it if we're
6062 # using a relative directory.
6063 cp "$am_depcomp" conftest.dir
6065 # We will build objects and dependencies in a subdirectory because
6066 # it helps to detect inapplicable dependency modes. For instance
6067 # both Tru64's cc and ICC support -MD to output dependencies as a
6068 # side effect of compilation, but ICC will put the dependencies in
6069 # the current directory while Tru64 will put them in the object
6073 am_cv_CC_dependencies_compiler_type
=none
6074 if test "$am_compiler_list" = ""; then
6075 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6077 for depmode
in $am_compiler_list; do
6078 if test $depmode = none
; then break; fi
6080 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6081 # Setup a source with many dependencies, because some compilers
6082 # like to wrap large dependency lists on column 80 (with \), and
6083 # we should not choose a depcomp mode which is confused by this.
6085 # We need to recreate these files for each test, as the compiler may
6086 # overwrite some of them when testing with obscure command lines.
6087 # This happens at least with the AIX C compiler.
6089 for i
in 1 2 3 4 5 6; do
6090 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6091 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6092 # Solaris 8's {/usr,}/bin/sh.
6093 touch sub
/conftst
$i.h
6095 echo "include sub/conftest.Po" > confmf
6097 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6098 # mode. It turns out that the SunPro C++ compiler does not properly
6099 # handle `-M -o', and we need to detect this.
6100 depcmd
="depmode=$depmode \
6101 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6102 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6103 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6104 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
6105 if env
$depcmd > conftest.err
2>&1 &&
6106 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
6107 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
6108 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
6109 # icc doesn't choke on unknown options, it will just issue warnings
6110 # or remarks (even with -Werror). So we grep stderr for any message
6111 # that says an option was ignored or not supported.
6112 # When given -MP, icc 7.0 and 7.1 complain thusly:
6113 # icc: Command line warning: ignoring option '-M'; no argument required
6114 # The diagnosis changed in icc 8.0:
6115 # icc: Command line remark: option '-MP' not supported
6116 if (grep 'ignoring option' conftest.err ||
6117 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6118 am_cv_CC_dependencies_compiler_type
=$depmode
6119 $as_echo "$as_me:$LINENO: success" >&5
6123 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6124 sed -e 's/^/| /' < conftest.err
>&5
6130 am_cv_CC_dependencies_compiler_type
=none
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6135 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6136 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
6137 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
6138 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
6143 gnulib_extra_configure_args
=
6144 # If large-file support is disabled, make sure gnulib does the same.
6145 if test "$enable_largefile" = no
; then
6146 gnulib_extra_configure_args
="$gnulib_extra_configure_args --disable-largefile"
6149 # Configure gnulib. We need to build gnulib under some other
6150 # directory not "gnulib", to avoid the problem of both GDB and
6151 # GDBserver wanting to build it in the same directory, when building
6152 # in the source dir.
6155 in_build
="build-gnulib"
6156 in_extra_args
="$gnulib_extra_configure_args"
6158 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
6159 # so they do not pile up.
6160 ac_sub_configure_args
=
6162 eval "set x $ac_configure_args"
6166 if test -n "$ac_prev"; then
6171 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
6172 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
6173 ac_prev
=cache_file
;;
6174 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
6175 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
6178 --config-cache |
-C)
6180 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
6182 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
6184 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
6186 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
6188 --disable-option-checking)
6192 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6194 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
6198 # Always prepend --prefix to ensure using the same prefix
6199 # in subdir configurations.
6200 ac_arg
="--prefix=$prefix"
6202 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6204 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
6207 if test "$silent" = yes; then
6208 ac_sub_configure_args
="--silent $ac_sub_configure_args"
6211 # Always prepend --disable-option-checking to silence warnings, since
6212 # different subdirs can have different --enable and --with options.
6213 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
6218 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
6219 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
6220 $as_echo "$ac_msg" >&6
6221 as_dir
="$ac_dir"; as_fn_mkdir_p
6225 ac_srcdir
=$srcdir/$in_src ;;
6227 ac_srcdir
=..
/$srcdir/$in_src ;;
6232 ac_sub_configure
=$ac_srcdir/configure
6234 # Make the cache file name correct relative to the subdirectory.
6236 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
6238 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
6241 if test -n "$in_extra_args"; then
6242 # Add the extra args at the end.
6243 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
6246 { $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
6247 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6248 # The eval makes quoting arguments work.
6249 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
6250 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
6251 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
6267 # If we haven't got the data from the intl directory,
6268 # assume NLS is disabled.
6277 if test -f ..
/intl
/config.intl
; then
6278 . ..
/intl
/config.intl
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6281 $as_echo_n "checking whether NLS is requested... " >&6; }
6282 if test x
"$USE_NLS" != xyes
; then
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6284 $as_echo "no" >&6; }
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6287 $as_echo "yes" >&6; }
6289 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6293 $as_echo_n "checking for catalogs to be installed... " >&6; }
6294 # Look for .po and .gmo files in the source directory.
6297 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
6298 # If there aren't any .gmo files the shell will give us the
6299 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6301 case "$cat" in *\
**)
6304 # The quadruple backslash is collapsed to a double backslash
6305 # by the backticks, then collapsed again by the double quotes,
6306 # leaving us with one backslash in the sed expression (right
6307 # before the dot that mustn't act as a wildcard).
6308 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6309 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
6310 # The user is allowed to set LINGUAS to a list of languages to
6311 # install catalogs for. If it's empty that means "all of them."
6312 if test "x$LINGUAS" = x
; then
6313 CATALOGS
="$CATALOGS $cat"
6314 XLINGUAS
="$XLINGUAS $lang"
6316 case "$LINGUAS" in *$lang*)
6317 CATALOGS
="$CATALOGS $cat"
6318 XLINGUAS
="$XLINGUAS $lang"
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6325 $as_echo "$LINGUAS" >&6; }
6338 localedir
='${datadir}/locale'
6341 if test x
"$USE_NLS" = xyes
; then
6342 CONFIG_ALL
="$CONFIG_ALL all-po"
6343 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
6344 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
6345 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
6348 GNULIB
=build-gnulib
/import
6350 # For Makefile dependencies.
6352 if test x
"$STDINT_H" != x
; then
6353 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
6359 cat >>confdefs.h
<<_ACEOF
6360 #define PACKAGE "$PACKAGE"
6365 # We never need to detect it in this sub-configure.
6366 # But preserve it for config.status --recheck.
6370 MAKEINFO_EXTRA_FLAGS
=""
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
6372 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
6373 if ${gdb_cv_have_makeinfo_click+:} false
; then :
6374 $as_echo_n "(cached) " >&6
6376 echo '@clicksequence{a @click{} b}' >conftest.texinfo
6377 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
6378 gdb_cv_have_makeinfo_click
=yes
6380 gdb_cv_have_makeinfo_click
=no
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
6384 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
6385 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
6386 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
6392 # Check whether --with-separate-debug-dir was given.
6393 if test "${with_separate_debug_dir+set}" = set; then :
6394 withval
=$with_separate_debug_dir;
6397 DEBUGDIR
=${libdir}/debug
6401 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6402 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6403 ac_define_dir
=`eval echo $DEBUGDIR`
6404 ac_define_dir
=`eval echo $ac_define_dir`
6406 cat >>confdefs.h
<<_ACEOF
6407 #define DEBUGDIR "$ac_define_dir"
6413 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6414 if test "x$prefix" = xNONE
; then
6415 test_prefix
=/usr
/local
6420 test_prefix
=$exec_prefix
6423 case ${ac_define_dir} in
6424 "${test_prefix}"|
"${test_prefix}/"*|\
6425 '${exec_prefix}'|
'${exec_prefix}/'*)
6430 cat >>confdefs.h
<<_ACEOF
6431 #define DEBUGDIR_RELOCATABLE $value
6437 # We can't pass paths as command line arguments.
6438 # Mingw32 tries to be clever and will convert the paths for us.
6439 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
6440 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
6441 # This breaks GDB's relocatable path conversions since paths passed in
6442 # config.h would not get so translated, the path prefixes no longer match.
6444 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6445 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6446 ac_define_dir
=`eval echo $bindir`
6447 ac_define_dir
=`eval echo $ac_define_dir`
6449 cat >>confdefs.h
<<_ACEOF
6450 #define BINDIR "$ac_define_dir"
6455 # GDB's datadir relocation
6459 # Check whether --with-gdb-datadir was given.
6460 if test "${with_gdb_datadir+set}" = set; then :
6461 withval
=$with_gdb_datadir;
6462 GDB_DATADIR
=$withval
6464 GDB_DATADIR
=${datadir}/gdb
6468 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6469 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6470 ac_define_dir
=`eval echo $GDB_DATADIR`
6471 ac_define_dir
=`eval echo $ac_define_dir`
6473 cat >>confdefs.h
<<_ACEOF
6474 #define GDB_DATADIR "$ac_define_dir"
6480 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6481 if test "x$prefix" = xNONE
; then
6482 test_prefix
=/usr
/local
6487 test_prefix
=$exec_prefix
6490 case ${ac_define_dir} in
6491 "${test_prefix}"|
"${test_prefix}/"*|\
6492 '${exec_prefix}'|
'${exec_prefix}/'*)
6497 cat >>confdefs.h
<<_ACEOF
6498 #define GDB_DATADIR_RELOCATABLE $value
6505 # Check whether --with-relocated-sources was given.
6506 if test "${with_relocated_sources+set}" = set; then :
6507 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
6509 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6510 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6511 ac_define_dir
=`eval echo $reloc_srcdir`
6512 ac_define_dir
=`eval echo $ac_define_dir`
6514 cat >>confdefs.h
<<_ACEOF
6515 #define RELOC_SRCDIR "$ac_define_dir"
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
6524 $as_echo_n "checking for default auto-load directory... " >&6; }
6526 # Check whether --with-auto-load-dir was given.
6527 if test "${with_auto_load_dir+set}" = set; then :
6528 withval
=$with_auto_load_dir;
6530 with_auto_load_dir
='$debugdir:$datadir/auto-load'
6533 escape_dir
=`echo $with_auto_load_dir | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
6535 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6536 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6537 ac_define_dir
=`eval echo $escape_dir`
6538 ac_define_dir
=`eval echo $ac_define_dir`
6540 cat >>confdefs.h
<<_ACEOF
6541 #define AUTO_LOAD_DIR "$ac_define_dir"
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
6546 $as_echo "$with_auto_load_dir" >&6; }
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
6549 $as_echo_n "checking for default auto-load safe-path... " >&6; }
6551 # Check whether --with-auto-load-safe-path was given.
6552 if test "${with_auto_load_safe_path+set}" = set; then :
6553 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
6554 with_auto_load_safe_path
="/"
6557 with_auto_load_safe_path
="$with_auto_load_dir"
6560 escape_dir
=`echo $with_auto_load_safe_path | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
6562 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6563 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6564 ac_define_dir
=`eval echo $escape_dir`
6565 ac_define_dir
=`eval echo $ac_define_dir`
6567 cat >>confdefs.h
<<_ACEOF
6568 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
6573 $as_echo "$with_auto_load_safe_path" >&6; }
6577 subdirs
="$subdirs testsuite"
6580 # Check whether to support alternative target configurations
6581 # Check whether --enable-targets was given.
6582 if test "${enable_targets+set}" = set; then :
6583 enableval
=$enable_targets; case "${enableval}" in
6584 yes |
"") as_fn_error $?
"enable-targets option must specify target names or 'all'" "$LINENO" 5
6586 no
) enable_targets
= ;;
6587 *) enable_targets
=$enableval ;;
6592 # Check whether to enable 64-bit support on 32-bit hosts
6593 # Check whether --enable-64-bit-bfd was given.
6594 if test "${enable_64_bit_bfd+set}" = set; then :
6595 enableval
=$enable_64_bit_bfd; case "${enableval}" in
6598 *) as_fn_error $?
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
6604 # Provide defaults for some variables set by the per-host and per-target
6606 gdb_host_obs
=posix-hdep.o
6608 if test "${target}" = "${host}"; then
6614 .
$srcdir/configure.
host
6616 # Add in the common host objects.
6617 .
$srcdir/common
/common.
host
6618 gdb_host_obs
="$gdb_host_obs $common_host_obs"
6620 # Accumulate some settings from configure.tgt over all enabled targets
6624 HAVE_NATIVE_GCORE_TARGET
=
6626 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6628 if test "$targ_alias" = "all"; then
6631 # Canonicalize the secondary target names.
6632 result
=`$ac_config_sub $targ_alias 2>/dev/null`
6633 if test -n "$result"; then
6639 .
${srcdir}/configure.tgt
6641 if test -z "${gdb_target_obs}"; then :
6642 as_fn_error $?
"configuration ${targ} is unsupported." "$LINENO" 5
6645 # Target-specific object files
6646 for i
in ${gdb_target_obs}; do
6647 case " $TARGET_OBS " in
6650 TARGET_OBS
="$TARGET_OBS ${i}"
6655 # Check whether this target needs 64-bit CORE_ADDR
6656 if test x
${want64} = xfalse
; then
6657 .
${srcdir}/..
/bfd
/config.bfd
6660 # Check whether this target is native and supports gcore.
6661 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
6662 && $gdb_have_gcore; then
6663 HAVE_NATIVE_GCORE_TARGET
=1
6668 if test x
${all_targets} = xtrue
; then
6670 # We want all 64-bit targets if we either:
6671 # - run on a 64-bit host or
6672 # - already require 64-bit support for some other target or
6673 # - the --enable-64-bit-bfd option was supplied
6674 # Otherwise we only support all 32-bit targets.
6676 # NOTE: This test must be in sync with the corresponding
6679 if test x
${want64} = xfalse
; then
6680 # The cast to long int works around a bug in the HP C Compiler
6681 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6682 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6683 # This bug is HP SR number 8606223364.
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6685 $as_echo_n "checking size of long... " >&6; }
6686 if ${ac_cv_sizeof_long+:} false
; then :
6687 $as_echo_n "(cached) " >&6
6689 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6692 if test "$ac_cv_type_long" = yes; then
6693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6695 as_fn_error
77 "cannot compute sizeof (long)
6696 See \`config.log' for more details" "$LINENO" 5; }
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6704 $as_echo "$ac_cv_sizeof_long" >&6; }
6708 cat >>confdefs.h
<<_ACEOF
6709 #define SIZEOF_LONG $ac_cv_sizeof_long
6713 if test "x${ac_cv_sizeof_long}" = "x8"; then
6717 if test x
${want64} = xtrue
; then
6718 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
6720 TARGET_OBS
='$(ALL_TARGET_OBS)'
6727 # For other settings, only the main target counts.
6731 targ
=$target; .
${srcdir}/configure.tgt
6733 # Fetch the default architecture and default target vector from BFD.
6734 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
6736 # We only want the first architecture, so strip off the others if
6737 # there is more than one.
6738 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
6740 if test "x$targ_archs" != x
; then
6742 cat >>confdefs.h
<<_ACEOF
6743 #define DEFAULT_BFD_ARCH $targ_archs
6747 if test "x$targ_defvec" != x
; then
6749 cat >>confdefs.h
<<_ACEOF
6750 #define DEFAULT_BFD_VEC $targ_defvec
6755 # The CLI cannot be disabled yet, but may be in the future.
6758 # Check whether --enable-gdbcli was given.
6759 if test "${enable_gdbcli+set}" = set; then :
6760 enableval
=$enable_gdbcli; case $enableval in
6764 as_fn_error $?
"the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
6766 as_fn_error $?
"bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
6772 if test x
"$enable_gdbcli" = xyes
; then
6773 if test -d $srcdir/cli
; then
6774 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
6775 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
6776 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
6777 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
6782 # Check whether --enable-gdbmi was given.
6783 if test "${enable_gdbmi+set}" = set; then :
6784 enableval
=$enable_gdbmi; case $enableval in
6788 as_fn_error $?
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
6794 if test x
"$enable_gdbmi" = xyes
; then
6795 if test -d $srcdir/mi
; then
6796 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6797 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6798 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6799 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6804 # Check whether --enable-tui was given.
6805 if test "${enable_tui+set}" = set; then :
6806 enableval
=$enable_tui; case $enableval in
6810 as_fn_error $?
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
6818 # Check whether --enable-gdbtk was given.
6819 if test "${enable_gdbtk+set}" = set; then :
6820 enableval
=$enable_gdbtk; case $enableval in
6824 as_fn_error $?
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
6827 if test -d $srcdir/gdbtk
; then
6834 # We unconditionally disable gdbtk tests on selected platforms.
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
6838 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6842 # Libunwind support for ia64.
6845 # Check whether --with-libunwind-ia64 was given.
6846 if test "${with_libunwind_ia64+set}" = set; then :
6847 withval
=$with_libunwind_ia64;
6849 with_libunwind_ia64
=auto
6853 # Backward compatibility option.
6854 if test "${with_libunwind+set}" = set; then
6855 if test x
"$with_libunwind_ia64" != xauto
; then
6856 as_fn_error $?
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
6859 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
6860 with_libunwind_ia64
="$with_libunwind"
6863 case "$with_libunwind_ia64" in
6867 for ac_header
in libunwind-ia64.h
6869 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
6870 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
6871 cat >>confdefs.h
<<_ACEOF
6872 #define HAVE_LIBUNWIND_IA64_H 1
6879 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
6882 as_fn_error $?
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
6886 if test x
"$with_libunwind_ia64" = xyes
; then
6887 for ac_header
in libunwind-ia64.h
6889 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
6890 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
6891 cat >>confdefs.h
<<_ACEOF
6892 #define HAVE_LIBUNWIND_IA64_H 1
6899 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
6900 as_fn_error $?
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
6902 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
6903 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
6904 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
6909 # Check whether --with-curses was given.
6910 if test "${with_curses+set}" = set; then :
6911 withval
=$with_curses; opt_curses
=$withval
6916 if test "$opt_curses" = "yes"; then
6920 # Profiling support.
6921 # Check whether --enable-profiling was given.
6922 if test "${enable_profiling+set}" = set; then :
6923 enableval
=$enable_profiling; case $enableval in
6927 as_fn_error $?
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
6934 for ac_func
in monstartup _mcleanup
6936 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6937 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6938 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6939 cat >>confdefs.h
<<_ACEOF
6940 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
6947 $as_echo_n "checking for _etext... " >&6; }
6948 if ${ac_cv_var__etext+:} false
; then :
6949 $as_echo_n "(cached) " >&6
6951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6952 /* end confdefs.h. */
6964 if ac_fn_c_try_link
"$LINENO"; then :
6965 ac_cv_var__etext
=yes
6969 rm -f core conftest.err conftest.
$ac_objext \
6970 conftest
$ac_exeext conftest.
$ac_ext
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
6973 $as_echo "$ac_cv_var__etext" >&6; }
6974 if test $ac_cv_var__etext = yes; then
6976 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
6980 $as_echo_n "checking for etext... " >&6; }
6981 if ${ac_cv_var_etext+:} false
; then :
6982 $as_echo_n "(cached) " >&6
6984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6985 /* end confdefs.h. */
6997 if ac_fn_c_try_link
"$LINENO"; then :
7002 rm -f core conftest.err conftest.
$ac_objext \
7003 conftest
$ac_exeext conftest.
$ac_ext
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
7006 $as_echo "$ac_cv_var_etext" >&6; }
7007 if test $ac_cv_var_etext = yes; then
7009 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
7012 if test "$enable_profiling" = yes ; then
7013 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
7014 as_fn_error $?
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
7017 OLD_CFLAGS
="$CFLAGS"
7018 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
7021 $as_echo_n "checking whether $CC supports -pg... " >&6; }
7022 if ${ac_cv_cc_supports_pg+:} false
; then :
7023 $as_echo_n "(cached) " >&6
7025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7026 /* end confdefs.h. */
7036 if ac_fn_c_try_compile
"$LINENO"; then :
7037 ac_cv_cc_supports_pg
=yes
7039 ac_cv_cc_supports_pg
=no
7041 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
7044 $as_echo "$ac_cv_cc_supports_pg" >&6; }
7046 if test $ac_cv_cc_supports_pg = no
; then
7047 as_fn_error $?
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
7050 CFLAGS
="$OLD_CFLAGS"
7055 # Check whether --with-pkgversion was given.
7056 if test "${with_pkgversion+set}" = set; then :
7057 withval
=$with_pkgversion; case "$withval" in
7058 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
7060 *) PKGVERSION
="($withval) " ;;
7071 # Check whether --with-bugurl was given.
7072 if test "${with_bugurl+set}" = set; then :
7073 withval
=$with_bugurl; case "$withval" in
7074 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
7077 *) BUGURL
="$withval"
7081 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
7091 REPORT_BUGS_TO
="<$BUGURL>"
7092 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7099 cat >>confdefs.h
<<_ACEOF
7100 #define PKGVERSION "$PKGVERSION"
7104 cat >>confdefs.h
<<_ACEOF
7105 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7109 # --------------------- #
7110 # Checks for programs. #
7111 # --------------------- #
7113 for ac_prog
in gawk mawk nawk
awk
7115 # Extract the first word of "$ac_prog", so it can be a program name with args.
7116 set dummy
$ac_prog; ac_word
=$2
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7118 $as_echo_n "checking for $ac_word... " >&6; }
7119 if ${ac_cv_prog_AWK+:} false
; then :
7120 $as_echo_n "(cached) " >&6
7122 if test -n "$AWK"; then
7123 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7125 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7129 test -z "$as_dir" && as_dir
=.
7130 for ac_exec_ext
in '' $ac_executable_extensions; do
7131 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7132 ac_cv_prog_AWK
="$ac_prog"
7133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7143 if test -n "$AWK"; then
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7145 $as_echo "$AWK" >&6; }
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7148 $as_echo "no" >&6; }
7152 test -n "$AWK" && break
7155 # Find a good install program. We prefer a C program (faster),
7156 # so one script is as good as another. But avoid the broken or
7157 # incompatible versions:
7158 # SysV /etc/install, /usr/sbin/install
7159 # SunOS /usr/etc/install
7160 # IRIX /sbin/install
7162 # AmigaOS /C/install, which installs bootblocks on floppy discs
7163 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7164 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7165 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7166 # OS/2's system install, which has a completely different semantic
7167 # ./install, which can be erroneously created by make from ./install.sh.
7168 # Reject install programs that cannot install multiple files.
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7170 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7171 if test -z "$INSTALL"; then
7172 if ${ac_cv_path_install+:} false
; then :
7173 $as_echo_n "(cached) " >&6
7175 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7179 test -z "$as_dir" && as_dir
=.
7180 # Account for people who put trailing slashes in PATH elements.
7181 case $as_dir/ in #((
7182 .
/ | .
// |
/[cC
]/* | \
7183 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7184 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
7187 # OSF1 and SCO ODT 3.0 have their own names for install.
7188 # Don't use installbsd from OSF since it installs stuff as root
7190 for ac_prog
in ginstall scoinst
install; do
7191 for ac_exec_ext
in '' $ac_executable_extensions; do
7192 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
7193 if test $ac_prog = install &&
7194 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7195 # AIX install. It has an incompatible calling convention.
7197 elif test $ac_prog = install &&
7198 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7199 # program-specific install script used by HP pwplus--don't use.
7202 rm -rf conftest.one conftest.two conftest.dir
7203 echo one
> conftest.one
7204 echo two
> conftest.two
7206 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
7207 test -s conftest.one
&& test -s conftest.two
&&
7208 test -s conftest.dir
/conftest.one
&&
7209 test -s conftest.dir
/conftest.two
7211 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7224 rm -rf conftest.one conftest.two conftest.dir
7227 if test "${ac_cv_path_install+set}" = set; then
7228 INSTALL
=$ac_cv_path_install
7230 # As a last resort, use the slow shell script. Don't cache a
7231 # value for INSTALL within a source directory, because that will
7232 # break other packages using the cache if that directory is
7233 # removed, or if the value is a relative name.
7234 INSTALL
=$ac_install_sh
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7238 $as_echo "$INSTALL" >&6; }
7240 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7241 # It thinks the first close brace ends the variable substitution.
7242 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7244 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7246 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7249 $as_echo_n "checking whether ln -s works... " >&6; }
7251 if test "$LN_S" = "ln -s"; then
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7253 $as_echo "yes" >&6; }
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7256 $as_echo "no, using $LN_S" >&6; }
7259 if test -n "$ac_tool_prefix"; then
7260 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7261 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7263 $as_echo_n "checking for $ac_word... " >&6; }
7264 if ${ac_cv_prog_RANLIB+:} false
; then :
7265 $as_echo_n "(cached) " >&6
7267 if test -n "$RANLIB"; then
7268 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7270 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7274 test -z "$as_dir" && as_dir
=.
7275 for ac_exec_ext
in '' $ac_executable_extensions; do
7276 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7277 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7287 RANLIB
=$ac_cv_prog_RANLIB
7288 if test -n "$RANLIB"; then
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7290 $as_echo "$RANLIB" >&6; }
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293 $as_echo "no" >&6; }
7298 if test -z "$ac_cv_prog_RANLIB"; then
7299 ac_ct_RANLIB
=$RANLIB
7300 # Extract the first word of "ranlib", so it can be a program name with args.
7301 set dummy ranlib
; ac_word
=$2
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303 $as_echo_n "checking for $ac_word... " >&6; }
7304 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
7305 $as_echo_n "(cached) " >&6
7307 if test -n "$ac_ct_RANLIB"; then
7308 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7310 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7314 test -z "$as_dir" && as_dir
=.
7315 for ac_exec_ext
in '' $ac_executable_extensions; do
7316 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7317 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7327 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7328 if test -n "$ac_ct_RANLIB"; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7330 $as_echo "$ac_ct_RANLIB" >&6; }
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333 $as_echo "no" >&6; }
7336 if test "x$ac_ct_RANLIB" = x
; then
7339 case $cross_compiling:$ac_tool_warned in
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7343 ac_tool_warned
=yes ;;
7345 RANLIB
=$ac_ct_RANLIB
7348 RANLIB
="$ac_cv_prog_RANLIB"
7351 for ac_prog
in 'bison -y' byacc
7353 # Extract the first word of "$ac_prog", so it can be a program name with args.
7354 set dummy
$ac_prog; ac_word
=$2
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7356 $as_echo_n "checking for $ac_word... " >&6; }
7357 if ${ac_cv_prog_YACC+:} false
; then :
7358 $as_echo_n "(cached) " >&6
7360 if test -n "$YACC"; then
7361 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
7363 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7367 test -z "$as_dir" && as_dir
=.
7368 for ac_exec_ext
in '' $ac_executable_extensions; do
7369 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7370 ac_cv_prog_YACC
="$ac_prog"
7371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7380 YACC
=$ac_cv_prog_YACC
7381 if test -n "$YACC"; then
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7383 $as_echo "$YACC" >&6; }
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7386 $as_echo "no" >&6; }
7390 test -n "$YACC" && break
7392 test -n "$YACC" || YACC
="yacc"
7395 if test -n "$ac_tool_prefix"; then
7396 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7397 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7399 $as_echo_n "checking for $ac_word... " >&6; }
7400 if ${ac_cv_prog_AR+:} false
; then :
7401 $as_echo_n "(cached) " >&6
7403 if test -n "$AR"; then
7404 ac_cv_prog_AR
="$AR" # Let the user override the test.
7406 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7410 test -z "$as_dir" && as_dir
=.
7411 for ac_exec_ext
in '' $ac_executable_extensions; do
7412 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7413 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7424 if test -n "$AR"; then
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7426 $as_echo "$AR" >&6; }
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7429 $as_echo "no" >&6; }
7434 if test -z "$ac_cv_prog_AR"; then
7436 # Extract the first word of "ar", so it can be a program name with args.
7437 set dummy
ar; ac_word
=$2
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7439 $as_echo_n "checking for $ac_word... " >&6; }
7440 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
7441 $as_echo_n "(cached) " >&6
7443 if test -n "$ac_ct_AR"; then
7444 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7446 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7450 test -z "$as_dir" && as_dir
=.
7451 for ac_exec_ext
in '' $ac_executable_extensions; do
7452 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7453 ac_cv_prog_ac_ct_AR
="ar"
7454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7463 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7464 if test -n "$ac_ct_AR"; then
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7466 $as_echo "$ac_ct_AR" >&6; }
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7469 $as_echo "no" >&6; }
7472 if test "x$ac_ct_AR" = x
; then
7475 case $cross_compiling:$ac_tool_warned in
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7479 ac_tool_warned
=yes ;;
7487 if test -n "$ac_tool_prefix"; then
7488 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7489 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7491 $as_echo_n "checking for $ac_word... " >&6; }
7492 if ${ac_cv_prog_DLLTOOL+:} false
; then :
7493 $as_echo_n "(cached) " >&6
7495 if test -n "$DLLTOOL"; then
7496 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
7498 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7502 test -z "$as_dir" && as_dir
=.
7503 for ac_exec_ext
in '' $ac_executable_extensions; do
7504 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7505 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
7506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7515 DLLTOOL
=$ac_cv_prog_DLLTOOL
7516 if test -n "$DLLTOOL"; then
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7518 $as_echo "$DLLTOOL" >&6; }
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7521 $as_echo "no" >&6; }
7526 if test -z "$ac_cv_prog_DLLTOOL"; then
7527 ac_ct_DLLTOOL
=$DLLTOOL
7528 # Extract the first word of "dlltool", so it can be a program name with args.
7529 set dummy dlltool
; ac_word
=$2
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7531 $as_echo_n "checking for $ac_word... " >&6; }
7532 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
7533 $as_echo_n "(cached) " >&6
7535 if test -n "$ac_ct_DLLTOOL"; then
7536 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
7538 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7542 test -z "$as_dir" && as_dir
=.
7543 for ac_exec_ext
in '' $ac_executable_extensions; do
7544 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7545 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
7546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7555 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
7556 if test -n "$ac_ct_DLLTOOL"; then
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7558 $as_echo "$ac_ct_DLLTOOL" >&6; }
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7561 $as_echo "no" >&6; }
7564 if test "x$ac_ct_DLLTOOL" = x
; then
7567 case $cross_compiling:$ac_tool_warned in
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7571 ac_tool_warned
=yes ;;
7573 DLLTOOL
=$ac_ct_DLLTOOL
7576 DLLTOOL
="$ac_cv_prog_DLLTOOL"
7579 if test -n "$ac_tool_prefix"; then
7580 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7581 set dummy
${ac_tool_prefix}windres
; 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_WINDRES+:} false
; then :
7585 $as_echo_n "(cached) " >&6
7587 if test -n "$WINDRES"; then
7588 ac_cv_prog_WINDRES
="$WINDRES" # 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_WINDRES
="${ac_tool_prefix}windres"
7598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7607 WINDRES
=$ac_cv_prog_WINDRES
7608 if test -n "$WINDRES"; then
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7610 $as_echo "$WINDRES" >&6; }
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7613 $as_echo "no" >&6; }
7618 if test -z "$ac_cv_prog_WINDRES"; then
7619 ac_ct_WINDRES
=$WINDRES
7620 # Extract the first word of "windres", so it can be a program name with args.
7621 set dummy windres
; 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_WINDRES+:} false
; then :
7625 $as_echo_n "(cached) " >&6
7627 if test -n "$ac_ct_WINDRES"; then
7628 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # 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_WINDRES
="windres"
7638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7647 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
7648 if test -n "$ac_ct_WINDRES"; then
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7650 $as_echo "$ac_ct_WINDRES" >&6; }
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7653 $as_echo "no" >&6; }
7656 if test "x$ac_ct_WINDRES" = 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 WINDRES
=$ac_ct_WINDRES
7668 WINDRES
="$ac_cv_prog_WINDRES"
7674 # Needed for GNU Hurd hosts.
7675 if test -n "$ac_tool_prefix"; then
7676 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7677 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7679 $as_echo_n "checking for $ac_word... " >&6; }
7680 if ${ac_cv_prog_MIG+:} false
; then :
7681 $as_echo_n "(cached) " >&6
7683 if test -n "$MIG"; then
7684 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
7686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7690 test -z "$as_dir" && as_dir
=.
7691 for ac_exec_ext
in '' $ac_executable_extensions; do
7692 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7693 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
7694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7704 if test -n "$MIG"; then
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
7706 $as_echo "$MIG" >&6; }
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7709 $as_echo "no" >&6; }
7714 if test -z "$ac_cv_prog_MIG"; then
7716 # Extract the first word of "mig", so it can be a program name with args.
7717 set dummy mig
; 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_ac_ct_MIG+:} false
; then :
7721 $as_echo_n "(cached) " >&6
7723 if test -n "$ac_ct_MIG"; then
7724 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # 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_ac_ct_MIG
="mig"
7734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7743 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
7744 if test -n "$ac_ct_MIG"; then
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
7746 $as_echo "$ac_ct_MIG" >&6; }
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7749 $as_echo "no" >&6; }
7752 if test "x$ac_ct_MIG" = x
; then
7755 case $cross_compiling:$ac_tool_warned in
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7759 ac_tool_warned
=yes ;;
7764 MIG
="$ac_cv_prog_MIG"
7767 if test x
"$MIG" = x
; then
7768 as_fn_error $?
"MIG not found but required for $host hosts" "$LINENO" 5
7773 # ---------------------- #
7774 # Checks for libraries. #
7775 # ---------------------- #
7777 # We might need to link with -lm; most simulators need it.
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7779 $as_echo_n "checking for main in -lm... " >&6; }
7780 if ${ac_cv_lib_m_main+:} false
; then :
7781 $as_echo_n "(cached) " >&6
7783 ac_check_lib_save_LIBS
=$LIBS
7785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7786 /* end confdefs.h. */
7797 if ac_fn_c_try_link
"$LINENO"; then :
7798 ac_cv_lib_m_main
=yes
7802 rm -f core conftest.err conftest.
$ac_objext \
7803 conftest
$ac_exeext conftest.
$ac_ext
7804 LIBS
=$ac_check_lib_save_LIBS
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7807 $as_echo "$ac_cv_lib_m_main" >&6; }
7808 if test "x$ac_cv_lib_m_main" = xyes
; then :
7809 cat >>confdefs.h
<<_ACEOF
7818 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
7820 $as_echo_n "checking for library containing gethostbyname... " >&6; }
7821 if ${ac_cv_search_gethostbyname+:} false
; then :
7822 $as_echo_n "(cached) " >&6
7824 ac_func_search_save_LIBS
=$LIBS
7825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7826 /* end confdefs.h. */
7828 /* Override any GCC internal prototype to avoid an error.
7829 Use char because int might match the return type of a GCC
7830 builtin and then its argument prototype would still apply. */
7834 char gethostbyname ();
7838 return gethostbyname ();
7843 for ac_lib
in '' nsl
; do
7844 if test -z "$ac_lib"; then
7845 ac_res
="none required"
7848 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7850 if ac_fn_c_try_link
"$LINENO"; then :
7851 ac_cv_search_gethostbyname
=$ac_res
7853 rm -f core conftest.err conftest.
$ac_objext \
7855 if ${ac_cv_search_gethostbyname+:} false
; then :
7859 if ${ac_cv_search_gethostbyname+:} false
; then :
7862 ac_cv_search_gethostbyname
=no
7865 LIBS
=$ac_func_search_save_LIBS
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
7868 $as_echo "$ac_cv_search_gethostbyname" >&6; }
7869 ac_res
=$ac_cv_search_gethostbyname
7870 if test "$ac_res" != no
; then :
7871 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7876 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
7878 $as_echo_n "checking for library containing socketpair... " >&6; }
7879 if ${ac_cv_search_socketpair+:} false
; then :
7880 $as_echo_n "(cached) " >&6
7882 ac_func_search_save_LIBS
=$LIBS
7883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7884 /* end confdefs.h. */
7886 /* Override any GCC internal prototype to avoid an error.
7887 Use char because int might match the return type of a GCC
7888 builtin and then its argument prototype would still apply. */
7896 return socketpair ();
7901 for ac_lib
in '' socket
; do
7902 if test -z "$ac_lib"; then
7903 ac_res
="none required"
7906 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7908 if ac_fn_c_try_link
"$LINENO"; then :
7909 ac_cv_search_socketpair
=$ac_res
7911 rm -f core conftest.err conftest.
$ac_objext \
7913 if ${ac_cv_search_socketpair+:} false
; then :
7917 if ${ac_cv_search_socketpair+:} false
; then :
7920 ac_cv_search_socketpair
=no
7923 LIBS
=$ac_func_search_save_LIBS
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
7926 $as_echo "$ac_cv_search_socketpair" >&6; }
7927 ac_res
=$ac_cv_search_socketpair
7928 if test "$ac_res" != no
; then :
7929 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7934 # Link in zlib if we can. This allows us to read compressed debug sections.
7936 # Use the system's zlib library.
7937 zlibdir
="-L\$(top_builddir)/../zlib"
7938 zlibinc
="-I\$(top_srcdir)/../zlib"
7940 # Check whether --with-system-zlib was given.
7941 if test "${with_system_zlib+set}" = set; then :
7942 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
7953 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
7954 # On GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
7956 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
7957 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
7958 $as_echo_n "(cached) " >&6
7960 ac_func_search_save_LIBS
=$LIBS
7961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7962 /* end confdefs.h. */
7964 /* Override any GCC internal prototype to avoid an error.
7965 Use char because int might match the return type of a GCC
7966 builtin and then its argument prototype would still apply. */
7970 char kinfo_getvmmap ();
7974 return kinfo_getvmmap ();
7979 for ac_lib
in '' util util-freebsd
; do
7980 if test -z "$ac_lib"; then
7981 ac_res
="none required"
7984 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7986 if ac_fn_c_try_link
"$LINENO"; then :
7987 ac_cv_search_kinfo_getvmmap
=$ac_res
7989 rm -f core conftest.err conftest.
$ac_objext \
7991 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
7995 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
7998 ac_cv_search_kinfo_getvmmap
=no
8001 LIBS
=$ac_func_search_save_LIBS
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
8004 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
8005 ac_res
=$ac_cv_search_kinfo_getvmmap
8006 if test "$ac_res" != no
; then :
8007 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8009 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
8014 # fbsd-nat.c can also use kinfo_getfile.
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
8016 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
8017 if ${ac_cv_search_kinfo_getfile+:} false
; then :
8018 $as_echo_n "(cached) " >&6
8020 ac_func_search_save_LIBS
=$LIBS
8021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8022 /* end confdefs.h. */
8024 /* Override any GCC internal prototype to avoid an error.
8025 Use char because int might match the return type of a GCC
8026 builtin and then its argument prototype would still apply. */
8030 char kinfo_getfile ();
8034 return kinfo_getfile ();
8039 for ac_lib
in '' util util-freebsd
; do
8040 if test -z "$ac_lib"; then
8041 ac_res
="none required"
8044 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8046 if ac_fn_c_try_link
"$LINENO"; then :
8047 ac_cv_search_kinfo_getfile
=$ac_res
8049 rm -f core conftest.err conftest.
$ac_objext \
8051 if ${ac_cv_search_kinfo_getfile+:} false
; then :
8055 if ${ac_cv_search_kinfo_getfile+:} false
; then :
8058 ac_cv_search_kinfo_getfile
=no
8061 LIBS
=$ac_func_search_save_LIBS
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
8064 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
8065 ac_res
=$ac_cv_search_kinfo_getfile
8066 if test "$ac_res" != no
; then :
8067 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8069 $as_echo "#define HAVE_KINFO_GETFILE 1" >>confdefs.h
8075 if test "X$prefix" = "XNONE"; then
8076 acl_final_prefix
="$ac_default_prefix"
8078 acl_final_prefix
="$prefix"
8080 if test "X$exec_prefix" = "XNONE"; then
8081 acl_final_exec_prefix
='${prefix}'
8083 acl_final_exec_prefix
="$exec_prefix"
8085 acl_save_prefix
="$prefix"
8086 prefix
="$acl_final_prefix"
8087 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8088 prefix
="$acl_save_prefix"
8091 # Check whether --with-gnu-ld was given.
8092 if test "${with_gnu_ld+set}" = set; then :
8093 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8098 # Prepare PATH_SEPARATOR.
8099 # The user is always right.
8100 if test "${PATH_SEPARATOR+set}" != set; then
8101 echo "#! /bin/sh" >conf$$.sh
8102 echo "exit 0" >>conf$$.sh
8104 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8112 if test "$GCC" = yes; then
8113 # Check if gcc -print-prog-name=ld gives a path.
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8115 $as_echo_n "checking for ld used by GCC... " >&6; }
8118 # gcc leaves a trailing carriage return which upsets mingw
8119 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8121 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8124 # Accept absolute paths.
8125 [\\/]* |
[A-Za-z
]:[\\/]*)
8126 re_direlt
='/[^/][^/]*/\.\./'
8127 # Canonicalize the path of ld
8128 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8129 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8130 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8132 test -z "$LD" && LD
="$ac_prog"
8135 # If it fails, then pretend we aren't using GCC.
8139 # If it is relative, then search for the first ld in PATH.
8143 elif test "$with_gnu_ld" = yes; then
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8145 $as_echo_n "checking for GNU ld... " >&6; }
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8148 $as_echo_n "checking for non-GNU ld... " >&6; }
8150 if ${acl_cv_path_LD+:} false
; then :
8151 $as_echo_n "(cached) " >&6
8153 if test -z "$LD"; then
8154 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8155 for ac_dir
in $PATH; do
8156 test -z "$ac_dir" && ac_dir
=.
8157 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8158 acl_cv_path_LD
="$ac_dir/$ac_prog"
8159 # Check to see if the program is GNU ld. I'd rather use --version,
8160 # but apparently some GNU ld's only accept -v.
8161 # Break only if it was the GNU/non-GNU ld that we prefer.
8162 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
8163 test "$with_gnu_ld" != no
&& break
8165 test "$with_gnu_ld" != yes && break
8171 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8175 LD
="$acl_cv_path_LD"
8176 if test -n "$LD"; then
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8178 $as_echo "$LD" >&6; }
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8181 $as_echo "no" >&6; }
8183 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8185 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8186 if ${acl_cv_prog_gnu_ld+:} false
; then :
8187 $as_echo_n "(cached) " >&6
8189 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8190 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8191 acl_cv_prog_gnu_ld
=yes
8193 acl_cv_prog_gnu_ld
=no
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8197 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8198 with_gnu_ld
=$acl_cv_prog_gnu_ld
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8203 $as_echo_n "checking for shared library run path origin... " >&6; }
8204 if ${acl_cv_rpath+:} false
; then :
8205 $as_echo_n "(cached) " >&6
8208 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8209 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8216 $as_echo "$acl_cv_rpath" >&6; }
8218 libext
="$acl_cv_libext"
8219 shlibext
="$acl_cv_shlibext"
8220 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8221 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8222 hardcode_direct
="$acl_cv_hardcode_direct"
8223 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8224 # Check whether --enable-rpath was given.
8225 if test "${enable_rpath+set}" = set; then :
8226 enableval
=$enable_rpath; :
8240 acl_save_prefix
="$prefix"
8241 prefix
="$acl_final_prefix"
8242 acl_save_exec_prefix
="$exec_prefix"
8243 exec_prefix
="$acl_final_exec_prefix"
8245 eval additional_includedir
=\"$includedir\"
8246 eval additional_libdir
=\"$libdir\"
8248 exec_prefix
="$acl_save_exec_prefix"
8249 prefix
="$acl_save_prefix"
8252 # Check whether --with-libiconv-prefix was given.
8253 if test "${with_libiconv_prefix+set}" = set; then :
8254 withval
=$with_libiconv_prefix;
8255 if test "X$withval" = "Xno"; then
8258 if test "X$withval" = "X"; then
8260 acl_save_prefix
="$prefix"
8261 prefix
="$acl_final_prefix"
8262 acl_save_exec_prefix
="$exec_prefix"
8263 exec_prefix
="$acl_final_exec_prefix"
8265 eval additional_includedir
=\"$includedir\"
8266 eval additional_libdir
=\"$libdir\"
8268 exec_prefix
="$acl_save_exec_prefix"
8269 prefix
="$acl_save_prefix"
8272 additional_includedir
="$withval/include"
8273 additional_libdir
="$withval/lib"
8284 names_already_handled
=
8285 names_next_round
='iconv '
8286 while test -n "$names_next_round"; do
8287 names_this_round
="$names_next_round"
8289 for name
in $names_this_round; do
8291 for n
in $names_already_handled; do
8292 if test "$n" = "$name"; then
8297 if test -z "$already_handled"; then
8298 names_already_handled
="$names_already_handled $name"
8299 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8300 eval value
=\"\
$HAVE_LIB$uppername\"
8301 if test -n "$value"; then
8302 if test "$value" = yes; then
8303 eval value
=\"\
$LIB$uppername\"
8304 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
8305 eval value
=\"\
$LTLIB$uppername\"
8306 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
8315 if test $use_additional = yes; then
8316 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8317 found_dir
="$additional_libdir"
8318 found_so
="$additional_libdir/lib$name.$shlibext"
8319 if test -f "$additional_libdir/lib$name.la"; then
8320 found_la
="$additional_libdir/lib$name.la"
8323 if test -f "$additional_libdir/lib$name.$libext"; then
8324 found_dir
="$additional_libdir"
8325 found_a
="$additional_libdir/lib$name.$libext"
8326 if test -f "$additional_libdir/lib$name.la"; then
8327 found_la
="$additional_libdir/lib$name.la"
8332 if test "X$found_dir" = "X"; then
8333 for x
in $LDFLAGS $LTLIBICONV; do
8335 acl_save_prefix
="$prefix"
8336 prefix
="$acl_final_prefix"
8337 acl_save_exec_prefix
="$exec_prefix"
8338 exec_prefix
="$acl_final_exec_prefix"
8340 exec_prefix
="$acl_save_exec_prefix"
8341 prefix
="$acl_save_prefix"
8345 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8346 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8348 found_so
="$dir/lib$name.$shlibext"
8349 if test -f "$dir/lib$name.la"; then
8350 found_la
="$dir/lib$name.la"
8353 if test -f "$dir/lib$name.$libext"; then
8355 found_a
="$dir/lib$name.$libext"
8356 if test -f "$dir/lib$name.la"; then
8357 found_la
="$dir/lib$name.la"
8363 if test "X$found_dir" != "X"; then
8368 if test "X$found_dir" != "X"; then
8369 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8370 if test "X$found_so" != "X"; then
8371 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8372 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8375 for x
in $ltrpathdirs; do
8376 if test "X$x" = "X$found_dir"; then
8381 if test -z "$haveit"; then
8382 ltrpathdirs
="$ltrpathdirs $found_dir"
8384 if test "$hardcode_direct" = yes; then
8385 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8387 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8388 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8390 for x
in $rpathdirs; do
8391 if test "X$x" = "X$found_dir"; then
8396 if test -z "$haveit"; then
8397 rpathdirs
="$rpathdirs $found_dir"
8401 for x
in $LDFLAGS $LIBICONV; do
8403 acl_save_prefix
="$prefix"
8404 prefix
="$acl_final_prefix"
8405 acl_save_exec_prefix
="$exec_prefix"
8406 exec_prefix
="$acl_final_exec_prefix"
8408 exec_prefix
="$acl_save_exec_prefix"
8409 prefix
="$acl_save_prefix"
8411 if test "X$x" = "X-L$found_dir"; then
8416 if test -z "$haveit"; then
8417 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8419 if test "$hardcode_minus_L" != no
; then
8420 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8422 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8428 if test "X$found_a" != "X"; then
8429 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
8431 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8434 additional_includedir
=
8435 case "$found_dir" in
8437 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8438 additional_includedir
="$basedir/include"
8441 if test "X$additional_includedir" != "X"; then
8442 if test "X$additional_includedir" != "X/usr/include"; then
8444 if test "X$additional_includedir" = "X/usr/local/include"; then
8445 if test -n "$GCC"; then
8447 linux
*) haveit
=yes;;
8451 if test -z "$haveit"; then
8452 for x
in $CPPFLAGS $INCICONV; do
8454 acl_save_prefix
="$prefix"
8455 prefix
="$acl_final_prefix"
8456 acl_save_exec_prefix
="$exec_prefix"
8457 exec_prefix
="$acl_final_exec_prefix"
8459 exec_prefix
="$acl_save_exec_prefix"
8460 prefix
="$acl_save_prefix"
8462 if test "X$x" = "X-I$additional_includedir"; then
8467 if test -z "$haveit"; then
8468 if test -d "$additional_includedir"; then
8469 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8475 if test -n "$found_la"; then
8476 save_libdir
="$libdir"
8478 */* |
*\\*) .
"$found_la" ;;
8479 *) .
"./$found_la" ;;
8481 libdir
="$save_libdir"
8482 for dep
in $dependency_libs; do
8485 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8486 if test "X$additional_libdir" != "X/usr/lib"; then
8488 if test "X$additional_libdir" = "X/usr/local/lib"; then
8489 if test -n "$GCC"; then
8491 linux
*) haveit
=yes;;
8495 if test -z "$haveit"; then
8497 for x
in $LDFLAGS $LIBICONV; do
8499 acl_save_prefix
="$prefix"
8500 prefix
="$acl_final_prefix"
8501 acl_save_exec_prefix
="$exec_prefix"
8502 exec_prefix
="$acl_final_exec_prefix"
8504 exec_prefix
="$acl_save_exec_prefix"
8505 prefix
="$acl_save_prefix"
8507 if test "X$x" = "X-L$additional_libdir"; then
8512 if test -z "$haveit"; then
8513 if test -d "$additional_libdir"; then
8514 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8518 for x
in $LDFLAGS $LTLIBICONV; do
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 exec_prefix
="$acl_save_exec_prefix"
8526 prefix
="$acl_save_prefix"
8528 if test "X$x" = "X-L$additional_libdir"; then
8533 if test -z "$haveit"; then
8534 if test -d "$additional_libdir"; then
8535 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8542 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8543 if test "$enable_rpath" != no
; then
8545 for x
in $rpathdirs; do
8546 if test "X$x" = "X$dir"; then
8551 if test -z "$haveit"; then
8552 rpathdirs
="$rpathdirs $dir"
8555 for x
in $ltrpathdirs; do
8556 if test "X$x" = "X$dir"; then
8561 if test -z "$haveit"; then
8562 ltrpathdirs
="$ltrpathdirs $dir"
8567 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8570 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8573 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
8574 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8580 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8581 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8587 if test "X$rpathdirs" != "X"; then
8588 if test -n "$hardcode_libdir_separator"; then
8590 for found_dir
in $rpathdirs; do
8591 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8593 acl_save_libdir
="$libdir"
8595 eval flag
=\"$hardcode_libdir_flag_spec\"
8596 libdir
="$acl_save_libdir"
8597 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8599 for found_dir
in $rpathdirs; do
8600 acl_save_libdir
="$libdir"
8602 eval flag
=\"$hardcode_libdir_flag_spec\"
8603 libdir
="$acl_save_libdir"
8604 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8608 if test "X$ltrpathdirs" != "X"; then
8609 for found_dir
in $ltrpathdirs; do
8610 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8621 $as_echo_n "checking for iconv... " >&6; }
8622 if ${am_cv_func_iconv+:} false
; then :
8623 $as_echo_n "(cached) " >&6
8626 am_cv_func_iconv
="no, consider installing GNU libiconv"
8628 am_save_CPPFLAGS
="$CPPFLAGS"
8629 CPPFLAGS
="$CPPFLAGS $INCICONV"
8630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8631 /* end confdefs.h. */
8637 iconv_t cd = iconv_open("","");
8638 iconv(cd,NULL,NULL,NULL,NULL);
8644 if ac_fn_c_try_link
"$LINENO"; then :
8645 am_cv_func_iconv
=yes
8647 rm -f core conftest.err conftest.
$ac_objext \
8648 conftest
$ac_exeext conftest.
$ac_ext
8649 CPPFLAGS
="$am_save_CPPFLAGS"
8651 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
8652 for _libs
in .libs _libs
; do
8653 am_save_CPPFLAGS
="$CPPFLAGS"
8654 am_save_LIBS
="$LIBS"
8655 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
8656 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
8657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8658 /* end confdefs.h. */
8664 iconv_t cd = iconv_open("","");
8665 iconv(cd,NULL,NULL,NULL,NULL);
8671 if ac_fn_c_try_link
"$LINENO"; then :
8672 INCICONV
="-I../libiconv/include"
8673 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
8674 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
8676 am_cv_func_iconv
=yes
8678 rm -f core conftest.err conftest.
$ac_objext \
8679 conftest
$ac_exeext conftest.
$ac_ext
8680 CPPFLAGS
="$am_save_CPPFLAGS"
8681 LIBS
="$am_save_LIBS"
8682 if test "$am_cv_func_iconv" = "yes"; then
8688 if test "$am_cv_func_iconv" != yes; then
8689 am_save_CPPFLAGS
="$CPPFLAGS"
8690 am_save_LIBS
="$LIBS"
8691 CPPFLAGS
="$LIBS $INCICONV"
8692 LIBS
="$LIBS $LIBICONV"
8693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8694 /* end confdefs.h. */
8700 iconv_t cd = iconv_open("","");
8701 iconv(cd,NULL,NULL,NULL,NULL);
8707 if ac_fn_c_try_link
"$LINENO"; then :
8709 am_cv_func_iconv
=yes
8711 rm -f core conftest.err conftest.
$ac_objext \
8712 conftest
$ac_exeext conftest.
$ac_ext
8713 CPPFLAGS
="$am_save_CPPFLAGS"
8714 LIBS
="$am_save_LIBS"
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8719 $as_echo "$am_cv_func_iconv" >&6; }
8720 if test "$am_cv_func_iconv" = yes; then
8722 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8725 if test "$am_cv_lib_iconv" = yes; then
8727 for element
in $INCICONV; do
8729 for x
in $CPPFLAGS; do
8731 acl_save_prefix
="$prefix"
8732 prefix
="$acl_final_prefix"
8733 acl_save_exec_prefix
="$exec_prefix"
8734 exec_prefix
="$acl_final_exec_prefix"
8736 exec_prefix
="$acl_save_exec_prefix"
8737 prefix
="$acl_save_prefix"
8739 if test "X$x" = "X$element"; then
8744 if test -z "$haveit"; then
8745 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8750 $as_echo_n "checking how to link with libiconv... " >&6; }
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8752 $as_echo "$LIBICONV" >&6; }
8760 if test "$am_cv_func_iconv" = yes; then
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8762 $as_echo_n "checking for iconv declaration... " >&6; }
8763 if ${am_cv_proto_iconv+:} false
; then :
8764 $as_echo_n "(cached) " >&6
8767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8768 /* end confdefs.h. */
8776 #if defined(__STDC__) || defined(__cplusplus)
8777 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8790 if ac_fn_c_try_compile
"$LINENO"; then :
8791 am_cv_proto_iconv_arg1
=""
8793 am_cv_proto_iconv_arg1
="const"
8795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8796 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);"
8799 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8801 }$am_cv_proto_iconv" >&5
8803 }$am_cv_proto_iconv" >&6; }
8805 cat >>confdefs.h
<<_ACEOF
8806 #define ICONV_CONST $am_cv_proto_iconv_arg1
8812 # GDB may fork/exec the iconv program to get the list of supported character
8813 # sets. Allow the user to specify where to find it.
8814 # There are several factors affecting the choice of option name:
8815 # - There is already --with-libiconv-prefix but we can't use it, it specifies
8816 # the build-time location of libiconv files.
8817 # - The program we need to find is iconv, which comes with glibc. The user
8818 # doesn't necessarily have libiconv installed. Therefore naming this
8819 # --with-libiconv-foo feels wrong.
8820 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
8821 # defined to work on directories not files (though it really doesn't know
8823 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
8824 # with --with-libiconv-prefix.
8825 # Putting these together is why the option name is --with-iconv-bin.
8828 # Check whether --with-iconv-bin was given.
8829 if test "${with_iconv_bin+set}" = set; then :
8830 withval
=$with_iconv_bin; iconv_bin
="${withval}"
8832 cat >>confdefs.h
<<_ACEOF
8833 #define ICONV_BIN "${iconv_bin}"
8837 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
8838 if test "x$prefix" = xNONE
; then
8839 test_prefix
=/usr
/local
8844 test_prefix
=$exec_prefix
8847 case ${iconv_bin} in
8848 "${test_prefix}"|
"${test_prefix}/"*|\
8849 '${exec_prefix}'|
'${exec_prefix}/'*)
8854 cat >>confdefs.h
<<_ACEOF
8855 #define ICONV_BIN_RELOCATABLE $value
8863 # For the TUI, we need enhanced curses functionality.
8864 if test x
"$enable_tui" != xno
; then
8869 if test x
"$prefer_curses" = xyes
; then
8870 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8871 # curses library because the latter might not provide all the
8872 # functionality we need. However, this leads to problems on systems
8873 # where the linker searches /usr/local/lib, but the compiler doesn't
8874 # search /usr/local/include, if ncurses is installed in /usr/local. A
8875 # default installation of ncurses on alpha*-dec-osf* will lead to such
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
8878 $as_echo_n "checking for library containing waddstr... " >&6; }
8879 if ${ac_cv_search_waddstr+:} false
; then :
8880 $as_echo_n "(cached) " >&6
8882 ac_func_search_save_LIBS
=$LIBS
8883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8884 /* end confdefs.h. */
8886 /* Override any GCC internal prototype to avoid an error.
8887 Use char because int might match the return type of a GCC
8888 builtin and then its argument prototype would still apply. */
8901 for ac_lib
in '' ncursesw ncurses cursesX curses
; do
8902 if test -z "$ac_lib"; then
8903 ac_res
="none required"
8906 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8908 if ac_fn_c_try_link
"$LINENO"; then :
8909 ac_cv_search_waddstr
=$ac_res
8911 rm -f core conftest.err conftest.
$ac_objext \
8913 if ${ac_cv_search_waddstr+:} false
; then :
8917 if ${ac_cv_search_waddstr+:} false
; then :
8920 ac_cv_search_waddstr
=no
8923 LIBS
=$ac_func_search_save_LIBS
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
8926 $as_echo "$ac_cv_search_waddstr" >&6; }
8927 ac_res
=$ac_cv_search_waddstr
8928 if test "$ac_res" != no
; then :
8929 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8934 if test "$ac_cv_search_waddstr" != no
; then
8939 # Check whether we should enable the TUI, but only do so if we really
8941 if test x
"$enable_tui" != xno
; then
8942 if test -d $srcdir/tui
; then
8943 if test "$curses_found" != no
; then
8944 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
8945 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
8946 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
8947 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
8949 if test x
"$enable_tui" = xyes
; then
8950 as_fn_error $?
"no enhanced curses library found; disable TUI" "$LINENO" 5
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
8953 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
8959 # Since GDB uses Readline, we need termcap functionality. In many
8960 # cases this will be provided by the curses library, but some systems
8961 # have a separate termcap library, or no curses library at all.
8965 if test -d $srcdir/libtermcap
; then
8966 LIBS
="../libtermcap/libtermcap.a $LIBS"
8967 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
8970 ac_cv_search_tgetent
="none required"
8974 # These are the libraries checked by Readline.
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
8976 $as_echo_n "checking for library containing tgetent... " >&6; }
8977 if ${ac_cv_search_tgetent+:} false
; then :
8978 $as_echo_n "(cached) " >&6
8980 ac_func_search_save_LIBS
=$LIBS
8981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8982 /* end confdefs.h. */
8984 /* Override any GCC internal prototype to avoid an error.
8985 Use char because int might match the return type of a GCC
8986 builtin and then its argument prototype would still apply. */
8999 for ac_lib
in '' termcap tinfo curses ncursesw ncurses
; do
9000 if test -z "$ac_lib"; then
9001 ac_res
="none required"
9004 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9006 if ac_fn_c_try_link
"$LINENO"; then :
9007 ac_cv_search_tgetent
=$ac_res
9009 rm -f core conftest.err conftest.
$ac_objext \
9011 if ${ac_cv_search_tgetent+:} false
; then :
9015 if ${ac_cv_search_tgetent+:} false
; then :
9018 ac_cv_search_tgetent
=no
9021 LIBS
=$ac_func_search_save_LIBS
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9024 $as_echo "$ac_cv_search_tgetent" >&6; }
9025 ac_res
=$ac_cv_search_tgetent
9026 if test "$ac_res" != no
; then :
9027 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9032 if test "$ac_cv_search_tgetent" = no
; then
9033 CONFIG_OBS
="$CONFIG_OBS stub-termcap.o"
9037 # Check whether --with-system-readline was given.
9038 if test "${with_system_readline+set}" = set; then :
9039 withval
=$with_system_readline;
9043 if test "$with_system_readline" = yes; then
9047 READLINE_TEXI_INCFLAG
=
9049 READLINE
='$(READLINE_DIR)/libreadline.a'
9050 READLINE_DEPS
='$(READLINE)'
9051 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
9052 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
9059 # Generate jit-reader.h
9061 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
9064 # The cast to long int works around a bug in the HP C Compiler
9065 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9066 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9067 # This bug is HP SR number 8606223364.
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
9069 $as_echo_n "checking size of unsigned long long... " >&6; }
9070 if ${ac_cv_sizeof_unsigned_long_long+:} false
; then :
9071 $as_echo_n "(cached) " >&6
9073 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
9076 if test "$ac_cv_type_unsigned_long_long" = yes; then
9077 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9078 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9079 as_fn_error
77 "cannot compute sizeof (unsigned long long)
9080 See \`config.log' for more details" "$LINENO" 5; }
9082 ac_cv_sizeof_unsigned_long_long
=0
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
9088 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
9092 cat >>confdefs.h
<<_ACEOF
9093 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
9097 # The cast to long int works around a bug in the HP C Compiler
9098 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9099 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9100 # This bug is HP SR number 8606223364.
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
9102 $as_echo_n "checking size of unsigned long... " >&6; }
9103 if ${ac_cv_sizeof_unsigned_long+:} false
; then :
9104 $as_echo_n "(cached) " >&6
9106 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
9109 if test "$ac_cv_type_unsigned_long" = yes; then
9110 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9112 as_fn_error
77 "cannot compute sizeof (unsigned long)
9113 See \`config.log' for more details" "$LINENO" 5; }
9115 ac_cv_sizeof_unsigned_long
=0
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
9121 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
9125 cat >>confdefs.h
<<_ACEOF
9126 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9130 # The cast to long int works around a bug in the HP C Compiler
9131 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9132 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9133 # This bug is HP SR number 8606223364.
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
9135 $as_echo_n "checking size of unsigned __int128... " >&6; }
9136 if ${ac_cv_sizeof_unsigned___int128+:} false
; then :
9137 $as_echo_n "(cached) " >&6
9139 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
9142 if test "$ac_cv_type_unsigned___int128" = yes; then
9143 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9145 as_fn_error
77 "cannot compute sizeof (unsigned __int128)
9146 See \`config.log' for more details" "$LINENO" 5; }
9148 ac_cv_sizeof_unsigned___int128
=0
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
9154 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
9158 cat >>confdefs.h
<<_ACEOF
9159 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
9164 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9165 TARGET_PTR
="unsigned long"
9166 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9167 TARGET_PTR
="unsigned long long"
9168 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
9169 TARGET_PTR
="unsigned __int128"
9171 TARGET_PTR
="unsigned long"
9175 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9179 $as_echo_n "checking for library containing dlopen... " >&6; }
9180 if ${ac_cv_search_dlopen+:} false
; then :
9181 $as_echo_n "(cached) " >&6
9183 ac_func_search_save_LIBS
=$LIBS
9184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9185 /* end confdefs.h. */
9187 /* Override any GCC internal prototype to avoid an error.
9188 Use char because int might match the return type of a GCC
9189 builtin and then its argument prototype would still apply. */
9202 for ac_lib
in '' dl
; do
9203 if test -z "$ac_lib"; then
9204 ac_res
="none required"
9207 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9209 if ac_fn_c_try_link
"$LINENO"; then :
9210 ac_cv_search_dlopen
=$ac_res
9212 rm -f core conftest.err conftest.
$ac_objext \
9214 if ${ac_cv_search_dlopen+:} false
; then :
9218 if ${ac_cv_search_dlopen+:} false
; then :
9221 ac_cv_search_dlopen
=no
9224 LIBS
=$ac_func_search_save_LIBS
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9227 $as_echo "$ac_cv_search_dlopen" >&6; }
9228 ac_res
=$ac_cv_search_dlopen
9229 if test "$ac_res" != no
; then :
9230 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9237 # Check whether --with-jit-reader-dir was given.
9238 if test "${with_jit_reader_dir+set}" = set; then :
9239 withval
=$with_jit_reader_dir;
9240 JIT_READER_DIR
=$withval
9242 JIT_READER_DIR
=${libdir}/gdb
9246 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9247 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9248 ac_define_dir
=`eval echo $JIT_READER_DIR`
9249 ac_define_dir
=`eval echo $ac_define_dir`
9251 cat >>confdefs.h
<<_ACEOF
9252 #define JIT_READER_DIR "$ac_define_dir"
9258 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9259 if test "x$prefix" = xNONE
; then
9260 test_prefix
=/usr
/local
9265 test_prefix
=$exec_prefix
9268 case ${ac_define_dir} in
9269 "${test_prefix}"|
"${test_prefix}/"*|\
9270 '${exec_prefix}'|
'${exec_prefix}/'*)
9275 cat >>confdefs.h
<<_ACEOF
9276 #define JIT_READER_DIR_RELOCATABLE $value
9283 # Check whether --with-expat was given.
9284 if test "${with_expat+set}" = set; then :
9285 withval
=$with_expat;
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9291 $as_echo_n "checking whether to use expat... " >&6; }
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9293 $as_echo "$with_expat" >&6; }
9295 if test "${with_expat}" = no
; then
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9297 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9310 acl_save_prefix
="$prefix"
9311 prefix
="$acl_final_prefix"
9312 acl_save_exec_prefix
="$exec_prefix"
9313 exec_prefix
="$acl_final_exec_prefix"
9315 eval additional_includedir
=\"$includedir\"
9316 eval additional_libdir
=\"$libdir\"
9318 exec_prefix
="$acl_save_exec_prefix"
9319 prefix
="$acl_save_prefix"
9322 # Check whether --with-libexpat-prefix was given.
9323 if test "${with_libexpat_prefix+set}" = set; then :
9324 withval
=$with_libexpat_prefix;
9325 if test "X$withval" = "Xno"; then
9328 if test "X$withval" = "X"; then
9330 acl_save_prefix
="$prefix"
9331 prefix
="$acl_final_prefix"
9332 acl_save_exec_prefix
="$exec_prefix"
9333 exec_prefix
="$acl_final_exec_prefix"
9335 eval additional_includedir
=\"$includedir\"
9336 eval additional_libdir
=\"$libdir\"
9338 exec_prefix
="$acl_save_exec_prefix"
9339 prefix
="$acl_save_prefix"
9342 additional_includedir
="$withval/include"
9343 additional_libdir
="$withval/lib"
9354 names_already_handled
=
9355 names_next_round
='expat '
9356 while test -n "$names_next_round"; do
9357 names_this_round
="$names_next_round"
9359 for name
in $names_this_round; do
9361 for n
in $names_already_handled; do
9362 if test "$n" = "$name"; then
9367 if test -z "$already_handled"; then
9368 names_already_handled
="$names_already_handled $name"
9369 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9370 eval value
=\"\
$HAVE_LIB$uppername\"
9371 if test -n "$value"; then
9372 if test "$value" = yes; then
9373 eval value
=\"\
$LIB$uppername\"
9374 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
9375 eval value
=\"\
$LTLIB$uppername\"
9376 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
9385 if test $use_additional = yes; then
9386 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9387 found_dir
="$additional_libdir"
9388 found_so
="$additional_libdir/lib$name.$shlibext"
9389 if test -f "$additional_libdir/lib$name.la"; then
9390 found_la
="$additional_libdir/lib$name.la"
9393 if test -f "$additional_libdir/lib$name.$libext"; then
9394 found_dir
="$additional_libdir"
9395 found_a
="$additional_libdir/lib$name.$libext"
9396 if test -f "$additional_libdir/lib$name.la"; then
9397 found_la
="$additional_libdir/lib$name.la"
9402 if test "X$found_dir" = "X"; then
9403 for x
in $LDFLAGS $LTLIBEXPAT; do
9405 acl_save_prefix
="$prefix"
9406 prefix
="$acl_final_prefix"
9407 acl_save_exec_prefix
="$exec_prefix"
9408 exec_prefix
="$acl_final_exec_prefix"
9410 exec_prefix
="$acl_save_exec_prefix"
9411 prefix
="$acl_save_prefix"
9415 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9416 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9418 found_so
="$dir/lib$name.$shlibext"
9419 if test -f "$dir/lib$name.la"; then
9420 found_la
="$dir/lib$name.la"
9423 if test -f "$dir/lib$name.$libext"; then
9425 found_a
="$dir/lib$name.$libext"
9426 if test -f "$dir/lib$name.la"; then
9427 found_la
="$dir/lib$name.la"
9433 if test "X$found_dir" != "X"; then
9438 if test "X$found_dir" != "X"; then
9439 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
9440 if test "X$found_so" != "X"; then
9441 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9442 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9445 for x
in $ltrpathdirs; do
9446 if test "X$x" = "X$found_dir"; then
9451 if test -z "$haveit"; then
9452 ltrpathdirs
="$ltrpathdirs $found_dir"
9454 if test "$hardcode_direct" = yes; then
9455 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9457 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9458 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9460 for x
in $rpathdirs; do
9461 if test "X$x" = "X$found_dir"; then
9466 if test -z "$haveit"; then
9467 rpathdirs
="$rpathdirs $found_dir"
9471 for x
in $LDFLAGS $LIBEXPAT; do
9473 acl_save_prefix
="$prefix"
9474 prefix
="$acl_final_prefix"
9475 acl_save_exec_prefix
="$exec_prefix"
9476 exec_prefix
="$acl_final_exec_prefix"
9478 exec_prefix
="$acl_save_exec_prefix"
9479 prefix
="$acl_save_prefix"
9481 if test "X$x" = "X-L$found_dir"; then
9486 if test -z "$haveit"; then
9487 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
9489 if test "$hardcode_minus_L" != no
; then
9490 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9492 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9498 if test "X$found_a" != "X"; then
9499 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
9501 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
9504 additional_includedir
=
9505 case "$found_dir" in
9507 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9508 additional_includedir
="$basedir/include"
9511 if test "X$additional_includedir" != "X"; then
9512 if test "X$additional_includedir" != "X/usr/include"; then
9514 if test "X$additional_includedir" = "X/usr/local/include"; then
9515 if test -n "$GCC"; then
9517 linux
*) haveit
=yes;;
9521 if test -z "$haveit"; then
9522 for x
in $CPPFLAGS $INCEXPAT; do
9524 acl_save_prefix
="$prefix"
9525 prefix
="$acl_final_prefix"
9526 acl_save_exec_prefix
="$exec_prefix"
9527 exec_prefix
="$acl_final_exec_prefix"
9529 exec_prefix
="$acl_save_exec_prefix"
9530 prefix
="$acl_save_prefix"
9532 if test "X$x" = "X-I$additional_includedir"; then
9537 if test -z "$haveit"; then
9538 if test -d "$additional_includedir"; then
9539 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
9545 if test -n "$found_la"; then
9546 save_libdir
="$libdir"
9548 */* |
*\\*) .
"$found_la" ;;
9549 *) .
"./$found_la" ;;
9551 libdir
="$save_libdir"
9552 for dep
in $dependency_libs; do
9555 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9556 if test "X$additional_libdir" != "X/usr/lib"; then
9558 if test "X$additional_libdir" = "X/usr/local/lib"; then
9559 if test -n "$GCC"; then
9561 linux
*) haveit
=yes;;
9565 if test -z "$haveit"; then
9567 for x
in $LDFLAGS $LIBEXPAT; do
9569 acl_save_prefix
="$prefix"
9570 prefix
="$acl_final_prefix"
9571 acl_save_exec_prefix
="$exec_prefix"
9572 exec_prefix
="$acl_final_exec_prefix"
9574 exec_prefix
="$acl_save_exec_prefix"
9575 prefix
="$acl_save_prefix"
9577 if test "X$x" = "X-L$additional_libdir"; then
9582 if test -z "$haveit"; then
9583 if test -d "$additional_libdir"; then
9584 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
9588 for x
in $LDFLAGS $LTLIBEXPAT; do
9590 acl_save_prefix
="$prefix"
9591 prefix
="$acl_final_prefix"
9592 acl_save_exec_prefix
="$exec_prefix"
9593 exec_prefix
="$acl_final_exec_prefix"
9595 exec_prefix
="$acl_save_exec_prefix"
9596 prefix
="$acl_save_prefix"
9598 if test "X$x" = "X-L$additional_libdir"; then
9603 if test -z "$haveit"; then
9604 if test -d "$additional_libdir"; then
9605 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
9612 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9613 if test "$enable_rpath" != no
; then
9615 for x
in $rpathdirs; do
9616 if test "X$x" = "X$dir"; then
9621 if test -z "$haveit"; then
9622 rpathdirs
="$rpathdirs $dir"
9625 for x
in $ltrpathdirs; do
9626 if test "X$x" = "X$dir"; then
9631 if test -z "$haveit"; then
9632 ltrpathdirs
="$ltrpathdirs $dir"
9637 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9640 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9643 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
9644 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
9650 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9651 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
9657 if test "X$rpathdirs" != "X"; then
9658 if test -n "$hardcode_libdir_separator"; then
9660 for found_dir
in $rpathdirs; do
9661 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9663 acl_save_libdir
="$libdir"
9665 eval flag
=\"$hardcode_libdir_flag_spec\"
9666 libdir
="$acl_save_libdir"
9667 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9669 for found_dir
in $rpathdirs; do
9670 acl_save_libdir
="$libdir"
9672 eval flag
=\"$hardcode_libdir_flag_spec\"
9673 libdir
="$acl_save_libdir"
9674 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9678 if test "X$ltrpathdirs" != "X"; then
9679 for found_dir
in $ltrpathdirs; do
9680 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9685 ac_save_CPPFLAGS
="$CPPFLAGS"
9687 for element
in $INCEXPAT; do
9689 for x
in $CPPFLAGS; do
9691 acl_save_prefix
="$prefix"
9692 prefix
="$acl_final_prefix"
9693 acl_save_exec_prefix
="$exec_prefix"
9694 exec_prefix
="$acl_final_exec_prefix"
9696 exec_prefix
="$acl_save_exec_prefix"
9697 prefix
="$acl_save_prefix"
9699 if test "X$x" = "X$element"; then
9704 if test -z "$haveit"; then
9705 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9711 $as_echo_n "checking for libexpat... " >&6; }
9712 if ${ac_cv_libexpat+:} false
; then :
9713 $as_echo_n "(cached) " >&6
9716 ac_save_LIBS
="$LIBS"
9717 LIBS
="$LIBS $LIBEXPAT"
9718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9719 /* end confdefs.h. */
9724 XML_Parser p = XML_ParserCreate (0);
9729 if ac_fn_c_try_link
"$LINENO"; then :
9734 rm -f core conftest.err conftest.
$ac_objext \
9735 conftest
$ac_exeext conftest.
$ac_ext
9736 LIBS
="$ac_save_LIBS"
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
9740 $as_echo "$ac_cv_libexpat" >&6; }
9741 if test "$ac_cv_libexpat" = yes; then
9744 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
9747 $as_echo_n "checking how to link with libexpat... " >&6; }
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
9749 $as_echo "$LIBEXPAT" >&6; }
9752 CPPFLAGS
="$ac_save_CPPFLAGS"
9762 if test "$HAVE_LIBEXPAT" != yes; then
9763 if test "$with_expat" = yes; then
9764 as_fn_error $?
"expat is missing or unusable" "$LINENO" 5
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
9767 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
9771 LIBS
="$LIBS $LIBEXPAT"
9772 for ac_func
in XML_StopParser
9774 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
9775 if test "x$ac_cv_func_XML_StopParser" = xyes
; then :
9776 cat >>confdefs.h
<<_ACEOF
9777 #define HAVE_XML_STOPPARSER 1
9788 # Check whether --with-mpfr was given.
9789 if test "${with_mpfr+set}" = set; then :
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5
9796 $as_echo_n "checking whether to use MPFR... " >&6; }
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5
9798 $as_echo "$with_mpfr" >&6; }
9800 if test "${with_mpfr}" = no
; then
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5
9802 $as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;}
9815 acl_save_prefix
="$prefix"
9816 prefix
="$acl_final_prefix"
9817 acl_save_exec_prefix
="$exec_prefix"
9818 exec_prefix
="$acl_final_exec_prefix"
9820 eval additional_includedir
=\"$includedir\"
9821 eval additional_libdir
=\"$libdir\"
9823 exec_prefix
="$acl_save_exec_prefix"
9824 prefix
="$acl_save_prefix"
9827 # Check whether --with-libmpfr-prefix was given.
9828 if test "${with_libmpfr_prefix+set}" = set; then :
9829 withval
=$with_libmpfr_prefix;
9830 if test "X$withval" = "Xno"; then
9833 if test "X$withval" = "X"; then
9835 acl_save_prefix
="$prefix"
9836 prefix
="$acl_final_prefix"
9837 acl_save_exec_prefix
="$exec_prefix"
9838 exec_prefix
="$acl_final_exec_prefix"
9840 eval additional_includedir
=\"$includedir\"
9841 eval additional_libdir
=\"$libdir\"
9843 exec_prefix
="$acl_save_exec_prefix"
9844 prefix
="$acl_save_prefix"
9847 additional_includedir
="$withval/include"
9848 additional_libdir
="$withval/lib"
9859 names_already_handled
=
9860 names_next_round
='mpfr '
9861 while test -n "$names_next_round"; do
9862 names_this_round
="$names_next_round"
9864 for name
in $names_this_round; do
9866 for n
in $names_already_handled; do
9867 if test "$n" = "$name"; then
9872 if test -z "$already_handled"; then
9873 names_already_handled
="$names_already_handled $name"
9874 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9875 eval value
=\"\
$HAVE_LIB$uppername\"
9876 if test -n "$value"; then
9877 if test "$value" = yes; then
9878 eval value
=\"\
$LIB$uppername\"
9879 test -z "$value" || LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$value"
9880 eval value
=\"\
$LTLIB$uppername\"
9881 test -z "$value" || LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$value"
9890 if test $use_additional = yes; then
9891 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9892 found_dir
="$additional_libdir"
9893 found_so
="$additional_libdir/lib$name.$shlibext"
9894 if test -f "$additional_libdir/lib$name.la"; then
9895 found_la
="$additional_libdir/lib$name.la"
9898 if test -f "$additional_libdir/lib$name.$libext"; then
9899 found_dir
="$additional_libdir"
9900 found_a
="$additional_libdir/lib$name.$libext"
9901 if test -f "$additional_libdir/lib$name.la"; then
9902 found_la
="$additional_libdir/lib$name.la"
9907 if test "X$found_dir" = "X"; then
9908 for x
in $LDFLAGS $LTLIBMPFR; do
9910 acl_save_prefix
="$prefix"
9911 prefix
="$acl_final_prefix"
9912 acl_save_exec_prefix
="$exec_prefix"
9913 exec_prefix
="$acl_final_exec_prefix"
9915 exec_prefix
="$acl_save_exec_prefix"
9916 prefix
="$acl_save_prefix"
9920 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9921 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9923 found_so
="$dir/lib$name.$shlibext"
9924 if test -f "$dir/lib$name.la"; then
9925 found_la
="$dir/lib$name.la"
9928 if test -f "$dir/lib$name.$libext"; then
9930 found_a
="$dir/lib$name.$libext"
9931 if test -f "$dir/lib$name.la"; then
9932 found_la
="$dir/lib$name.la"
9938 if test "X$found_dir" != "X"; then
9943 if test "X$found_dir" != "X"; then
9944 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$found_dir -l$name"
9945 if test "X$found_so" != "X"; then
9946 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9947 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
9950 for x
in $ltrpathdirs; do
9951 if test "X$x" = "X$found_dir"; then
9956 if test -z "$haveit"; then
9957 ltrpathdirs
="$ltrpathdirs $found_dir"
9959 if test "$hardcode_direct" = yes; then
9960 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
9962 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9963 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
9965 for x
in $rpathdirs; do
9966 if test "X$x" = "X$found_dir"; then
9971 if test -z "$haveit"; then
9972 rpathdirs
="$rpathdirs $found_dir"
9976 for x
in $LDFLAGS $LIBMPFR; do
9978 acl_save_prefix
="$prefix"
9979 prefix
="$acl_final_prefix"
9980 acl_save_exec_prefix
="$exec_prefix"
9981 exec_prefix
="$acl_final_exec_prefix"
9983 exec_prefix
="$acl_save_exec_prefix"
9984 prefix
="$acl_save_prefix"
9986 if test "X$x" = "X-L$found_dir"; then
9991 if test -z "$haveit"; then
9992 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir"
9994 if test "$hardcode_minus_L" != no
; then
9995 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
9997 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10003 if test "X$found_a" != "X"; then
10004 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_a"
10006 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir -l$name"
10009 additional_includedir
=
10010 case "$found_dir" in
10012 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10013 additional_includedir
="$basedir/include"
10016 if test "X$additional_includedir" != "X"; then
10017 if test "X$additional_includedir" != "X/usr/include"; then
10019 if test "X$additional_includedir" = "X/usr/local/include"; then
10020 if test -n "$GCC"; then
10022 linux
*) haveit
=yes;;
10026 if test -z "$haveit"; then
10027 for x
in $CPPFLAGS $INCMPFR; do
10029 acl_save_prefix
="$prefix"
10030 prefix
="$acl_final_prefix"
10031 acl_save_exec_prefix
="$exec_prefix"
10032 exec_prefix
="$acl_final_exec_prefix"
10034 exec_prefix
="$acl_save_exec_prefix"
10035 prefix
="$acl_save_prefix"
10037 if test "X$x" = "X-I$additional_includedir"; then
10042 if test -z "$haveit"; then
10043 if test -d "$additional_includedir"; then
10044 INCMPFR
="${INCMPFR}${INCMPFR:+ }-I$additional_includedir"
10050 if test -n "$found_la"; then
10051 save_libdir
="$libdir"
10052 case "$found_la" in
10053 */* |
*\\*) .
"$found_la" ;;
10054 *) .
"./$found_la" ;;
10056 libdir
="$save_libdir"
10057 for dep
in $dependency_libs; do
10060 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10061 if test "X$additional_libdir" != "X/usr/lib"; then
10063 if test "X$additional_libdir" = "X/usr/local/lib"; then
10064 if test -n "$GCC"; then
10066 linux
*) haveit
=yes;;
10070 if test -z "$haveit"; then
10072 for x
in $LDFLAGS $LIBMPFR; do
10074 acl_save_prefix
="$prefix"
10075 prefix
="$acl_final_prefix"
10076 acl_save_exec_prefix
="$exec_prefix"
10077 exec_prefix
="$acl_final_exec_prefix"
10079 exec_prefix
="$acl_save_exec_prefix"
10080 prefix
="$acl_save_prefix"
10082 if test "X$x" = "X-L$additional_libdir"; then
10087 if test -z "$haveit"; then
10088 if test -d "$additional_libdir"; then
10089 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$additional_libdir"
10093 for x
in $LDFLAGS $LTLIBMPFR; do
10095 acl_save_prefix
="$prefix"
10096 prefix
="$acl_final_prefix"
10097 acl_save_exec_prefix
="$exec_prefix"
10098 exec_prefix
="$acl_final_exec_prefix"
10100 exec_prefix
="$acl_save_exec_prefix"
10101 prefix
="$acl_save_prefix"
10103 if test "X$x" = "X-L$additional_libdir"; then
10108 if test -z "$haveit"; then
10109 if test -d "$additional_libdir"; then
10110 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$additional_libdir"
10117 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10118 if test "$enable_rpath" != no
; then
10120 for x
in $rpathdirs; do
10121 if test "X$x" = "X$dir"; then
10126 if test -z "$haveit"; then
10127 rpathdirs
="$rpathdirs $dir"
10130 for x
in $ltrpathdirs; do
10131 if test "X$x" = "X$dir"; then
10136 if test -z "$haveit"; then
10137 ltrpathdirs
="$ltrpathdirs $dir"
10142 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10145 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10148 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$dep"
10149 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$dep"
10155 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10156 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l$name"
10162 if test "X$rpathdirs" != "X"; then
10163 if test -n "$hardcode_libdir_separator"; then
10165 for found_dir
in $rpathdirs; do
10166 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10168 acl_save_libdir
="$libdir"
10170 eval flag
=\"$hardcode_libdir_flag_spec\"
10171 libdir
="$acl_save_libdir"
10172 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10174 for found_dir
in $rpathdirs; do
10175 acl_save_libdir
="$libdir"
10176 libdir
="$found_dir"
10177 eval flag
=\"$hardcode_libdir_flag_spec\"
10178 libdir
="$acl_save_libdir"
10179 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10183 if test "X$ltrpathdirs" != "X"; then
10184 for found_dir
in $ltrpathdirs; do
10185 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-R$found_dir"
10190 ac_save_CPPFLAGS
="$CPPFLAGS"
10192 for element
in $INCMPFR; do
10194 for x
in $CPPFLAGS; do
10196 acl_save_prefix
="$prefix"
10197 prefix
="$acl_final_prefix"
10198 acl_save_exec_prefix
="$exec_prefix"
10199 exec_prefix
="$acl_final_exec_prefix"
10201 exec_prefix
="$acl_save_exec_prefix"
10202 prefix
="$acl_save_prefix"
10204 if test "X$x" = "X$element"; then
10209 if test -z "$haveit"; then
10210 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpfr" >&5
10216 $as_echo_n "checking for libmpfr... " >&6; }
10217 if ${ac_cv_libmpfr+:} false
; then :
10218 $as_echo_n "(cached) " >&6
10221 ac_save_LIBS
="$LIBS"
10222 LIBS
="$LIBS $LIBMPFR"
10223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10224 /* end confdefs.h. */
10229 mpfr_exp_t exp; mpfr_t x;
10230 mpfr_frexp (&exp, x, x, MPFR_RNDN);
10235 if ac_fn_c_try_link
"$LINENO"; then :
10240 rm -f core conftest.err conftest.
$ac_objext \
10241 conftest
$ac_exeext conftest.
$ac_ext
10242 LIBS
="$ac_save_LIBS"
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmpfr" >&5
10246 $as_echo "$ac_cv_libmpfr" >&6; }
10247 if test "$ac_cv_libmpfr" = yes; then
10250 $as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libmpfr" >&5
10253 $as_echo_n "checking how to link with libmpfr... " >&6; }
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPFR" >&5
10255 $as_echo "$LIBMPFR" >&6; }
10258 CPPFLAGS
="$ac_save_CPPFLAGS"
10268 if test "$HAVE_LIBMPFR" != yes; then
10269 if test "$with_mpfr" = yes; then
10270 as_fn_error $?
"MPFR is missing or unusable" "$LINENO" 5
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR is missing or unusable; some features may be unavailable." >&5
10273 $as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;}
10278 # --------------------- #
10279 # Check for libpython. #
10280 # --------------------- #
10287 # Check whether --with-python was given.
10288 if test "${with_python+set}" = set; then :
10289 withval
=$with_python;
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10295 $as_echo_n "checking whether to use python... " >&6; }
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10297 $as_echo "$with_python" >&6; }
10299 if test "${with_python}" = no
; then
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10301 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10304 case "${with_python}" in
10306 if test -d ${with_python}; then
10307 # Assume the python binary is ${with_python}/bin/python.
10308 python_prog
="${with_python}/bin/python"
10310 # If python does not exit ${with_python}/bin, then try in
10311 # ${with_python}. On Windows/MinGW, this is where the Python
10313 if test ! -x "${python_prog}"; then
10314 python_prog
="${with_python}/python"
10317 if test ! -x "${python_prog}"; then
10318 # Fall back to gdb 7.0/7.1 behaviour.
10319 python_prog
=missing
10320 python_prefix
=${with_python}
10322 elif test -x "${with_python}"; then
10323 # While we can't run python compiled for $host (unless host == build),
10324 # the user could write a script that provides the needed information,
10325 # so we support that.
10326 python_prog
=${with_python}
10329 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
10333 # Disallow --with-python=foo/bar.
10334 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
10337 # The user has either specified auto, yes, or the name of the python
10338 # program assumed to be in $PATH.
10340 case "${with_python}" in
10342 if test ${build} = ${host}; then
10343 # Extract the first word of "python", so it can be a program name with args.
10344 set dummy python
; ac_word
=$2
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10346 $as_echo_n "checking for $ac_word... " >&6; }
10347 if ${ac_cv_path_python_prog_path+:} false
; then :
10348 $as_echo_n "(cached) " >&6
10350 case $python_prog_path in
10352 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10355 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10356 for as_dir
in $PATH
10359 test -z "$as_dir" && as_dir
=.
10360 for ac_exec_ext
in '' $ac_executable_extensions; do
10361 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10362 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10370 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10374 python_prog_path
=$ac_cv_path_python_prog_path
10375 if test -n "$python_prog_path"; then
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10377 $as_echo "$python_prog_path" >&6; }
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10380 $as_echo "no" >&6; }
10384 if test "${python_prog_path}" = missing
; then
10385 python_prog
=missing
10387 python_prog
=${python_prog_path}
10390 # Not much we can do except assume the cross-compiler will find the
10392 python_prog
=missing
10396 # While we can't run python compiled for $host (unless host == build),
10397 # the user could write a script that provides the needed information,
10398 # so we support that.
10399 python_prog
="${with_python}"
10400 # Extract the first word of "${python_prog}", so it can be a program name with args.
10401 set dummy
${python_prog}; ac_word
=$2
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10403 $as_echo_n "checking for $ac_word... " >&6; }
10404 if ${ac_cv_path_python_prog_path+:} false
; then :
10405 $as_echo_n "(cached) " >&6
10407 case $python_prog_path in
10409 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10412 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10413 for as_dir
in $PATH
10416 test -z "$as_dir" && as_dir
=.
10417 for ac_exec_ext
in '' $ac_executable_extensions; do
10418 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10419 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10427 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10431 python_prog_path
=$ac_cv_path_python_prog_path
10432 if test -n "$python_prog_path"; then
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10434 $as_echo "$python_prog_path" >&6; }
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10437 $as_echo "no" >&6; }
10441 if test "${python_prog_path}" = missing
; then
10442 as_fn_error $?
"unable to find python program ${python_prog}" "$LINENO" 5
10448 if test "${python_prog}" != missing
; then
10449 # We have a python program to use, but it may be too old.
10450 # Don't flag an error for --with-python=auto (the default).
10451 have_python_config
=yes
10452 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
10453 if test $?
!= 0; then
10454 have_python_config
=failed
10455 if test "${with_python}" != auto
; then
10456 as_fn_error $?
"failure running python-config --includes" "$LINENO" 5
10459 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10460 if test $?
!= 0; then
10461 have_python_config
=failed
10462 if test "${with_python}" != auto
; then
10463 as_fn_error $?
"failure running python-config --ldflags" "$LINENO" 5
10466 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10467 if test $?
!= 0; then
10468 have_python_config
=failed
10469 if test "${with_python}" != auto
; then
10470 as_fn_error $?
"failure running python-config --exec-prefix" "$LINENO" 5
10474 # We do not have a python executable we can use to determine where
10475 # to find the Python headers and libs. We cannot guess the include
10476 # path from the python_prefix either, because that include path
10477 # depends on the Python version. So, there is nothing much we can
10478 # do except assume that the compiler will be able to find those files.
10481 have_python_config
=no
10484 # If we have python-config, only try the configuration it provides.
10485 # Otherwise fallback on the old way of trying different versions of
10489 if test "${have_python_config}" = yes; then
10490 # Determine the Python version by extracting "-lpython<version>"
10491 # part of the python_libs. <version> is usually X.Y with X and Y
10492 # being decimal numbers, but can also be XY (seen on Windows).
10494 # The extraction is performed using sed with a regular expression.
10495 # Initially, the regexp used was using the '?' quantifier to make
10496 # the dot in the version number optional. Unfortunately, this
10497 # does not work with non-GNU versions of sed because, because of
10498 # what looks like a limitation (the '?' quantifier does not work
10499 # with back-references). We work around this limitation by using
10500 # the '*' quantifier instead. It means that, in theory, we might
10501 # match unexpected version strings such as "-lpython2..7", but
10502 # this seems unlikely in practice. And even if that happens,
10503 # an error will be triggered later on, when checking that version
10505 python_version
=`echo " ${python_libs} " \
10506 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
10507 case "${python_version}" in
10510 version
=${python_version}
10512 new_CPPFLAGS
=${python_includes}
10513 new_LIBS
=${python_libs}
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10515 $as_echo_n "checking for ${version}... " >&6; }
10516 save_CPPFLAGS
=$CPPFLAGS
10518 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10519 LIBS
="$new_LIBS $LIBS"
10520 found_usable_python
=no
10521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10522 /* end confdefs.h. */
10523 #include "Python.h"
10532 if ac_fn_c_try_link
"$LINENO"; then :
10533 have_libpython
=${version}
10534 found_usable_python
=yes
10535 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10536 PYTHON_LIBS
=$new_LIBS
10538 rm -f core conftest.err conftest.
$ac_objext \
10539 conftest
$ac_exeext conftest.
$ac_ext
10540 CPPFLAGS
=$save_CPPFLAGS
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10543 $as_echo "${found_usable_python}" >&6; }
10547 as_fn_error $?
"unable to determine python version from ${python_libs}" "$LINENO" 5
10550 elif test "${have_python_config}" != failed
; then
10551 if test "${have_libpython}" = no
; then
10555 new_CPPFLAGS
=${python_includes}
10556 new_LIBS
="-lpython2.7 ${python_libs}"
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10558 $as_echo_n "checking for ${version}... " >&6; }
10559 save_CPPFLAGS
=$CPPFLAGS
10561 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10562 LIBS
="$new_LIBS $LIBS"
10563 found_usable_python
=no
10564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10565 /* end confdefs.h. */
10566 #include "Python.h"
10575 if ac_fn_c_try_link
"$LINENO"; then :
10576 have_libpython
=${version}
10577 found_usable_python
=yes
10578 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10579 PYTHON_LIBS
=$new_LIBS
10581 rm -f core conftest.err conftest.
$ac_objext \
10582 conftest
$ac_exeext conftest.
$ac_ext
10583 CPPFLAGS
=$save_CPPFLAGS
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10586 $as_echo "${found_usable_python}" >&6; }
10589 if test "${have_libpython}" = no
; then
10593 new_CPPFLAGS
=${python_includes}
10594 new_LIBS
="-lpython2.6 ${python_libs}"
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10596 $as_echo_n "checking for ${version}... " >&6; }
10597 save_CPPFLAGS
=$CPPFLAGS
10599 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10600 LIBS
="$new_LIBS $LIBS"
10601 found_usable_python
=no
10602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10603 /* end confdefs.h. */
10604 #include "Python.h"
10613 if ac_fn_c_try_link
"$LINENO"; then :
10614 have_libpython
=${version}
10615 found_usable_python
=yes
10616 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10617 PYTHON_LIBS
=$new_LIBS
10619 rm -f core conftest.err conftest.
$ac_objext \
10620 conftest
$ac_exeext conftest.
$ac_ext
10621 CPPFLAGS
=$save_CPPFLAGS
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10624 $as_echo "${found_usable_python}" >&6; }
10627 if test ${have_libpython} = no
; then
10631 new_CPPFLAGS
=${python_includes}
10632 new_LIBS
="-lpython2.5 ${python_libs}"
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10634 $as_echo_n "checking for ${version}... " >&6; }
10635 save_CPPFLAGS
=$CPPFLAGS
10637 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10638 LIBS
="$new_LIBS $LIBS"
10639 found_usable_python
=no
10640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10641 /* end confdefs.h. */
10642 #include "Python.h"
10651 if ac_fn_c_try_link
"$LINENO"; then :
10652 have_libpython
=${version}
10653 found_usable_python
=yes
10654 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10655 PYTHON_LIBS
=$new_LIBS
10657 rm -f core conftest.err conftest.
$ac_objext \
10658 conftest
$ac_exeext conftest.
$ac_ext
10659 CPPFLAGS
=$save_CPPFLAGS
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10662 $as_echo "${found_usable_python}" >&6; }
10665 if test ${have_libpython} = no
; then
10669 new_CPPFLAGS
=${python_includes}
10670 new_LIBS
="-lpython2.4 ${python_libs}"
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10672 $as_echo_n "checking for ${version}... " >&6; }
10673 save_CPPFLAGS
=$CPPFLAGS
10675 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10676 LIBS
="$new_LIBS $LIBS"
10677 found_usable_python
=no
10678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10679 /* end confdefs.h. */
10680 #include "Python.h"
10689 if ac_fn_c_try_link
"$LINENO"; then :
10690 have_libpython
=${version}
10691 found_usable_python
=yes
10692 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10693 PYTHON_LIBS
=$new_LIBS
10695 rm -f core conftest.err conftest.
$ac_objext \
10696 conftest
$ac_exeext conftest.
$ac_ext
10697 CPPFLAGS
=$save_CPPFLAGS
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10700 $as_echo "${found_usable_python}" >&6; }
10704 if test "${have_libpython}" = python2.7
-o "${have_libpython}" = python27
; then
10706 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
10708 elif test "${have_libpython}" = python2.6
-o "${have_libpython}" = python26
; then
10710 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
10712 elif test "${have_libpython}" = python2.5
-o "${have_libpython}" = python25
; then
10714 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
10716 elif test "${have_libpython}" = python2.4
-o "${have_libpython}" = python24
; then
10718 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
10722 if test "${have_libpython}" = no
; then
10723 case "${with_python}" in
10725 as_fn_error $?
"python is missing or unusable" "$LINENO" 5
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10729 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10732 as_fn_error $?
"no usable python found at ${with_python}" "$LINENO" 5
10736 if test -n "${python_prefix}"; then
10738 cat >>confdefs.h
<<_ACEOF
10739 #define WITH_PYTHON_PATH "${python_prefix}"
10743 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
10744 if test "x$prefix" = xNONE
; then
10745 test_prefix
=/usr
/local
10747 test_prefix
=$prefix
10750 test_prefix
=$exec_prefix
10753 case ${python_prefix} in
10754 "${test_prefix}"|
"${test_prefix}/"*|\
10755 '${exec_prefix}'|
'${exec_prefix}/'*)
10760 cat >>confdefs.h
<<_ACEOF
10761 #define PYTHON_PATH_RELOCATABLE $value
10769 if test "${have_libpython}" != no
; then
10771 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10773 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10774 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10775 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
10776 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
10777 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
10779 # Flags needed to compile Python code (taken from python-config --cflags).
10780 # We cannot call python-config directly because it will output whatever was
10781 # used when compiling the Python interpreter itself, including flags which
10782 # would make the python-related objects be compiled differently from the
10783 # rest of GDB (e.g., -O2 and -fPIC).
10784 if test "${GCC}" = yes; then
10785 tentative_python_cflags
="-fno-strict-aliasing -DNDEBUG -fwrapv"
10788 if test "x${tentative_python_cflags}" != x
; then
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10790 $as_echo_n "checking compiler flags for python code... " >&6; }
10791 for flag
in ${tentative_python_cflags}; do
10792 # Check that the compiler accepts it
10793 saved_CFLAGS
="$CFLAGS"
10794 CFLAGS
="$CFLAGS $flag"
10795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10796 /* end confdefs.h. */
10806 if ac_fn_c_try_compile
"$LINENO"; then :
10807 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
10809 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10810 CFLAGS
="$saved_CFLAGS"
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
10813 $as_echo "${PYTHON_CFLAGS}" >&6; }
10816 # On x64 Windows, Python's include headers, and pyconfig.h in
10817 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
10818 # version of Windows. Unfortunately, MS_WIN64 is only defined if
10819 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
10820 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
10821 # The issue was reported to the Python community, but still isn't
10822 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
10824 case "$gdb_host" in
10826 if test "${GCC}" = yes; then
10827 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
10832 # Note that "python -m threading" cannot be used to check for
10833 # threading support due to a bug in Python 2.7.3
10834 # (http://bugs.python.org/issue15567).
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
10836 $as_echo_n "checking whether python supports threads... " >&6; }
10837 saved_CPPFLAGS
="${CPPFLAGS}"
10838 CPPFLAGS
="${PYTHON_CPPFLAGS}"
10839 # Note that the test is reversed so that python_has_threads=yes on
10840 # unexpected failures.
10841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10842 /* end confdefs.h. */
10844 #include <Python.h>
10850 if ac_fn_c_try_cpp
"$LINENO"; then :
10851 python_has_threads
=no
10853 python_has_threads
=yes
10855 rm -f conftest.err conftest.i conftest.
$ac_ext
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
10857 $as_echo "${python_has_threads}" >&6; }
10858 CPPFLAGS
="${saved_CPPFLAGS}"
10860 # Even if Python support is not compiled in, we need to have this file
10861 # included so that the "python" command, et.al., still exists.
10862 CONFIG_OBS
="$CONFIG_OBS python/python.o"
10863 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
10866 # Work around Python http://bugs.python.org/issue10112. See also
10867 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
10868 # no effect. Note that the only test after this that uses Python is
10869 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
10870 # run without -export-dynamic too.
10871 PYTHON_LIBS
=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
10876 if test "${have_libpython}" != no
; then
10878 HAVE_PYTHON_FALSE
='#'
10880 HAVE_PYTHON_TRUE
='#'
10885 # -------------------- #
10886 # Check for libguile. #
10887 # -------------------- #
10894 # Check whether --with-guile was given.
10895 if test "${with_guile+set}" = set; then :
10896 withval
=$with_guile;
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
10902 $as_echo_n "checking whether to use guile... " >&6; }
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
10904 $as_echo "$with_guile" >&6; }
10906 # Extract the first word of "pkg-config", so it can be a program name with args.
10907 set dummy pkg-config
; ac_word
=$2
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10909 $as_echo_n "checking for $ac_word... " >&6; }
10910 if ${ac_cv_path_pkg_config_prog_path+:} false
; then :
10911 $as_echo_n "(cached) " >&6
10913 case $pkg_config_prog_path in
10915 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
10918 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10919 for as_dir
in $PATH
10922 test -z "$as_dir" && as_dir
=.
10923 for ac_exec_ext
in '' $ac_executable_extensions; do
10924 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10925 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10933 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
10937 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
10938 if test -n "$pkg_config_prog_path"; then
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
10940 $as_echo "$pkg_config_prog_path" >&6; }
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10943 $as_echo "no" >&6; }
10948 try_guile_versions
="guile-2.0"
10950 case "${with_guile}" in
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
10953 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
10956 if test "${pkg_config_prog_path}" = "missing"; then
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
10958 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
10961 pkg_config
=${pkg_config_prog_path}
10962 guile_version_list
=${try_guile_versions}
10965 found_usable_guile
=checking
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
10967 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
10968 for guile_version
in ${guile_version_list}; do
10969 ${pkg_config} --exists ${guile_version} 2>/dev
/null
10970 if test $?
!= 0; then
10973 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
10974 if test $?
!= 0; then
10975 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
10977 new_LIBS
=`${pkg_config} --libs ${guile_version}`
10978 if test $?
!= 0; then
10979 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
10981 found_usable_guile
=${guile_version}
10984 if test "${found_usable_guile}" = "checking"; then
10985 if test "${flag_errors}" = "yes"; then
10986 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
10988 found_usable_guile
=no
10991 if test "${found_usable_guile}" != no
; then
10992 save_CPPFLAGS
=$CPPFLAGS
10994 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10995 LIBS
="$LIBS $new_LIBS"
10996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10997 /* end confdefs.h. */
10998 #include "libguile.h"
11007 if ac_fn_c_try_link
"$LINENO"; then :
11009 GUILE_CPPFLAGS
=$new_CPPFLAGS
11010 GUILE_LIBS
=$new_LIBS
11012 found_usable_guile
=no
11014 rm -f core conftest.err conftest.
$ac_objext \
11015 conftest
$ac_exeext conftest.
$ac_ext
11016 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11017 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11019 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11024 CPPFLAGS
=$save_CPPFLAGS
11026 if test "${found_usable_guile}" = no
; then
11027 if test "${flag_errors}" = yes; then
11028 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11030 as_fn_error $?
"linking guile version ${guile_version} test program failed
11031 See \`config.log' for more details" "$LINENO" 5; }
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11036 $as_echo "${found_usable_guile}" >&6; }
11041 if test "${pkg_config_prog_path}" = "missing"; then
11042 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11045 pkg_config
=${pkg_config_prog_path}
11046 guile_version_list
=${try_guile_versions}
11049 found_usable_guile
=checking
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11051 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11052 for guile_version
in ${guile_version_list}; do
11053 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11054 if test $?
!= 0; then
11057 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11058 if test $?
!= 0; then
11059 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11061 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11062 if test $?
!= 0; then
11063 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11065 found_usable_guile
=${guile_version}
11068 if test "${found_usable_guile}" = "checking"; then
11069 if test "${flag_errors}" = "yes"; then
11070 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11072 found_usable_guile
=no
11075 if test "${found_usable_guile}" != no
; then
11076 save_CPPFLAGS
=$CPPFLAGS
11078 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11079 LIBS
="$LIBS $new_LIBS"
11080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11081 /* end confdefs.h. */
11082 #include "libguile.h"
11091 if ac_fn_c_try_link
"$LINENO"; then :
11093 GUILE_CPPFLAGS
=$new_CPPFLAGS
11094 GUILE_LIBS
=$new_LIBS
11096 found_usable_guile
=no
11098 rm -f core conftest.err conftest.
$ac_objext \
11099 conftest
$ac_exeext conftest.
$ac_ext
11100 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11101 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11103 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11108 CPPFLAGS
=$save_CPPFLAGS
11110 if test "${found_usable_guile}" = no
; then
11111 if test "${flag_errors}" = yes; then
11112 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11113 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11114 as_fn_error $?
"linking guile version ${guile_version} test program failed
11115 See \`config.log' for more details" "$LINENO" 5; }
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11120 $as_echo "${found_usable_guile}" >&6; }
11124 if test -x "${with_guile}"; then
11126 pkg_config
=${with_guile}
11127 guile_version_list
=${try_guile_versions}
11130 found_usable_guile
=checking
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11132 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11133 for guile_version
in ${guile_version_list}; do
11134 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11135 if test $?
!= 0; then
11138 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11139 if test $?
!= 0; then
11140 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11142 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11143 if test $?
!= 0; then
11144 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11146 found_usable_guile
=${guile_version}
11149 if test "${found_usable_guile}" = "checking"; then
11150 if test "${flag_errors}" = "yes"; then
11151 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11153 found_usable_guile
=no
11156 if test "${found_usable_guile}" != no
; then
11157 save_CPPFLAGS
=$CPPFLAGS
11159 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11160 LIBS
="$LIBS $new_LIBS"
11161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11162 /* end confdefs.h. */
11163 #include "libguile.h"
11172 if ac_fn_c_try_link
"$LINENO"; then :
11174 GUILE_CPPFLAGS
=$new_CPPFLAGS
11175 GUILE_LIBS
=$new_LIBS
11177 found_usable_guile
=no
11179 rm -f core conftest.err conftest.
$ac_objext \
11180 conftest
$ac_exeext conftest.
$ac_ext
11181 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11182 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11184 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11189 CPPFLAGS
=$save_CPPFLAGS
11191 if test "${found_usable_guile}" = no
; then
11192 if test "${flag_errors}" = yes; then
11193 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11195 as_fn_error $?
"linking guile version ${guile_version} test program failed
11196 See \`config.log' for more details" "$LINENO" 5; }
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11201 $as_echo "${found_usable_guile}" >&6; }
11204 as_fn_error $?
"Guile config program not executable: ${with_guile}" "$LINENO" 5
11208 # Disallow --with=guile="" and --with-guile=foo/bar.
11209 as_fn_error $?
"invalid value for --with-guile" "$LINENO" 5
11212 # A space separate list of guile versions to try, in order.
11213 if test "${pkg_config_prog_path}" = "missing"; then
11214 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11217 pkg_config
=${pkg_config_prog_path}
11218 guile_version_list
=${with_guile}
11221 found_usable_guile
=checking
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11223 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11224 for guile_version
in ${guile_version_list}; do
11225 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11226 if test $?
!= 0; then
11229 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11230 if test $?
!= 0; then
11231 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11233 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11234 if test $?
!= 0; then
11235 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11237 found_usable_guile
=${guile_version}
11240 if test "${found_usable_guile}" = "checking"; then
11241 if test "${flag_errors}" = "yes"; then
11242 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11244 found_usable_guile
=no
11247 if test "${found_usable_guile}" != no
; then
11248 save_CPPFLAGS
=$CPPFLAGS
11250 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11251 LIBS
="$LIBS $new_LIBS"
11252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11253 /* end confdefs.h. */
11254 #include "libguile.h"
11263 if ac_fn_c_try_link
"$LINENO"; then :
11265 GUILE_CPPFLAGS
=$new_CPPFLAGS
11266 GUILE_LIBS
=$new_LIBS
11268 found_usable_guile
=no
11270 rm -f core conftest.err conftest.
$ac_objext \
11271 conftest
$ac_exeext conftest.
$ac_ext
11272 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11273 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11275 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11280 CPPFLAGS
=$save_CPPFLAGS
11282 if test "${found_usable_guile}" = no
; then
11283 if test "${flag_errors}" = yes; then
11284 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11286 as_fn_error $?
"linking guile version ${guile_version} test program failed
11287 See \`config.log' for more details" "$LINENO" 5; }
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11292 $as_echo "${found_usable_guile}" >&6; }
11297 if test "${have_libguile}" != no
; then
11298 case "${with_guile}" in
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11302 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11303 if ${ac_cv_guild_program_name+:} false
; then :
11304 $as_echo_n "(cached) " >&6
11306 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
11308 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11309 # the 'guild' and 'bindir' variables. In that case, try to guess
11310 # what the program name is, at the risk of getting it wrong if
11311 # Guile was configured with '--program-suffix' or similar.
11312 if test "x$ac_cv_guild_program_name" = "x"; then
11313 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
11314 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11319 $as_echo "$ac_cv_guild_program_name" >&6; }
11321 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11322 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11325 GUILD
="$ac_cv_guild_program_name"
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11332 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11333 if ${ac_cv_guild_program_name+:} false
; then :
11334 $as_echo_n "(cached) " >&6
11336 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
11338 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11339 # the 'guild' and 'bindir' variables. In that case, try to guess
11340 # what the program name is, at the risk of getting it wrong if
11341 # Guile was configured with '--program-suffix' or similar.
11342 if test "x$ac_cv_guild_program_name" = "x"; then
11343 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
11344 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11349 $as_echo "$ac_cv_guild_program_name" >&6; }
11351 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11352 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11355 GUILD
="$ac_cv_guild_program_name"
11362 if test "$cross_compiling" = no
; then
11365 GUILD_TARGET_FLAG
="--target=$host"
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
11372 $as_echo_n "checking whether guild supports this host... " >&6; }
11373 if ${ac_cv_guild_ok+:} false
; then :
11374 $as_echo_n "(cached) " >&6
11376 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
11377 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
11384 $as_echo "$ac_cv_guild_ok" >&6; }
11386 if test "$ac_cv_guild_ok" = no
; then
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
11389 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
11393 if test "${have_libguile}" != no
; then
11395 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
11397 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
11398 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
11399 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
11400 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
11401 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
11404 save_CPPFLAGS
="$CPPFLAGS"
11406 CPPFLAGS
="$GUILE_CPPFLAGS"
11407 for ac_func
in scm_new_smob
11409 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
11410 if test "x$ac_cv_func_scm_new_smob" = xyes
; then :
11411 cat >>confdefs.h
<<_ACEOF
11412 #define HAVE_SCM_NEW_SMOB 1
11419 CPPFLAGS
="$save_CPPFLAGS"
11421 # Even if Guile support is not compiled in, we need to have these files
11423 CONFIG_OBS
="$CONFIG_OBS guile/guile.o"
11424 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
11428 if test "${have_libguile}" != no
; then
11430 HAVE_GUILE_FALSE
='#'
11432 HAVE_GUILE_TRUE
='#'
11437 # --------------------- #
11438 # Check for libmcheck. #
11439 # --------------------- #
11441 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
11442 # but turn it off if Python is enabled with threads, since -lmcheck is
11443 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
11444 # and for releases.
11445 if test \
( "${have_libpython}" = "no" -o "${python_has_threads}" = "no" \
) \
11446 && $development; then
11447 libmcheck_default
=yes
11449 libmcheck_default
=no
11452 # Check whether --enable-libmcheck was given.
11453 if test "${enable_libmcheck+set}" = set; then :
11454 enableval
=$enable_libmcheck; case "${enableval}" in
11455 yes | y
) ENABLE_LIBMCHECK
="yes" ;;
11456 no | n
) ENABLE_LIBMCHECK
="no" ;;
11457 *) as_fn_error $?
"bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
11462 if test -z "${ENABLE_LIBMCHECK}"; then
11463 ENABLE_LIBMCHECK
=${libmcheck_default}
11466 if test "$ENABLE_LIBMCHECK" = "yes" ; then
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
11468 $as_echo_n "checking for main in -lmcheck... " >&6; }
11469 if ${ac_cv_lib_mcheck_main+:} false
; then :
11470 $as_echo_n "(cached) " >&6
11472 ac_check_lib_save_LIBS
=$LIBS
11473 LIBS
="-lmcheck $LIBS"
11474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11475 /* end confdefs.h. */
11486 if ac_fn_c_try_link
"$LINENO"; then :
11487 ac_cv_lib_mcheck_main
=yes
11489 ac_cv_lib_mcheck_main
=no
11491 rm -f core conftest.err conftest.
$ac_objext \
11492 conftest
$ac_exeext conftest.
$ac_ext
11493 LIBS
=$ac_check_lib_save_LIBS
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
11496 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
11497 if test "x$ac_cv_lib_mcheck_main" = xyes
; then :
11498 cat >>confdefs.h
<<_ACEOF
11499 #define HAVE_LIBMCHECK 1
11502 LIBS
="-lmcheck $LIBS"
11509 if test "$ENABLE_LIBMCHECK" = "yes" \
11510 -a "${have_libpython}" != "no" \
11511 -a "${python_has_threads}" = "yes" ; then
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
11513 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
11517 # Check whether --with-intel_pt was given.
11518 if test "${with_intel_pt+set}" = set; then :
11519 withval
=$with_intel_pt;
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
11525 $as_echo_n "checking whether to use intel pt... " >&6; }
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
11527 $as_echo "$with_intel_pt" >&6; }
11529 if test "${with_intel_pt}" = no
; then
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
11531 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
11534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11535 /* end confdefs.h. */
11537 #include <linux/perf_event.h>
11538 #ifndef PERF_ATTR_SIZE_VER5
11543 if ac_fn_c_try_cpp
"$LINENO"; then :
11548 rm -f conftest.err conftest.i conftest.
$ac_ext
11549 if test "$perf_event" != yes; then
11550 if test "$with_intel_pt" = yes; then
11551 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
11554 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
11568 acl_save_prefix
="$prefix"
11569 prefix
="$acl_final_prefix"
11570 acl_save_exec_prefix
="$exec_prefix"
11571 exec_prefix
="$acl_final_exec_prefix"
11573 eval additional_includedir
=\"$includedir\"
11574 eval additional_libdir
=\"$libdir\"
11576 exec_prefix
="$acl_save_exec_prefix"
11577 prefix
="$acl_save_prefix"
11580 # Check whether --with-libipt-prefix was given.
11581 if test "${with_libipt_prefix+set}" = set; then :
11582 withval
=$with_libipt_prefix;
11583 if test "X$withval" = "Xno"; then
11586 if test "X$withval" = "X"; then
11588 acl_save_prefix
="$prefix"
11589 prefix
="$acl_final_prefix"
11590 acl_save_exec_prefix
="$exec_prefix"
11591 exec_prefix
="$acl_final_exec_prefix"
11593 eval additional_includedir
=\"$includedir\"
11594 eval additional_libdir
=\"$libdir\"
11596 exec_prefix
="$acl_save_exec_prefix"
11597 prefix
="$acl_save_prefix"
11600 additional_includedir
="$withval/include"
11601 additional_libdir
="$withval/lib"
11612 names_already_handled
=
11613 names_next_round
='ipt '
11614 while test -n "$names_next_round"; do
11615 names_this_round
="$names_next_round"
11617 for name
in $names_this_round; do
11619 for n
in $names_already_handled; do
11620 if test "$n" = "$name"; then
11621 already_handled
=yes
11625 if test -z "$already_handled"; then
11626 names_already_handled
="$names_already_handled $name"
11627 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11628 eval value
=\"\
$HAVE_LIB$uppername\"
11629 if test -n "$value"; then
11630 if test "$value" = yes; then
11631 eval value
=\"\
$LIB$uppername\"
11632 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
11633 eval value
=\"\
$LTLIB$uppername\"
11634 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
11643 if test $use_additional = yes; then
11644 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11645 found_dir
="$additional_libdir"
11646 found_so
="$additional_libdir/lib$name.$shlibext"
11647 if test -f "$additional_libdir/lib$name.la"; then
11648 found_la
="$additional_libdir/lib$name.la"
11651 if test -f "$additional_libdir/lib$name.$libext"; then
11652 found_dir
="$additional_libdir"
11653 found_a
="$additional_libdir/lib$name.$libext"
11654 if test -f "$additional_libdir/lib$name.la"; then
11655 found_la
="$additional_libdir/lib$name.la"
11660 if test "X$found_dir" = "X"; then
11661 for x
in $LDFLAGS $LTLIBIPT; do
11663 acl_save_prefix
="$prefix"
11664 prefix
="$acl_final_prefix"
11665 acl_save_exec_prefix
="$exec_prefix"
11666 exec_prefix
="$acl_final_exec_prefix"
11668 exec_prefix
="$acl_save_exec_prefix"
11669 prefix
="$acl_save_prefix"
11673 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11674 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11676 found_so
="$dir/lib$name.$shlibext"
11677 if test -f "$dir/lib$name.la"; then
11678 found_la
="$dir/lib$name.la"
11681 if test -f "$dir/lib$name.$libext"; then
11683 found_a
="$dir/lib$name.$libext"
11684 if test -f "$dir/lib$name.la"; then
11685 found_la
="$dir/lib$name.la"
11691 if test "X$found_dir" != "X"; then
11696 if test "X$found_dir" != "X"; then
11697 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
11698 if test "X$found_so" != "X"; then
11699 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11700 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11703 for x
in $ltrpathdirs; do
11704 if test "X$x" = "X$found_dir"; then
11709 if test -z "$haveit"; then
11710 ltrpathdirs
="$ltrpathdirs $found_dir"
11712 if test "$hardcode_direct" = yes; then
11713 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11715 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11716 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11718 for x
in $rpathdirs; do
11719 if test "X$x" = "X$found_dir"; then
11724 if test -z "$haveit"; then
11725 rpathdirs
="$rpathdirs $found_dir"
11729 for x
in $LDFLAGS $LIBIPT; do
11731 acl_save_prefix
="$prefix"
11732 prefix
="$acl_final_prefix"
11733 acl_save_exec_prefix
="$exec_prefix"
11734 exec_prefix
="$acl_final_exec_prefix"
11736 exec_prefix
="$acl_save_exec_prefix"
11737 prefix
="$acl_save_prefix"
11739 if test "X$x" = "X-L$found_dir"; then
11744 if test -z "$haveit"; then
11745 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
11747 if test "$hardcode_minus_L" != no
; then
11748 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11750 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
11756 if test "X$found_a" != "X"; then
11757 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
11759 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
11762 additional_includedir
=
11763 case "$found_dir" in
11765 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11766 additional_includedir
="$basedir/include"
11769 if test "X$additional_includedir" != "X"; then
11770 if test "X$additional_includedir" != "X/usr/include"; then
11772 if test "X$additional_includedir" = "X/usr/local/include"; then
11773 if test -n "$GCC"; then
11775 linux
*) haveit
=yes;;
11779 if test -z "$haveit"; then
11780 for x
in $CPPFLAGS $INCIPT; do
11782 acl_save_prefix
="$prefix"
11783 prefix
="$acl_final_prefix"
11784 acl_save_exec_prefix
="$exec_prefix"
11785 exec_prefix
="$acl_final_exec_prefix"
11787 exec_prefix
="$acl_save_exec_prefix"
11788 prefix
="$acl_save_prefix"
11790 if test "X$x" = "X-I$additional_includedir"; then
11795 if test -z "$haveit"; then
11796 if test -d "$additional_includedir"; then
11797 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
11803 if test -n "$found_la"; then
11804 save_libdir
="$libdir"
11805 case "$found_la" in
11806 */* |
*\\*) .
"$found_la" ;;
11807 *) .
"./$found_la" ;;
11809 libdir
="$save_libdir"
11810 for dep
in $dependency_libs; do
11813 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11814 if test "X$additional_libdir" != "X/usr/lib"; then
11816 if test "X$additional_libdir" = "X/usr/local/lib"; then
11817 if test -n "$GCC"; then
11819 linux
*) haveit
=yes;;
11823 if test -z "$haveit"; then
11825 for x
in $LDFLAGS $LIBIPT; do
11827 acl_save_prefix
="$prefix"
11828 prefix
="$acl_final_prefix"
11829 acl_save_exec_prefix
="$exec_prefix"
11830 exec_prefix
="$acl_final_exec_prefix"
11832 exec_prefix
="$acl_save_exec_prefix"
11833 prefix
="$acl_save_prefix"
11835 if test "X$x" = "X-L$additional_libdir"; then
11840 if test -z "$haveit"; then
11841 if test -d "$additional_libdir"; then
11842 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
11846 for x
in $LDFLAGS $LTLIBIPT; do
11848 acl_save_prefix
="$prefix"
11849 prefix
="$acl_final_prefix"
11850 acl_save_exec_prefix
="$exec_prefix"
11851 exec_prefix
="$acl_final_exec_prefix"
11853 exec_prefix
="$acl_save_exec_prefix"
11854 prefix
="$acl_save_prefix"
11856 if test "X$x" = "X-L$additional_libdir"; then
11861 if test -z "$haveit"; then
11862 if test -d "$additional_libdir"; then
11863 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
11870 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11871 if test "$enable_rpath" != no
; then
11873 for x
in $rpathdirs; do
11874 if test "X$x" = "X$dir"; then
11879 if test -z "$haveit"; then
11880 rpathdirs
="$rpathdirs $dir"
11883 for x
in $ltrpathdirs; do
11884 if test "X$x" = "X$dir"; then
11889 if test -z "$haveit"; then
11890 ltrpathdirs
="$ltrpathdirs $dir"
11895 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11898 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11901 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
11902 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
11908 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
11909 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
11915 if test "X$rpathdirs" != "X"; then
11916 if test -n "$hardcode_libdir_separator"; then
11918 for found_dir
in $rpathdirs; do
11919 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11921 acl_save_libdir
="$libdir"
11923 eval flag
=\"$hardcode_libdir_flag_spec\"
11924 libdir
="$acl_save_libdir"
11925 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
11927 for found_dir
in $rpathdirs; do
11928 acl_save_libdir
="$libdir"
11929 libdir
="$found_dir"
11930 eval flag
=\"$hardcode_libdir_flag_spec\"
11931 libdir
="$acl_save_libdir"
11932 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
11936 if test "X$ltrpathdirs" != "X"; then
11937 for found_dir
in $ltrpathdirs; do
11938 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
11943 ac_save_CPPFLAGS
="$CPPFLAGS"
11945 for element
in $INCIPT; do
11947 for x
in $CPPFLAGS; do
11949 acl_save_prefix
="$prefix"
11950 prefix
="$acl_final_prefix"
11951 acl_save_exec_prefix
="$exec_prefix"
11952 exec_prefix
="$acl_final_exec_prefix"
11954 exec_prefix
="$acl_save_exec_prefix"
11955 prefix
="$acl_save_prefix"
11957 if test "X$x" = "X$element"; then
11962 if test -z "$haveit"; then
11963 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
11969 $as_echo_n "checking for libipt... " >&6; }
11970 if ${ac_cv_libipt+:} false
; then :
11971 $as_echo_n "(cached) " >&6
11974 ac_save_LIBS
="$LIBS"
11975 LIBS
="$LIBS $LIBIPT"
11976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11977 /* end confdefs.h. */
11978 #include "intel-pt.h"
11982 pt_insn_alloc_decoder (0);
11987 if ac_fn_c_try_link
"$LINENO"; then :
11992 rm -f core conftest.err conftest.
$ac_objext \
11993 conftest
$ac_exeext conftest.
$ac_ext
11994 LIBS
="$ac_save_LIBS"
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
11998 $as_echo "$ac_cv_libipt" >&6; }
11999 if test "$ac_cv_libipt" = yes; then
12002 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
12005 $as_echo_n "checking how to link with libipt... " >&6; }
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
12007 $as_echo "$LIBIPT" >&6; }
12010 CPPFLAGS
="$ac_save_CPPFLAGS"
12020 if test "$HAVE_LIBIPT" != yes; then
12021 if test "$with_intel_pt" = yes; then
12022 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
12025 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
12029 LIBS
="$LIBS $LIBIPT"
12030 for ac_func
in pt_insn_event
12032 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
12033 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
12034 cat >>confdefs.h
<<_ACEOF
12035 #define HAVE_PT_INSN_EVENT 1
12041 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
12043 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
12045 cat >>confdefs.h
<<_ACEOF
12046 #define HAVE_STRUCT_PT_INSN_ENABLED 1
12051 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
12053 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
12055 cat >>confdefs.h
<<_ACEOF
12056 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
12066 # ------------------------- #
12067 # Checks for header files. #
12068 # ------------------------- #
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12071 $as_echo_n "checking for ANSI C header files... " >&6; }
12072 if ${ac_cv_header_stdc+:} false
; then :
12073 $as_echo_n "(cached) " >&6
12075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12076 /* end confdefs.h. */
12077 #include <stdlib.h>
12078 #include <stdarg.h>
12079 #include <string.h>
12090 if ac_fn_c_try_compile
"$LINENO"; then :
12091 ac_cv_header_stdc
=yes
12093 ac_cv_header_stdc
=no
12095 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12097 if test $ac_cv_header_stdc = yes; then
12098 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12100 /* end confdefs.h. */
12101 #include <string.h>
12104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12105 $EGREP "memchr" >/dev
/null
2>&1; then :
12108 ac_cv_header_stdc
=no
12114 if test $ac_cv_header_stdc = yes; then
12115 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12117 /* end confdefs.h. */
12118 #include <stdlib.h>
12121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12122 $EGREP "free" >/dev
/null
2>&1; then :
12125 ac_cv_header_stdc
=no
12131 if test $ac_cv_header_stdc = yes; then
12132 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12133 if test "$cross_compiling" = yes; then :
12136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12137 /* end confdefs.h. */
12139 #include <stdlib.h>
12140 #if ((' ' & 0x0FF) == 0x020)
12141 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12142 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12144 # define ISLOWER(c) \
12145 (('a' <= (c) && (c) <= 'i') \
12146 || ('j' <= (c) && (c) <= 'r') \
12147 || ('s' <= (c) && (c) <= 'z'))
12148 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12151 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12156 for (i = 0; i < 256; i++)
12157 if (XOR (islower (i), ISLOWER (i))
12158 || toupper (i) != TOUPPER (i))
12163 if ac_fn_c_try_run
"$LINENO"; then :
12166 ac_cv_header_stdc
=no
12168 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12169 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12175 $as_echo "$ac_cv_header_stdc" >&6; }
12176 if test $ac_cv_header_stdc = yes; then
12178 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12182 # elf_hp.h is for HP/UX 64-bit shared library support.
12183 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
12185 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
12186 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
12187 sys
/reg.h sys
/debugreg.h sys
/select.h \
12188 termios.h elf_hp.h \
12191 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12192 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12193 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12194 cat >>confdefs.h
<<_ACEOF
12195 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12202 for ac_header
in sys
/user.h
12204 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
12205 # include <sys/param.h>
12209 if test "x$ac_cv_header_sys_user_h" = xyes
; then :
12210 cat >>confdefs.h
<<_ACEOF
12211 #define HAVE_SYS_USER_H 1
12219 for ac_header
in curses.h cursesX.h ncurses.h ncursesw
/ncurses.h ncurses
/ncurses.h ncurses
/term.h
12221 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12222 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12223 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12224 cat >>confdefs.h
<<_ACEOF
12225 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12232 for ac_header
in term.h
12234 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
12235 # include <curses.h>
12239 if test "x$ac_cv_header_term_h" = xyes
; then :
12240 cat >>confdefs.h
<<_ACEOF
12241 #define HAVE_TERM_H 1
12249 # ------------------------- #
12250 # Checks for declarations. #
12251 # ------------------------- #
12254 # Check for presence and size of long long.
12255 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12256 if test "x$ac_cv_type_long_long" = xyes
; then :
12258 cat >>confdefs.h
<<_ACEOF
12259 #define HAVE_LONG_LONG 1
12262 # The cast to long int works around a bug in the HP C Compiler
12263 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12264 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12265 # This bug is HP SR number 8606223364.
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12267 $as_echo_n "checking size of long long... " >&6; }
12268 if ${ac_cv_sizeof_long_long+:} false
; then :
12269 $as_echo_n "(cached) " >&6
12271 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12274 if test "$ac_cv_type_long_long" = yes; then
12275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12277 as_fn_error
77 "cannot compute sizeof (long long)
12278 See \`config.log' for more details" "$LINENO" 5; }
12280 ac_cv_sizeof_long_long
=0
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12286 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12290 cat >>confdefs.h
<<_ACEOF
12291 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12298 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
12299 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
12300 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
12306 cat >>confdefs.h
<<_ACEOF
12307 #define HAVE_DECL_BASENAME $ac_have_decl
12309 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
12310 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
12316 cat >>confdefs.h
<<_ACEOF
12317 #define HAVE_DECL_FFS $ac_have_decl
12319 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12320 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
12326 cat >>confdefs.h
<<_ACEOF
12327 #define HAVE_DECL_ASPRINTF $ac_have_decl
12329 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12330 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
12336 cat >>confdefs.h
<<_ACEOF
12337 #define HAVE_DECL_VASPRINTF $ac_have_decl
12339 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12340 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12346 cat >>confdefs.h
<<_ACEOF
12347 #define HAVE_DECL_SNPRINTF $ac_have_decl
12349 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12350 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
12356 cat >>confdefs.h
<<_ACEOF
12357 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12360 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
12361 if test "x$ac_cv_have_decl_strtol" = xyes
; then :
12367 cat >>confdefs.h
<<_ACEOF
12368 #define HAVE_DECL_STRTOL $ac_have_decl
12370 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
12371 if test "x$ac_cv_have_decl_strtoul" = xyes
; then :
12377 cat >>confdefs.h
<<_ACEOF
12378 #define HAVE_DECL_STRTOUL $ac_have_decl
12380 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
12381 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
12387 cat >>confdefs.h
<<_ACEOF
12388 #define HAVE_DECL_STRTOLL $ac_have_decl
12390 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
12391 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
12397 cat >>confdefs.h
<<_ACEOF
12398 #define HAVE_DECL_STRTOULL $ac_have_decl
12401 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12402 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
12408 cat >>confdefs.h
<<_ACEOF
12409 #define HAVE_DECL_STRVERSCMP $ac_have_decl
12414 ac_fn_c_check_decl
"$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
12415 if test "x$ac_cv_have_decl_free" = xyes
; then :
12421 cat >>confdefs.h
<<_ACEOF
12422 #define HAVE_DECL_FREE $ac_have_decl
12424 ac_fn_c_check_decl
"$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
12425 if test "x$ac_cv_have_decl_malloc" = xyes
; then :
12431 cat >>confdefs.h
<<_ACEOF
12432 #define HAVE_DECL_MALLOC $ac_have_decl
12434 ac_fn_c_check_decl
"$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
12435 if test "x$ac_cv_have_decl_realloc" = xyes
; then :
12441 cat >>confdefs.h
<<_ACEOF
12442 #define HAVE_DECL_REALLOC $ac_have_decl
12444 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12445 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12451 cat >>confdefs.h
<<_ACEOF
12452 #define HAVE_DECL_SNPRINTF $ac_have_decl
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12457 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12458 if ${am_cv_val_LC_MESSAGES+:} false
; then :
12459 $as_echo_n "(cached) " >&6
12461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12462 /* end confdefs.h. */
12463 #include <locale.h>
12472 if ac_fn_c_try_link
"$LINENO"; then :
12473 am_cv_val_LC_MESSAGES
=yes
12475 am_cv_val_LC_MESSAGES
=no
12477 rm -f core conftest.err conftest.
$ac_objext \
12478 conftest
$ac_exeext conftest.
$ac_ext
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12481 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12482 if test $am_cv_val_LC_MESSAGES = yes; then
12484 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12489 # ----------------------- #
12490 # Checks for structures. #
12491 # ----------------------- #
12493 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
12494 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
12496 cat >>confdefs.h
<<_ACEOF
12497 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12502 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
12503 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
12505 cat >>confdefs.h
<<_ACEOF
12506 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12513 # ------------------ #
12514 # Checks for types. #
12515 # ------------------ #
12517 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12518 #include <sys/socket.h>
12521 if test "x$ac_cv_type_socklen_t" = xyes
; then :
12523 cat >>confdefs.h
<<_ACEOF
12524 #define HAVE_SOCKLEN_T 1
12531 # ------------------------------------- #
12532 # Checks for compiler characteristics. #
12533 # ------------------------------------- #
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12536 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12537 if ${ac_cv_c_const+:} false
; then :
12538 $as_echo_n "(cached) " >&6
12540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12541 /* end confdefs.h. */
12547 #ifndef __cplusplus
12548 /* Ultrix mips cc rejects this sort of thing. */
12549 typedef int charset[2];
12550 const charset cs = { 0, 0 };
12551 /* SunOS 4.1.1 cc rejects this. */
12552 char const *const *pcpcc;
12554 /* NEC SVR4.0.2 mips cc rejects this. */
12555 struct point {int x, y;};
12556 static struct point const zero = {0,0};
12557 /* AIX XL C 1.02.0.0 rejects this.
12558 It does not let you subtract one const X* pointer from another in
12559 an arm of an if-expression whose if-part is not a constant
12561 const char *g = "string";
12562 pcpcc = &g + (g ? g-g : 0);
12563 /* HPUX 7.0 cc rejects these. */
12565 ppc = (char**) pcpcc;
12566 pcpcc = (char const *const *) ppc;
12567 { /* SCO 3.2v4 cc rejects this sort of thing. */
12570 char const *s = 0 ? (char *) 0 : (char const *) 0;
12575 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12576 int x[] = {25, 17};
12577 const int *foo = &x[0];
12580 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12581 typedef const int *iptr;
12585 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12586 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12587 struct s { int j; const int *ap[3]; } bx;
12588 struct s *b = &bx; b->j = 5;
12590 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12591 const int foo = 10;
12592 if (!foo) return 0;
12594 return !cs[0] && !zero.x;
12601 if ac_fn_c_try_compile
"$LINENO"; then :
12606 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12609 $as_echo "$ac_cv_c_const" >&6; }
12610 if test $ac_cv_c_const = no
; then
12612 $as_echo "#define const /**/" >>confdefs.h
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12617 $as_echo_n "checking for inline... " >&6; }
12618 if ${ac_cv_c_inline+:} false
; then :
12619 $as_echo_n "(cached) " >&6
12622 for ac_kw
in inline __inline__ __inline
; do
12623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12624 /* end confdefs.h. */
12625 #ifndef __cplusplus
12627 static $ac_kw foo_t static_foo () {return 0; }
12628 $ac_kw foo_t foo () {return 0; }
12632 if ac_fn_c_try_compile
"$LINENO"; then :
12633 ac_cv_c_inline
=$ac_kw
12635 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12636 test "$ac_cv_c_inline" != no
&& break
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12641 $as_echo "$ac_cv_c_inline" >&6; }
12643 case $ac_cv_c_inline in
12646 case $ac_cv_c_inline in
12648 *) ac_val
=$ac_cv_c_inline;;
12650 cat >>confdefs.h
<<_ACEOF
12651 #ifndef __cplusplus
12652 #define inline $ac_val
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12659 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12660 if ${ac_cv_c_bigendian+:} false
; then :
12661 $as_echo_n "(cached) " >&6
12663 ac_cv_c_bigendian
=unknown
12664 # See if we're dealing with a universal compiler.
12665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12666 /* end confdefs.h. */
12667 #ifndef __APPLE_CC__
12668 not a universal capable compiler
12673 if ac_fn_c_try_compile
"$LINENO"; then :
12675 # Check for potential -arch flags. It is not universal unless
12676 # there are at least two -arch flags with different values.
12679 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12680 if test -n "$ac_prev"; then
12682 i?
86 | x86_64 | ppc | ppc64
)
12683 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12686 ac_cv_c_bigendian
=universal
12692 elif test "x$ac_word" = "x-arch"; then
12697 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12698 if test $ac_cv_c_bigendian = unknown
; then
12699 # See if sys/param.h defines the BYTE_ORDER macro.
12700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12701 /* end confdefs.h. */
12702 #include <sys/types.h>
12703 #include <sys/param.h>
12708 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12709 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12711 bogus endian macros
12718 if ac_fn_c_try_compile
"$LINENO"; then :
12719 # It does; now see whether it defined to BIG_ENDIAN or not.
12720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12721 /* end confdefs.h. */
12722 #include <sys/types.h>
12723 #include <sys/param.h>
12728 #if BYTE_ORDER != BIG_ENDIAN
12736 if ac_fn_c_try_compile
"$LINENO"; then :
12737 ac_cv_c_bigendian
=yes
12739 ac_cv_c_bigendian
=no
12741 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12743 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12745 if test $ac_cv_c_bigendian = unknown
; then
12746 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12748 /* end confdefs.h. */
12749 #include <limits.h>
12754 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12755 bogus endian macros
12762 if ac_fn_c_try_compile
"$LINENO"; then :
12763 # It does; now see whether it defined to _BIG_ENDIAN or not.
12764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12765 /* end confdefs.h. */
12766 #include <limits.h>
12771 #ifndef _BIG_ENDIAN
12779 if ac_fn_c_try_compile
"$LINENO"; then :
12780 ac_cv_c_bigendian
=yes
12782 ac_cv_c_bigendian
=no
12784 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12786 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12788 if test $ac_cv_c_bigendian = unknown
; then
12789 # Compile a test program.
12790 if test "$cross_compiling" = yes; then :
12791 # Try to guess by grepping values from an object file.
12792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12793 /* end confdefs.h. */
12794 short int ascii_mm[] =
12795 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12796 short int ascii_ii[] =
12797 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12798 int use_ascii (int i) {
12799 return ascii_mm[i] + ascii_ii[i];
12801 short int ebcdic_ii[] =
12802 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12803 short int ebcdic_mm[] =
12804 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12805 int use_ebcdic (int i) {
12806 return ebcdic_mm[i] + ebcdic_ii[i];
12813 return use_ascii (foo) == use_ebcdic (foo);
12818 if ac_fn_c_try_compile
"$LINENO"; then :
12819 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12820 ac_cv_c_bigendian
=yes
12822 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12823 if test "$ac_cv_c_bigendian" = unknown
; then
12824 ac_cv_c_bigendian
=no
12826 # finding both strings is unlikely to happen, but who knows?
12827 ac_cv_c_bigendian
=unknown
12831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12834 /* end confdefs.h. */
12835 $ac_includes_default
12840 /* Are we little or big endian? From Harbison&Steele. */
12844 char c[sizeof (long int)];
12847 return u.c[sizeof (long int) - 1] == 1;
12853 if ac_fn_c_try_run
"$LINENO"; then :
12854 ac_cv_c_bigendian
=no
12856 ac_cv_c_bigendian
=yes
12858 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12859 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12865 $as_echo "$ac_cv_c_bigendian" >&6; }
12866 case $ac_cv_c_bigendian in #(
12868 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12874 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12878 as_fn_error $?
"unknown endianness
12879 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12883 # ------------------------------ #
12884 # Checks for library functions. #
12885 # ------------------------------ #
12890 for ac_header
in $ac_header_list
12892 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12893 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12895 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12896 cat >>confdefs.h
<<_ACEOF
12897 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12911 for ac_func
in getpagesize
12913 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12914 if test "x$ac_cv_func_getpagesize" = xyes
; then :
12915 cat >>confdefs.h
<<_ACEOF
12916 #define HAVE_GETPAGESIZE 1
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12923 $as_echo_n "checking for working mmap... " >&6; }
12924 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
12925 $as_echo_n "(cached) " >&6
12927 if test "$cross_compiling" = yes; then :
12928 ac_cv_func_mmap_fixed_mapped
=no
12930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12931 /* end confdefs.h. */
12932 $ac_includes_default
12933 /* malloc might have been renamed as rpl_malloc. */
12936 /* Thanks to Mike Haertel and Jim Avera for this test.
12937 Here is a matrix of mmap possibilities:
12938 mmap private not fixed
12939 mmap private fixed at somewhere currently unmapped
12940 mmap private fixed at somewhere already mapped
12941 mmap shared not fixed
12942 mmap shared fixed at somewhere currently unmapped
12943 mmap shared fixed at somewhere already mapped
12944 For private mappings, we should verify that changes cannot be read()
12945 back from the file, nor mmap's back from the file at a different
12946 address. (There have been systems where private was not correctly
12947 implemented like the infamous i386 svr4.0, and systems where the
12948 VM page cache was not coherent with the file system buffer cache
12949 like early versions of FreeBSD and possibly contemporary NetBSD.)
12950 For shared mappings, we should conversely verify that changes get
12951 propagated back to all the places they're supposed to be.
12953 Grep wants private fixed already mapped.
12954 The main things grep needs to know about mmap are:
12955 * does it exist and is it safe to write into the mmap'd area
12956 * how to use it (BSD variants) */
12959 #include <sys/mman.h>
12961 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12965 /* This mess was copied from the GNU getpagesize.h. */
12966 #ifndef HAVE_GETPAGESIZE
12967 # ifdef _SC_PAGESIZE
12968 # define getpagesize() sysconf(_SC_PAGESIZE)
12969 # else /* no _SC_PAGESIZE */
12970 # ifdef HAVE_SYS_PARAM_H
12971 # include <sys/param.h>
12972 # ifdef EXEC_PAGESIZE
12973 # define getpagesize() EXEC_PAGESIZE
12974 # else /* no EXEC_PAGESIZE */
12976 # define getpagesize() NBPG * CLSIZE
12979 # endif /* no CLSIZE */
12980 # else /* no NBPG */
12982 # define getpagesize() NBPC
12983 # else /* no NBPC */
12985 # define getpagesize() PAGESIZE
12986 # endif /* PAGESIZE */
12987 # endif /* no NBPC */
12988 # endif /* no NBPG */
12989 # endif /* no EXEC_PAGESIZE */
12990 # else /* no HAVE_SYS_PARAM_H */
12991 # define getpagesize() 8192 /* punt totally */
12992 # endif /* no HAVE_SYS_PARAM_H */
12993 # endif /* no _SC_PAGESIZE */
12995 #endif /* no HAVE_GETPAGESIZE */
13000 char *data, *data2, *data3;
13001 const char *cdata2;
13005 pagesize = getpagesize ();
13007 /* First, make a file with some known garbage in it. */
13008 data = (char *) malloc (pagesize);
13011 for (i = 0; i < pagesize; ++i)
13012 *(data + i) = rand ();
13014 fd = creat ("conftest.mmap", 0600);
13017 if (write (fd, data, pagesize) != pagesize)
13021 /* Next, check that the tail of a page is zero-filled. File must have
13022 non-zero length, otherwise we risk SIGBUS for entire page. */
13023 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13027 if (write (fd2, cdata2, 1) != 1)
13029 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13030 if (data2 == MAP_FAILED)
13032 for (i = 0; i < pagesize; ++i)
13036 if (munmap (data2, pagesize))
13039 /* Next, try to mmap the file at a fixed address which already has
13040 something else allocated at it. If we can, also make sure that
13041 we see the same garbage. */
13042 fd = open ("conftest.mmap", O_RDWR);
13045 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13046 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13048 for (i = 0; i < pagesize; ++i)
13049 if (*(data + i) != *(data2 + i))
13052 /* Finally, make sure that changes to the mapped area do not
13053 percolate back to the file as seen by read(). (This is a bug on
13054 some variants of i386 svr4.0.) */
13055 for (i = 0; i < pagesize; ++i)
13056 *(data2 + i) = *(data2 + i) + 1;
13057 data3 = (char *) malloc (pagesize);
13060 if (read (fd, data3, pagesize) != pagesize)
13062 for (i = 0; i < pagesize; ++i)
13063 if (*(data + i) != *(data3 + i))
13069 if ac_fn_c_try_run
"$LINENO"; then :
13070 ac_cv_func_mmap_fixed_mapped
=yes
13072 ac_cv_func_mmap_fixed_mapped
=no
13074 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13075 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13080 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13081 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13083 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13086 rm -f conftest.mmap conftest.txt
13088 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13089 if test "x$ac_cv_type_pid_t" = xyes
; then :
13093 cat >>confdefs.h
<<_ACEOF
13099 for ac_header
in vfork.h
13101 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13102 if test "x$ac_cv_header_vfork_h" = xyes
; then :
13103 cat >>confdefs.h
<<_ACEOF
13104 #define HAVE_VFORK_H 1
13111 for ac_func
in fork vfork
13113 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13114 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13115 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13116 cat >>confdefs.h
<<_ACEOF
13117 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13123 if test "x$ac_cv_func_fork" = xyes
; then
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13125 $as_echo_n "checking for working fork... " >&6; }
13126 if ${ac_cv_func_fork_works+:} false
; then :
13127 $as_echo_n "(cached) " >&6
13129 if test "$cross_compiling" = yes; then :
13130 ac_cv_func_fork_works
=cross
13132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13133 /* end confdefs.h. */
13134 $ac_includes_default
13139 /* By Ruediger Kuhlmann. */
13140 return fork () < 0;
13146 if ac_fn_c_try_run
"$LINENO"; then :
13147 ac_cv_func_fork_works
=yes
13149 ac_cv_func_fork_works
=no
13151 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13152 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13157 $as_echo "$ac_cv_func_fork_works" >&6; }
13160 ac_cv_func_fork_works
=$ac_cv_func_fork
13162 if test "x$ac_cv_func_fork_works" = xcross
; then
13164 *-*-amigaos* |
*-*-msdosdjgpp*)
13165 # Override, as these systems have only a dummy fork() stub
13166 ac_cv_func_fork_works
=no
13169 ac_cv_func_fork_works
=yes
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13173 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13175 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13176 if test "x$ac_cv_func_vfork" = xyes
; then
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13178 $as_echo_n "checking for working vfork... " >&6; }
13179 if ${ac_cv_func_vfork_works+:} false
; then :
13180 $as_echo_n "(cached) " >&6
13182 if test "$cross_compiling" = yes; then :
13183 ac_cv_func_vfork_works
=cross
13185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13186 /* end confdefs.h. */
13187 /* Thanks to Paul Eggert for this test. */
13188 $ac_includes_default
13189 #include <sys/wait.h>
13190 #ifdef HAVE_VFORK_H
13191 # include <vfork.h>
13193 /* On some sparc systems, changes by the child to local and incoming
13194 argument registers are propagated back to the parent. The compiler
13195 is told about this with #include <vfork.h>, but some compilers
13196 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13197 static variable whose address is put into a register that is
13198 clobbered by the vfork. */
13201 sparc_address_test (int arg)
13203 sparc_address_test (arg) int arg;
13206 static pid_t child;
13224 pid_t parent = getpid ();
13227 sparc_address_test (0);
13232 /* Here is another test for sparc vfork register problems. This
13233 test uses lots of local variables, at least as many local
13234 variables as main has allocated so far including compiler
13235 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13236 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13237 reuse the register of parent for one of the local variables,
13238 since it will think that parent can't possibly be used any more
13239 in this routine. Assigning to the local variable will thus
13240 munge parent in the parent process. */
13242 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13243 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13244 /* Convince the compiler that p..p7 are live; otherwise, it might
13245 use the same hardware register for all 8 local variables. */
13246 if (p != p1 || p != p2 || p != p3 || p != p4
13247 || p != p5 || p != p6 || p != p7)
13250 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13251 from child file descriptors. If the child closes a descriptor
13252 before it execs or exits, this munges the parent's descriptor
13253 as well. Test for this by closing stdout in the child. */
13254 _exit(close(fileno(stdout)) != 0);
13259 while (wait(&status) != child)
13262 /* Was there some problem with vforking? */
13265 /* Did the child fail? (This shouldn't happen.) */
13268 /* Did the vfork/compiler bug occur? */
13269 || parent != getpid()
13271 /* Did the file descriptor bug occur? */
13272 || fstat(fileno(stdout), &st) != 0
13277 if ac_fn_c_try_run
"$LINENO"; then :
13278 ac_cv_func_vfork_works
=yes
13280 ac_cv_func_vfork_works
=no
13282 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13283 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13288 $as_echo "$ac_cv_func_vfork_works" >&6; }
13291 if test "x$ac_cv_func_fork_works" = xcross
; then
13292 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13294 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13297 if test "x$ac_cv_func_vfork_works" = xyes
; then
13299 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13303 $as_echo "#define vfork fork" >>confdefs.h
13306 if test "x$ac_cv_func_fork_works" = xyes
; then
13308 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13312 for ac_func
in getauxval getrusage getuid getgid \
13313 pipe poll pread pread64 pwrite resize_term \
13314 sbrk getpgid setpgid setpgrp setsid \
13315 sigaction sigprocmask sigsetmask socketpair \
13316 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
13317 setrlimit getrlimit posix_madvise waitpid \
13318 ptrace64 sigaltstack mkdtemp setns
13320 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13321 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13322 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13323 cat >>confdefs.h
<<_ACEOF
13324 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13332 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13333 if ${am_cv_langinfo_codeset+:} false
; then :
13334 $as_echo_n "(cached) " >&6
13336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13337 /* end confdefs.h. */
13338 #include <langinfo.h>
13342 char* cs = nl_langinfo(CODESET);
13347 if ac_fn_c_try_link
"$LINENO"; then :
13348 am_cv_langinfo_codeset
=yes
13350 am_cv_langinfo_codeset
=no
13352 rm -f core conftest.err conftest.
$ac_objext \
13353 conftest
$ac_exeext conftest.
$ac_ext
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13357 $as_echo "$am_cv_langinfo_codeset" >&6; }
13358 if test $am_cv_langinfo_codeset = yes; then
13360 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13364 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13365 if test "x$ac_cv_type_size_t" = xyes
; then :
13369 cat >>confdefs.h
<<_ACEOF
13370 #define size_t unsigned int
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13377 $as_echo_n "checking for ANSI C header files... " >&6; }
13378 if ${ac_cv_header_stdc+:} false
; then :
13379 $as_echo_n "(cached) " >&6
13381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13382 /* end confdefs.h. */
13383 #include <stdlib.h>
13384 #include <stdarg.h>
13385 #include <string.h>
13396 if ac_fn_c_try_compile
"$LINENO"; then :
13397 ac_cv_header_stdc
=yes
13399 ac_cv_header_stdc
=no
13401 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13403 if test $ac_cv_header_stdc = yes; then
13404 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13406 /* end confdefs.h. */
13407 #include <string.h>
13410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13411 $EGREP "memchr" >/dev
/null
2>&1; then :
13414 ac_cv_header_stdc
=no
13420 if test $ac_cv_header_stdc = yes; then
13421 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13423 /* end confdefs.h. */
13424 #include <stdlib.h>
13427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13428 $EGREP "free" >/dev
/null
2>&1; then :
13431 ac_cv_header_stdc
=no
13437 if test $ac_cv_header_stdc = yes; then
13438 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13439 if test "$cross_compiling" = yes; then :
13442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13443 /* end confdefs.h. */
13445 #include <stdlib.h>
13446 #if ((' ' & 0x0FF) == 0x020)
13447 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13448 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13450 # define ISLOWER(c) \
13451 (('a' <= (c) && (c) <= 'i') \
13452 || ('j' <= (c) && (c) <= 'r') \
13453 || ('s' <= (c) && (c) <= 'z'))
13454 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13457 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13462 for (i = 0; i < 256; i++)
13463 if (XOR (islower (i), ISLOWER (i))
13464 || toupper (i) != TOUPPER (i))
13469 if ac_fn_c_try_run
"$LINENO"; then :
13472 ac_cv_header_stdc
=no
13474 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13475 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13481 $as_echo "$ac_cv_header_stdc" >&6; }
13482 if test $ac_cv_header_stdc = yes; then
13484 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13488 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13489 # for constant arguments. Useless!
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13491 $as_echo_n "checking for working alloca.h... " >&6; }
13492 if ${ac_cv_working_alloca_h+:} false
; then :
13493 $as_echo_n "(cached) " >&6
13495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13496 /* end confdefs.h. */
13497 #include <alloca.h>
13501 char *p = (char *) alloca (2 * sizeof (int));
13507 if ac_fn_c_try_link
"$LINENO"; then :
13508 ac_cv_working_alloca_h
=yes
13510 ac_cv_working_alloca_h
=no
13512 rm -f core conftest.err conftest.
$ac_objext \
13513 conftest
$ac_exeext conftest.
$ac_ext
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13516 $as_echo "$ac_cv_working_alloca_h" >&6; }
13517 if test $ac_cv_working_alloca_h = yes; then
13519 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13524 $as_echo_n "checking for alloca... " >&6; }
13525 if ${ac_cv_func_alloca_works+:} false
; then :
13526 $as_echo_n "(cached) " >&6
13528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13529 /* end confdefs.h. */
13531 # define alloca __builtin_alloca
13534 # include <malloc.h>
13535 # define alloca _alloca
13537 # ifdef HAVE_ALLOCA_H
13538 # include <alloca.h>
13543 # ifndef alloca /* predefined by HP cc +Olibcalls */
13544 void *alloca (size_t);
13554 char *p = (char *) alloca (1);
13560 if ac_fn_c_try_link
"$LINENO"; then :
13561 ac_cv_func_alloca_works
=yes
13563 ac_cv_func_alloca_works
=no
13565 rm -f core conftest.err conftest.
$ac_objext \
13566 conftest
$ac_exeext conftest.
$ac_ext
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13569 $as_echo "$ac_cv_func_alloca_works" >&6; }
13571 if test $ac_cv_func_alloca_works = yes; then
13573 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13576 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13577 # that cause trouble. Some versions do not even contain alloca or
13578 # contain a buggy version. If you still want to use their alloca,
13579 # use ar to extract alloca.o from them instead of compiling alloca.c.
13581 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
13583 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13587 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13588 if ${ac_cv_os_cray+:} false
; then :
13589 $as_echo_n "(cached) " >&6
13591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13592 /* end confdefs.h. */
13593 #if defined CRAY && ! defined CRAY2
13600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13601 $EGREP "webecray" >/dev
/null
2>&1; then :
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13610 $as_echo "$ac_cv_os_cray" >&6; }
13611 if test $ac_cv_os_cray = yes; then
13612 for ac_func
in _getb67 GETB67 getb67
; do
13613 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13614 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13615 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13617 cat >>confdefs.h
<<_ACEOF
13618 #define CRAY_STACKSEG_END $ac_func
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13628 $as_echo_n "checking stack direction for C alloca... " >&6; }
13629 if ${ac_cv_c_stack_direction+:} false
; then :
13630 $as_echo_n "(cached) " >&6
13632 if test "$cross_compiling" = yes; then :
13633 ac_cv_c_stack_direction
=0
13635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13636 /* end confdefs.h. */
13637 $ac_includes_default
13639 find_stack_direction (int *addr, int depth)
13641 int dir, dummy = 0;
13644 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13645 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13646 return dir + dummy;
13650 main (int argc, char **argv)
13652 return find_stack_direction (0, argc + !argv + 20) < 0;
13655 if ac_fn_c_try_run
"$LINENO"; then :
13656 ac_cv_c_stack_direction
=1
13658 ac_cv_c_stack_direction
=-1
13660 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13661 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13666 $as_echo "$ac_cv_c_stack_direction" >&6; }
13667 cat >>confdefs.h
<<_ACEOF
13668 #define STACK_DIRECTION $ac_cv_c_stack_direction
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13677 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13678 if ${am_cv_langinfo_codeset+:} false
; then :
13679 $as_echo_n "(cached) " >&6
13681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13682 /* end confdefs.h. */
13683 #include <langinfo.h>
13687 char* cs = nl_langinfo(CODESET);
13692 if ac_fn_c_try_link
"$LINENO"; then :
13693 am_cv_langinfo_codeset
=yes
13695 am_cv_langinfo_codeset
=no
13697 rm -f core conftest.err conftest.
$ac_objext \
13698 conftest
$ac_exeext conftest.
$ac_ext
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13702 $as_echo "$am_cv_langinfo_codeset" >&6; }
13703 if test $am_cv_langinfo_codeset = yes; then
13705 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13710 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
13712 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13713 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13714 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13715 cat >>confdefs.h
<<_ACEOF
13716 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13724 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair sigaction
13726 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13727 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13728 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13729 cat >>confdefs.h
<<_ACEOF
13730 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13737 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
13738 if test "x$ac_cv_have_decl_strerror" = xyes
; then :
13744 cat >>confdefs.h
<<_ACEOF
13745 #define HAVE_DECL_STRERROR $ac_have_decl
13747 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13748 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
13754 cat >>confdefs.h
<<_ACEOF
13755 #define HAVE_DECL_STRSTR $ac_have_decl
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
13760 $as_echo_n "checking for sigsetjmp... " >&6; }
13761 if ${gdb_cv_func_sigsetjmp+:} false
; then :
13762 $as_echo_n "(cached) " >&6
13764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13765 /* end confdefs.h. */
13767 #include <setjmp.h>
13772 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
13777 if ac_fn_c_try_compile
"$LINENO"; then :
13778 gdb_cv_func_sigsetjmp
=yes
13780 gdb_cv_func_sigsetjmp
=no
13782 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
13785 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
13786 if test $gdb_cv_func_sigsetjmp = yes; then
13788 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
13793 # Check the return and argument types of ptrace.
13796 for ac_header
in sys
/ptrace.h ptrace.h
13798 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13799 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13800 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13801 cat >>confdefs.h
<<_ACEOF
13802 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13810 gdb_ptrace_headers
='
13811 #include <sys/types.h>
13812 #if HAVE_SYS_PTRACE_H
13813 # include <sys/ptrace.h>
13816 # include <unistd.h>
13819 # There is no point in checking if we don't have a prototype.
13820 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
13822 if test "x$ac_cv_have_decl_ptrace" = xyes
; then :
13828 cat >>confdefs.h
<<_ACEOF
13829 #define HAVE_DECL_PTRACE $ac_have_decl
13831 if test $ac_have_decl = 1; then :
13835 : ${gdb_cv_func_ptrace_ret='int'}
13836 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13840 # Check return type. Varargs (used on GNU/Linux) conflict with the
13841 # empty argument list, so check for that explicitly.
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
13843 $as_echo_n "checking return type of ptrace... " >&6; }
13844 if ${gdb_cv_func_ptrace_ret+:} false
; then :
13845 $as_echo_n "(cached) " >&6
13847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13848 /* end confdefs.h. */
13849 $gdb_ptrace_headers
13853 extern long ptrace (enum __ptrace_request, ...);
13858 if ac_fn_c_try_compile
"$LINENO"; then :
13859 gdb_cv_func_ptrace_ret
='long'
13861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13862 /* end confdefs.h. */
13863 $gdb_ptrace_headers
13867 extern int ptrace ();
13872 if ac_fn_c_try_compile
"$LINENO"; then :
13873 gdb_cv_func_ptrace_ret
='int'
13875 gdb_cv_func_ptrace_ret
='long'
13877 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13879 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
13882 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
13884 cat >>confdefs.h
<<_ACEOF
13885 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
13888 # Check argument types.
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
13890 $as_echo_n "checking types of arguments for ptrace... " >&6; }
13891 if ${gdb_cv_func_ptrace_args+:} false
; then :
13892 $as_echo_n "(cached) " >&6
13895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13896 /* end confdefs.h. */
13897 $gdb_ptrace_headers
13901 extern long ptrace (enum __ptrace_request, ...);
13906 if ac_fn_c_try_compile
"$LINENO"; then :
13907 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
13910 for gdb_arg1
in 'int' 'long'; do
13911 for gdb_arg2
in 'pid_t' 'int' 'long'; do
13912 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
13913 for gdb_arg4
in 'int' 'long' 'void *'; do
13914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13915 /* end confdefs.h. */
13916 $gdb_ptrace_headers
13921 extern $gdb_cv_func_ptrace_ret
13922 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
13928 if ac_fn_c_try_compile
"$LINENO"; then :
13929 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
13932 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13933 for gdb_arg5
in 'int *' 'int' 'long'; do
13934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13935 /* end confdefs.h. */
13936 $gdb_ptrace_headers
13941 extern $gdb_cv_func_ptrace_ret
13942 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
13948 if ac_fn_c_try_compile
"$LINENO"; then :
13950 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
13953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13959 # Provide a safe default value.
13960 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13963 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
13966 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
13967 ac_save_IFS
=$IFS; IFS
=','
13968 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
13972 cat >>confdefs.h
<<_ACEOF
13973 #define PTRACE_TYPE_ARG1 $1
13977 cat >>confdefs.h
<<_ACEOF
13978 #define PTRACE_TYPE_ARG3 $3
13982 cat >>confdefs.h
<<_ACEOF
13983 #define PTRACE_TYPE_ARG4 $4
13986 if test -n "$5"; then
13988 cat >>confdefs.h
<<_ACEOF
13989 #define PTRACE_TYPE_ARG5 $5
13995 if test "$cross_compiling" = no
; then
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
13997 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
13998 if ${ac_cv_func_setpgrp_void+:} false
; then :
13999 $as_echo_n "(cached) " >&6
14001 if test "$cross_compiling" = yes; then :
14002 as_fn_error $?
"cannot check setpgrp when cross compiling" "$LINENO" 5
14004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14005 /* end confdefs.h. */
14006 $ac_includes_default
14010 /* If this system has a BSD-style setpgrp which takes arguments,
14011 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
14012 exit successfully. */
14013 return setpgrp (1,1) != -1;
14018 if ac_fn_c_try_run
"$LINENO"; then :
14019 ac_cv_func_setpgrp_void
=no
14021 ac_cv_func_setpgrp_void
=yes
14023 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14024 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
14029 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
14030 if test $ac_cv_func_setpgrp_void = yes; then
14032 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
14038 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
14039 if ${ac_cv_func_setpgrp_void+:} false
; then :
14040 $as_echo_n "(cached) " >&6
14042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14043 /* end confdefs.h. */
14045 #include <unistd.h>
14051 if (setpgrp(1,1) == -1)
14060 if ac_fn_c_try_compile
"$LINENO"; then :
14061 ac_cv_func_setpgrp_void
=no
14063 ac_cv_func_setpgrp_void
=yes
14065 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
14068 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
14069 if test $ac_cv_func_setpgrp_void = yes; then
14070 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
14075 # Assume we'll default to using the included libiberty regex.
14076 gdb_use_included_regex
=yes
14078 # However, if the system regex is GNU regex, then default to *not*
14079 # using the included regex.
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
14081 $as_echo_n "checking for GNU regex... " >&6; }
14082 if ${gdb_cv_have_gnu_regex+:} false
; then :
14083 $as_echo_n "(cached) " >&6
14085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14086 /* end confdefs.h. */
14087 #include <gnu-versions.h>
14091 #define REGEX_INTERFACE_VERSION 1
14092 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
14093 # error "Version mismatch"
14099 if ac_fn_c_try_compile
"$LINENO"; then :
14100 gdb_cv_have_gnu_regex
=yes
14102 gdb_cv_have_gnu_regex
=no
14104 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
14107 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
14108 if test $gdb_cv_have_gnu_regex = yes; then
14109 gdb_use_included_regex
=no
14113 # Check whether --with-included-regex was given.
14114 if test "${with_included_regex+set}" = set; then :
14115 withval
=$with_included_regex; gdb_with_regex
=$withval
14117 gdb_with_regex
=$gdb_use_included_regex
14120 if test "$gdb_with_regex" = yes; then
14122 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
14126 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
14127 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
14128 #include <sys/proc.h>
14131 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes
; then :
14133 cat >>confdefs.h
<<_ACEOF
14134 #define HAVE_STRUCT_THREAD_TD_PCB 1
14141 # See if <sys/lwp.h> defines `struct lwp`.
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
14143 $as_echo_n "checking for struct lwp... " >&6; }
14144 if ${gdb_cv_struct_lwp+:} false
; then :
14145 $as_echo_n "(cached) " >&6
14147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14148 /* end confdefs.h. */
14149 #include <sys/param.h>
14151 #include <sys/lwp.h>
14160 if ac_fn_c_try_compile
"$LINENO"; then :
14161 gdb_cv_struct_lwp
=yes
14163 gdb_cv_struct_lwp
=no
14165 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
14168 $as_echo "$gdb_cv_struct_lwp" >&6; }
14169 if test $gdb_cv_struct_lwp = yes; then
14171 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
14175 # See if <machine/reg.h> degines `struct reg'.
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
14177 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
14178 if ${gdb_cv_struct_reg+:} false
; then :
14179 $as_echo_n "(cached) " >&6
14181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14182 /* end confdefs.h. */
14183 #include <sys/types.h>
14184 #include <machine/reg.h>
14193 if ac_fn_c_try_compile
"$LINENO"; then :
14194 gdb_cv_struct_reg
=yes
14196 gdb_cv_struct_reg
=no
14198 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
14201 $as_echo "$gdb_cv_struct_reg" >&6; }
14202 if test $gdb_cv_struct_reg = yes; then
14204 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
14208 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
14209 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
14210 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
14211 #include <machine/reg.h>
14213 if test "x$ac_cv_member_struct_reg_r_fs" = xyes
; then :
14215 cat >>confdefs.h
<<_ACEOF
14216 #define HAVE_STRUCT_REG_R_FS 1
14221 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
14222 #include <machine/reg.h>
14224 if test "x$ac_cv_member_struct_reg_r_gs" = xyes
; then :
14226 cat >>confdefs.h
<<_ACEOF
14227 #define HAVE_STRUCT_REG_R_GS 1
14234 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
14235 # Older amd64 Linux's don't have the fs_base and gs_base members of
14236 # `struct user_regs_struct'.
14237 ac_fn_c_check_member
"$LINENO" "struct user_regs_struct" "fs_base" "ac_cv_member_struct_user_regs_struct_fs_base" "#include <sys/types.h>
14238 #include <sys/user.h>
14240 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = xyes
; then :
14242 cat >>confdefs.h
<<_ACEOF
14243 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
14248 ac_fn_c_check_member
"$LINENO" "struct user_regs_struct" "gs_base" "ac_cv_member_struct_user_regs_struct_gs_base" "#include <sys/types.h>
14249 #include <sys/user.h>
14251 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = xyes
; then :
14253 cat >>confdefs.h
<<_ACEOF
14254 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
14261 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
14263 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
14264 if ${gdb_cv_have_ptrace_getregs+:} false
; then :
14265 $as_echo_n "(cached) " >&6
14267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14268 /* end confdefs.h. */
14269 #include <sys/ptrace.h>
14278 if ac_fn_c_try_compile
"$LINENO"; then :
14279 gdb_cv_have_ptrace_getregs
=yes
14281 gdb_cv_have_ptrace_getregs
=no
14283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
14287 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
14288 if test $gdb_cv_have_ptrace_getregs = yes; then
14290 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
14294 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
14296 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
14297 if ${gdb_cv_have_ptrace_getfpxregs+:} false
; then :
14298 $as_echo_n "(cached) " >&6
14300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14301 /* end confdefs.h. */
14302 #include <sys/ptrace.h>
14311 if ac_fn_c_try_compile
"$LINENO"; then :
14312 gdb_cv_have_ptrace_getfpxregs
=yes
14314 gdb_cv_have_ptrace_getfpxregs
=no
14316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
14320 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
14321 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
14323 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
14327 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
14329 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
14330 if ${gdb_cv_have_pt_getdbregs+:} false
; then :
14331 $as_echo_n "(cached) " >&6
14333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14334 /* end confdefs.h. */
14335 #include <sys/types.h>
14336 #include <sys/ptrace.h>
14345 if ac_fn_c_try_compile
"$LINENO"; then :
14346 gdb_cv_have_pt_getdbregs
=yes
14348 gdb_cv_have_pt_getdbregs
=no
14350 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
14354 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
14355 if test $gdb_cv_have_pt_getdbregs = yes; then
14357 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
14361 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
14363 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
14364 if ${gdb_cv_have_pt_getxmmregs+:} false
; then :
14365 $as_echo_n "(cached) " >&6
14367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14368 /* end confdefs.h. */
14369 #include <sys/types.h>
14370 #include <sys/ptrace.h>
14379 if ac_fn_c_try_compile
"$LINENO"; then :
14380 gdb_cv_have_pt_getxmmregs
=yes
14382 gdb_cv_have_pt_getxmmregs
=no
14384 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
14388 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
14389 if test $gdb_cv_have_pt_getxmmregs = yes; then
14391 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
14395 # See if <sys/ptrace.h> supports LWP names on FreeBSD
14396 # Older FreeBSD versions don't have the pl_tdname member of
14397 # `struct ptrace_lwpinfo'.
14398 ac_fn_c_check_member
"$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
14400 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes
; then :
14402 cat >>confdefs.h
<<_ACEOF
14403 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
14410 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
14411 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
14413 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>
14415 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes
; then :
14417 cat >>confdefs.h
<<_ACEOF
14418 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
14425 if test "$ac_cv_header_sys_procfs_h" = yes; then
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
14427 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
14428 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
14429 $as_echo_n "(cached) " >&6
14431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14432 /* end confdefs.h. */
14435 /* Needed for new procfs interface on sparc-solaris. */
14436 #define _STRUCTURED_PROC 1
14437 #include <sys/procfs.h>
14446 if ac_fn_c_try_compile
"$LINENO"; then :
14447 bfd_cv_have_sys_procfs_type_gregset_t
=yes
14449 bfd_cv_have_sys_procfs_type_gregset_t
=no
14452 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14455 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
14457 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
14461 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
14464 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
14465 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
14466 $as_echo_n "(cached) " >&6
14468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14469 /* end confdefs.h. */
14472 /* Needed for new procfs interface on sparc-solaris. */
14473 #define _STRUCTURED_PROC 1
14474 #include <sys/procfs.h>
14483 if ac_fn_c_try_compile
"$LINENO"; then :
14484 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
14486 bfd_cv_have_sys_procfs_type_fpregset_t
=no
14489 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14492 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
14494 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
14498 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
14501 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
14502 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
14503 $as_echo_n "(cached) " >&6
14505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14506 /* end confdefs.h. */
14509 /* Needed for new procfs interface on sparc-solaris. */
14510 #define _STRUCTURED_PROC 1
14511 #include <sys/procfs.h>
14520 if ac_fn_c_try_compile
"$LINENO"; then :
14521 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
14523 bfd_cv_have_sys_procfs_type_prgregset_t
=no
14526 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14529 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
14531 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
14535 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
14538 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
14539 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
14540 $as_echo_n "(cached) " >&6
14542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14543 /* end confdefs.h. */
14546 /* Needed for new procfs interface on sparc-solaris. */
14547 #define _STRUCTURED_PROC 1
14548 #include <sys/procfs.h>
14557 if ac_fn_c_try_compile
"$LINENO"; then :
14558 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
14560 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
14563 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14566 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
14568 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
14572 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
14575 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
14576 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
14577 $as_echo_n "(cached) " >&6
14579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14580 /* end confdefs.h. */
14583 /* Needed for new procfs interface on sparc-solaris. */
14584 #define _STRUCTURED_PROC 1
14585 #include <sys/procfs.h>
14594 if ac_fn_c_try_compile
"$LINENO"; then :
14595 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
14597 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
14600 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14603 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
14605 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
14609 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
14612 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
14613 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
14614 $as_echo_n "(cached) " >&6
14616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14617 /* end confdefs.h. */
14620 /* Needed for new procfs interface on sparc-solaris. */
14621 #define _STRUCTURED_PROC 1
14622 #include <sys/procfs.h>
14631 if ac_fn_c_try_compile
"$LINENO"; then :
14632 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
14634 bfd_cv_have_sys_procfs_type_lwpid_t
=no
14637 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14640 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
14642 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
14646 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
14649 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
14650 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
14651 $as_echo_n "(cached) " >&6
14653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14654 /* end confdefs.h. */
14657 /* Needed for new procfs interface on sparc-solaris. */
14658 #define _STRUCTURED_PROC 1
14659 #include <sys/procfs.h>
14668 if ac_fn_c_try_compile
"$LINENO"; then :
14669 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
14671 bfd_cv_have_sys_procfs_type_psaddr_t
=no
14674 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14677 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
14679 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
14683 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
14688 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
14690 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
14691 if ${gdb_cv_prfpregset_t_broken+:} false
; then :
14692 $as_echo_n "(cached) " >&6
14694 if test "$cross_compiling" = yes; then :
14695 gdb_cv_prfpregset_t_broken
=yes
14697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14698 /* end confdefs.h. */
14699 #include <sys/procfs.h>
14702 if (sizeof (prfpregset_t) == sizeof (void *))
14707 if ac_fn_c_try_run
"$LINENO"; then :
14708 gdb_cv_prfpregset_t_broken
=no
14710 gdb_cv_prfpregset_t_broken
=yes
14712 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14713 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
14719 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
14720 if test $gdb_cv_prfpregset_t_broken = yes; then
14722 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
14728 # Check if the compiler supports the `long long' type.
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
14731 $as_echo_n "checking for long long support in compiler... " >&6; }
14732 if ${gdb_cv_c_long_long+:} false
; then :
14733 $as_echo_n "(cached) " >&6
14735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14736 /* end confdefs.h. */
14737 extern long long foo;
14741 switch (foo & 2) { case 0: return 1; }
14746 if ac_fn_c_try_compile
"$LINENO"; then :
14747 gdb_cv_c_long_long
=yes
14749 gdb_cv_c_long_long
=no
14751 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
14754 $as_echo "$gdb_cv_c_long_long" >&6; }
14755 if test $gdb_cv_c_long_long != yes; then
14756 # libdecnumber requires long long.
14757 as_fn_error $?
"Compiler must support long long for GDB." "$LINENO" 5
14760 # Check if the compiler and runtime support printing long longs.
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
14763 $as_echo_n "checking for long long support in printf... " >&6; }
14764 if ${gdb_cv_printf_has_long_long+:} false
; then :
14765 $as_echo_n "(cached) " >&6
14767 if test "$cross_compiling" = yes; then :
14768 gdb_cv_printf_has_long_long
=no
14770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14771 /* end confdefs.h. */
14772 $ac_includes_default
14778 l = (l << 16) + 0x0123;
14779 l = (l << 16) + 0x4567;
14780 l = (l << 16) + 0x89ab;
14781 l = (l << 16) + 0xcdef;
14782 sprintf (buf, "0x%016llx", l);
14783 return (strcmp ("0x0123456789abcdef", buf));
14788 if ac_fn_c_try_run
"$LINENO"; then :
14789 gdb_cv_printf_has_long_long
=yes
14791 gdb_cv_printf_has_long_long
=no
14793 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14794 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
14799 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
14800 if test $gdb_cv_printf_has_long_long = yes; then
14802 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
14806 # Check if the compiler and runtime support printing decfloats.
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
14809 $as_echo_n "checking for decfloat support in printf... " >&6; }
14810 if ${gdb_cv_printf_has_decfloat+:} false
; then :
14811 $as_echo_n "(cached) " >&6
14813 if test "$cross_compiling" = yes; then :
14814 gdb_cv_printf_has_decfloat
=no
14816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14817 /* end confdefs.h. */
14818 $ac_includes_default
14823 _Decimal32 d32 = 1.2345df;
14824 _Decimal64 d64 = 1.2345dd;
14825 _Decimal128 d128 = 1.2345dl;
14826 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
14827 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
14832 if ac_fn_c_try_run
"$LINENO"; then :
14833 gdb_cv_printf_has_decfloat
=yes
14835 gdb_cv_printf_has_decfloat
=no
14837 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14838 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
14843 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
14844 if test $gdb_cv_printf_has_decfloat = yes; then
14846 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
14850 # Check if the compiler supports the `long double' type. We can't use
14851 # AC_C_LONG_DOUBLE because that one does additional checks on the
14852 # constants defined in <float.h> that fail on some systems,
14853 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
14856 $as_echo_n "checking for long double support in compiler... " >&6; }
14857 if ${gdb_cv_c_long_double+:} false
; then :
14858 $as_echo_n "(cached) " >&6
14860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14861 /* end confdefs.h. */
14864 if ac_fn_c_try_compile
"$LINENO"; then :
14865 gdb_cv_c_long_double
=yes
14867 gdb_cv_c_long_double
=no
14869 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
14872 $as_echo "$gdb_cv_c_long_double" >&6; }
14873 if test $gdb_cv_c_long_double = yes; then
14875 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14879 # Check if the compiler and runtime support printing long doubles.
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
14882 $as_echo_n "checking for long double support in printf... " >&6; }
14883 if ${gdb_cv_printf_has_long_double+:} false
; then :
14884 $as_echo_n "(cached) " >&6
14886 if test "$cross_compiling" = yes; then :
14887 gdb_cv_printf_has_long_double
=no
14889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14890 /* end confdefs.h. */
14891 $ac_includes_default
14896 long double f = 3.141592653;
14897 sprintf (buf, "%Lg", f);
14898 return (strncmp ("3.14159", buf, 7));
14903 if ac_fn_c_try_run
"$LINENO"; then :
14904 gdb_cv_printf_has_long_double
=yes
14906 gdb_cv_printf_has_long_double
=no
14908 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14909 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
14914 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
14915 if test $gdb_cv_printf_has_long_double = yes; then
14917 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
14921 # Check if the compiler and runtime support scanning long doubles.
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
14924 $as_echo_n "checking for long double support in scanf... " >&6; }
14925 if ${gdb_cv_scanf_has_long_double+:} false
; then :
14926 $as_echo_n "(cached) " >&6
14928 if test "$cross_compiling" = yes; then :
14929 gdb_cv_scanf_has_long_double
=no
14931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14932 /* end confdefs.h. */
14937 char *buf = "3.141592653";
14939 sscanf (buf, "%Lg", &f);
14940 return !(f > 3.14159 && f < 3.14160);
14945 if ac_fn_c_try_run
"$LINENO"; then :
14946 gdb_cv_scanf_has_long_double
=yes
14948 gdb_cv_scanf_has_long_double
=no
14950 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14951 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
14956 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
14957 if test $gdb_cv_scanf_has_long_double = yes; then
14959 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
14966 $as_echo_n "checking for -bbigtoc option... " >&6; }
14967 if ${gdb_cv_bigtoc+:} false
; then :
14968 $as_echo_n "(cached) " >&6
14971 SAVE_LDFLAGS
=$LDFLAGS
14974 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
14975 *) gdb_cv_bigtoc
=-bbigtoc ;;
14978 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
14979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14980 /* end confdefs.h. */
14990 if ac_fn_c_try_link
"$LINENO"; then :
14995 rm -f core conftest.err conftest.
$ac_objext \
14996 conftest
$ac_exeext conftest.
$ac_ext
14997 LDFLAGS
="${SAVE_LDFLAGS}"
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
15001 $as_echo "$gdb_cv_bigtoc" >&6; }
15002 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
15007 $as_echo_n "checking for the dynamic export flag... " >&6; }
15009 if test "${gdb_native}" = yes; then
15010 # The dynamically loaded libthread_db needs access to symbols in the gdb
15011 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
15012 # may not be supported there.
15013 old_LDFLAGS
="$LDFLAGS"
15014 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
15015 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
15016 LDFLAGS
="$LDFLAGS $RDYNAMIC"
15017 if test "${have_libpython}" = no
; then
15018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15019 /* end confdefs.h. */
15029 if ac_fn_c_try_link
"$LINENO"; then :
15032 rm -f core conftest.err conftest.
$ac_objext \
15033 conftest
$ac_exeext conftest.
$ac_ext
15035 # Workaround http://bugs.python.org/issue4434 where static
15036 # libpythonX.Y.a would get its symbols required for
15037 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
15038 # Problem does not happen for the recommended libpythonX.Y.so linkage.
15040 # Note the workaround for Python
15041 # http://bugs.python.org/issue10112 earlier has removed
15042 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
15043 # here too, as otherwise it'd make this -Wl,--dynamic-list test
15045 old_CFLAGS
="$CFLAGS"
15046 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
15048 LIBS
="$LIBS $PYTHON_LIBS"
15049 old_CPPFLAGS
="$CPPFLAGS"
15050 CPPFLAGS
="$CPPFLAGS $PYTHON_CPPFLAGS"
15051 if test "$cross_compiling" = yes; then :
15054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15055 /* end confdefs.h. */
15056 #include "Python.h"
15062 err = PyRun_SimpleString ("import itertools\n");
15064 return err == 0 ? 0 : 1;
15069 if ac_fn_c_try_run
"$LINENO"; then :
15072 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15073 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15077 CFLAGS
="$old_CFLAGS"
15078 CPPFLAGS
="$old_CPPFLAGS"
15080 LDFLAGS
="$old_LDFLAGS"
15082 if $dynamic_list; then
15083 found
="-Wl,--dynamic-list"
15084 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
15087 RDYNAMIC
="-rdynamic"
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
15091 $as_echo "$found" >&6; }
15094 if test ${build} = ${host} -a ${host} = ${target} ; then
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
15098 $as_echo_n "checking for AiX thread debugging library... " >&6; }
15099 if ${gdb_cv_have_aix_thread_debug+:} false
; then :
15100 $as_echo_n "(cached) " >&6
15102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15103 /* end confdefs.h. */
15104 #include <sys/pthdebug.h>
15108 #ifndef PTHDB_VERSION_3
15115 if ac_fn_c_try_compile
"$LINENO"; then :
15116 gdb_cv_have_aix_thread_debug
=yes
15118 gdb_cv_have_aix_thread_debug
=no
15120 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
15124 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
15125 if test $gdb_cv_have_aix_thread_debug = yes; then
15126 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
15127 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
15128 LIBS
="$LIBS -lpthdebug"
15130 # Older versions of AIX do not provide the declaration for
15131 # the getthrds function (it appears that it was introduced
15133 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
15135 if test "x$ac_cv_have_decl_getthrds" = xyes
; then :
15141 cat >>confdefs.h
<<_ACEOF
15142 #define HAVE_DECL_GETTHRDS $ac_have_decl
15151 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
15153 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
15154 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false
; then :
15155 $as_echo_n "(cached) " >&6
15157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15158 /* end confdefs.h. */
15159 #include <thread_db.h>
15163 int i = TD_NOTALLOC;
15168 if ac_fn_c_try_compile
"$LINENO"; then :
15169 gdb_cv_thread_db_h_has_td_notalloc
=yes
15171 gdb_cv_thread_db_h_has_td_notalloc
=no
15174 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
15178 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
15180 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
15181 if ${gdb_cv_thread_db_h_has_td_version+:} false
; then :
15182 $as_echo_n "(cached) " >&6
15184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15185 /* end confdefs.h. */
15186 #include <thread_db.h>
15190 int i = TD_VERSION;
15195 if ac_fn_c_try_compile
"$LINENO"; then :
15196 gdb_cv_thread_db_h_has_td_version
=yes
15198 gdb_cv_thread_db_h_has_td_version
=no
15201 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
15205 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
15207 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
15208 if ${gdb_cv_thread_db_h_has_td_notls+:} false
; then :
15209 $as_echo_n "(cached) " >&6
15211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15212 /* end confdefs.h. */
15213 #include <thread_db.h>
15222 if ac_fn_c_try_compile
"$LINENO"; then :
15223 gdb_cv_thread_db_h_has_td_notls
=yes
15225 gdb_cv_thread_db_h_has_td_notls
=no
15228 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
15232 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
15234 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
15236 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
15239 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
15241 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
15244 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
15246 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
15250 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
15252 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
15258 cat >>confdefs.h
<<_ACEOF
15259 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
15263 if test "$cross_compiling" = yes; then :
15264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15265 /* end confdefs.h. */
15266 #include <sys/personality.h>
15271 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
15272 # define ADDR_NO_RANDOMIZE 0x0040000
15274 /* Test the flag could be set and stays set. */
15275 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
15276 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
15282 if ac_fn_c_try_link
"$LINENO"; then :
15283 have_personality
=true
15285 have_personality
=false
15287 rm -f core conftest.err conftest.
$ac_objext \
15288 conftest
$ac_exeext conftest.
$ac_ext
15290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15291 /* end confdefs.h. */
15292 #include <sys/personality.h>
15297 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
15298 # define ADDR_NO_RANDOMIZE 0x0040000
15300 /* Test the flag could be set and stays set. */
15301 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
15302 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
15308 if ac_fn_c_try_run
"$LINENO"; then :
15309 have_personality
=true
15311 have_personality
=false
15313 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15314 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15317 if $have_personality
15320 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
15333 cat >>confdefs.h
<<_ACEOF
15334 #define GDBINIT "$gdbinit"
15339 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
15340 # except that the argument to --with-sysroot is optional.
15341 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
15342 if test "x$with_sysroot" = xyes
; then
15343 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
15346 # Check whether --with-sysroot was given.
15347 if test "${with_sysroot+set}" = set; then :
15348 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
15350 TARGET_SYSTEM_ROOT
=
15354 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
15355 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15356 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
15357 ac_define_dir
=`eval echo $ac_define_dir`
15359 cat >>confdefs.h
<<_ACEOF
15360 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
15366 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
15367 if test "x$prefix" = xNONE
; then
15368 test_prefix
=/usr
/local
15370 test_prefix
=$prefix
15373 test_prefix
=$exec_prefix
15376 case ${ac_define_dir} in
15377 "${test_prefix}"|
"${test_prefix}/"*|\
15378 '${exec_prefix}'|
'${exec_prefix}/'*)
15383 cat >>confdefs.h
<<_ACEOF
15384 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
15391 # Check whether --with-system-gdbinit was given.
15392 if test "${with_system_gdbinit+set}" = set; then :
15393 withval
=$with_system_gdbinit;
15394 SYSTEM_GDBINIT
=$withval
15400 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
15401 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15402 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
15403 ac_define_dir
=`eval echo $ac_define_dir`
15405 cat >>confdefs.h
<<_ACEOF
15406 #define SYSTEM_GDBINIT "$ac_define_dir"
15412 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
15413 if test "x$prefix" = xNONE
; then
15414 test_prefix
=/usr
/local
15416 test_prefix
=$prefix
15419 test_prefix
=$exec_prefix
15422 case ${ac_define_dir} in
15423 "${test_prefix}"|
"${test_prefix}/"*|\
15424 '${exec_prefix}'|
'${exec_prefix}/'*)
15429 cat >>confdefs.h
<<_ACEOF
15430 #define SYSTEM_GDBINIT_RELOCATABLE $value
15437 # Check whether --enable-werror was given.
15438 if test "${enable_werror+set}" = set; then :
15439 enableval
=$enable_werror; case "${enableval}" in
15440 yes | y
) ERROR_ON_WARNING
="yes" ;;
15441 no | n
) ERROR_ON_WARNING
="no" ;;
15442 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15447 # Enable -Werror by default when using gcc. Turn it off for releases.
15448 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
15449 ERROR_ON_WARNING
=yes
15453 if test "${ERROR_ON_WARNING}" = yes ; then
15454 WERROR_CFLAGS
="-Werror"
15457 # The options we'll try to enable.
15458 build_warnings
="-Wall -Wpointer-arith \
15459 -Wno-unused -Wunused-value -Wunused-function \
15460 -Wno-switch -Wno-char-subscripts \
15461 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
15462 -Wno-sign-compare -Wno-narrowing -Wno-error=maybe-uninitialized \
15463 -Wno-mismatched-tags \
15464 -Wno-error=deprecated-register \
15465 -Wsuggest-override \
15466 -Wimplicit-fallthrough=3 \
15471 # Enable -Wno-format by default when using gcc on mingw since many
15472 # GCC versions complain about %I64.
15473 build_warnings
="$build_warnings -Wno-format" ;;
15475 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
15476 # doesn't understand.
15477 build_warnings
="$build_warnings -Wno-unknown-pragmas"
15478 # Solaris 11 <unistd.h> marks vfork deprecated.
15479 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
15480 *) build_warnings
="$build_warnings -Wformat-nonliteral" ;;
15483 # Check whether --enable-build-warnings was given.
15484 if test "${enable_build_warnings+set}" = set; then :
15485 enableval
=$enable_build_warnings; case "${enableval}" in
15487 no
) build_warnings
="-w";;
15488 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15489 build_warnings
="${build_warnings} ${t}";;
15490 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15491 build_warnings
="${t} ${build_warnings}";;
15492 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15494 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
15495 echo "Setting compiler warning flags = $build_warnings" 6>&1
15498 # Check whether --enable-gdb-build-warnings was given.
15499 if test "${enable_gdb_build_warnings+set}" = set; then :
15500 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
15502 no
) build_warnings
="-w";;
15503 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15504 build_warnings
="${build_warnings} ${t}";;
15505 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15506 build_warnings
="${t} ${build_warnings}";;
15507 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15509 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
15510 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
15514 # The set of warnings supported by a C++ compiler is not the same as
15515 # of the C compiler.
15517 ac_cpp
='$CXXCPP $CPPFLAGS'
15518 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15519 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15520 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
15524 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
15527 $as_echo_n "checking compiler warning flags... " >&6; }
15528 # Separate out the -Werror flag as some files just cannot be
15529 # compiled with it enabled.
15530 for w
in ${build_warnings}; do
15531 # GCC does not complain about -Wno-unknown-warning. Invert
15532 # and test -Wunknown-warning instead.
15535 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
15541 -Werr*) WERROR_CFLAGS
=-Werror ;;
15543 # Check whether GCC accepts it.
15544 saved_CFLAGS
="$CFLAGS"
15545 CFLAGS
="$CFLAGS -Werror $wtest"
15546 saved_CXXFLAGS
="$CXXFLAGS"
15547 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
15548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15549 /* end confdefs.h. */
15559 if ac_fn_cxx_try_compile
"$LINENO"; then :
15560 WARN_CFLAGS
="${WARN_CFLAGS} $w"
15562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15563 CFLAGS
="$saved_CFLAGS"
15564 CXXFLAGS
="$saved_CXXFLAGS"
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
15568 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
15574 ac_cpp='$CPP $CPPFLAGS'
15575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15581 # In the Cygwin environment, we need some additional flags.
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
15583 $as_echo_n "checking
for cygwin...
" >&6; }
15584 if ${gdb_cv_os_cygwin+:} false; then :
15585 $as_echo_n "(cached
) " >&6
15587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15588 /* end confdefs.h. */
15590 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
15594 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15595 $EGREP "^lose$
" >/dev/null 2>&1; then :
15596 gdb_cv_os_cygwin=yes
15598 gdb_cv_os_cygwin=no
15603 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
15604 $as_echo "$gdb_cv_os_cygwin" >&6; }
15607 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
15609 *go32* ) SER_HARDWIRE=ser-go32.o ;;
15610 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
15611 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
15615 # libreadline needs libuser32.a in a cygwin environment
15617 if test x$gdb_cv_os_cygwin = xyes; then
15618 WIN32LIBS="-luser32"
15619 case "${target}" in
15620 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
15625 # The ser-tcp.c module requires sockets.
15629 $as_echo "#define USE_WIN32API 1" >>confdefs.h
15631 WIN32LIBS
="$WIN32LIBS -lws2_32"
15636 # Add ELF support to GDB, but only if BFD includes ELF support.
15639 OLD_LDFLAGS
=$LDFLAGS
15641 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
15642 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
15643 # always want our bfd.
15644 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
15645 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
15646 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
15647 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15648 LIBS
="-lbfd -liberty -lz $intl $LIBS"
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
15650 $as_echo_n "checking for ELF support in BFD... " >&6; }
15651 if ${gdb_cv_var_elf+:} false
; then :
15652 $as_echo_n "(cached) " >&6
15654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15655 /* end confdefs.h. */
15656 #include <stdlib.h>
15658 #include "elf-bfd.h"
15663 return bfd_get_elf_phdr_upper_bound (NULL);
15668 if ac_fn_c_try_link
"$LINENO"; then :
15673 rm -f core conftest.err conftest.
$ac_objext \
15674 conftest
$ac_exeext conftest.
$ac_ext
15676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
15677 $as_echo "$gdb_cv_var_elf" >&6; }
15679 LDFLAGS
=$OLD_LDFLAGS
15681 if test $gdb_cv_var_elf = yes; then
15682 CONFIG_OBS
="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o"
15684 $as_echo "#define HAVE_ELF 1" >>confdefs.h
15686 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
15687 if test "$plugins" = "yes"; then
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15689 $as_echo_n "checking for library containing dlopen... " >&6; }
15690 if ${ac_cv_search_dlopen+:} false
; then :
15691 $as_echo_n "(cached) " >&6
15693 ac_func_search_save_LIBS
=$LIBS
15694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15695 /* end confdefs.h. */
15697 /* Override any GCC internal prototype to avoid an error.
15698 Use char because int might match the return type of a GCC
15699 builtin and then its argument prototype would still apply. */
15712 for ac_lib
in '' dl
; do
15713 if test -z "$ac_lib"; then
15714 ac_res
="none required"
15717 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15719 if ac_fn_c_try_link
"$LINENO"; then :
15720 ac_cv_search_dlopen
=$ac_res
15722 rm -f core conftest.err conftest.
$ac_objext \
15724 if ${ac_cv_search_dlopen+:} false
; then :
15728 if ${ac_cv_search_dlopen+:} false
; then :
15731 ac_cv_search_dlopen
=no
15733 rm conftest.
$ac_ext
15734 LIBS
=$ac_func_search_save_LIBS
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15737 $as_echo "$ac_cv_search_dlopen" >&6; }
15738 ac_res
=$ac_cv_search_dlopen
15739 if test "$ac_res" != no
; then :
15740 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15747 # Add macho support to GDB, but only if BFD includes it.
15750 OLD_LDFLAGS
=$LDFLAGS
15752 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
15753 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
15754 # always want our bfd.
15755 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
15756 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
15757 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
15758 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15759 LIBS
="-lbfd -liberty -lz $intl $LIBS"
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
15761 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
15762 if ${gdb_cv_var_macho+:} false
; then :
15763 $as_echo_n "(cached) " >&6
15765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15766 /* end confdefs.h. */
15767 #include <stdlib.h>
15769 #include "mach-o.h"
15774 return bfd_mach_o_lookup_command (NULL, 0, NULL);
15779 if ac_fn_c_try_link
"$LINENO"; then :
15780 gdb_cv_var_macho
=yes
15782 gdb_cv_var_macho
=no
15784 rm -f core conftest.err conftest.
$ac_objext \
15785 conftest
$ac_exeext conftest.
$ac_ext
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
15788 $as_echo "$gdb_cv_var_macho" >&6; }
15790 LDFLAGS
=$OLD_LDFLAGS
15792 if test $gdb_cv_var_macho = yes; then
15793 CONFIG_OBS
="$CONFIG_OBS machoread.o"
15796 # Add any host-specific objects to GDB.
15797 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
15799 # If building on ELF, look for lzma support for embedded compressed debug info.
15800 if test $gdb_cv_var_elf = yes; then
15802 # Check whether --with-lzma was given.
15803 if test "${with_lzma+set}" = set; then :
15804 withval
=$with_lzma;
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
15810 $as_echo_n "checking whether to use lzma... " >&6; }
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
15812 $as_echo "$with_lzma" >&6; }
15814 if test "${with_lzma}" != no
; then
15825 acl_save_prefix
="$prefix"
15826 prefix
="$acl_final_prefix"
15827 acl_save_exec_prefix
="$exec_prefix"
15828 exec_prefix
="$acl_final_exec_prefix"
15830 eval additional_includedir
=\"$includedir\"
15831 eval additional_libdir
=\"$libdir\"
15833 exec_prefix
="$acl_save_exec_prefix"
15834 prefix
="$acl_save_prefix"
15837 # Check whether --with-liblzma-prefix was given.
15838 if test "${with_liblzma_prefix+set}" = set; then :
15839 withval
=$with_liblzma_prefix;
15840 if test "X$withval" = "Xno"; then
15843 if test "X$withval" = "X"; then
15845 acl_save_prefix
="$prefix"
15846 prefix
="$acl_final_prefix"
15847 acl_save_exec_prefix
="$exec_prefix"
15848 exec_prefix
="$acl_final_exec_prefix"
15850 eval additional_includedir
=\"$includedir\"
15851 eval additional_libdir
=\"$libdir\"
15853 exec_prefix
="$acl_save_exec_prefix"
15854 prefix
="$acl_save_prefix"
15857 additional_includedir
="$withval/include"
15858 additional_libdir
="$withval/lib"
15869 names_already_handled
=
15870 names_next_round
='lzma '
15871 while test -n "$names_next_round"; do
15872 names_this_round
="$names_next_round"
15874 for name
in $names_this_round; do
15876 for n
in $names_already_handled; do
15877 if test "$n" = "$name"; then
15878 already_handled
=yes
15882 if test -z "$already_handled"; then
15883 names_already_handled
="$names_already_handled $name"
15884 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15885 eval value
=\"\
$HAVE_LIB$uppername\"
15886 if test -n "$value"; then
15887 if test "$value" = yes; then
15888 eval value
=\"\
$LIB$uppername\"
15889 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
15890 eval value
=\"\
$LTLIB$uppername\"
15891 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
15900 if test $use_additional = yes; then
15901 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15902 found_dir
="$additional_libdir"
15903 found_so
="$additional_libdir/lib$name.$shlibext"
15904 if test -f "$additional_libdir/lib$name.la"; then
15905 found_la
="$additional_libdir/lib$name.la"
15908 if test -f "$additional_libdir/lib$name.$libext"; then
15909 found_dir
="$additional_libdir"
15910 found_a
="$additional_libdir/lib$name.$libext"
15911 if test -f "$additional_libdir/lib$name.la"; then
15912 found_la
="$additional_libdir/lib$name.la"
15917 if test "X$found_dir" = "X"; then
15918 for x
in $LDFLAGS $LTLIBLZMA; do
15920 acl_save_prefix
="$prefix"
15921 prefix
="$acl_final_prefix"
15922 acl_save_exec_prefix
="$exec_prefix"
15923 exec_prefix
="$acl_final_exec_prefix"
15925 exec_prefix
="$acl_save_exec_prefix"
15926 prefix
="$acl_save_prefix"
15930 dir
=`echo "X$x" | sed -e 's/^X-L//'`
15931 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15933 found_so
="$dir/lib$name.$shlibext"
15934 if test -f "$dir/lib$name.la"; then
15935 found_la
="$dir/lib$name.la"
15938 if test -f "$dir/lib$name.$libext"; then
15940 found_a
="$dir/lib$name.$libext"
15941 if test -f "$dir/lib$name.la"; then
15942 found_la
="$dir/lib$name.la"
15948 if test "X$found_dir" != "X"; then
15953 if test "X$found_dir" != "X"; then
15954 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
15955 if test "X$found_so" != "X"; then
15956 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
15957 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
15960 for x
in $ltrpathdirs; do
15961 if test "X$x" = "X$found_dir"; then
15966 if test -z "$haveit"; then
15967 ltrpathdirs
="$ltrpathdirs $found_dir"
15969 if test "$hardcode_direct" = yes; then
15970 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
15972 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
15973 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
15975 for x
in $rpathdirs; do
15976 if test "X$x" = "X$found_dir"; then
15981 if test -z "$haveit"; then
15982 rpathdirs
="$rpathdirs $found_dir"
15986 for x
in $LDFLAGS $LIBLZMA; do
15988 acl_save_prefix
="$prefix"
15989 prefix
="$acl_final_prefix"
15990 acl_save_exec_prefix
="$exec_prefix"
15991 exec_prefix
="$acl_final_exec_prefix"
15993 exec_prefix
="$acl_save_exec_prefix"
15994 prefix
="$acl_save_prefix"
15996 if test "X$x" = "X-L$found_dir"; then
16001 if test -z "$haveit"; then
16002 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
16004 if test "$hardcode_minus_L" != no
; then
16005 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
16007 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
16013 if test "X$found_a" != "X"; then
16014 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
16016 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
16019 additional_includedir
=
16020 case "$found_dir" in
16022 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16023 additional_includedir
="$basedir/include"
16026 if test "X$additional_includedir" != "X"; then
16027 if test "X$additional_includedir" != "X/usr/include"; then
16029 if test "X$additional_includedir" = "X/usr/local/include"; then
16030 if test -n "$GCC"; then
16032 linux
*) haveit
=yes;;
16036 if test -z "$haveit"; then
16037 for x
in $CPPFLAGS $INCLZMA; do
16039 acl_save_prefix
="$prefix"
16040 prefix
="$acl_final_prefix"
16041 acl_save_exec_prefix
="$exec_prefix"
16042 exec_prefix
="$acl_final_exec_prefix"
16044 exec_prefix
="$acl_save_exec_prefix"
16045 prefix
="$acl_save_prefix"
16047 if test "X$x" = "X-I$additional_includedir"; then
16052 if test -z "$haveit"; then
16053 if test -d "$additional_includedir"; then
16054 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
16060 if test -n "$found_la"; then
16061 save_libdir
="$libdir"
16062 case "$found_la" in
16063 */* |
*\\*) .
"$found_la" ;;
16064 *) .
"./$found_la" ;;
16066 libdir
="$save_libdir"
16067 for dep
in $dependency_libs; do
16070 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
16071 if test "X$additional_libdir" != "X/usr/lib"; then
16073 if test "X$additional_libdir" = "X/usr/local/lib"; then
16074 if test -n "$GCC"; then
16076 linux
*) haveit
=yes;;
16080 if test -z "$haveit"; then
16082 for x
in $LDFLAGS $LIBLZMA; do
16084 acl_save_prefix
="$prefix"
16085 prefix
="$acl_final_prefix"
16086 acl_save_exec_prefix
="$exec_prefix"
16087 exec_prefix
="$acl_final_exec_prefix"
16089 exec_prefix
="$acl_save_exec_prefix"
16090 prefix
="$acl_save_prefix"
16092 if test "X$x" = "X-L$additional_libdir"; then
16097 if test -z "$haveit"; then
16098 if test -d "$additional_libdir"; then
16099 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
16103 for x
in $LDFLAGS $LTLIBLZMA; do
16105 acl_save_prefix
="$prefix"
16106 prefix
="$acl_final_prefix"
16107 acl_save_exec_prefix
="$exec_prefix"
16108 exec_prefix
="$acl_final_exec_prefix"
16110 exec_prefix
="$acl_save_exec_prefix"
16111 prefix
="$acl_save_prefix"
16113 if test "X$x" = "X-L$additional_libdir"; then
16118 if test -z "$haveit"; then
16119 if test -d "$additional_libdir"; then
16120 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
16127 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
16128 if test "$enable_rpath" != no
; then
16130 for x
in $rpathdirs; do
16131 if test "X$x" = "X$dir"; then
16136 if test -z "$haveit"; then
16137 rpathdirs
="$rpathdirs $dir"
16140 for x
in $ltrpathdirs; do
16141 if test "X$x" = "X$dir"; then
16146 if test -z "$haveit"; then
16147 ltrpathdirs
="$ltrpathdirs $dir"
16152 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16155 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16158 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
16159 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
16165 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
16166 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
16172 if test "X$rpathdirs" != "X"; then
16173 if test -n "$hardcode_libdir_separator"; then
16175 for found_dir
in $rpathdirs; do
16176 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16178 acl_save_libdir
="$libdir"
16180 eval flag
=\"$hardcode_libdir_flag_spec\"
16181 libdir
="$acl_save_libdir"
16182 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
16184 for found_dir
in $rpathdirs; do
16185 acl_save_libdir
="$libdir"
16186 libdir
="$found_dir"
16187 eval flag
=\"$hardcode_libdir_flag_spec\"
16188 libdir
="$acl_save_libdir"
16189 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
16193 if test "X$ltrpathdirs" != "X"; then
16194 for found_dir
in $ltrpathdirs; do
16195 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
16200 ac_save_CPPFLAGS
="$CPPFLAGS"
16202 for element
in $INCLZMA; do
16204 for x
in $CPPFLAGS; do
16206 acl_save_prefix
="$prefix"
16207 prefix
="$acl_final_prefix"
16208 acl_save_exec_prefix
="$exec_prefix"
16209 exec_prefix
="$acl_final_exec_prefix"
16211 exec_prefix
="$acl_save_exec_prefix"
16212 prefix
="$acl_save_prefix"
16214 if test "X$x" = "X$element"; then
16219 if test -z "$haveit"; then
16220 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
16226 $as_echo_n "checking for liblzma... " >&6; }
16227 if ${ac_cv_liblzma+:} false
; then :
16228 $as_echo_n "(cached) " >&6
16231 ac_save_LIBS
="$LIBS"
16232 LIBS
="$LIBS $LIBLZMA"
16233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16234 /* end confdefs.h. */
16239 lzma_index_iter iter;
16240 lzma_index_iter_init (&iter, 0);
16241 lzma_mf_is_supported (LZMA_MF_HC3);
16246 if ac_fn_c_try_link
"$LINENO"; then :
16251 rm -f core conftest.err conftest.
$ac_objext \
16252 conftest
$ac_exeext conftest.
$ac_ext
16253 LIBS
="$ac_save_LIBS"
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
16257 $as_echo "$ac_cv_liblzma" >&6; }
16258 if test "$ac_cv_liblzma" = yes; then
16261 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
16264 $as_echo_n "checking how to link with liblzma... " >&6; }
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
16266 $as_echo "$LIBLZMA" >&6; }
16269 CPPFLAGS
="$ac_save_CPPFLAGS"
16279 if test "$HAVE_LIBLZMA" != yes; then
16280 if test "$with_lzma" = yes; then
16281 as_fn_error $?
"missing liblzma for --with-lzma" "$LINENO" 5
16287 LIBGUI
="../libgui/src/libgui.a"
16288 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
16297 *-*-cygwin* |
*-*-mingw* )
16306 if test "${enable_gdbtk}" = "yes"; then
16308 # Gdbtk must have an absolute path to srcdir in order to run
16309 # properly when not installed.
16312 GDBTK_SRC_DIR
=`pwd`
16317 # Ok, lets find the tcl configuration
16318 # First, look for one uninstalled.
16319 # the alternative search directory is invoked by --with-tcl
16322 if test x
"${no_tcl}" = x
; then
16323 # we reset no_tcl in case something fails here
16326 # Check whether --with-tcl was given.
16327 if test "${with_tcl+set}" = set; then :
16328 withval
=$with_tcl; with_tclconfig
=${withval}
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
16332 $as_echo_n "checking for Tcl configuration... " >&6; }
16333 if ${ac_cv_c_tclconfig+:} false
; then :
16334 $as_echo_n "(cached) " >&6
16338 # First check to see if --with-tcl was specified.
16340 *-*-cygwin*) platDir
="win" ;;
16341 *) platDir
="unix" ;;
16343 if test x
"${with_tclconfig}" != x
; then
16344 if test -f "${with_tclconfig}/tclConfig.sh" ; then
16345 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
16347 as_fn_error $?
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
16351 # then check for a private Tcl installation
16352 if test x
"${ac_cv_c_tclconfig}" = x
; then
16355 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16356 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
16357 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
16359 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16360 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
16361 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
16363 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16364 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
16365 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
16366 if test -f "$i/$platDir/tclConfig.sh" ; then
16367 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
16373 # on Darwin, check in Framework installation locations
16374 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
16375 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
16376 `ls -d /Library/Frameworks 2>/dev/null` \
16377 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16378 `ls -d /System/Library/Frameworks 2>/dev/null` \
16380 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
16381 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
16387 # check in a few common install locations
16388 if test x
"${ac_cv_c_tclconfig}" = x
; then
16389 for i
in `ls -d ${libdir} 2>/dev/null` \
16390 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16391 `ls -d ${prefix}/lib 2>/dev/null` \
16392 `ls -d /usr/local/lib 2>/dev/null` \
16393 `ls -d /usr/contrib/lib 2>/dev/null` \
16394 `ls -d /usr/lib 2>/dev/null` \
16396 if test -f "$i/tclConfig.sh" ; then
16397 ac_cv_c_tclconfig
=`(cd $i; pwd)`
16403 # check in a few other private locations
16404 if test x
"${ac_cv_c_tclconfig}" = x
; then
16407 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16408 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
16409 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
16410 if test -f "$i/$platDir/tclConfig.sh" ; then
16411 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
16420 if test x
"${ac_cv_c_tclconfig}" = x
; then
16421 TCL_BIN_DIR
="# no Tcl configs found"
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
16423 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
16426 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
16428 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
16433 # If $no_tk is nonempty, then we can't do Tk, and there is no
16434 # point to doing Tcl.
16437 # Ok, lets find the tk configuration
16438 # First, look for one uninstalled.
16439 # the alternative search directory is invoked by --with-tk
16442 if test x
"${no_tk}" = x
; then
16443 # we reset no_tk in case something fails here
16446 # Check whether --with-tk was given.
16447 if test "${with_tk+set}" = set; then :
16448 withval
=$with_tk; with_tkconfig
=${withval}
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
16452 $as_echo_n "checking for Tk configuration... " >&6; }
16453 if ${ac_cv_c_tkconfig+:} false
; then :
16454 $as_echo_n "(cached) " >&6
16458 # First check to see if --with-tkconfig was specified.
16459 if test x
"${with_tkconfig}" != x
; then
16460 if test -f "${with_tkconfig}/tkConfig.sh" ; then
16461 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
16463 as_fn_error $?
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
16467 # then check for a private Tk library
16469 *-*-cygwin*) platDir
="win" ;;
16470 *) platDir
="unix" ;;
16472 if test x
"${ac_cv_c_tkconfig}" = x
; then
16475 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16476 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
16477 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
16479 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16480 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
16481 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
16483 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16484 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
16485 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
16486 if test -f "$i/$platDir/tkConfig.sh" ; then
16487 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
16493 # on Darwin, check in Framework installation locations
16494 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
16495 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
16496 `ls -d /Library/Frameworks 2>/dev/null` \
16497 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16498 `ls -d /System/Library/Frameworks 2>/dev/null` \
16500 if test -f "$i/Tk.framework/tkConfig.sh" ; then
16501 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
16507 # check in a few common install locations
16508 if test x
"${ac_cv_c_tkconfig}" = x
; then
16509 for i
in `ls -d ${libdir} 2>/dev/null` \
16510 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16511 `ls -d ${prefix}/lib 2>/dev/null` \
16512 `ls -d /usr/local/lib 2>/dev/null` \
16513 `ls -d /usr/contrib/lib 2>/dev/null` \
16514 `ls -d /usr/lib 2>/dev/null` \
16516 if test -f "$i/tkConfig.sh" ; then
16517 ac_cv_c_tkconfig
=`(cd $i; pwd)`
16522 # check in a few other private locations
16523 if test x
"${ac_cv_c_tkconfig}" = x
; then
16526 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16527 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
16528 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
16529 if test -f "$i/$platDir/tkConfig.sh" ; then
16530 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
16539 if test x
"${ac_cv_c_tkconfig}" = x
; then
16540 TK_BIN_DIR
="# no Tk configs found"
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
16542 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
16545 TK_BIN_DIR
=${ac_cv_c_tkconfig}
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
16547 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
16552 if test -z "${no_tcl}" -a -z "${no_tk}"; then
16554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
16555 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
16557 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
16559 $as_echo "loading" >&6; }
16560 .
${TCL_BIN_DIR}/tclConfig.sh
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
16563 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
16566 # eval is required to do the TCL_DBGX substitution
16567 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
16568 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
16570 # If the TCL_BIN_DIR is the build directory (not the install directory),
16571 # then set the common variable name to the value of the build variables.
16572 # For example, the variable TCL_LIB_SPEC will be set to the value
16573 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
16574 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
16575 # installed and uninstalled version of Tcl.
16576 if test -f "${TCL_BIN_DIR}/Makefile" ; then
16577 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
16578 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
16579 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
16580 elif test "`uname -s`" = "Darwin"; then
16581 # If Tcl was built as a framework, attempt to use the libraries
16582 # from the framework at the given location so that linking works
16583 # against Tcl.framework installed in an arbitrary location.
16584 case ${TCL_DEFS} in
16586 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
16587 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
16588 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
16589 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
16590 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
16595 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
16596 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
16597 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
16603 # eval is required to do the TCL_DBGX substitution
16604 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
16605 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
16606 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
16607 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
16623 # Check for in-tree tcl
16630 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
16634 # Find Tcl private headers
16635 if test x
"${intree}" = xno
; then
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
16638 $as_echo_n "checking for Tcl private headers... " >&6; }
16640 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
16641 if test -f ${dir}/tclInt.h
; then
16645 if test x
"${private_dir}" = x
; then
16646 as_fn_error $?
"could not find private Tcl headers" "$LINENO" 5
16648 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
16650 $as_echo "${private_dir}" >&6; }
16653 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
16654 TCL_LIBRARY
="${TCL_LIB_SPEC}"
16657 # If building tcl in the same src tree, private headers
16658 # are not needed, but we need to be sure to use the right
16660 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
16661 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
16662 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
16670 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
16672 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
16674 $as_echo "loading" >&6; }
16675 .
${TK_BIN_DIR}/tkConfig.sh
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
16678 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
16681 # eval is required to do the TK_DBGX substitution
16682 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
16683 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
16685 # If the TK_BIN_DIR is the build directory (not the install directory),
16686 # then set the common variable name to the value of the build variables.
16687 # For example, the variable TK_LIB_SPEC will be set to the value
16688 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
16689 # instead of TK_BUILD_LIB_SPEC since it will work with both an
16690 # installed and uninstalled version of Tcl.
16691 if test -f "${TK_BIN_DIR}/Makefile" ; then
16692 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
16693 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
16694 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
16695 elif test "`uname -s`" = "Darwin"; then
16696 # If Tk was built as a framework, attempt to use the libraries
16697 # from the framework at the given location so that linking works
16698 # against Tk.framework installed in an arbitrary location.
16701 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
16702 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
16703 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
16704 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
16705 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
16710 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
16711 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
16712 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
16718 # eval is required to do the TK_DBGX substitution
16719 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
16720 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
16721 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
16722 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
16737 # Check for in-tree Tk
16739 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
16743 # Find Tk private headers
16744 if test x
"${intree}" = xno
; then
16746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
16747 $as_echo_n "checking for Tk private headers... " >&6; }
16749 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
16750 if test -f ${dir}/tkInt.h
; then
16754 if test x
"${private_dir}" = x
; then
16755 as_fn_error $?
"could not find Tk private headers" "$LINENO" 5
16757 TK_PRIVATE_INCLUDE
="-I${private_dir}"
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
16759 $as_echo "${private_dir}" >&6; }
16762 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
16763 TK_LIBRARY
=${TK_LIB_SPEC}
16766 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
16767 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
16768 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
16775 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
16777 # Include some libraries that Tcl and Tk want.
16778 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
16779 # Yes, the ordering seems wrong here. But it isn't.
16780 # TK_LIBS is the list of libraries that need to be linked
16781 # after Tcl/Tk. Note that this isn't put into LIBS. If it
16782 # were in LIBS then any link tests after this point would
16783 # try to include things like `$(LIBGUI)', which wouldn't work.
16784 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
16786 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
16787 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
16788 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
16789 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
16790 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
16791 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
16792 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
16794 if test x
$gdb_cv_os_cygwin = xyes
; then
16795 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
16796 WIN32LDAPP
="-Wl,--subsystem,console"
16797 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
16800 subdirs
="$subdirs gdbtk"
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
16813 $as_echo_n "checking for X... " >&6; }
16816 # Check whether --with-x was given.
16817 if test "${with_x+set}" = set; then :
16821 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
16822 if test "x$with_x" = xno
; then
16823 # The user explicitly disabled X.
16826 case $x_includes,$x_libraries in #(
16827 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
16828 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
16829 $as_echo_n "(cached) " >&6
16831 # One or both of the vars are not set, and there is no cached value.
16832 ac_x_includes
=no ac_x_libraries
=no
16833 rm -f -r conftest.dir
16834 if mkdir conftest.dir
; then
16836 cat >Imakefile
<<'_ACEOF'
16838 @echo incroot='${INCROOT}'
16840 @echo usrlibdir='${USRLIBDIR}'
16842 @echo libdir='${LIBDIR}'
16844 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
16845 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16846 for ac_var
in incroot usrlibdir libdir
; do
16847 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
16849 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
16850 for ac_extension
in a so sl dylib la dll
; do
16851 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
16852 test -f "$ac_im_libdir/libX11.$ac_extension"; then
16853 ac_im_usrlibdir
=$ac_im_libdir; break
16856 # Screen out bogus values from the imake configuration. They are
16857 # bogus both because they are the default anyway, and because
16858 # using them would break gcc on systems where it needs fixed includes.
16859 case $ac_im_incroot in
16860 /usr
/include
) ac_x_includes
= ;;
16861 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
16863 case $ac_im_usrlibdir in
16864 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
16865 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
16869 rm -f -r conftest.dir
16872 # Standard set of common directories for X headers.
16873 # Check X11 before X11Rn because it is often a symlink to the current release.
16887 /usr/local/X11/include
16888 /usr/local/X11R7/include
16889 /usr/local/X11R6/include
16890 /usr/local/X11R5/include
16891 /usr/local/X11R4/include
16893 /usr/local/include/X11
16894 /usr/local/include/X11R7
16895 /usr/local/include/X11R6
16896 /usr/local/include/X11R5
16897 /usr/local/include/X11R4
16901 /usr/XFree86/include/X11
16905 /usr/unsupported/include
16906 /usr/athena/include
16907 /usr/local/x11r5/include
16908 /usr/lpp/Xamples/include
16910 /usr/openwin/include
16911 /usr/openwin/share/include'
16913 if test "$ac_x_includes" = no
; then
16914 # Guess where to find include files, by looking for Xlib.h.
16915 # First, try using that file with no special directory specified.
16916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16917 /* end confdefs.h. */
16918 #include <X11/Xlib.h>
16920 if ac_fn_c_try_cpp
"$LINENO"; then :
16921 # We can compile using X headers with no special include directory.
16924 for ac_dir
in $ac_x_header_dirs; do
16925 if test -r "$ac_dir/X11/Xlib.h"; then
16926 ac_x_includes
=$ac_dir
16931 rm -f conftest.err conftest.i conftest.
$ac_ext
16932 fi # $ac_x_includes = no
16934 if test "$ac_x_libraries" = no
; then
16935 # Check for the libraries.
16936 # See if we find them without any special options.
16937 # Don't add to $LIBS permanently.
16940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16941 /* end confdefs.h. */
16942 #include <X11/Xlib.h>
16951 if ac_fn_c_try_link
"$LINENO"; then :
16953 # We can link X programs with no special library path.
16957 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
16959 # Don't even attempt the hair of trying to link an X program!
16960 for ac_extension
in a so sl dylib la dll
; do
16961 if test -r "$ac_dir/libX11.$ac_extension"; then
16962 ac_x_libraries
=$ac_dir
16968 rm -f core conftest.err conftest.
$ac_objext \
16969 conftest
$ac_exeext conftest.
$ac_ext
16970 fi # $ac_x_libraries = no
16972 case $ac_x_includes,$ac_x_libraries in #(
16973 no
,* |
*,no |
*\'*)
16974 # Didn't find X, or a directory has "'" in its name.
16975 ac_cv_have_x
="have_x=no";; #(
16977 # Record where we found X for the cache.
16978 ac_cv_have_x
="have_x=yes\
16979 ac_x_includes='$ac_x_includes'\
16980 ac_x_libraries='$ac_x_libraries'"
16986 eval "$ac_cv_have_x"
16989 if test "$have_x" != yes; then
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
16991 $as_echo "$have_x" >&6; }
16994 # If each of the values was on the command line, it overrides each guess.
16995 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
16996 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
16997 # Update the cache value to reflect the command line values.
16998 ac_cv_have_x
="have_x=yes\
16999 ac_x_includes='$x_includes'\
17000 ac_x_libraries='$x_libraries'"
17001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
17002 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
17006 # Unlike the sim directory, whether a simulator is linked is controlled by
17007 # presence of a gdb_sim definition in the target configure.tgt entry.
17008 # This code just checks for a few cases where we'd like to ignore those
17009 # definitions, even when they're present in the '.mt' file. These cases
17010 # are when --disable-sim is specified, or if the simulator directory is
17011 # not part of the source tree.
17013 # Check whether --enable-sim was given.
17014 if test "${enable_sim+set}" = set; then :
17015 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
17016 echo "enableval = ${enableval}";
17017 case "${enableval}" in
17018 yes) ignore_sim
=false
;;
17019 no
) ignore_sim
=true
;;
17020 *) ignore_sim
=false
;;
17027 if test ! -d "${srcdir}/../sim"; then
17033 if test "${ignore_sim}" = "false"; then
17034 if test x
"${gdb_sim}" != x
; then
17036 SIM_OBS
="remote-sim.o"
17038 $as_echo "#define WITH_SIM 1" >>confdefs.h
17041 # Some tdep code should only be compiled in when the ppc sim is
17042 # built. PR sim/13418.
17046 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
17066 # List of host floatformats.
17068 cat >>confdefs.h
<<_ACEOF
17069 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
17073 cat >>confdefs.h
<<_ACEOF
17074 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
17078 cat >>confdefs.h
<<_ACEOF
17079 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
17083 # target_subdir is used by the testsuite to find the target libraries.
17085 if test "${host}" != "${target}"; then
17086 target_subdir
="${target_alias}/"
17090 # Import nat definitions.
17091 nat_makefile_frag
=/dev
/null
17092 if test "${gdb_native}" = "yes"; then
17093 .
${srcdir}/configure.nat
17094 nativefile
=$NAT_FILE
17107 if test x
"${gdb_osabi}" != x
; then
17109 cat >>confdefs.h
<<_ACEOF
17110 #define GDB_OSABI_DEFAULT $gdb_osabi
17115 # Enable multi-ice-gdb-server.
17116 # Check whether --enable-multi-ice was given.
17117 if test "${enable_multi_ice+set}" = set; then :
17118 enableval
=$enable_multi_ice; case $enableval in
17121 *) as_fn_error $?
"bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
17125 if test "x$enable_multi_ice" = xyes
; then
17126 subdirs
="$subdirs multi-ice"
17130 # Check whether --enable-gdbserver was given.
17131 if test "${enable_gdbserver+set}" = set; then :
17132 enableval
=$enable_gdbserver; case "${enableval}" in
17134 *) as_fn_error $?
"bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
17137 enable_gdbserver
=auto
17141 # We only build gdbserver automatically in a native configuration, and
17142 # only if the user did not explicitly disable its build.
17143 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
17144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
17145 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
17146 if test "x$build_gdbserver" = xyes
; then
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17148 $as_echo "yes" >&6; }
17149 subdirs
="$subdirs gdbserver"
17151 gdbserver_build_enabled
=yes
17153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17154 $as_echo "no" >&6; }
17158 # If the user explicitly request the gdbserver to be built, verify that
17159 # we were in fact able to enable it.
17160 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
17161 as_fn_error $?
"Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
17164 # Check for babeltrace and babeltrace-ctf
17166 # Check whether --with-babeltrace was given.
17167 if test "${with_babeltrace+set}" = set; then :
17168 withval
=$with_babeltrace;
17170 with_babeltrace
=auto
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
17174 $as_echo_n "checking whether to use babeltrace... " >&6; }
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
17176 $as_echo "$with_babeltrace" >&6; }
17178 if test "x$with_babeltrace" = "xno"; then
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
17180 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
17182 # Append -Werror to CFLAGS so that configure can catch the warning
17183 # "assignment from incompatible pointer type", which is related to
17184 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
17185 # in GDB, while babeltrace 1.0.3 is broken.
17186 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
17187 # safe to save and restore CFLAGS here.
17188 saved_CFLAGS
=$CFLAGS
17189 CFLAGS
="$CFLAGS -Werror"
17200 acl_save_prefix
="$prefix"
17201 prefix
="$acl_final_prefix"
17202 acl_save_exec_prefix
="$exec_prefix"
17203 exec_prefix
="$acl_final_exec_prefix"
17205 eval additional_includedir
=\"$includedir\"
17206 eval additional_libdir
=\"$libdir\"
17208 exec_prefix
="$acl_save_exec_prefix"
17209 prefix
="$acl_save_prefix"
17212 # Check whether --with-libbabeltrace-prefix was given.
17213 if test "${with_libbabeltrace_prefix+set}" = set; then :
17214 withval
=$with_libbabeltrace_prefix;
17215 if test "X$withval" = "Xno"; then
17218 if test "X$withval" = "X"; then
17220 acl_save_prefix
="$prefix"
17221 prefix
="$acl_final_prefix"
17222 acl_save_exec_prefix
="$exec_prefix"
17223 exec_prefix
="$acl_final_exec_prefix"
17225 eval additional_includedir
=\"$includedir\"
17226 eval additional_libdir
=\"$libdir\"
17228 exec_prefix
="$acl_save_exec_prefix"
17229 prefix
="$acl_save_prefix"
17232 additional_includedir
="$withval/include"
17233 additional_libdir
="$withval/lib"
17244 names_already_handled
=
17245 names_next_round
='babeltrace babeltrace-ctf'
17246 while test -n "$names_next_round"; do
17247 names_this_round
="$names_next_round"
17249 for name
in $names_this_round; do
17251 for n
in $names_already_handled; do
17252 if test "$n" = "$name"; then
17253 already_handled
=yes
17257 if test -z "$already_handled"; then
17258 names_already_handled
="$names_already_handled $name"
17259 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17260 eval value
=\"\
$HAVE_LIB$uppername\"
17261 if test -n "$value"; then
17262 if test "$value" = yes; then
17263 eval value
=\"\
$LIB$uppername\"
17264 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
17265 eval value
=\"\
$LTLIB$uppername\"
17266 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
17275 if test $use_additional = yes; then
17276 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17277 found_dir
="$additional_libdir"
17278 found_so
="$additional_libdir/lib$name.$shlibext"
17279 if test -f "$additional_libdir/lib$name.la"; then
17280 found_la
="$additional_libdir/lib$name.la"
17283 if test -f "$additional_libdir/lib$name.$libext"; then
17284 found_dir
="$additional_libdir"
17285 found_a
="$additional_libdir/lib$name.$libext"
17286 if test -f "$additional_libdir/lib$name.la"; then
17287 found_la
="$additional_libdir/lib$name.la"
17292 if test "X$found_dir" = "X"; then
17293 for x
in $LDFLAGS $LTLIBBABELTRACE; do
17295 acl_save_prefix
="$prefix"
17296 prefix
="$acl_final_prefix"
17297 acl_save_exec_prefix
="$exec_prefix"
17298 exec_prefix
="$acl_final_exec_prefix"
17300 exec_prefix
="$acl_save_exec_prefix"
17301 prefix
="$acl_save_prefix"
17305 dir
=`echo "X$x" | sed -e 's/^X-L//'`
17306 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17308 found_so
="$dir/lib$name.$shlibext"
17309 if test -f "$dir/lib$name.la"; then
17310 found_la
="$dir/lib$name.la"
17313 if test -f "$dir/lib$name.$libext"; then
17315 found_a
="$dir/lib$name.$libext"
17316 if test -f "$dir/lib$name.la"; then
17317 found_la
="$dir/lib$name.la"
17323 if test "X$found_dir" != "X"; then
17328 if test "X$found_dir" != "X"; then
17329 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
17330 if test "X$found_so" != "X"; then
17331 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
17332 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17335 for x
in $ltrpathdirs; do
17336 if test "X$x" = "X$found_dir"; then
17341 if test -z "$haveit"; then
17342 ltrpathdirs
="$ltrpathdirs $found_dir"
17344 if test "$hardcode_direct" = yes; then
17345 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17347 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
17348 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17350 for x
in $rpathdirs; do
17351 if test "X$x" = "X$found_dir"; then
17356 if test -z "$haveit"; then
17357 rpathdirs
="$rpathdirs $found_dir"
17361 for x
in $LDFLAGS $LIBBABELTRACE; do
17363 acl_save_prefix
="$prefix"
17364 prefix
="$acl_final_prefix"
17365 acl_save_exec_prefix
="$exec_prefix"
17366 exec_prefix
="$acl_final_exec_prefix"
17368 exec_prefix
="$acl_save_exec_prefix"
17369 prefix
="$acl_save_prefix"
17371 if test "X$x" = "X-L$found_dir"; then
17376 if test -z "$haveit"; then
17377 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
17379 if test "$hardcode_minus_L" != no
; then
17380 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17382 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
17388 if test "X$found_a" != "X"; then
17389 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
17391 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
17394 additional_includedir
=
17395 case "$found_dir" in
17397 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17398 additional_includedir
="$basedir/include"
17401 if test "X$additional_includedir" != "X"; then
17402 if test "X$additional_includedir" != "X/usr/include"; then
17404 if test "X$additional_includedir" = "X/usr/local/include"; then
17405 if test -n "$GCC"; then
17407 linux
*) haveit
=yes;;
17411 if test -z "$haveit"; then
17412 for x
in $CPPFLAGS $INCBABELTRACE; do
17414 acl_save_prefix
="$prefix"
17415 prefix
="$acl_final_prefix"
17416 acl_save_exec_prefix
="$exec_prefix"
17417 exec_prefix
="$acl_final_exec_prefix"
17419 exec_prefix
="$acl_save_exec_prefix"
17420 prefix
="$acl_save_prefix"
17422 if test "X$x" = "X-I$additional_includedir"; then
17427 if test -z "$haveit"; then
17428 if test -d "$additional_includedir"; then
17429 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
17435 if test -n "$found_la"; then
17436 save_libdir
="$libdir"
17437 case "$found_la" in
17438 */* |
*\\*) .
"$found_la" ;;
17439 *) .
"./$found_la" ;;
17441 libdir
="$save_libdir"
17442 for dep
in $dependency_libs; do
17445 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
17446 if test "X$additional_libdir" != "X/usr/lib"; then
17448 if test "X$additional_libdir" = "X/usr/local/lib"; then
17449 if test -n "$GCC"; then
17451 linux
*) haveit
=yes;;
17455 if test -z "$haveit"; then
17457 for x
in $LDFLAGS $LIBBABELTRACE; do
17459 acl_save_prefix
="$prefix"
17460 prefix
="$acl_final_prefix"
17461 acl_save_exec_prefix
="$exec_prefix"
17462 exec_prefix
="$acl_final_exec_prefix"
17464 exec_prefix
="$acl_save_exec_prefix"
17465 prefix
="$acl_save_prefix"
17467 if test "X$x" = "X-L$additional_libdir"; then
17472 if test -z "$haveit"; then
17473 if test -d "$additional_libdir"; then
17474 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
17478 for x
in $LDFLAGS $LTLIBBABELTRACE; do
17480 acl_save_prefix
="$prefix"
17481 prefix
="$acl_final_prefix"
17482 acl_save_exec_prefix
="$exec_prefix"
17483 exec_prefix
="$acl_final_exec_prefix"
17485 exec_prefix
="$acl_save_exec_prefix"
17486 prefix
="$acl_save_prefix"
17488 if test "X$x" = "X-L$additional_libdir"; then
17493 if test -z "$haveit"; then
17494 if test -d "$additional_libdir"; then
17495 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
17502 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
17503 if test "$enable_rpath" != no
; then
17505 for x
in $rpathdirs; do
17506 if test "X$x" = "X$dir"; then
17511 if test -z "$haveit"; then
17512 rpathdirs
="$rpathdirs $dir"
17515 for x
in $ltrpathdirs; do
17516 if test "X$x" = "X$dir"; then
17521 if test -z "$haveit"; then
17522 ltrpathdirs
="$ltrpathdirs $dir"
17527 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17530 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17533 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
17534 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
17540 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
17541 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
17547 if test "X$rpathdirs" != "X"; then
17548 if test -n "$hardcode_libdir_separator"; then
17550 for found_dir
in $rpathdirs; do
17551 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17553 acl_save_libdir
="$libdir"
17555 eval flag
=\"$hardcode_libdir_flag_spec\"
17556 libdir
="$acl_save_libdir"
17557 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
17559 for found_dir
in $rpathdirs; do
17560 acl_save_libdir
="$libdir"
17561 libdir
="$found_dir"
17562 eval flag
=\"$hardcode_libdir_flag_spec\"
17563 libdir
="$acl_save_libdir"
17564 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
17568 if test "X$ltrpathdirs" != "X"; then
17569 for found_dir
in $ltrpathdirs; do
17570 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
17575 ac_save_CPPFLAGS
="$CPPFLAGS"
17577 for element
in $INCBABELTRACE; do
17579 for x
in $CPPFLAGS; do
17581 acl_save_prefix
="$prefix"
17582 prefix
="$acl_final_prefix"
17583 acl_save_exec_prefix
="$exec_prefix"
17584 exec_prefix
="$acl_final_exec_prefix"
17586 exec_prefix
="$acl_save_exec_prefix"
17587 prefix
="$acl_save_prefix"
17589 if test "X$x" = "X$element"; then
17594 if test -z "$haveit"; then
17595 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
17601 $as_echo_n "checking for libbabeltrace... " >&6; }
17602 if ${ac_cv_libbabeltrace+:} false
; then :
17603 $as_echo_n "(cached) " >&6
17606 ac_save_LIBS
="$LIBS"
17607 LIBS
="$LIBS $LIBBABELTRACE"
17608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17609 /* end confdefs.h. */
17610 #include <babeltrace/babeltrace.h>
17611 #include <babeltrace/ctf/events.h>
17612 #include <babeltrace/ctf/iterator.h>
17616 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
17617 struct bt_ctf_event *event = NULL;
17618 const struct bt_definition *scope;
17620 pos->type = BT_SEEK_BEGIN;
17621 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
17622 scope = bt_ctf_get_top_level_scope (event,
17623 BT_STREAM_EVENT_HEADER);
17624 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
17630 if ac_fn_c_try_link
"$LINENO"; then :
17631 ac_cv_libbabeltrace
=yes
17633 ac_cv_libbabeltrace
=no
17635 rm -f core conftest.err conftest.
$ac_objext \
17636 conftest
$ac_exeext conftest.
$ac_ext
17637 LIBS
="$ac_save_LIBS"
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
17641 $as_echo "$ac_cv_libbabeltrace" >&6; }
17642 if test "$ac_cv_libbabeltrace" = yes; then
17643 HAVE_LIBBABELTRACE
=yes
17645 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
17647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
17648 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
17650 $as_echo "$LIBBABELTRACE" >&6; }
17652 HAVE_LIBBABELTRACE
=no
17653 CPPFLAGS
="$ac_save_CPPFLAGS"
17663 CFLAGS
=$saved_CFLAGS
17665 if test "$HAVE_LIBBABELTRACE" != yes; then
17666 if test "$with_babeltrace" = yes; then
17667 as_fn_error $?
"babeltrace is missing or unusable" "$LINENO" 5
17669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
17670 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
17675 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
17682 if test "${nativefile}" != ""; then
17683 case "${nativefile}" in
17684 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
17685 * ) GDB_NM_FILE
="${nativefile}"
17687 files
="${files} ${GDB_NM_FILE}"
17688 links
="${links} nm.h"
17690 cat >>confdefs.h
<<_ACEOF
17691 #define GDB_NM_FILE "${GDB_NM_FILE}"
17697 for ac_prog
in xsltproc
17699 # Extract the first word of "$ac_prog", so it can be a program name with args.
17700 set dummy
$ac_prog; ac_word
=$2
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17702 $as_echo_n "checking for $ac_word... " >&6; }
17703 if ${ac_cv_path_XSLTPROC+:} false
; then :
17704 $as_echo_n "(cached) " >&6
17708 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
17711 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17712 for as_dir
in $PATH
17715 test -z "$as_dir" && as_dir
=.
17716 for ac_exec_ext
in '' $ac_executable_extensions; do
17717 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
17718 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
17719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17729 XSLTPROC
=$ac_cv_path_XSLTPROC
17730 if test -n "$XSLTPROC"; then
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
17732 $as_echo "$XSLTPROC" >&6; }
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17735 $as_echo "no" >&6; }
17739 test -n "$XSLTPROC" && break
17741 test -n "$XSLTPROC" || XSLTPROC
="missing"
17743 if test "x$USE_MAINTAINER_MODE" = xyes
; then
17744 if test "${XSLTPROC}" = missing
; then
17745 as_fn_error $?
"unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
17750 ac_sources
="$files"
17752 while test -n "$ac_sources"; do
17753 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
17754 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
17755 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
17757 ac_config_links
="$ac_config_links $ac_config_links_1"
17763 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
17766 if $development; then
17768 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
17770 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_UNITTESTS_OBS) common/selftest.o selftest-arch.o"
17771 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_UNITTESTS_SRCS) common/selftest.c selftest-arch.c"
17775 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
17776 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
17777 if test "x$GDB_TRANSFORM_NAME" = x
; then
17778 GDB_TRANSFORM_NAME
=gdb
17783 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
17784 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
17785 if test "x$GCORE_TRANSFORM_NAME" = x
; then
17786 GCORE_TRANSFORM_NAME
=gcore
17790 ac_config_files
="$ac_config_files gcore"
17792 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"
17795 cat >confcache
<<\_ACEOF
17796 # This file is a shell script that caches the results of configure
17797 # tests run on this system so they can be shared between configure
17798 # scripts and configure runs, see configure's option --config-cache.
17799 # It is not useful on other systems. If it contains results you don't
17800 # want to keep, you may remove or edit it.
17802 # config.status only pays attention to the cache file if you give it
17803 # the --recheck option to rerun configure.
17805 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17806 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17807 # following values.
17811 # The following way of writing the cache mishandles newlines in values,
17812 # but we know of no workaround that is simple, portable, and efficient.
17813 # So, we kill variables containing newlines.
17814 # Ultrix sh set writes to stderr and can't be redirected directly,
17815 # and sets the high bit in the cache file unless we assign to the vars.
17817 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17818 eval ac_val
=\$
$ac_var
17822 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17823 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17826 _ | IFS | as_nl
) ;; #(
17827 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
17828 *) { eval $ac_var=; unset $ac_var;} ;;
17834 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17835 *${as_nl}ac_space
=\
*)
17836 # `set' does not quote correctly, so add quotes: double-quote
17837 # substitution turns \\\\ into \\, and sed turns \\ into \.
17840 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17843 # `set' quotes correctly as required by POSIX, so do not add quotes.
17844 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17853 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17855 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17857 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17858 if test -w "$cache_file"; then
17859 if test "x$cache_file" != "x/dev/null"; then
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17861 $as_echo "$as_me: updating cache $cache_file" >&6;}
17862 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
17863 cat confcache
>"$cache_file"
17865 case $cache_file in #(
17867 mv -f confcache
"$cache_file"$$
&&
17868 mv -f "$cache_file"$$
"$cache_file" ;; #(
17870 mv -f confcache
"$cache_file" ;;
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17876 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17881 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17882 # Let make expand exec_prefix.
17883 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17885 DEFS
=-DHAVE_CONFIG_H
17890 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17891 # 1. Remove the extension, and $U if already installed.
17892 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
17893 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
17894 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17895 # will be set to the directory where LIBOBJS objects are built.
17896 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17897 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
17899 LIBOBJS
=$ac_libobjs
17901 LTLIBOBJS
=$ac_ltlibobjs
17904 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17905 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
17906 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17908 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
17909 as_fn_error $?
"conditional \"HAVE_PYTHON\" was never defined.
17910 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17912 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
17913 as_fn_error $?
"conditional \"HAVE_GUILE\" was never defined.
17914 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17918 : "${CONFIG_STATUS=./config.status}"
17920 ac_clean_files_save
=$ac_clean_files
17921 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17923 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17925 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17927 # Generated by $as_me.
17928 # Run this file to recreate the current configuration.
17929 # Compiler output produced by configure, useful for debugging
17930 # configure, is in config.log if it exists.
17933 ac_cs_recheck=false
17936 SHELL=\${CONFIG_SHELL-$SHELL}
17939 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
17940 ## -------------------- ##
17941 ## M4sh Initialization. ##
17942 ## -------------------- ##
17944 # Be more Bourne compatible
17945 DUALCASE
=1; export DUALCASE
# for MKS sh
17946 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
17949 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17950 # is contrary to our usage. Disable this feature.
17951 alias -g '${1+"$@"}'='"$@"'
17952 setopt NO_GLOB_SUBST
17954 case `(set -o) 2>/dev/null` in #(
17966 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17967 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17968 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17969 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17970 # Prefer a ksh shell builtin over an external printf program on Solaris,
17971 # but without wasting forks for bash or zsh.
17972 if test -z "$BASH_VERSION$ZSH_VERSION" \
17973 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17974 as_echo='print
-r --'
17975 as_echo_n='print
-rn --'
17976 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17977 as_echo='printf %s
\n'
17978 as_echo_n='printf %s
'
17980 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17981 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17982 as_echo_n='/usr
/ucb
/echo -n'
17984 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17985 as_echo_n_body='eval
17989 expr "X$arg" : "X\\(.*\\)$as_nl";
17990 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17992 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17994 export as_echo_n_body
17995 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17997 export as_echo_body
17998 as_echo='sh
-c $as_echo_body as_echo
'
18001 # The user is always right.
18002 if test "${PATH_SEPARATOR+set}" != set; then
18004 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18005 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18012 # We need space, tab and new line, in precisely that order. Quoting is
18013 # there to prevent editors from complaining about space-tab.
18014 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18015 # splitting by setting IFS to empty value.)
18018 # Find who we are. Look in the path if we contain no directory separator.
18021 *[\\/]* ) as_myself=$0 ;;
18022 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18023 for as_dir in $PATH
18026 test -z "$as_dir" && as_dir=.
18027 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18033 # We did not find ourselves, most probably we were run as `sh COMMAND'
18034 # in which case we are not to be found in the path.
18035 if test "x$as_myself" = x
; then
18038 if test ! -f "$as_myself"; then
18039 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18043 # Unset variables that we do not need and which cause bugs (e.g. in
18044 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18045 # suppresses any "Segmentation fault" message there. '((' could
18046 # trigger a bug in pdksh 5.2.14.
18047 for as_var
in BASH_ENV ENV MAIL MAILPATH
18048 do eval test x\
${$as_var+set} = xset \
18049 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
18062 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
18065 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18066 # ----------------------------------------
18067 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18068 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18069 # script with STATUS, using 1 if that was 0.
18072 as_status
=$1; test $as_status -eq 0 && as_status
=1
18074 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
18075 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18077 $as_echo "$as_me: error: $2" >&2
18078 as_fn_exit
$as_status
18082 # as_fn_set_status STATUS
18083 # -----------------------
18084 # Set $? to STATUS, without forking.
18085 as_fn_set_status
()
18088 } # as_fn_set_status
18090 # as_fn_exit STATUS
18091 # -----------------
18092 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18096 as_fn_set_status
$1
18102 # Portably unset VAR.
18105 { eval $1=; unset $1;}
18107 as_unset
=as_fn_unset
18108 # as_fn_append VAR VALUE
18109 # ----------------------
18110 # Append the text in VALUE to the end of the definition contained in VAR. Take
18111 # advantage of any shell optimizations that allow amortized linear growth over
18112 # repeated appends, instead of the typical quadratic growth present in naive
18114 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
18115 eval 'as_fn_append ()
18126 # as_fn_arith ARG...
18127 # ------------------
18128 # Perform arithmetic evaluation on the ARGs, and store the result in the
18129 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18130 # must be portable across $(()) and expr.
18131 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
18132 eval 'as_fn_arith ()
18139 as_val
=`expr "$@" || test $? -eq 1`
18144 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
18145 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
18151 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18152 as_basename
=basename
18157 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
18163 as_me
=`$as_basename -- "$0" ||
18164 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18165 X"$0" : 'X\(//\)$' \| \
18166 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18168 sed '/^.*\/\([^/][^/]*\)\/*$/{
18182 # Avoid depending upon Character Ranges.
18183 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18184 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18185 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18186 as_cr_digits
='0123456789'
18187 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18189 ECHO_C
= ECHO_N
= ECHO_T
=
18190 case `echo -n x` in #(((((
18192 case `echo 'xy\c'` in
18193 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
18195 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
18202 rm -f conf$$ conf$$.exe conf$$.
file
18203 if test -d conf$$.dir
; then
18204 rm -f conf$$.dir
/conf$$.
file
18207 mkdir conf$$.dir
2>/dev
/null
18209 if (echo >conf$$.
file) 2>/dev
/null
; then
18210 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18212 # ... but there are two gotchas:
18213 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18214 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18215 # In both cases, we have to default to `cp -pR'.
18216 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
18218 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18226 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
18227 rmdir conf$$.dir
2>/dev
/null
18232 # Create "$as_dir" as a directory, including parents if necessary.
18237 -*) as_dir
=.
/$as_dir;;
18239 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
18243 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18244 *) as_qdir
=$as_dir;;
18246 as_dirs
="'$as_qdir' $as_dirs"
18247 as_dir
=`$as_dirname -- "$as_dir" ||
18248 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18249 X"$as_dir" : 'X\(//\)[^/]' \| \
18250 X"$as_dir" : 'X\(//\)$' \| \
18251 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18252 $as_echo X"$as_dir" |
18253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18257 /^X\(\/\/\)[^/].*/{
18270 test -d "$as_dir" && break
18272 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
18273 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
18277 if mkdir
-p .
2>/dev
/null
; then
18278 as_mkdir_p
='mkdir -p "$as_dir"'
18280 test -d .
/-p && rmdir .
/-p
18285 # as_fn_executable_p FILE
18286 # -----------------------
18287 # Test if FILE is an executable regular file.
18288 as_fn_executable_p
()
18290 test -f "$1" && test -x "$1"
18291 } # as_fn_executable_p
18292 as_test_x
='test -x'
18293 as_executable_p
=as_fn_executable_p
18295 # Sed expression to map a string onto a valid CPP name.
18296 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18298 # Sed expression to map a string onto a valid variable name.
18299 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18303 ## ----------------------------------- ##
18304 ## Main body of $CONFIG_STATUS script. ##
18305 ## ----------------------------------- ##
18307 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
18309 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18310 # Save the log message, to keep $0 and so on meaningful, and to
18311 # report actual input values of CONFIG_FILES etc. instead of their
18312 # values after options handling.
18314 This file was extended by $as_me, which was
18315 generated by GNU Autoconf 2.69. Invocation command line was
18317 CONFIG_FILES = $CONFIG_FILES
18318 CONFIG_HEADERS = $CONFIG_HEADERS
18319 CONFIG_LINKS = $CONFIG_LINKS
18320 CONFIG_COMMANDS = $CONFIG_COMMANDS
18323 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18328 case $ac_config_files in *"
18329 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
18332 case $ac_config_headers in *"
18333 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
18337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18338 # Files that config.status was made for.
18339 config_files="$ac_config_files"
18340 config_headers="$ac_config_headers"
18341 config_links="$ac_config_links"
18342 config_commands="$ac_config_commands"
18346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18348 \`$as_me' instantiates files and other configuration actions
18349 from templates according to the current configuration. Unless the files
18350 and actions are specified as TAGs, all are instantiated by default.
18352 Usage: $0 [OPTION]... [TAG]...
18354 -h, --help print this help, then exit
18355 -V, --version print version number and configuration settings, then exit
18356 --config print configuration, then exit
18357 -q, --quiet, --silent
18358 do not print progress messages
18359 -d, --debug don't remove temporary files
18360 --recheck update $as_me by reconfiguring in the same conditions
18361 --file=FILE[:TEMPLATE]
18362 instantiate the configuration file FILE
18363 --header=FILE[:TEMPLATE]
18364 instantiate the configuration header FILE
18366 Configuration files:
18369 Configuration headers:
18372 Configuration links:
18375 Configuration commands:
18378 Report bugs to the package provider."
18381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18382 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18385 configured by $0, generated by GNU Autoconf 2.69,
18386 with options \\"\$ac_cs_config\\"
18388 Copyright (C) 2012 Free Software Foundation, Inc.
18389 This config.status script is free software; the Free Software Foundation
18390 gives unlimited permission to copy, distribute and modify it."
18396 test -n "\$AWK" || AWK=awk
18399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18400 # The default lists apply if the user does not specify any file.
18406 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18407 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
18411 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18423 # Handling of the options.
18424 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18426 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
18427 $as_echo "$ac_cs_version"; exit ;;
18428 --config |
--confi |
--conf |
--con |
--co |
--c )
18429 $as_echo "$ac_cs_config"; exit ;;
18430 --debug |
--debu |
--deb |
--de |
--d |
-d )
18432 --file |
--fil |
--fi |
--f )
18435 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18436 '') as_fn_error $?
"missing file argument" ;;
18438 as_fn_append CONFIG_FILES
" '$ac_optarg'"
18439 ac_need_defaults
=false
;;
18440 --header |
--heade |
--head |
--hea )
18443 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18445 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
18446 ac_need_defaults
=false
;;
18448 # Conflict between --help and --header
18449 as_fn_error $?
"ambiguous option: \`$1'
18450 Try \`$0 --help' for more information.";;
18451 --help |
--hel |
-h )
18452 $as_echo "$ac_cs_usage"; exit ;;
18453 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18454 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18457 # This is an error.
18458 -*) as_fn_error $?
"unrecognized option: \`$1'
18459 Try \`$0 --help' for more information." ;;
18461 *) as_fn_append ac_config_targets
" $1"
18462 ac_need_defaults
=false
;;
18468 ac_configure_extra_args
=
18470 if $ac_cs_silent; then
18472 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18477 if \$ac_cs_recheck; then
18478 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18480 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18481 CONFIG_SHELL='$SHELL'
18482 export CONFIG_SHELL
18487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18491 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18492 ## Running $as_me. ##
18498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18502 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
18506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18508 # Handling of arguments.
18509 for ac_config_target
in $ac_config_targets
18511 case $ac_config_target in
18512 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
18513 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
18514 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
18515 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
18516 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
18517 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18518 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
18519 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
18520 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
18522 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18527 # If the user did not use the arguments to specify the items to instantiate,
18528 # then the envvar interface is used. Set only those that are not.
18529 # We use the long form for the default assignment because of an extremely
18530 # bizarre bug on SunOS 4.1.3.
18531 if $ac_need_defaults; then
18532 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18533 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18534 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
18535 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18538 # Have a temporary directory for convenience. Make it in the build tree
18539 # simply because there is no reason against having it here, and in addition,
18540 # creating and moving files from /tmp can sometimes cause problems.
18541 # Hook for its removal unless debugging.
18542 # Note that there is a small window in which the directory will not be cleaned:
18543 # after its creation but before its name has been assigned to `$tmp'.
18547 trap 'exit_status=$?
18548 : "${ac_tmp:=$tmp}"
18549 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18551 trap 'as_fn_exit 1' 1 2 13 15
18553 # Create a (secure) tmp directory for tmp files.
18556 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18560 tmp
=.
/conf$$
-$RANDOM
18561 (umask 077 && mkdir
"$tmp")
18562 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
18565 # Set up the scripts for CONFIG_FILES section.
18566 # No need to generate them if there are no CONFIG_FILES.
18567 # This happens for instance with `./config.status config.h'.
18568 if test -n "$CONFIG_FILES"; then
18570 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
18571 ac_cs_awk_getline
=:
18572 ac_cs_awk_pipe_init
=
18573 ac_cs_awk_read_file
='
18574 while ((getline aline < (F[key])) > 0)
18577 ac_cs_awk_pipe_fini
=
18579 ac_cs_awk_getline
=false
18580 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
18581 ac_cs_awk_read_file
='
18583 print "cat " F[key] " &&"
18584 '$ac_cs_awk_pipe_init
18585 # The final `:' finishes the AND list.
18586 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
18588 ac_cr
=`echo X | tr X '\015'`
18589 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18590 # But we know of no other shell where ac_cr would be empty at this
18591 # point, so we can use a bashism as a fallback.
18592 if test "x$ac_cr" = x
; then
18593 eval ac_cr
=\$
\'\\r
\'
18595 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18596 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18599 ac_cs_awk_cr
=$ac_cr
18602 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18605 # Create commands to substitute file output variables.
18607 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18608 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
18609 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
18612 } >conf$
$files.sh
&&
18613 . .
/conf$
$files.sh ||
18614 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
18615 rm -f conf$
$files.sh
18618 echo "cat >conf$$subs.awk <<_ACEOF" &&
18619 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18621 } >conf$$subs.sh ||
18622 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18623 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18625 for ac_last_try in false false false false false :; do
18626 . ./conf$$subs.sh ||
18627 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18629 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18630 if test $ac_delim_n = $ac_delim_num; then
18632 elif $ac_last_try; then
18633 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18635 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18638 rm -f conf$$subs.sh
18640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18641 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
18645 s/^/S["/; s
/!.
*/"]=/
18655 s/\(.\{148\}\)..*/\1/
18657 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18662 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18669 s/\(.\{148\}\)..*/\1/
18671 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18675 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18680 ' <conf$$subs.awk | sed '
18685 ' >>$CONFIG_STATUS || ac_write_fail=1
18686 rm -f conf$$subs.awk
18687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18689 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
18690 for (key in S) S_is_set[key] = 1
18692 \$ac_cs_awk_pipe_init
18696 nfields = split(line, field, "@
")
18698 len = length(field[1])
18699 for (i = 2; i < nfields; i++) {
18701 keylen = length(key)
18702 if (S_is_set[key]) {
18704 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18705 len += length(value) + length(field[++i])
18710 if (nfields == 3 && !substed) {
18712 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18713 \$ac_cs_awk_read_file
18719 \$ac_cs_awk_pipe_fini
18722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18723 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18724 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18727 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
18728 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
18731 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18732 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
18733 # trailing colons and then remove the whole line if VPATH becomes empty
18734 # (actually we leave an empty line to preserve line numbers).
18735 if test "x
$srcdir" = x.; then
18736 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18755 fi # test -n "$CONFIG_FILES"
18757 # Set up the scripts for CONFIG_HEADERS section.
18758 # No need to generate them if there are no CONFIG_HEADERS.
18759 # This happens for instance with `./config.status Makefile'.
18760 if test -n "$CONFIG_HEADERS"; then
18761 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
18765 # Transform confdefs.h into an awk script `defines.awk', embedded as
18766 # here-document in config.status, that substitutes the proper values into
18767 # config.h.in to produce config.h.
18769 # Create a delimiter string that does not exist in confdefs.h, to ease
18770 # handling of long lines.
18772 for ac_last_try in false false :; do
18773 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
18774 if test -z "$ac_tt"; then
18776 elif $ac_last_try; then
18777 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
18779 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18783 # For the awk script, D is an array of macro values keyed by name,
18784 # likewise P contains macro parameters if any. Preserve backslash
18785 # newline sequences.
18787 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18789 s/.\{148\}/&'"$ac_delim"'/g
18792 s/^[ ]*#[ ]*define[ ][ ]*/ /
18799 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18801 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18805 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18806 D["\
1"]=" \
3\\\\\\n
"\\/p
18808 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18813 s/.\{148\}/&'"$ac_delim"'/g
18818 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18821 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18823 ' <confdefs.h | sed '
18824 s/'"$ac_delim"'/"\\\
18825 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18828 for (key in D) D_is_set[key] = 1
18831 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18833 split(line, arg, " ")
18834 if (arg[1] == "#") {
18838 defundef
= substr
(arg
[1], 2)
18841 split(mac1
, mac2
, "(") #)
18843 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18844 if (D_is_set
[macro
]) {
18845 # Preserve the white space surrounding the "#".
18846 print prefix
"define", macro P
[macro
] D
[macro
]
18849 # Replace #undef with comments. This is necessary, for example,
18850 # in the case of _POSIX_SOURCE, which is predefined and required
18851 # on some systems where configure will not decide to define it.
18852 if (defundef
== "undef") {
18853 print
"/*", prefix defundef
, macro
, "*/"
18861 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18862 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
18863 fi # test -n "$CONFIG_HEADERS"
18866 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18871 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18873 case $ac_mode$ac_tag in
18875 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
18876 :[FH
]-) ac_tag
=-:-;;
18877 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18894 -) ac_f
="$ac_tmp/stdin";;
18895 *) # Look for the file first in the build tree, then in the source tree
18896 # (if the path is not absolute). The absolute path cannot be DOS-style,
18897 # because $ac_f cannot contain `:'.
18901 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18903 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18905 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18906 as_fn_append ac_file_inputs
" '$ac_f'"
18909 # Let's still pretend it is `configure' which instantiates (i.e., don't
18910 # use $as_me), people would be surprised to read:
18911 # /* config.h. Generated by config.status. */
18912 configure_input
='Generated from '`
18913 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18915 if test x
"$ac_file" != x-
; then
18916 configure_input
="$ac_file. $configure_input"
18917 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18918 $as_echo "$as_me: creating $ac_file" >&6;}
18920 # Neutralize special characters interpreted by sed in replacement strings.
18921 case $configure_input in #(
18922 *\
&* |
*\|
* |
*\\* )
18923 ac_sed_conf_input
=`$as_echo "$configure_input" |
18924 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18925 *) ac_sed_conf_input
=$configure_input;;
18929 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
18930 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
18935 ac_dir
=`$as_dirname -- "$ac_file" ||
18936 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18937 X"$ac_file" : 'X\(//\)[^/]' \| \
18938 X"$ac_file" : 'X\(//\)$' \| \
18939 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18940 $as_echo X"$ac_file" |
18941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18945 /^X\(\/\/\)[^/].*/{
18958 as_dir
="$ac_dir"; as_fn_mkdir_p
18962 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18964 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18965 # A ".." for each directory in $ac_dir_suffix.
18966 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18967 case $ac_top_builddir_sub in
18968 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18969 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18972 ac_abs_top_builddir
=$ac_pwd
18973 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18974 # for backward compatibility:
18975 ac_top_builddir
=$ac_top_build_prefix
18978 .
) # We are building in place.
18980 ac_top_srcdir
=$ac_top_builddir_sub
18981 ac_abs_top_srcdir
=$ac_pwd ;;
18982 [\\/]* | ?
:[\\/]* ) # Absolute name.
18983 ac_srcdir
=$srcdir$ac_dir_suffix;
18984 ac_top_srcdir
=$srcdir
18985 ac_abs_top_srcdir
=$srcdir ;;
18986 *) # Relative name.
18987 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18988 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18989 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18991 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
19001 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
19002 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
19006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19007 # If the template does not know about datarootdir, expand it.
19008 # FIXME: This hack should be removed a few years after 2.60.
19009 ac_datarootdir_hack
=; ac_datarootdir_seen
=
19020 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19021 *datarootdir
*) ac_datarootdir_seen
=yes;;
19022 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
19023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19024 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19027 ac_datarootdir_hack='
19028 s&@datadir@&$datadir&g
19029 s&@docdir@&$docdir&g
19030 s&@infodir@&$infodir&g
19031 s&@localedir@&$localedir&g
19032 s&@mandir@&$mandir&g
19033 s&\\\${datarootdir}&$datarootdir&g' ;;
19037 # Neutralize VPATH when `$srcdir' = `.'.
19038 # Shell code in configure.ac might set extrasub.
19039 # FIXME: do we really want to maintain this feature?
19040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19041 ac_sed_extra="$ac_vpsub
19044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19046 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19047 s|@configure_input@|
$ac_sed_conf_input|
;t t
19048 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
19049 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
19050 s
&@srcdir@
&$ac_srcdir&;t t
19051 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
19052 s
&@top_srcdir@
&$ac_top_srcdir&;t t
19053 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
19054 s
&@builddir@
&$ac_builddir&;t t
19055 s
&@abs_builddir@
&$ac_abs_builddir&;t t
19056 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
19057 s
&@INSTALL@
&$ac_INSTALL&;t t
19058 $ac_datarootdir_hack
19060 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19061 if $ac_cs_awk_getline; then
19062 $AWK -f "$ac_tmp/subs.
awk"
19064 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
19066 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
19068 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19069 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
19070 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19071 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
19073 which seems to be undefined. Please make sure it is defined" >&5
19074 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
19075 which seems to be undefined. Please make sure it is defined" >&2;}
19077 rm -f "$ac_tmp/stdin"
19079 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19080 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19082 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19088 if test x"$ac_file" != x-; then
19090 $as_echo "/* $configure_input */" \
19091 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19092 } >"$ac_tmp/config.h" \
19093 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19094 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19095 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19096 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19099 mv "$ac_tmp/config.h" "$ac_file" \
19100 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19103 $as_echo "/* $configure_input */" \
19104 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19105 || as_fn_error $? "could not create -" "$LINENO" 5
19113 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
19116 # Prefer the file from the source tree if names are identical.
19117 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
19118 ac_source=$srcdir/$ac_source
19121 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
19122 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
19124 if test ! -r "$ac_source"; then
19125 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
19129 # Try a relative symlink, then a hard link, then a copy.
19131 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
19132 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
19134 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
19135 ln "$ac_source" "$ac_file" 2>/dev/null ||
19136 cp -p "$ac_source" "$ac_file" ||
19137 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
19140 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19141 $as_echo "$as_me: executing $ac_file commands" >&6;}
19146 case $ac_file$ac_mode in
19147 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
19148 "gcore":F) chmod +x gcore ;;
19150 case x$CONFIG_HEADERS in
19151 xconfig.h:config.in)
19156 case x$CONFIG_HEADERS in
19157 xconfig.h:config.in)
19162 case x$CONFIG_HEADERS in
19163 xconfig.h:config.in)
19167 "data-directory/Makefile":F)
19168 case x$CONFIG_HEADERS in
19169 xconfig.h:config.in)
19180 ac_clean_files=$ac_clean_files_save
19182 test $ac_write_fail = 0 ||
19183 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19186 # configure is writing to config.log, and then calls config.status.
19187 # config.status does its own redirection, appending to config.log.
19188 # Unfortunately, on DOS this fails, as config.log is still kept open
19189 # by configure, so config.status won't be able to
write to it
; its
19190 # output is simply discarded. So we exec the FD to /dev/null,
19191 # effectively closing config.log, so it can be properly (re)opened and
19192 # appended to by config.status. When coming back to configure, we
19193 # need to make the FD available again.
19194 if test "$no_create" != yes; then
19196 ac_config_status_args
=
19197 test "$silent" = yes &&
19198 ac_config_status_args
="$ac_config_status_args --quiet"
19200 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19202 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19203 # would make configure fail if this is the last instruction.
19204 $ac_cs_success || as_fn_exit
1
19208 # CONFIG_SUBDIRS section.
19210 if test "$no_recursion" != yes; then
19212 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19213 # so they do not pile up.
19214 ac_sub_configure_args
=
19216 eval "set x $ac_configure_args"
19220 if test -n "$ac_prev"; then
19225 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
19226 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
19227 ac_prev
=cache_file
;;
19228 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
19229 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
19232 --config-cache |
-C)
19234 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
19236 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
19238 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
19240 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
19242 --disable-option-checking)
19246 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19248 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
19252 # Always prepend --prefix to ensure using the same prefix
19253 # in subdir configurations.
19254 ac_arg
="--prefix=$prefix"
19256 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19258 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
19261 if test "$silent" = yes; then
19262 ac_sub_configure_args
="--silent $ac_sub_configure_args"
19265 # Always prepend --disable-option-checking to silence warnings, since
19266 # different subdirs can have different --enable and --with options.
19267 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
19270 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
19272 # Do not complain, so a configure script can configure whichever
19273 # parts of a large source tree are present.
19274 test -d "$srcdir/$ac_dir" ||
continue
19276 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19277 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19278 $as_echo "$ac_msg" >&6
19279 as_dir
="$ac_dir"; as_fn_mkdir_p
19283 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19285 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19286 # A ".." for each directory in $ac_dir_suffix.
19287 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19288 case $ac_top_builddir_sub in
19289 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19290 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
19293 ac_abs_top_builddir
=$ac_pwd
19294 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
19295 # for backward compatibility:
19296 ac_top_builddir
=$ac_top_build_prefix
19299 .
) # We are building in place.
19301 ac_top_srcdir
=$ac_top_builddir_sub
19302 ac_abs_top_srcdir
=$ac_pwd ;;
19303 [\\/]* | ?
:[\\/]* ) # Absolute name.
19304 ac_srcdir
=$srcdir$ac_dir_suffix;
19305 ac_top_srcdir
=$srcdir
19306 ac_abs_top_srcdir
=$srcdir ;;
19307 *) # Relative name.
19308 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
19309 ac_top_srcdir
=$ac_top_build_prefix$srcdir
19310 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
19312 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
19317 # Check for guested configure; otherwise get Cygnus style configure.
19318 if test -f "$ac_srcdir/configure.gnu"; then
19319 ac_sub_configure
=$ac_srcdir/configure.gnu
19320 elif test -f "$ac_srcdir/configure"; then
19321 ac_sub_configure
=$ac_srcdir/configure
19322 elif test -f "$ac_srcdir/configure.in"; then
19323 # This should be Cygnus configure.
19324 ac_sub_configure
=$ac_aux_dir/configure
19326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19327 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19331 # The recursion is here.
19332 if test -n "$ac_sub_configure"; then
19333 # Make the cache file name correct relative to the subdirectory.
19334 case $cache_file in
19335 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
19336 *) # Relative name.
19337 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
19340 { $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
19341 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19342 # The eval makes quoting arguments work.
19343 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19344 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19345 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19351 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19353 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}