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
727 READLINE_TEXI_INCFLAG
751 HAVE_NATIVE_GCORE_TARGET
778 INSTALL_STRIP_PROGRAM
807 MAINTAINER_MODE_FALSE
836 program_transform_name
847 ac_subst_files
='nat_makefile_frag'
849 enable_option_checking
850 enable_maintainer_mode
853 with_separate_debug_dir
855 with_relocated_sources
857 with_auto_load_safe_path
889 enable_build_warnings
890 enable_gdb_build_warnings
900 with_libbabeltrace_prefix
903 ac_precious_vars
='build_alias
920 ac_subdirs_all
='testsuite
924 # Initialize some variables set by options.
926 ac_init_version
=false
927 ac_unrecognized_opts
=
929 # The variables have the same names as the options, with
930 # dashes changed to underlines.
938 program_transform_name
=s
,x
,x
,
946 # Installation directory options.
947 # These are left unexpanded so users can "make install exec_prefix=/foo"
948 # and all the variables that are supposed to be based on exec_prefix
949 # by default will actually change.
950 # Use braces instead of parens because sh, perl, etc. also accept them.
951 # (The list follows the same order as the GNU Coding Standards.)
952 bindir
='${exec_prefix}/bin'
953 sbindir
='${exec_prefix}/sbin'
954 libexecdir
='${exec_prefix}/libexec'
955 datarootdir
='${prefix}/share'
956 datadir
='${datarootdir}'
957 sysconfdir
='${prefix}/etc'
958 sharedstatedir
='${prefix}/com'
959 localstatedir
='${prefix}/var'
960 includedir
='${prefix}/include'
961 oldincludedir
='/usr/include'
962 docdir
='${datarootdir}/doc/${PACKAGE}'
963 infodir
='${datarootdir}/info'
968 libdir
='${exec_prefix}/lib'
969 localedir
='${datarootdir}/locale'
970 mandir
='${datarootdir}/man'
976 # If the previous option needs an argument, assign it.
977 if test -n "$ac_prev"; then
978 eval $ac_prev=\
$ac_option
984 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
989 # Accept the important Cygnus configure options, so we can diagnose typos.
991 case $ac_dashdash$ac_option in
995 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
997 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1000 -build |
--build |
--buil |
--bui |
--bu)
1001 ac_prev
=build_alias
;;
1002 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1003 build_alias
=$ac_optarg ;;
1005 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1006 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1007 ac_prev
=cache_file
;;
1008 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1009 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1010 cache_file
=$ac_optarg ;;
1012 --config-cache |
-C)
1013 cache_file
=config.cache
;;
1015 -datadir |
--datadir |
--datadi |
--datad)
1017 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1018 datadir
=$ac_optarg ;;
1020 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1021 |
--dataroo |
--dataro |
--datar)
1022 ac_prev
=datarootdir
;;
1023 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1024 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1025 datarootdir
=$ac_optarg ;;
1027 -disable-* |
--disable-*)
1028 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1029 # Reject names that are not valid shell variable names.
1030 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1031 as_fn_error $?
"invalid feature name: $ac_useropt"
1032 ac_useropt_orig
=$ac_useropt
1033 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1034 case $ac_user_opts in
1036 "enable_
$ac_useropt"
1038 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1039 ac_unrecognized_sep
=', ';;
1041 eval enable_
$ac_useropt=no
;;
1043 -docdir |
--docdir |
--docdi |
--doc |
--do)
1045 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1046 docdir
=$ac_optarg ;;
1048 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1050 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1051 dvidir
=$ac_optarg ;;
1053 -enable-* |
--enable-*)
1054 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1057 as_fn_error $?
"invalid feature name: $ac_useropt"
1058 ac_useropt_orig
=$ac_useropt
1059 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1060 case $ac_user_opts in
1062 "enable_
$ac_useropt"
1064 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1065 ac_unrecognized_sep
=', ';;
1067 eval enable_
$ac_useropt=\
$ac_optarg ;;
1069 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1070 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1071 |
--exec |
--exe |
--ex)
1072 ac_prev
=exec_prefix
;;
1073 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1074 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1075 |
--exec=* |
--exe=* |
--ex=*)
1076 exec_prefix
=$ac_optarg ;;
1078 -gas |
--gas |
--ga |
--g)
1079 # Obsolete; use --with-gas.
1082 -help |
--help |
--hel |
--he |
-h)
1083 ac_init_help
=long
;;
1084 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1085 ac_init_help
=recursive
;;
1086 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1087 ac_init_help
=short
;;
1089 -host |
--host |
--hos |
--ho)
1090 ac_prev
=host_alias
;;
1091 -host=* |
--host=* |
--hos=* |
--ho=*)
1092 host_alias
=$ac_optarg ;;
1094 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1096 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1098 htmldir
=$ac_optarg ;;
1100 -includedir |
--includedir |
--includedi |
--included |
--include \
1101 |
--includ |
--inclu |
--incl |
--inc)
1102 ac_prev
=includedir
;;
1103 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1104 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1105 includedir
=$ac_optarg ;;
1107 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1109 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1110 infodir
=$ac_optarg ;;
1112 -libdir |
--libdir |
--libdi |
--libd)
1114 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1115 libdir
=$ac_optarg ;;
1117 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1118 |
--libexe |
--libex |
--libe)
1119 ac_prev
=libexecdir
;;
1120 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1121 |
--libexe=* |
--libex=* |
--libe=*)
1122 libexecdir
=$ac_optarg ;;
1124 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1125 ac_prev
=localedir
;;
1126 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1127 localedir
=$ac_optarg ;;
1129 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1130 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1131 ac_prev
=localstatedir
;;
1132 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1133 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1134 localstatedir
=$ac_optarg ;;
1136 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1138 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1139 mandir
=$ac_optarg ;;
1141 -nfp |
--nfp |
--nf)
1142 # Obsolete; use --without-fp.
1145 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1146 |
--no-cr |
--no-c |
-n)
1149 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1150 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1153 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1154 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1155 |
--oldin |
--oldi |
--old |
--ol |
--o)
1156 ac_prev
=oldincludedir
;;
1157 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1158 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1159 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1160 oldincludedir
=$ac_optarg ;;
1162 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1164 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1165 prefix
=$ac_optarg ;;
1167 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1168 |
--program-pre |
--program-pr |
--program-p)
1169 ac_prev
=program_prefix
;;
1170 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1171 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1172 program_prefix
=$ac_optarg ;;
1174 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1175 |
--program-suf |
--program-su |
--program-s)
1176 ac_prev
=program_suffix
;;
1177 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1178 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1179 program_suffix
=$ac_optarg ;;
1181 -program-transform-name |
--program-transform-name \
1182 |
--program-transform-nam |
--program-transform-na \
1183 |
--program-transform-n |
--program-transform- \
1184 |
--program-transform |
--program-transfor \
1185 |
--program-transfo |
--program-transf \
1186 |
--program-trans |
--program-tran \
1187 |
--progr-tra |
--program-tr |
--program-t)
1188 ac_prev
=program_transform_name
;;
1189 -program-transform-name=* |
--program-transform-name=* \
1190 |
--program-transform-nam=* |
--program-transform-na=* \
1191 |
--program-transform-n=* |
--program-transform-=* \
1192 |
--program-transform=* |
--program-transfor=* \
1193 |
--program-transfo=* |
--program-transf=* \
1194 |
--program-trans=* |
--program-tran=* \
1195 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1196 program_transform_name
=$ac_optarg ;;
1198 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1200 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1201 pdfdir
=$ac_optarg ;;
1203 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1205 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1208 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1209 |
-silent |
--silent |
--silen |
--sile |
--sil)
1212 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1214 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1216 sbindir
=$ac_optarg ;;
1218 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1219 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1220 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1222 ac_prev
=sharedstatedir
;;
1223 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1224 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1225 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1227 sharedstatedir
=$ac_optarg ;;
1229 -site |
--site |
--sit)
1231 -site=* |
--site=* |
--sit=*)
1234 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1236 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1237 srcdir
=$ac_optarg ;;
1239 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1240 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1241 ac_prev
=sysconfdir
;;
1242 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1243 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1244 sysconfdir
=$ac_optarg ;;
1246 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1247 ac_prev
=target_alias
;;
1248 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1249 target_alias
=$ac_optarg ;;
1251 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1254 -version |
--version |
--versio |
--versi |
--vers |
-V)
1255 ac_init_version
=: ;;
1258 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1259 # Reject names that are not valid shell variable names.
1260 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1261 as_fn_error $?
"invalid package name: $ac_useropt"
1262 ac_useropt_orig
=$ac_useropt
1263 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1264 case $ac_user_opts in
1268 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1269 ac_unrecognized_sep
=', ';;
1271 eval with_
$ac_useropt=\
$ac_optarg ;;
1273 -without-* |
--without-*)
1274 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1275 # Reject names that are not valid shell variable names.
1276 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1277 as_fn_error $?
"invalid package name: $ac_useropt"
1278 ac_useropt_orig
=$ac_useropt
1279 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280 case $ac_user_opts in
1284 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1285 ac_unrecognized_sep
=', ';;
1287 eval with_
$ac_useropt=no
;;
1290 # Obsolete; use --with-x.
1293 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1294 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1295 ac_prev
=x_includes
;;
1296 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1297 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1298 x_includes
=$ac_optarg ;;
1300 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1301 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1302 ac_prev
=x_libraries
;;
1303 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1304 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1305 x_libraries
=$ac_optarg ;;
1307 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1308 Try \`$0 --help' for more information"
1312 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1313 # Reject names that are not valid shell variable names.
1314 case $ac_envvar in #(
1315 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1316 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1318 eval $ac_envvar=\
$ac_optarg
1319 export $ac_envvar ;;
1322 # FIXME: should be removed in autoconf 3.0.
1323 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1324 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1325 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1326 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1332 if test -n "$ac_prev"; then
1333 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1334 as_fn_error $?
"missing argument to $ac_option"
1337 if test -n "$ac_unrecognized_opts"; then
1338 case $enable_option_checking in
1340 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1341 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1345 # Check all directory arguments for consistency.
1346 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1347 datadir sysconfdir sharedstatedir localstatedir includedir \
1348 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1349 libdir localedir mandir
1351 eval ac_val
=\$
$ac_var
1352 # Remove trailing slashes.
1355 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1356 eval $ac_var=\
$ac_val;;
1358 # Be sure to have absolute directory names.
1360 [\\/$
]* | ?
:[\\/]* ) continue;;
1361 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1363 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1366 # There might be people who depend on the old broken behavior: `$host'
1367 # used to hold the argument of --host etc.
1368 # FIXME: To remove some day.
1371 target
=$target_alias
1373 # FIXME: To remove some day.
1374 if test "x$host_alias" != x
; then
1375 if test "x$build_alias" = x
; then
1376 cross_compiling
=maybe
1377 elif test "x$build_alias" != "x$host_alias"; then
1383 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1385 test "$silent" = yes && exec 6>/dev
/null
1388 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1389 ac_ls_di
=`ls -di .` &&
1390 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1391 as_fn_error $?
"working directory cannot be determined"
1392 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1393 as_fn_error $?
"pwd does not report name of working directory"
1396 # Find the source files, if location was not specified.
1397 if test -z "$srcdir"; then
1398 ac_srcdir_defaulted
=yes
1399 # Try the directory containing this script, then the parent directory.
1400 ac_confdir
=`$as_dirname -- "$as_myself" ||
1401 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1402 X"$as_myself" : 'X\(//\)[^/]' \| \
1403 X"$as_myself" : 'X\(//\)$' \| \
1404 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1405 $as_echo X"$as_myself" |
1406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1424 if test ! -r "$srcdir/$ac_unique_file"; then
1428 ac_srcdir_defaulted
=no
1430 if test ! -r "$srcdir/$ac_unique_file"; then
1431 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1432 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1434 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1436 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1438 # When building in place, set srcdir=.
1439 if test "$ac_abs_confdir" = "$ac_pwd"; then
1442 # Remove unnecessary trailing slashes from srcdir.
1443 # Double slashes in file names in object file debugging info
1444 # mess up M-x gdb in Emacs.
1446 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1448 for ac_var
in $ac_precious_vars; do
1449 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1450 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1451 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1452 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1456 # Report the --help message.
1458 if test "$ac_init_help" = "long"; then
1459 # Omit some internal or obsolete options to make the list less imposing.
1460 # This message is too long to be a string in the A/UX 3.1 sh.
1462 \`configure' configures this package to adapt to many kinds of systems.
1464 Usage: $0 [OPTION]... [VAR=VALUE]...
1466 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1467 VAR=VALUE. See below for descriptions of some of the useful variables.
1469 Defaults for the options are specified in brackets.
1472 -h, --help display this help and exit
1473 --help=short display options specific to this package
1474 --help=recursive display the short help of all the included packages
1475 -V, --version display version information and exit
1476 -q, --quiet, --silent do not print \`checking ...' messages
1477 --cache-file=FILE cache test results in FILE [disabled]
1478 -C, --config-cache alias for \`--cache-file=config.cache'
1479 -n, --no-create do not create output files
1480 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1482 Installation directories:
1483 --prefix=PREFIX install architecture-independent files in PREFIX
1484 [$ac_default_prefix]
1485 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1488 By default, \`make install' will install all the files in
1489 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1490 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1491 for instance \`--prefix=\$HOME'.
1493 For better control, use the options below.
1495 Fine tuning of the installation directories:
1496 --bindir=DIR user executables [EPREFIX/bin]
1497 --sbindir=DIR system admin executables [EPREFIX/sbin]
1498 --libexecdir=DIR program executables [EPREFIX/libexec]
1499 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1500 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1501 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1502 --libdir=DIR object code libraries [EPREFIX/lib]
1503 --includedir=DIR C header files [PREFIX/include]
1504 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1505 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1506 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1507 --infodir=DIR info documentation [DATAROOTDIR/info]
1508 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1509 --mandir=DIR man documentation [DATAROOTDIR/man]
1510 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1511 --htmldir=DIR html documentation [DOCDIR]
1512 --dvidir=DIR dvi documentation [DOCDIR]
1513 --pdfdir=DIR pdf documentation [DOCDIR]
1514 --psdir=DIR ps documentation [DOCDIR]
1520 --program-prefix=PREFIX prepend PREFIX to installed program names
1521 --program-suffix=SUFFIX append SUFFIX to installed program names
1522 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1525 --x-includes=DIR X include files are
in DIR
1526 --x-libraries=DIR X library files are
in DIR
1529 --build=BUILD configure
for building on BUILD
[guessed
]
1530 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1531 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1535 if test -n "$ac_init_help"; then
1540 --disable-option-checking ignore unrecognized
--enable/--with options
1541 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1542 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1543 --enable-maintainer-mode
1544 enable make rules and dependencies not useful
(and
1545 sometimes confusing
) to the casual installer
1546 --enable-plugins Enable support
for plugins
1547 --disable-largefile omit support
for large files
1548 --enable-targets=TARGETS
1549 alternative target configurations
1550 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1551 --disable-gdbmi disable machine-interface
(MI
)
1552 --enable-tui enable full-screen terminal user interface
(TUI
)
1553 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1554 --enable-profiling enable profiling of GDB
1555 --enable-codesign=CERT sign gdb with
'codesign -s CERT'
1556 --disable-rpath do not hardcode runtime library paths
1557 --enable-libmcheck Try linking with
-lmcheck if available
1558 --enable-werror treat compile warnings as errors
1559 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1560 --enable-gdb-build-warnings
1561 enable GDB specific build-time compiler warnings
if
1563 --enable-ubsan enable undefined behavior sanitizer
(auto
/yes
/no
)
1564 --enable-sim link gdb with simulator
1565 --enable-gdbserver automatically build gdbserver
(yes
/no
/auto
, default
1567 --enable-unit-tests Enable the inclusion of unit tests when compiling
1571 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1572 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1573 --with-separate-debug-dir=PATH
1574 look for global separate debug info
in this path
1576 --with-gdb-datadir=PATH
look for global separate data files
in this path
1578 --with-relocated-sources=PATH
1579 automatically relocate this path
for source files
1580 --with-auto-load-dir=PATH
1581 directories from
which to load auto-loaded scripts
1582 [$debugdir:$datadir/auto-load
]
1583 --with-auto-load-safe-path=PATH
1584 directories safe to hold auto-loaded files
1585 [--with-auto-load-dir]
1586 --without-auto-load-safe-path
1587 do not restrict auto-loaded files locations
1588 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1589 --with-curses use the curses library instead of the termcap
1591 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1592 --with-bugurl=URL Direct users to URL to report a bug
1593 --with-system-zlib use installed libz
1594 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1595 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1596 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1597 --with-iconv-bin=PATH specify where to find the iconv program
1598 --with-system-readline use installed readline library
1599 --with-jit-reader-dir=PATH
1600 directory to load the JIT readers from
1601 --with-expat include expat support (auto/yes/no)
1602 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1603 --without-libexpat-prefix don't search
for libexpat
in includedir and libdir
1604 --with-mpfr include MPFR support
(auto
/yes
/no
)
1605 --with-libmpfr-prefix[=DIR
] search
for libmpfr
in DIR
/include and DIR
/lib
1606 --without-libmpfr-prefix don
't search for libmpfr in includedir and libdir
1607 --with-python[=PYTHON] include python support
1608 (auto/yes/no/<python-program>)
1609 --with-guile[=GUILE] include guile support
1610 (auto/yes/no/<guile-version>/<pkg-config-program>)
1611 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1612 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1613 --without-libipt-prefix don't search
for libipt
in includedir and libdir
1614 --without-included-regex
1615 don
't use included regex; this is the default on
1616 systems with version 2 of the GNU C library (use
1617 with caution on other system)
1618 --with-sysroot[=DIR] search for usr/lib et al within DIR
1619 --with-system-gdbinit=PATH
1620 automatically load a system-wide gdbinit file
1621 --with-lzma support lzma compression (auto/yes/no)
1622 --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib
1623 --without-liblzma-prefix don't search
for liblzma
in includedir and libdir
1624 --with-tcl directory containing tcl configuration
(tclConfig.sh
)
1625 --with-tk directory containing tk configuration
(tkConfig.sh
)
1626 --with-x use the X Window System
1627 --with-babeltrace include babeltrace support
(auto
/yes
/no
)
1628 --with-libbabeltrace-prefix[=DIR
] search
for libbabeltrace
in DIR
/include and DIR
/lib
1629 --without-libbabeltrace-prefix don
't search for libbabeltrace in includedir and libdir
1631 Some influential environment variables:
1632 CC C compiler command
1633 CFLAGS C compiler flags
1634 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1635 nonstandard directory <lib dir>
1636 LIBS libraries to pass to the linker, e.g. -l<library>
1637 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1638 you have headers in a nonstandard directory <include dir>
1639 CXX C++ compiler command
1640 CXXFLAGS C++ compiler flags
1642 MAKEINFO Parent configure detects if it is of sufficient version.
1644 Parameters for MAKEINFO.
1645 YACC The `Yet Another Compiler Compiler' implementation to use.
1646 Defaults to the first program found out of
: `bison -y', `byacc
',
1648 YFLAGS The list of arguments that will be passed by default to
$YACC.
1649 This
script will default YFLAGS to the empty string to avoid a
1650 default value of
`-d' given by some make applications.
1651 XMKMF Path to xmkmf, Makefile generator for X Window System
1653 Use these variables to override the choices made by `configure
' or to help
1654 it to find libraries and programs with nonstandard names/locations.
1656 Report bugs to the package provider.
1661 if test "$ac_init_help" = "recursive"; then
1662 # If there are subdirs, report their specific --help.
1663 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1664 test -d "$ac_dir" ||
1665 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1670 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1672 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.
[\\/]||
'`
1673 # A ".." for each directory in $ac_dir_suffix.
1674 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|
/[^
\\/]*|
/..|g
;s|
/||
'`
1675 case $ac_top_builddir_sub in
1676 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1677 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1680 ac_abs_top_builddir=$ac_pwd
1681 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1682 # for backward compatibility:
1683 ac_top_builddir=$ac_top_build_prefix
1686 .) # We are building in place.
1688 ac_top_srcdir=$ac_top_builddir_sub
1689 ac_abs_top_srcdir=$ac_pwd ;;
1690 [\\/]* | ?:[\\/]* ) # Absolute name.
1691 ac_srcdir=$srcdir$ac_dir_suffix;
1692 ac_top_srcdir=$srcdir
1693 ac_abs_top_srcdir=$srcdir ;;
1695 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1696 ac_top_srcdir=$ac_top_build_prefix$srcdir
1697 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1699 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1701 cd "$ac_dir" || { ac_status=$?; continue; }
1702 # Check for guested configure.
1703 if test -f "$ac_srcdir/configure.gnu"; then
1705 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1706 elif test -f "$ac_srcdir/configure"; then
1708 $SHELL "$ac_srcdir/configure" --help=recursive
1710 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1712 cd "$ac_pwd" || { ac_status=$?; break; }
1716 test -n "$ac_init_help" && exit $ac_status
1717 if $ac_init_version; then
1720 generated by GNU Autoconf 2.69
1722 Copyright (C) 2012 Free Software Foundation, Inc.
1723 This configure script is free software; the Free Software Foundation
1724 gives unlimited permission to copy, distribute and modify it.
1729 ## ------------------------ ##
1730 ## Autoconf initialization. ##
1731 ## ------------------------ ##
1733 # ac_fn_c_try_compile LINENO
1734 # --------------------------
1735 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1736 ac_fn_c_try_compile ()
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 rm -f conftest.$ac_objext
1740 if { { ac_try="$ac_compile"
1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_compile") 2>conftest.err
1749 if test -s conftest.err; then
1750 grep -v '^
*+' conftest.err >conftest.er1
1751 cat conftest.er1 >&5
1752 mv -f conftest.er1 conftest.err
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; } && {
1756 test -z "$ac_c_werror_flag" ||
1757 test ! -s conftest.err
1758 } && test -s conftest.$ac_objext; then :
1761 $as_echo "$as_me: failed program was:" >&5
1762 sed 's
/^
/|
/' conftest.$ac_ext >&5
1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767 as_fn_set_status $ac_retval
1769 } # ac_fn_c_try_compile
1771 # ac_fn_cxx_try_compile LINENO
1772 # ----------------------------
1773 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1774 ac_fn_cxx_try_compile ()
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 rm -f conftest.$ac_objext
1778 if { { ac_try="$ac_compile"
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_compile") 2>conftest.err
1787 if test -s conftest.err; then
1788 grep -v '^
*+' conftest.err >conftest.er1
1789 cat conftest.er1 >&5
1790 mv -f conftest.er1 conftest.err
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } && {
1794 test -z "$ac_cxx_werror_flag" ||
1795 test ! -s conftest.err
1796 } && test -s conftest.$ac_objext; then :
1799 $as_echo "$as_me: failed program was:" >&5
1800 sed 's
/^
/|
/' conftest.$ac_ext >&5
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805 as_fn_set_status $ac_retval
1807 } # ac_fn_cxx_try_compile
1809 # ac_fn_c_try_cpp LINENO
1810 # ----------------------
1811 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 if { { ac_try="$ac_cpp conftest.$ac_ext"
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1824 if test -s conftest.err; then
1825 grep -v '^
*+' conftest.err >conftest.er1
1826 cat conftest.er1 >&5
1827 mv -f conftest.er1 conftest.err
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } > conftest.i && {
1831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1832 test ! -s conftest.err
1836 $as_echo "$as_me: failed program was:" >&5
1837 sed 's
/^
/|
/' conftest.$ac_ext >&5
1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842 as_fn_set_status $ac_retval
1846 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1847 # -------------------------------------------------------
1848 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1849 # the include files in INCLUDES and setting the cache variable VAR
1851 ac_fn_c_check_header_mongrel ()
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 if eval \${$3+:} false; then :
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1856 $as_echo_n "checking for $2... " >&6; }
1857 if eval \${$3+:} false; then :
1858 $as_echo_n "(cached) " >&6
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862 $as_echo "$ac_res" >&6; }
1864 # Is the header compilable?
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1866 $as_echo_n "checking $2 usability... " >&6; }
1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868 /* end confdefs.h. */
1872 if ac_fn_c_try_compile "$LINENO"; then :
1873 ac_header_compiler=yes
1875 ac_header_compiler=no
1877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1879 $as_echo "$ac_header_compiler" >&6; }
1881 # Is the header present?
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1883 $as_echo_n "checking $2 presence... " >&6; }
1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h. */
1888 if ac_fn_c_try_cpp "$LINENO"; then :
1889 ac_header_preproc=yes
1891 ac_header_preproc=no
1893 rm -f conftest.err conftest.i conftest.$ac_ext
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1895 $as_echo "$ac_header_preproc" >&6; }
1897 # So? What about this header?
1898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1901 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1903 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1907 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1909 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1911 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1913 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1915 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919 $as_echo_n "checking for $2... " >&6; }
1920 if eval \${$3+:} false; then :
1921 $as_echo_n "(cached) " >&6
1923 eval "$3=\$ac_header_compiler"
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927 $as_echo "$ac_res" >&6; }
1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931 } # ac_fn_c_check_header_mongrel
1933 # ac_fn_c_try_run LINENO
1934 # ----------------------
1935 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1936 # that executables *can* be run.
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 if { { ac_try="$ac_link"
1942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1943 *) ac_try_echo=$ac_try;;
1945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1946 $as_echo "$ac_try_echo"; } >&5
1947 (eval "$ac_link") 2>&5
1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950 test $ac_status = 0; } && { ac_try='.
/conftest
$ac_exeext'
1951 { { case "(($ac_try" in
1952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1953 *) ac_try_echo=$ac_try;;
1955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956 $as_echo "$ac_try_echo"; } >&5
1957 (eval "$ac_try") 2>&5
1959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960 test $ac_status = 0; }; }; then :
1963 $as_echo "$as_me: program exited with status $ac_status" >&5
1964 $as_echo "$as_me: failed program was:" >&5
1965 sed 's
/^
/|
/' conftest.$ac_ext >&5
1967 ac_retval=$ac_status
1969 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971 as_fn_set_status $ac_retval
1975 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1976 # -------------------------------------------------------
1977 # Tests whether HEADER exists and can be compiled using the include files in
1978 # INCLUDES, setting the cache variable VAR accordingly.
1979 ac_fn_c_check_header_compile ()
1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1983 $as_echo_n "checking for $2... " >&6; }
1984 if eval \${$3+:} false; then :
1985 $as_echo_n "(cached) " >&6
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1992 if ac_fn_c_try_compile "$LINENO"; then :
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 $as_echo "$ac_res" >&6; }
2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004 } # ac_fn_c_check_header_compile
2006 # ac_fn_c_try_link LINENO
2007 # -----------------------
2008 # Try to link conftest.$ac_ext, and return whether this succeeded.
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 rm -f conftest.$ac_objext conftest$ac_exeext
2013 if { { ac_try="$ac_link"
2015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2016 *) ac_try_echo=$ac_try;;
2018 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2019 $as_echo "$ac_try_echo"; } >&5
2020 (eval "$ac_link") 2>conftest.err
2022 if test -s conftest.err; then
2023 grep -v '^
*+' conftest.err >conftest.er1
2024 cat conftest.er1 >&5
2025 mv -f conftest.er1 conftest.err
2027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2028 test $ac_status = 0; } && {
2029 test -z "$ac_c_werror_flag" ||
2030 test ! -s conftest.err
2031 } && test -s conftest$ac_exeext && {
2032 test "$cross_compiling" = yes ||
2033 test -x conftest$ac_exeext
2037 $as_echo "$as_me: failed program was:" >&5
2038 sed 's
/^
/|
/' conftest.$ac_ext >&5
2042 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2043 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2044 # interfere with the next link command; also delete a directory that is
2045 # left behind by Apple's compiler. We
do this before executing the actions.
2046 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2047 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2048 as_fn_set_status
$ac_retval
2050 } # ac_fn_c_try_link
2052 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2053 # --------------------------------------------
2054 # Tries to find the compile-time value of EXPR in a program that includes
2055 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2057 ac_fn_c_compute_int
()
2059 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2060 if test "$cross_compiling" = yes; then
2061 # Depending upon the size, compute the lo and hi bounds.
2062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2068 static int test_array [1 - 2 * !(($2) >= 0)];
2070 return test_array [0];
2076 if ac_fn_c_try_compile
"$LINENO"; then :
2079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h. */
2085 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2087 return test_array [0];
2093 if ac_fn_c_try_compile
"$LINENO"; then :
2094 ac_hi
=$ac_mid; break
2096 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2097 if test $ac_lo -le $ac_mid; then
2101 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2103 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2112 static int test_array [1 - 2 * !(($2) < 0)];
2114 return test_array [0];
2120 if ac_fn_c_try_compile
"$LINENO"; then :
2123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h. */
2129 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2131 return test_array [0];
2137 if ac_fn_c_try_compile
"$LINENO"; then :
2138 ac_lo
=$ac_mid; break
2140 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2141 if test $ac_mid -le $ac_hi; then
2145 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2147 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2152 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2154 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2155 # Binary search between lo and hi bounds.
2156 while test "x$ac_lo" != "x$ac_hi"; do
2157 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h. */
2164 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2166 return test_array [0];
2172 if ac_fn_c_try_compile
"$LINENO"; then :
2175 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2180 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2187 static long int longval () { return $2; }
2188 static unsigned long int ulongval () { return $2; }
2195 FILE *f = fopen ("conftest.val", "w");
2200 long int i = longval ();
2203 fprintf (f, "%ld", i);
2207 unsigned long int i = ulongval ();
2210 fprintf (f, "%lu", i);
2212 /* Do not output a trailing newline, as this causes \r\n confusion
2213 on some platforms. */
2214 return ferror (f) || fclose (f) != 0;
2220 if ac_fn_c_try_run
"$LINENO"; then :
2221 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2225 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2226 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2230 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2231 as_fn_set_status
$ac_retval
2233 } # ac_fn_c_compute_int
2235 # ac_fn_c_check_func LINENO FUNC VAR
2236 # ----------------------------------
2237 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2238 ac_fn_c_check_func
()
2240 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2242 $as_echo_n "checking for $2... " >&6; }
2243 if eval \
${$3+:} false
; then :
2244 $as_echo_n "(cached) " >&6
2246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h. */
2248 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2250 #define $2 innocuous_$2
2252 /* System header to define __stub macros and hopefully few prototypes,
2253 which can conflict with char $2 (); below.
2254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2255 <limits.h> exists even on freestanding compilers. */
2258 # include <limits.h>
2260 # include <assert.h>
2265 /* Override any GCC internal prototype to avoid an error.
2266 Use char because int might match the return type of a GCC
2267 builtin and then its argument prototype would still apply. */
2272 /* The GNU C library defines this for functions which it implements
2273 to always fail with ENOSYS. Some functions are actually named
2274 something starting with __ and the normal name is an alias. */
2275 #if defined __stub_$2 || defined __stub___$2
2287 if ac_fn_c_try_link
"$LINENO"; then :
2292 rm -f core conftest.err conftest.
$ac_objext \
2293 conftest
$ac_exeext conftest.
$ac_ext
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2297 $as_echo "$ac_res" >&6; }
2298 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2300 } # ac_fn_c_check_func
2302 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2303 # ----------------------------------------------------
2304 # Tries to find if the field MEMBER exists in type AGGR, after including
2305 # INCLUDES, setting cache variable VAR accordingly.
2306 ac_fn_c_check_member
()
2308 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2310 $as_echo_n "checking for $2.$3... " >&6; }
2311 if eval \
${$4+:} false
; then :
2312 $as_echo_n "(cached) " >&6
2314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2315 /* end confdefs.h. */
2327 if ac_fn_c_try_compile
"$LINENO"; then :
2330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h. */
2337 if (sizeof ac_aggr.$3)
2343 if ac_fn_c_try_compile
"$LINENO"; then :
2348 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2350 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2354 $as_echo "$ac_res" >&6; }
2355 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2357 } # ac_fn_c_check_member
2359 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2360 # -------------------------------------------
2361 # Tests whether TYPE exists after having included INCLUDES, setting cache
2362 # variable VAR accordingly.
2363 ac_fn_c_check_type
()
2365 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2367 $as_echo_n "checking for $2... " >&6; }
2368 if eval \
${$3+:} false
; then :
2369 $as_echo_n "(cached) " >&6
2372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2373 /* end confdefs.h. */
2384 if ac_fn_c_try_compile
"$LINENO"; then :
2385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2386 /* end confdefs.h. */
2397 if ac_fn_c_try_compile
"$LINENO"; then :
2402 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2404 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2408 $as_echo "$ac_res" >&6; }
2409 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2411 } # ac_fn_c_check_type
2413 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2414 # ---------------------------------------------
2415 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2417 ac_fn_c_check_decl
()
2419 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2420 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2421 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2423 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2424 if eval \
${$3+:} false
; then :
2425 $as_echo_n "(cached) " >&6
2427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h. */
2433 #ifndef $as_decl_name
2435 (void) $as_decl_use;
2437 (void) $as_decl_name;
2445 if ac_fn_c_try_compile
"$LINENO"; then :
2450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2454 $as_echo "$ac_res" >&6; }
2455 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2457 } # ac_fn_c_check_decl
2459 # ac_fn_cxx_try_link LINENO
2460 # -------------------------
2461 # Try to link conftest.$ac_ext, and return whether this succeeded.
2462 ac_fn_cxx_try_link
()
2464 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2465 rm -f conftest.
$ac_objext conftest
$ac_exeext
2466 if { { ac_try
="$ac_link"
2468 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2469 *) ac_try_echo=$ac_try;;
2471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2472 $as_echo "$ac_try_echo"; } >&5
2473 (eval "$ac_link") 2>conftest.err
2475 if test -s conftest.err; then
2476 grep -v '^ *+' conftest.err >conftest.er1
2477 cat conftest.er1 >&5
2478 mv -f conftest.er1 conftest.err
2480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2481 test $ac_status = 0; } && {
2482 test -z "$ac_cxx_werror_flag" ||
2483 test ! -s conftest.err
2484 } && test -s conftest$ac_exeext && {
2485 test "$cross_compiling" = yes ||
2486 test -x conftest$ac_exeext
2490 $as_echo "$as_me: failed program was:" >&5
2491 sed 's/^/| /' conftest.$ac_ext >&5
2495 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2496 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2497 # interfere with the next link command; also delete a directory that is
2498 # left behind by Apple's compiler. We do this before executing the actions.
2499 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2500 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2501 as_fn_set_status $ac_retval
2503 } # ac_fn_cxx_try_link
2504 cat >config.log <<_ACEOF
2505 This file contains any messages produced by compilers while
2506 running configure, to aid debugging if configure makes a mistake.
2508 It was created by $as_me, which was
2509 generated by GNU Autoconf 2.69. Invocation command line was
2521 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2522 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2523 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2524 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2525 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2527 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2528 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2530 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2531 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2532 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2533 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2534 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2535 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2536 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 test -z "$as_dir" && as_dir=.
2545 $as_echo "PATH: $as_dir"
2561 # Keep a trace of the command line.
2562 # Strip out --no-create and --no-recursion so they do not pile up.
2563 # Strip out --silent because we don't want to record it for future runs.
2564 # Also quote any args containing shell meta-characters.
2565 # Make two passes to allow for proper duplicate-argument suppression.
2569 ac_must_keep_next=false
2575 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2576 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2577 | -silent | --silent | --silen | --sile | --sil)
2580 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2583 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2585 as_fn_append ac_configure_args1 " '$ac_arg'"
2586 if test $ac_must_keep_next = true; then
2587 ac_must_keep_next=false # Got value, back to normal.
2590 *=* | --config-cache | -C | -disable-* | --disable-* \
2591 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2592 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2593 | -with-* | --with-* | -without-* | --without-* | --x)
2594 case "$ac_configure_args0 " in
2595 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2598 -* ) ac_must_keep_next=true ;;
2601 as_fn_append ac_configure_args " '$ac_arg'"
2606 { ac_configure_args0=; unset ac_configure_args0;}
2607 { ac_configure_args1=; unset ac_configure_args1;}
2609 # When interrupted or exit'd, cleanup temporary files, and complete
2610 # config.log. We remove comments because anyway the quotes in there
2611 # would cause problems or look ugly.
2612 # WARNING: Use '\'' to represent an apostrophe within the trap.
2613 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2614 trap 'exit_status=$?
2615 # Save into config.log some information that might help in debugging.
2619 $as_echo "## ---------------- ##
2620 ## Cache variables. ##
2621 ## ---------------- ##"
2623 # The following way of writing the cache mishandles newlines in values,
2625 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2626 eval ac_val=\$$ac_var
2630 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2631 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2634 _ | IFS | as_nl) ;; #(
2635 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2636 *) { eval $ac_var=; unset $ac_var;} ;;
2641 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2642 *${as_nl}ac_space=\ *)
2644 "s/'\''/'\''\\\\'\'''\''/g;
2645 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2648 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2655 $as_echo "## ----------------- ##
2656 ## Output variables. ##
2657 ## ----------------- ##"
2659 for ac_var in $ac_subst_vars
2661 eval ac_val=\$$ac_var
2663 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2665 $as_echo "$ac_var='\''$ac_val'\''"
2669 if test -n "$ac_subst_files"; then
2670 $as_echo "## ------------------- ##
2671 ## File substitutions. ##
2672 ## ------------------- ##"
2674 for ac_var in $ac_subst_files
2676 eval ac_val=\$$ac_var
2678 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2680 $as_echo "$ac_var='\''$ac_val'\''"
2685 if test -s confdefs.h; then
2686 $as_echo "## ----------- ##
2693 test "$ac_signal" != 0 &&
2694 $as_echo "$as_me: caught signal $ac_signal"
2695 $as_echo "$as_me: exit $exit_status"
2697 rm -f core *.core core.conftest.* &&
2698 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2701 for ac_signal in 1 2 13 15; do
2702 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2706 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2707 rm -f -r conftest* confdefs.h
2709 $as_echo "/* confdefs.h */" > confdefs.h
2711 # Predefined preprocessor variables.
2713 cat >>confdefs.h <<_ACEOF
2714 #define PACKAGE_NAME "$PACKAGE_NAME"
2717 cat >>confdefs.h <<_ACEOF
2718 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2721 cat >>confdefs.h <<_ACEOF
2722 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2725 cat >>confdefs.h <<_ACEOF
2726 #define PACKAGE_STRING "$PACKAGE_STRING"
2729 cat >>confdefs.h <<_ACEOF
2730 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2733 cat >>confdefs.h <<_ACEOF
2734 #define PACKAGE_URL "$PACKAGE_URL"
2738 # Let the site file select an alternate cache file if it wants to.
2739 # Prefer an explicitly selected file to automatically selected ones.
2742 if test -n "$CONFIG_SITE"; then
2743 # We do not want a PATH search for config.site.
2744 case $CONFIG_SITE in #((
2745 -*) ac_site_file1=./$CONFIG_SITE;;
2746 */*) ac_site_file1=$CONFIG_SITE;;
2747 *) ac_site_file1=./$CONFIG_SITE;;
2749 elif test "x$prefix" != xNONE; then
2750 ac_site_file1=$prefix/share/config.site
2751 ac_site_file2=$prefix/etc/config.site
2753 ac_site_file1=$ac_default_prefix/share/config.site
2754 ac_site_file2=$ac_default_prefix/etc/config.site
2756 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2758 test "x$ac_site_file" = xNONE && continue
2759 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2761 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2762 sed 's/^/| /' "$ac_site_file" >&5
2764 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2766 as_fn_error $? "failed to load site
script $ac_site_file
2767 See \
`config.log' for more details" "$LINENO" 5; }
2771 if test -r "$cache_file"; then
2772 # Some versions of bash will fail to source /dev/null (special files
2773 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2774 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2776 $as_echo "$as_me: loading cache $cache_file" >&6;}
2778 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2779 *) . "./$cache_file";;
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2784 $as_echo "$as_me: creating cache $cache_file" >&6;}
2788 as_fn_append ac_header_list " stdlib.h"
2789 as_fn_append ac_header_list " unistd.h"
2790 as_fn_append ac_header_list " sys/param.h"
2791 # Check that the precious variables saved in the cache have kept the same
2793 ac_cache_corrupted=false
2794 for ac_var in $ac_precious_vars; do
2795 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2796 eval ac_new_set=\$ac_env_${ac_var}_set
2797 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2798 eval ac_new_val=\$ac_env_${ac_var}_value
2799 case $ac_old_set,$ac_new_set in
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2802 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2803 ac_cache_corrupted=: ;;
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2806 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2807 ac_cache_corrupted=: ;;
2810 if test "x$ac_old_val" != "x$ac_new_val"; then
2811 # differences in whitespace do not lead to failure.
2812 ac_old_val_w=`echo x
$ac_old_val`
2813 ac_new_val_w=`echo x
$ac_new_val`
2814 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2816 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2817 ac_cache_corrupted=:
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2820 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2821 eval $ac_var=\$ac_old_val
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2824 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2826 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2829 # Pass precious variables to config.status.
2830 if test "$ac_new_set" = set; then
2832 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2833 *) ac_arg=$ac_var=$ac_new_val ;;
2835 case " $ac_configure_args " in
2836 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2837 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2841 if $ac_cache_corrupted; then
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2845 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2846 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2848 ## -------------------- ##
2849 ## Main body of script. ##
2850 ## -------------------- ##
2853 ac_cpp='$CPP $CPPFLAGS'
2854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2862 ac_config_headers="$ac_config_headers config.h:config.in"
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2866 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2867 # Check whether --enable-maintainer-mode was given.
2868 if test "${enable_maintainer_mode+set}" = set; then :
2869 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2871 USE_MAINTAINER_MODE=no
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2875 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2876 if test $USE_MAINTAINER_MODE = yes; then
2877 MAINTAINER_MODE_TRUE=
2878 MAINTAINER_MODE_FALSE='#'
2880 MAINTAINER_MODE_TRUE='#'
2881 MAINTAINER_MODE_FALSE=
2884 MAINT=$MAINTAINER_MODE_TRUE
2888 # Set the 'development' global.
2889 . $srcdir/../bfd/development.sh
2892 ac_cpp='$CPP $CPPFLAGS'
2893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2896 if test -n "$ac_tool_prefix"; then
2897 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2898 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2900 $as_echo_n "checking for $ac_word... " >&6; }
2901 if ${ac_cv_prog_CC+:} false; then :
2902 $as_echo_n "(cached) " >&6
2904 if test -n "$CC"; then
2905 ac_cv_prog_CC="$CC" # Let the user override the test.
2907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 test -z "$as_dir" && as_dir=.
2912 for ac_exec_ext in '' $ac_executable_extensions; do
2913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2914 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2925 if test -n "$CC"; then
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2927 $as_echo "$CC" >&6; }
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930 $as_echo "no" >&6; }
2935 if test -z "$ac_cv_prog_CC"; then
2937 # Extract the first word of "gcc", so it can be a program name with args.
2938 set dummy gcc; ac_word=$2
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940 $as_echo_n "checking for $ac_word... " >&6; }
2941 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2942 $as_echo_n "(cached) " >&6
2944 if test -n "$ac_ct_CC"; then
2945 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 test -z "$as_dir" && as_dir=.
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2954 ac_cv_prog_ac_ct_CC="gcc"
2955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2964 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2965 if test -n "$ac_ct_CC"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2967 $as_echo "$ac_ct_CC" >&6; }
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2973 if test "x$ac_ct_CC" = x; then
2976 case $cross_compiling:$ac_tool_warned in
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2980 ac_tool_warned=yes ;;
2988 if test -z "$CC"; then
2989 if test -n "$ac_tool_prefix"; then
2990 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2991 set dummy ${ac_tool_prefix}cc; ac_word=$2
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993 $as_echo_n "checking for $ac_word... " >&6; }
2994 if ${ac_cv_prog_CC+:} false; then :
2995 $as_echo_n "(cached) " >&6
2997 if test -n "$CC"; then
2998 ac_cv_prog_CC="$CC" # Let the user override the test.
3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004 test -z "$as_dir" && as_dir=.
3005 for ac_exec_ext in '' $ac_executable_extensions; do
3006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3007 ac_cv_prog_CC="${ac_tool_prefix}cc"
3008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3018 if test -n "$CC"; then
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3020 $as_echo "$CC" >&6; }
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023 $as_echo "no" >&6; }
3029 if test -z "$CC"; then
3030 # Extract the first word of "cc", so it can be a program name with args.
3031 set dummy cc; ac_word=$2
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033 $as_echo_n "checking for $ac_word... " >&6; }
3034 if ${ac_cv_prog_CC+:} false; then :
3035 $as_echo_n "(cached) " >&6
3037 if test -n "$CC"; then
3038 ac_cv_prog_CC="$CC" # Let the user override the test.
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045 test -z "$as_dir" && as_dir=.
3046 for ac_exec_ext in '' $ac_executable_extensions; do
3047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3048 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3049 ac_prog_rejected=yes
3053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3060 if test $ac_prog_rejected = yes; then
3061 # We found a bogon in the path, so make sure we never use it.
3062 set dummy $ac_cv_prog_CC
3064 if test $# != 0; then
3065 # We chose a different compiler from the bogus one.
3066 # However, it has the same basename, so the bogon will be chosen
3067 # first if we set CC to just the basename; use the full file name.
3069 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3075 if test -n "$CC"; then
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3077 $as_echo "$CC" >&6; }
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080 $as_echo "no" >&6; }
3085 if test -z "$CC"; then
3086 if test -n "$ac_tool_prefix"; then
3087 for ac_prog in cl.exe
3089 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3090 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3092 $as_echo_n "checking for $ac_word... " >&6; }
3093 if ${ac_cv_prog_CC+:} false; then :
3094 $as_echo_n "(cached) " >&6
3096 if test -n "$CC"; then
3097 ac_cv_prog_CC="$CC" # Let the user override the test.
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103 test -z "$as_dir" && as_dir=.
3104 for ac_exec_ext in '' $ac_executable_extensions; do
3105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3106 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3117 if test -n "$CC"; then
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3119 $as_echo "$CC" >&6; }
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122 $as_echo "no" >&6; }
3126 test -n "$CC" && break
3129 if test -z "$CC"; then
3131 for ac_prog in cl.exe
3133 # Extract the first word of "$ac_prog", so it can be a program name with args.
3134 set dummy $ac_prog; ac_word=$2
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3136 $as_echo_n "checking for $ac_word... " >&6; }
3137 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3138 $as_echo_n "(cached) " >&6
3140 if test -n "$ac_ct_CC"; then
3141 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 test -z "$as_dir" && as_dir=.
3148 for ac_exec_ext in '' $ac_executable_extensions; do
3149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3150 ac_cv_prog_ac_ct_CC="$ac_prog"
3151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3160 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3161 if test -n "$ac_ct_CC"; then
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3163 $as_echo "$ac_ct_CC" >&6; }
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166 $as_echo "no" >&6; }
3170 test -n "$ac_ct_CC" && break
3173 if test "x$ac_ct_CC" = x; then
3176 case $cross_compiling:$ac_tool_warned in
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3180 ac_tool_warned=yes ;;
3189 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3191 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3192 See \
`config.log' for more details" "$LINENO" 5; }
3194 # Provide some information about the compiler.
3195 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3198 for ac_option in --version -v -V -qversion; do
3199 { { ac_try="$ac_compiler $ac_option >&5"
3201 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3202 *) ac_try_echo
=$ac_try;;
3204 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3205 $as_echo "$ac_try_echo"; } >&5
3206 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3208 if test -s conftest.err
; then
3210 ... rest of stderr output deleted ...
3211 10q' conftest.err
>conftest.er1
3212 cat conftest.er1
>&5
3214 rm -f conftest.er1 conftest.err
3215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3216 test $ac_status = 0; }
3219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3220 /* end confdefs.h. */
3230 ac_clean_files_save
=$ac_clean_files
3231 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3232 # Try to create an executable without -o first, disregard a.out.
3233 # It will help us diagnose broken compilers, and finding out an intuition
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3236 $as_echo_n "checking whether the C compiler works... " >&6; }
3237 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3239 # The possible output files:
3240 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3243 for ac_file
in $ac_files
3246 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3247 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3252 if { { ac_try
="$ac_link_default"
3254 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3258 $as_echo "$ac_try_echo"; } >&5
3259 (eval "$ac_link_default") 2>&5
3261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3262 test $ac_status = 0; }; then :
3263 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3264 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3265 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3266 # so that the user can short-circuit this test for compilers unknown to
3268 for ac_file in $ac_files ''
3270 test -f "$ac_file" || continue
3272 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3275 # We found the default executable, but exeext='' is most
3279 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3281 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3283 # We set ac_cv_exeext here because the later test for it is not
3284 # safe: cross compilers may not add the suffix if given an `-o'
3285 # argument, so we may need to know it at that point already.
3286 # Even if this section looks crufty: it has the advantage of
3293 test "$ac_cv_exeext" = no && ac_cv_exeext=
3298 if test -z "$ac_file"; then :
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300 $as_echo "no" >&6; }
3301 $as_echo "$as_me: failed program was:" >&5
3302 sed 's
/^
/|
/' conftest.$ac_ext >&5
3304 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3305 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3306 as_fn_error 77 "C compiler cannot create executables
3307 See \`config.log
' for more details" "$LINENO" 5; }
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3310 $as_echo "yes" >&6; }
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3313 $as_echo_n "checking for C compiler default output file name... " >&6; }
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3315 $as_echo "$ac_file" >&6; }
3316 ac_exeext=$ac_cv_exeext
3318 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3319 ac_clean_files=$ac_clean_files_save
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3321 $as_echo_n "checking for suffix of executables... " >&6; }
3322 if { { ac_try="$ac_link"
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3328 $as_echo "$ac_try_echo"; } >&5
3329 (eval "$ac_link") 2>&5
3331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3332 test $ac_status = 0; }; then :
3333 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3334 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3335 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3337 for ac_file
in conftest.exe conftest conftest.
*; do
3338 test -f "$ac_file" ||
continue
3340 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3341 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3349 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3350 See \`config.log' for more details" "$LINENO" 5; }
3352 rm -f conftest conftest
$ac_cv_exeext
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3354 $as_echo "$ac_cv_exeext" >&6; }
3356 rm -f conftest.
$ac_ext
3357 EXEEXT
=$ac_cv_exeext
3359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3360 /* end confdefs.h. */
3365 FILE *f = fopen ("conftest.out", "w");
3366 return ferror (f) || fclose (f) != 0;
3372 ac_clean_files
="$ac_clean_files conftest.out"
3373 # Check that the compiler produces executables we can run. If not, either
3374 # the compiler is broken, or we cross compile.
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3376 $as_echo_n "checking whether we are cross compiling... " >&6; }
3377 if test "$cross_compiling" != yes; then
3378 { { ac_try
="$ac_link"
3380 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3383 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3384 $as_echo "$ac_try_echo"; } >&5
3385 (eval "$ac_link") 2>&5
3387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3388 test $ac_status = 0; }
3389 if { ac_try='./conftest$ac_cv_exeext'
3390 { { case "(($ac_try" in
3391 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3392 *) ac_try_echo
=$ac_try;;
3394 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3395 $as_echo "$ac_try_echo"; } >&5
3396 (eval "$ac_try") 2>&5
3398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3399 test $ac_status = 0; }; }; then
3402 if test "$cross_compiling" = maybe
; then
3405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3407 as_fn_error $?
"cannot run C compiled programs.
3408 If you meant to cross compile, use \`--host'.
3409 See \`config.log' for more details" "$LINENO" 5; }
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3414 $as_echo "$cross_compiling" >&6; }
3416 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3417 ac_clean_files
=$ac_clean_files_save
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3419 $as_echo_n "checking for suffix of object files... " >&6; }
3420 if ${ac_cv_objext+:} false
; then :
3421 $as_echo_n "(cached) " >&6
3423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3424 /* end confdefs.h. */
3434 rm -f conftest.o conftest.obj
3435 if { { ac_try
="$ac_compile"
3437 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3438 *) ac_try_echo=$ac_try;;
3440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3441 $as_echo "$ac_try_echo"; } >&5
3442 (eval "$ac_compile") 2>&5
3444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3445 test $ac_status = 0; }; then :
3446 for ac_file in conftest.o conftest.obj conftest.*; do
3447 test -f "$ac_file" || continue;
3449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3450 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3455 $as_echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3460 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3461 See \
`config.log' for more details" "$LINENO" 5; }
3463 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3466 $as_echo "$ac_cv_objext" >&6; }
3467 OBJEXT=$ac_cv_objext
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3470 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3471 if ${ac_cv_c_compiler_gnu+:} false; then :
3472 $as_echo_n "(cached) " >&6
3474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475 /* end confdefs.h. */
3488 if ac_fn_c_try_compile "$LINENO"; then :
3493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3494 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3498 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3499 if test $ac_compiler_gnu = yes; then
3504 ac_test_CFLAGS=${CFLAGS+set}
3505 ac_save_CFLAGS=$CFLAGS
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3507 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3508 if ${ac_cv_prog_cc_g+:} false; then :
3509 $as_echo_n "(cached) " >&6
3511 ac_save_c_werror_flag=$ac_c_werror_flag
3512 ac_c_werror_flag=yes
3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516 /* end confdefs.h. */
3526 if ac_fn_c_try_compile "$LINENO"; then :
3530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531 /* end confdefs.h. */
3541 if ac_fn_c_try_compile "$LINENO"; then :
3544 ac_c_werror_flag=$ac_save_c_werror_flag
3546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547 /* end confdefs.h. */
3557 if ac_fn_c_try_compile "$LINENO"; then :
3560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565 ac_c_werror_flag=$ac_save_c_werror_flag
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3568 $as_echo "$ac_cv_prog_cc_g" >&6; }
3569 if test "$ac_test_CFLAGS" = set; then
3570 CFLAGS=$ac_save_CFLAGS
3571 elif test $ac_cv_prog_cc_g = yes; then
3572 if test "$GCC" = yes; then
3578 if test "$GCC" = yes; then
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3585 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3586 if ${ac_cv_prog_cc_c89+:} false; then :
3587 $as_echo_n "(cached) " >&6
3589 ac_cv_prog_cc_c89=no
3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h. */
3596 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3597 struct buf { int x; };
3598 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3599 static char *e (p, i)
3605 static char *f (char * (*g) (char **, int), char **p, ...)
3610 s = g (p, va_arg (v,int));
3615 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3616 function prototypes and stuff, but not '\xHH' hex character constants.
3617 These don't provoke an error unfortunately, instead are silently treated
3618 as 'x'. The following induces an error, until -std is added to get
3619 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3620 array size at least. It's necessary to write '\x00'==0 to get something
3621 that's true only with -std. */
3622 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3624 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3625 inside strings and character constants. */
3627 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3629 int test (int i, double x);
3630 struct s1 {int (*f) (int a);};
3631 struct s2 {int (*f) (double a);};
3632 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3638 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3643 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3644 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3646 CC="$ac_save_CC $ac_arg"
3647 if ac_fn_c_try_compile "$LINENO"; then :
3648 ac_cv_prog_cc_c89=$ac_arg
3650 rm -f core conftest.err conftest.$ac_objext
3651 test "x$ac_cv_prog_cc_c89" != "xno" && break
3653 rm -f conftest.$ac_ext
3658 case "x$ac_cv_prog_cc_c89" in
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3661 $as_echo "none needed" >&6; } ;;
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3664 $as_echo "unsupported" >&6; } ;;
3666 CC="$CC $ac_cv_prog_cc_c89"
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3668 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3670 if test "x$ac_cv_prog_cc_c89" != xno; then :
3675 ac_cpp='$CPP $CPPFLAGS'
3676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3681 ac_cpp='$CXXCPP $CPPFLAGS'
3682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3685 if test -z "$CXX"; then
3686 if test -n "$CCC"; then
3689 if test -n "$ac_tool_prefix"; then
3690 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3692 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3693 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3695 $as_echo_n "checking for $ac_word... " >&6; }
3696 if ${ac_cv_prog_CXX+:} false; then :
3697 $as_echo_n "(cached) " >&6
3699 if test -n "$CXX"; then
3700 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 test -z "$as_dir" && as_dir=.
3707 for ac_exec_ext in '' $ac_executable_extensions; do
3708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3709 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3720 if test -n "$CXX"; then
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3722 $as_echo "$CXX" >&6; }
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3725 $as_echo "no" >&6; }
3729 test -n "$CXX" && break
3732 if test -z "$CXX"; then
3734 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3736 # Extract the first word of "$ac_prog", so it can be a program name with args.
3737 set dummy $ac_prog; ac_word=$2
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3739 $as_echo_n "checking for $ac_word... " >&6; }
3740 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3741 $as_echo_n "(cached) " >&6
3743 if test -n "$ac_ct_CXX"; then
3744 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750 test -z "$as_dir" && as_dir=.
3751 for ac_exec_ext in '' $ac_executable_extensions; do
3752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3753 ac_cv_prog_ac_ct_CXX="$ac_prog"
3754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3763 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3764 if test -n "$ac_ct_CXX"; then
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3766 $as_echo "$ac_ct_CXX" >&6; }
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3769 $as_echo "no" >&6; }
3773 test -n "$ac_ct_CXX" && break
3776 if test "x$ac_ct_CXX" = x; then
3779 case $cross_compiling:$ac_tool_warned in
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3783 ac_tool_warned=yes ;;
3791 # Provide some information about the compiler.
3792 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3795 for ac_option in --version -v -V -qversion; do
3796 { { ac_try="$ac_compiler $ac_option >&5"
3798 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3799 *) ac_try_echo
=$ac_try;;
3801 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3802 $as_echo "$ac_try_echo"; } >&5
3803 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3805 if test -s conftest.err
; then
3807 ... rest of stderr output deleted ...
3808 10q' conftest.err
>conftest.er1
3809 cat conftest.er1
>&5
3811 rm -f conftest.er1 conftest.err
3812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3813 test $ac_status = 0; }
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3817 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3818 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3819 $as_echo_n "(cached) " >&6
3821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3822 /* end confdefs.h. */
3835 if ac_fn_cxx_try_compile
"$LINENO"; then :
3840 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3841 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3845 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3846 if test $ac_compiler_gnu = yes; then
3851 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3852 ac_save_CXXFLAGS
=$CXXFLAGS
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3854 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3855 if ${ac_cv_prog_cxx_g+:} false
; then :
3856 $as_echo_n "(cached) " >&6
3858 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3859 ac_cxx_werror_flag
=yes
3862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3863 /* end confdefs.h. */
3873 if ac_fn_cxx_try_compile
"$LINENO"; then :
3874 ac_cv_prog_cxx_g
=yes
3877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3878 /* end confdefs.h. */
3888 if ac_fn_cxx_try_compile
"$LINENO"; then :
3891 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3894 /* end confdefs.h. */
3904 if ac_fn_cxx_try_compile
"$LINENO"; then :
3905 ac_cv_prog_cxx_g
=yes
3907 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3909 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3912 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3915 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3916 if test "$ac_test_CXXFLAGS" = set; then
3917 CXXFLAGS
=$ac_save_CXXFLAGS
3918 elif test $ac_cv_prog_cxx_g = yes; then
3919 if test "$GXX" = yes; then
3925 if test "$GXX" = yes; then
3932 ac_cpp
='$CPP $CPPFLAGS'
3933 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3934 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3935 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3940 ac_cpp
='$CPP $CPPFLAGS'
3941 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3942 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3943 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3945 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3946 # On Suns, sometimes $CPP names a directory.
3947 if test -n "$CPP" && test -d "$CPP"; then
3950 if test -z "$CPP"; then
3951 if ${ac_cv_prog_CPP+:} false
; then :
3952 $as_echo_n "(cached) " >&6
3954 # Double quotes because CPP needs to be expanded
3955 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3958 for ac_c_preproc_warn_flag
in '' yes
3960 # Use a header file that comes with gcc, so configuring glibc
3961 # with a fresh cross-compiler works.
3962 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3963 # <limits.h> exists even on freestanding compilers.
3964 # On the NeXT, cc -E runs the code through the compiler's parser,
3965 # not just through cpp. "Syntax error" is here to catch this case.
3966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3967 /* end confdefs.h. */
3969 # include <limits.h>
3971 # include <assert.h>
3975 if ac_fn_c_try_cpp
"$LINENO"; then :
3978 # Broken: fails on valid input.
3981 rm -f conftest.err conftest.i conftest.
$ac_ext
3983 # OK, works on sane cases. Now check whether nonexistent headers
3984 # can be detected and how.
3985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
3987 #include <ac_nonexistent.h>
3989 if ac_fn_c_try_cpp
"$LINENO"; then :
3990 # Broken: success on invalid input.
3993 # Passes both tests.
3997 rm -f conftest.err conftest.i conftest.
$ac_ext
4000 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4001 rm -f conftest.i conftest.err conftest.
$ac_ext
4002 if $ac_preproc_ok; then :
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4015 $as_echo "$CPP" >&6; }
4017 for ac_c_preproc_warn_flag
in '' yes
4019 # Use a header file that comes with gcc, so configuring glibc
4020 # with a fresh cross-compiler works.
4021 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4022 # <limits.h> exists even on freestanding compilers.
4023 # On the NeXT, cc -E runs the code through the compiler's parser,
4024 # not just through cpp. "Syntax error" is here to catch this case.
4025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4026 /* end confdefs.h. */
4028 # include <limits.h>
4030 # include <assert.h>
4034 if ac_fn_c_try_cpp
"$LINENO"; then :
4037 # Broken: fails on valid input.
4040 rm -f conftest.err conftest.i conftest.
$ac_ext
4042 # OK, works on sane cases. Now check whether nonexistent headers
4043 # can be detected and how.
4044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h. */
4046 #include <ac_nonexistent.h>
4048 if ac_fn_c_try_cpp
"$LINENO"; then :
4049 # Broken: success on invalid input.
4052 # Passes both tests.
4056 rm -f conftest.err conftest.i conftest.
$ac_ext
4059 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4060 rm -f conftest.i conftest.err conftest.
$ac_ext
4061 if $ac_preproc_ok; then :
4064 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4066 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4067 See \`config.log' for more details" "$LINENO" 5; }
4071 ac_cpp
='$CPP $CPPFLAGS'
4072 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4073 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4074 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4078 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4079 if ${ac_cv_path_GREP+:} false
; then :
4080 $as_echo_n "(cached) " >&6
4082 if test -z "$GREP"; then
4083 ac_path_GREP_found
=false
4084 # Loop through the user's path and test for each of PROGNAME-LIST
4085 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4086 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4089 test -z "$as_dir" && as_dir
=.
4090 for ac_prog
in grep ggrep
; do
4091 for ac_exec_ext
in '' $ac_executable_extensions; do
4092 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4093 as_fn_executable_p
"$ac_path_GREP" ||
continue
4094 # Check for GNU ac_path_GREP and select it if it is found.
4095 # Check for GNU $ac_path_GREP
4096 case `"$ac_path_GREP" --version 2>&1` in
4098 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4101 $as_echo_n 0123456789 >"conftest.in"
4104 cat "conftest.in" "conftest.in" >"conftest.tmp"
4105 mv "conftest.tmp" "conftest.in"
4106 cp "conftest.in" "conftest.nl"
4107 $as_echo 'GREP' >> "conftest.nl"
4108 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4109 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4110 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4111 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4112 # Best one so far, save it but keep looking for a better one
4113 ac_cv_path_GREP
="$ac_path_GREP"
4114 ac_path_GREP_max
=$ac_count
4116 # 10*(2^10) chars as input seems more than enough
4117 test $ac_count -gt 10 && break
4119 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4122 $ac_path_GREP_found && break 3
4127 if test -z "$ac_cv_path_GREP"; then
4128 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4131 ac_cv_path_GREP
=$GREP
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4136 $as_echo "$ac_cv_path_GREP" >&6; }
4137 GREP
="$ac_cv_path_GREP"
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4141 $as_echo_n "checking for egrep... " >&6; }
4142 if ${ac_cv_path_EGREP+:} false
; then :
4143 $as_echo_n "(cached) " >&6
4145 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4146 then ac_cv_path_EGREP
="$GREP -E"
4148 if test -z "$EGREP"; then
4149 ac_path_EGREP_found
=false
4150 # Loop through the user's path and test for each of PROGNAME-LIST
4151 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4152 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4155 test -z "$as_dir" && as_dir
=.
4156 for ac_prog
in egrep; do
4157 for ac_exec_ext
in '' $ac_executable_extensions; do
4158 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4159 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4160 # Check for GNU ac_path_EGREP and select it if it is found.
4161 # Check for GNU $ac_path_EGREP
4162 case `"$ac_path_EGREP" --version 2>&1` in
4164 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4167 $as_echo_n 0123456789 >"conftest.in"
4170 cat "conftest.in" "conftest.in" >"conftest.tmp"
4171 mv "conftest.tmp" "conftest.in"
4172 cp "conftest.in" "conftest.nl"
4173 $as_echo 'EGREP' >> "conftest.nl"
4174 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4175 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4176 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4177 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4178 # Best one so far, save it but keep looking for a better one
4179 ac_cv_path_EGREP
="$ac_path_EGREP"
4180 ac_path_EGREP_max
=$ac_count
4182 # 10*(2^10) chars as input seems more than enough
4183 test $ac_count -gt 10 && break
4185 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4188 $ac_path_EGREP_found && break 3
4193 if test -z "$ac_cv_path_EGREP"; then
4194 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4197 ac_cv_path_EGREP
=$EGREP
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4203 $as_echo "$ac_cv_path_EGREP" >&6; }
4204 EGREP
="$ac_cv_path_EGREP"
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4208 $as_echo_n "checking for ANSI C header files... " >&6; }
4209 if ${ac_cv_header_stdc+:} false
; then :
4210 $as_echo_n "(cached) " >&6
4212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h. */
4227 if ac_fn_c_try_compile
"$LINENO"; then :
4228 ac_cv_header_stdc
=yes
4230 ac_cv_header_stdc
=no
4232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4234 if test $ac_cv_header_stdc = yes; then
4235 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4242 $EGREP "memchr" >/dev
/null
2>&1; then :
4245 ac_cv_header_stdc
=no
4251 if test $ac_cv_header_stdc = yes; then
4252 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h. */
4258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4259 $EGREP "free" >/dev
/null
2>&1; then :
4262 ac_cv_header_stdc
=no
4268 if test $ac_cv_header_stdc = yes; then
4269 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4270 if test "$cross_compiling" = yes; then :
4273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4274 /* end confdefs.h. */
4277 #if ((' ' & 0x0FF) == 0x020)
4278 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4279 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4281 # define ISLOWER(c) \
4282 (('a' <= (c) && (c) <= 'i') \
4283 || ('j' <= (c) && (c) <= 'r') \
4284 || ('s' <= (c) && (c) <= 'z'))
4285 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4288 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4293 for (i = 0; i < 256; i++)
4294 if (XOR (islower (i), ISLOWER (i))
4295 || toupper (i) != TOUPPER (i))
4300 if ac_fn_c_try_run
"$LINENO"; then :
4303 ac_cv_header_stdc
=no
4305 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4306 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4312 $as_echo "$ac_cv_header_stdc" >&6; }
4313 if test $ac_cv_header_stdc = yes; then
4315 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4319 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4320 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4321 inttypes.h stdint.h unistd.h
4323 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4324 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4326 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4327 cat >>confdefs.h
<<_ACEOF
4328 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4337 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4338 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4345 if test "$MINIX" = yes; then
4347 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4350 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4353 $as_echo "#define _MINIX 1" >>confdefs.h
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4359 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4360 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4361 $as_echo_n "(cached) " >&6
4363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4364 /* end confdefs.h. */
4366 # define __EXTENSIONS__ 1
4367 $ac_includes_default
4376 if ac_fn_c_try_compile
"$LINENO"; then :
4377 ac_cv_safe_to_define___extensions__
=yes
4379 ac_cv_safe_to_define___extensions__
=no
4381 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4384 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4385 test $ac_cv_safe_to_define___extensions__ = yes &&
4386 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4388 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4390 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4392 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4394 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4398 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4399 if test -f "$ac_dir/install-sh"; then
4401 ac_install_sh
="$ac_aux_dir/install-sh -c"
4403 elif test -f "$ac_dir/install.sh"; then
4405 ac_install_sh
="$ac_aux_dir/install.sh -c"
4407 elif test -f "$ac_dir/shtool"; then
4409 ac_install_sh
="$ac_aux_dir/shtool install -c"
4413 if test -z "$ac_aux_dir"; then
4414 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4417 # These three variables are undocumented and unsupported,
4418 # and are intended to be withdrawn in a future Autoconf release.
4419 # They can cause serious problems if a builder's source tree is in a directory
4420 # whose full name contains unusual characters.
4421 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4422 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4423 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4426 # Make sure we can run config.sub.
4427 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4428 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4431 $as_echo_n "checking build system type... " >&6; }
4432 if ${ac_cv_build+:} false
; then :
4433 $as_echo_n "(cached) " >&6
4435 ac_build_alias
=$build_alias
4436 test "x$ac_build_alias" = x
&&
4437 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4438 test "x$ac_build_alias" = x
&&
4439 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4440 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4441 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4445 $as_echo "$ac_cv_build" >&6; }
4446 case $ac_cv_build in
4448 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4451 ac_save_IFS
=$IFS; IFS
='-'
4457 # Remember, the first character of IFS is used to create $*,
4458 # except with old shells:
4461 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4465 $as_echo_n "checking host system type... " >&6; }
4466 if ${ac_cv_host+:} false
; then :
4467 $as_echo_n "(cached) " >&6
4469 if test "x$host_alias" = x
; then
4470 ac_cv_host
=$ac_cv_build
4472 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4473 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4478 $as_echo "$ac_cv_host" >&6; }
4481 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4484 ac_save_IFS
=$IFS; IFS
='-'
4490 # Remember, the first character of IFS is used to create $*,
4491 # except with old shells:
4494 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4498 $as_echo_n "checking target system type... " >&6; }
4499 if ${ac_cv_target+:} false
; then :
4500 $as_echo_n "(cached) " >&6
4502 if test "x$target_alias" = x
; then
4503 ac_cv_target
=$ac_cv_host
4505 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4506 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4511 $as_echo "$ac_cv_target" >&6; }
4512 case $ac_cv_target in
4514 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4516 target
=$ac_cv_target
4517 ac_save_IFS
=$IFS; IFS
='-'
4523 # Remember, the first character of IFS is used to create $*,
4524 # except with old shells:
4527 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4530 # The aliases save the names the user supplied, while $host etc.
4531 # will get canonicalized.
4532 test -n "$target_alias" &&
4533 test "$program_prefix$program_suffix$program_transform_name" = \
4535 program_prefix
=${target_alias}-
4537 # The tests for host and target for $enable_largefile require
4542 # As the $enable_largefile decision depends on --enable-plugins we must set it
4543 # even in directories otherwise not depending on the $plugins option.
4547 for ac_header
in dlfcn.h
4549 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4551 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
4552 cat >>confdefs.h
<<_ACEOF
4553 #define HAVE_DLFCN_H 1
4560 for ac_header
in windows.h
4562 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4564 if test "x$ac_cv_header_windows_h" = xyes
; then :
4565 cat >>confdefs.h
<<_ACEOF
4566 #define HAVE_WINDOWS_H 1
4574 # Check whether --enable-plugins was given.
4575 if test "${enable_plugins+set}" = set; then :
4576 enableval
=$enable_plugins; case "${enableval}" in
4579 if test "$maybe_plugins" != "yes" ; then
4580 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4584 plugins
=$maybe_plugins
4588 if test "$plugins" = "yes"; then
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4590 $as_echo_n "checking for library containing dlsym... " >&6; }
4591 if ${ac_cv_search_dlsym+:} false
; then :
4592 $as_echo_n "(cached) " >&6
4594 ac_func_search_save_LIBS
=$LIBS
4595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h. */
4598 /* Override any GCC internal prototype to avoid an error.
4599 Use char because int might match the return type of a GCC
4600 builtin and then its argument prototype would still apply. */
4613 for ac_lib
in '' dl
; do
4614 if test -z "$ac_lib"; then
4615 ac_res
="none required"
4618 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4620 if ac_fn_c_try_link
"$LINENO"; then :
4621 ac_cv_search_dlsym
=$ac_res
4623 rm -f core conftest.err conftest.
$ac_objext \
4625 if ${ac_cv_search_dlsym+:} false
; then :
4629 if ${ac_cv_search_dlsym+:} false
; then :
4632 ac_cv_search_dlsym
=no
4635 LIBS
=$ac_func_search_save_LIBS
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4638 $as_echo "$ac_cv_search_dlsym" >&6; }
4639 ac_res
=$ac_cv_search_dlsym
4640 if test "$ac_res" != no
; then :
4641 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4649 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4650 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4651 # are mutually exclusive; and without procfs support, the bfd/ elf module
4652 # cannot provide certain routines such as elfcore_write_prpsinfo
4653 # or elfcore_write_prstatus. So unless the user explicitly requested
4654 # large-file support through the --enable-largefile switch, disable
4655 # large-file support in favor of procfs support.
4656 test "${target}" = "${host}" -a "x$plugins" = xno \
4657 && : ${enable_largefile="no"}
4661 # Check whether --enable-largefile was given.
4662 if test "${enable_largefile+set}" = set; then :
4663 enableval
=$enable_largefile;
4666 if test "$enable_largefile" != no
; then
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4669 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4670 if ${ac_cv_sys_largefile_CC+:} false
; then :
4671 $as_echo_n "(cached) " >&6
4673 ac_cv_sys_largefile_CC
=no
4674 if test "$GCC" != yes; then
4677 # IRIX 6.2 and later do not support large files by default,
4678 # so use the C compiler's -n32 option if that helps.
4679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4680 /* end confdefs.h. */
4681 #include <sys/types.h>
4682 /* Check that off_t can represent 2**63 - 1 correctly.
4683 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4684 since some C++ compilers masquerading as C compilers
4685 incorrectly reject 9223372036854775807. */
4686 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4687 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4688 && LARGE_OFF_T % 2147483647 == 1)
4698 if ac_fn_c_try_compile
"$LINENO"; then :
4701 rm -f core conftest.err conftest.
$ac_objext
4703 if ac_fn_c_try_compile
"$LINENO"; then :
4704 ac_cv_sys_largefile_CC
=' -n32'; break
4706 rm -f core conftest.err conftest.
$ac_objext
4710 rm -f conftest.
$ac_ext
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4714 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4715 if test "$ac_cv_sys_largefile_CC" != no
; then
4716 CC
=$CC$ac_cv_sys_largefile_CC
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4720 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4721 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4722 $as_echo_n "(cached) " >&6
4725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4726 /* end confdefs.h. */
4727 #include <sys/types.h>
4728 /* Check that off_t can represent 2**63 - 1 correctly.
4729 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4730 since some C++ compilers masquerading as C compilers
4731 incorrectly reject 9223372036854775807. */
4732 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4733 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4734 && LARGE_OFF_T % 2147483647 == 1)
4744 if ac_fn_c_try_compile
"$LINENO"; then :
4745 ac_cv_sys_file_offset_bits
=no
; break
4747 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4749 /* end confdefs.h. */
4750 #define _FILE_OFFSET_BITS 64
4751 #include <sys/types.h>
4752 /* Check that off_t can represent 2**63 - 1 correctly.
4753 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4754 since some C++ compilers masquerading as C compilers
4755 incorrectly reject 9223372036854775807. */
4756 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4757 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4758 && LARGE_OFF_T % 2147483647 == 1)
4768 if ac_fn_c_try_compile
"$LINENO"; then :
4769 ac_cv_sys_file_offset_bits
=64; break
4771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4772 ac_cv_sys_file_offset_bits
=unknown
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4777 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4778 case $ac_cv_sys_file_offset_bits in #(
4781 cat >>confdefs.h
<<_ACEOF
4782 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4787 if test $ac_cv_sys_file_offset_bits = unknown
; then
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4789 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4790 if ${ac_cv_sys_large_files+:} false
; then :
4791 $as_echo_n "(cached) " >&6
4794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4795 /* end confdefs.h. */
4796 #include <sys/types.h>
4797 /* Check that off_t can represent 2**63 - 1 correctly.
4798 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4799 since some C++ compilers masquerading as C compilers
4800 incorrectly reject 9223372036854775807. */
4801 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4802 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4803 && LARGE_OFF_T % 2147483647 == 1)
4813 if ac_fn_c_try_compile
"$LINENO"; then :
4814 ac_cv_sys_large_files
=no
; break
4816 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4818 /* end confdefs.h. */
4819 #define _LARGE_FILES 1
4820 #include <sys/types.h>
4821 /* Check that off_t can represent 2**63 - 1 correctly.
4822 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4823 since some C++ compilers masquerading as C compilers
4824 incorrectly reject 9223372036854775807. */
4825 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4826 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4827 && LARGE_OFF_T % 2147483647 == 1)
4837 if ac_fn_c_try_compile
"$LINENO"; then :
4838 ac_cv_sys_large_files
=1; break
4840 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4841 ac_cv_sys_large_files
=unknown
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4846 $as_echo "$ac_cv_sys_large_files" >&6; }
4847 case $ac_cv_sys_large_files in #(
4850 cat >>confdefs.h
<<_ACEOF
4851 #define _LARGE_FILES $ac_cv_sys_large_files
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4866 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4867 if ${am_cv_prog_cc_stdc+:} false
; then :
4868 $as_echo_n "(cached) " >&6
4870 am_cv_prog_cc_stdc
=no
4872 # Don't try gcc -ansi; that turns off useful extensions and
4873 # breaks some systems' header files.
4874 # AIX -qlanglvl=ansi
4875 # Ultrix and OSF/1 -std1
4876 # HP-UX 10.20 and later -Ae
4877 # HP-UX older versions -Aa -D_HPUX_SOURCE
4878 # SVR4 -Xc -D__EXTENSIONS__
4879 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4881 CC
="$ac_save_CC $ac_arg"
4882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4883 /* end confdefs.h. */
4886 #include <sys/types.h>
4887 #include <sys/stat.h>
4888 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4889 struct buf { int x; };
4890 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4891 static char *e (p, i)
4897 static char *f (char * (*g) (char **, int), char **p, ...)
4902 s = g (p, va_arg (v,int));
4906 int test (int i, double x);
4907 struct s1 {int (*f) (int a);};
4908 struct s2 {int (*f) (double a);};
4909 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4917 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4923 if ac_fn_c_try_compile
"$LINENO"; then :
4924 am_cv_prog_cc_stdc
="$ac_arg"; break
4926 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4932 if test -z "$am_cv_prog_cc_stdc"; then
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4934 $as_echo "none needed" >&6; }
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4937 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4939 case "x$am_cv_prog_cc_stdc" in
4941 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4944 # Expand $ac_aux_dir to an absolute path.
4945 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
4947 if test x
"${install_sh+set}" != xset
; then
4950 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
4952 install_sh
="\${SHELL} $am_aux_dir/install-sh"
4956 # Installed binaries are usually stripped using 'strip' when the user
4957 # run "make install-strip". However 'strip' might not be the right
4958 # tool to use in cross-compilation environments, therefore Automake
4959 # will honor the 'STRIP' environment variable to overrule this program.
4960 if test "$cross_compiling" != no
; then
4961 if test -n "$ac_tool_prefix"; then
4962 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4963 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4965 $as_echo_n "checking for $ac_word... " >&6; }
4966 if ${ac_cv_prog_STRIP+:} false
; then :
4967 $as_echo_n "(cached) " >&6
4969 if test -n "$STRIP"; then
4970 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4972 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4976 test -z "$as_dir" && as_dir
=.
4977 for ac_exec_ext
in '' $ac_executable_extensions; do
4978 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4979 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4989 STRIP
=$ac_cv_prog_STRIP
4990 if test -n "$STRIP"; then
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4992 $as_echo "$STRIP" >&6; }
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4995 $as_echo "no" >&6; }
5000 if test -z "$ac_cv_prog_STRIP"; then
5002 # Extract the first word of "strip", so it can be a program name with args.
5003 set dummy strip
; ac_word
=$2
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005 $as_echo_n "checking for $ac_word... " >&6; }
5006 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
5007 $as_echo_n "(cached) " >&6
5009 if test -n "$ac_ct_STRIP"; then
5010 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5012 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5016 test -z "$as_dir" && as_dir
=.
5017 for ac_exec_ext
in '' $ac_executable_extensions; do
5018 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5019 ac_cv_prog_ac_ct_STRIP
="strip"
5020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5029 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5030 if test -n "$ac_ct_STRIP"; then
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5032 $as_echo "$ac_ct_STRIP" >&6; }
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035 $as_echo "no" >&6; }
5038 if test "x$ac_ct_STRIP" = x
; then
5041 case $cross_compiling:$ac_tool_warned in
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5045 ac_tool_warned
=yes ;;
5050 STRIP
="$ac_cv_prog_STRIP"
5054 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
5058 for ac_dir
in ..
"$srcdir"/..
; do
5059 if test -f "$ac_dir/install-sh"; then
5061 ac_install_sh
="$ac_aux_dir/install-sh -c"
5063 elif test -f "$ac_dir/install.sh"; then
5065 ac_install_sh
="$ac_aux_dir/install.sh -c"
5067 elif test -f "$ac_dir/shtool"; then
5069 ac_install_sh
="$ac_aux_dir/shtool install -c"
5073 if test -z "$ac_aux_dir"; then
5074 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
5077 # These three variables are undocumented and unsupported,
5078 # and are intended to be withdrawn in a future Autoconf release.
5079 # They can cause serious problems if a builder's source tree is in a directory
5080 # whose full name contains unusual characters.
5081 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5082 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5083 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5087 test "$program_prefix" != NONE
&&
5088 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
5089 # Use a double $ so make ignores it.
5090 test "$program_suffix" != NONE
&&
5091 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
5092 # Double any \ or $.
5093 # By default was `s,x,x', remove it if useless.
5094 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
5095 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
5098 # We require a C++11 compiler. Check if one is available, and if
5099 # necessary, set CXX_DIALECT to some -std=xxx switch.
5101 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5103 ac_cpp
='$CXXCPP $CPPFLAGS'
5104 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5105 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5106 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5110 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5111 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5112 $as_echo_n "(cached) " >&6
5114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5115 /* end confdefs.h. */
5118 // If the compiler admits that it is not ready for C++11, why torture it?
5119 // Hopefully, this will speed up the test.
5123 #error "This is not a C++ compiler"
5125 #elif __cplusplus < 201103L
5127 #error "This is not a C++11 compiler"
5134 namespace test_static_assert
5137 template <typename T>
5140 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5145 namespace test_final_override
5153 struct Derived : public Base
5155 virtual void f() override {}
5160 namespace test_double_right_angle_brackets
5163 template < typename T >
5166 typedef check<void> single_type;
5167 typedef check<check<void>> double_type;
5168 typedef check<check<check<void>>> triple_type;
5169 typedef check<check<check<check<void>>>> quadruple_type;
5173 namespace test_decltype
5186 namespace test_type_deduction
5189 template < typename T1, typename T2 >
5192 static const bool value = false;
5195 template < typename T >
5196 struct is_same<T, T>
5198 static const bool value = true;
5201 template < typename T1, typename T2 >
5203 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5209 test(const int c, volatile int v)
5211 static_assert(is_same<int, decltype(0)>::value == true, "");
5212 static_assert(is_same<int, decltype(c)>::value == false, "");
5213 static_assert(is_same<int, decltype(v)>::value == false, "");
5216 auto sumi = ac + av + 'x';
5217 auto sumf = ac + av + 1.0;
5218 static_assert(is_same<int, decltype(ac)>::value == true, "");
5219 static_assert(is_same<int, decltype(av)>::value == true, "");
5220 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5221 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5222 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5223 return (sumf > 0.0) ? sumi : add(c, v);
5228 namespace test_noexcept
5231 int f() { return 0; }
5232 int g() noexcept { return 0; }
5234 static_assert(noexcept(f()) == false, "");
5235 static_assert(noexcept(g()) == true, "");
5239 namespace test_constexpr
5242 template < typename CharT >
5243 unsigned long constexpr
5244 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5246 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5249 template < typename CharT >
5250 unsigned long constexpr
5251 strlen_c(const CharT *const s) noexcept
5253 return strlen_c_r(s, 0UL);
5256 static_assert(strlen_c("") == 0UL, "");
5257 static_assert(strlen_c("1") == 1UL, "");
5258 static_assert(strlen_c("example") == 7UL, "");
5259 static_assert(strlen_c("another\0example") == 7UL, "");
5263 namespace test_rvalue_references
5269 static constexpr int value = N;
5272 answer<1> f(int&) { return answer<1>(); }
5273 answer<2> f(const int&) { return answer<2>(); }
5274 answer<3> f(int&&) { return answer<3>(); }
5281 static_assert(decltype(f(i))::value == 1, "");
5282 static_assert(decltype(f(c))::value == 2, "");
5283 static_assert(decltype(f(0))::value == 3, "");
5288 namespace test_uniform_initialization
5293 static const int zero {};
5294 static const int one {1};
5297 static_assert(test::zero == 0, "");
5298 static_assert(test::one == 1, "");
5302 namespace test_lambdas
5308 auto lambda1 = [](){};
5309 auto lambda2 = lambda1;
5317 auto a = [](int i, int j){ return i + j; }(1, 2);
5318 auto b = []() -> int { return '0'; }();
5319 auto c = [=](){ return a + b; }();
5320 auto d = [&](){ return c; }();
5321 auto e = [a, &b](int x) mutable {
5322 const auto identity = [](int y){ return y; };
5323 for (auto i = 0; i < a; ++i)
5325 return x + identity(a + b);
5327 return a + b + c + d + e;
5333 const auto nullary = [](){ return 0; };
5334 const auto unary = [](int x){ return x; };
5335 using nullary_t = decltype(nullary);
5336 using unary_t = decltype(unary);
5337 const auto higher1st = [](nullary_t f){ return f(); };
5338 const auto higher2nd = [unary](nullary_t f1){
5339 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5341 return higher1st(nullary) + higher2nd(nullary)(unary);
5346 namespace test_variadic_templates
5352 template <int N0, int... N1toN>
5353 struct sum<N0, N1toN...>
5355 static constexpr auto value = N0 + sum<N1toN...>::value;
5361 static constexpr auto value = 0;
5364 static_assert(sum<>::value == 0, "");
5365 static_assert(sum<1>::value == 1, "");
5366 static_assert(sum<23>::value == 23, "");
5367 static_assert(sum<1, 2>::value == 3, "");
5368 static_assert(sum<5, 5, 11>::value == 21, "");
5369 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5373 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5374 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5376 namespace test_template_alias_sfinae
5381 template<typename T>
5382 using member = typename T::member_type;
5384 template<typename T>
5387 template<typename T>
5388 void func(member<T>*) {}
5392 void test() { func<foo>(0); }
5396 } // namespace cxx11
5398 #endif // __cplusplus >= 201103L
5403 if ac_fn_cxx_try_compile
"$LINENO"; then :
5404 ax_cv_cxx_compile_cxx11
=yes
5406 ax_cv_cxx_compile_cxx11
=no
5408 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5411 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5412 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
5416 if test x
$ac_success = xno
; then
5417 for alternative
in ${ax_cxx_compile_alternatives}; do
5418 switch
="-std=gnu++${alternative}"
5419 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5421 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5422 if eval \
${$cachevar+:} false
; then :
5423 $as_echo_n "(cached) " >&6
5427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5428 /* end confdefs.h. */
5431 // If the compiler admits that it is not ready for C++11, why torture it?
5432 // Hopefully, this will speed up the test.
5436 #error "This is not a C++ compiler"
5438 #elif __cplusplus < 201103L
5440 #error "This is not a C++11 compiler"
5447 namespace test_static_assert
5450 template <typename T>
5453 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5458 namespace test_final_override
5466 struct Derived : public Base
5468 virtual void f() override {}
5473 namespace test_double_right_angle_brackets
5476 template < typename T >
5479 typedef check<void> single_type;
5480 typedef check<check<void>> double_type;
5481 typedef check<check<check<void>>> triple_type;
5482 typedef check<check<check<check<void>>>> quadruple_type;
5486 namespace test_decltype
5499 namespace test_type_deduction
5502 template < typename T1, typename T2 >
5505 static const bool value = false;
5508 template < typename T >
5509 struct is_same<T, T>
5511 static const bool value = true;
5514 template < typename T1, typename T2 >
5516 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5522 test(const int c, volatile int v)
5524 static_assert(is_same<int, decltype(0)>::value == true, "");
5525 static_assert(is_same<int, decltype(c)>::value == false, "");
5526 static_assert(is_same<int, decltype(v)>::value == false, "");
5529 auto sumi = ac + av + 'x';
5530 auto sumf = ac + av + 1.0;
5531 static_assert(is_same<int, decltype(ac)>::value == true, "");
5532 static_assert(is_same<int, decltype(av)>::value == true, "");
5533 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5534 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5535 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5536 return (sumf > 0.0) ? sumi : add(c, v);
5541 namespace test_noexcept
5544 int f() { return 0; }
5545 int g() noexcept { return 0; }
5547 static_assert(noexcept(f()) == false, "");
5548 static_assert(noexcept(g()) == true, "");
5552 namespace test_constexpr
5555 template < typename CharT >
5556 unsigned long constexpr
5557 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5559 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5562 template < typename CharT >
5563 unsigned long constexpr
5564 strlen_c(const CharT *const s) noexcept
5566 return strlen_c_r(s, 0UL);
5569 static_assert(strlen_c("") == 0UL, "");
5570 static_assert(strlen_c("1") == 1UL, "");
5571 static_assert(strlen_c("example") == 7UL, "");
5572 static_assert(strlen_c("another\0example") == 7UL, "");
5576 namespace test_rvalue_references
5582 static constexpr int value = N;
5585 answer<1> f(int&) { return answer<1>(); }
5586 answer<2> f(const int&) { return answer<2>(); }
5587 answer<3> f(int&&) { return answer<3>(); }
5594 static_assert(decltype(f(i))::value == 1, "");
5595 static_assert(decltype(f(c))::value == 2, "");
5596 static_assert(decltype(f(0))::value == 3, "");
5601 namespace test_uniform_initialization
5606 static const int zero {};
5607 static const int one {1};
5610 static_assert(test::zero == 0, "");
5611 static_assert(test::one == 1, "");
5615 namespace test_lambdas
5621 auto lambda1 = [](){};
5622 auto lambda2 = lambda1;
5630 auto a = [](int i, int j){ return i + j; }(1, 2);
5631 auto b = []() -> int { return '0'; }();
5632 auto c = [=](){ return a + b; }();
5633 auto d = [&](){ return c; }();
5634 auto e = [a, &b](int x) mutable {
5635 const auto identity = [](int y){ return y; };
5636 for (auto i = 0; i < a; ++i)
5638 return x + identity(a + b);
5640 return a + b + c + d + e;
5646 const auto nullary = [](){ return 0; };
5647 const auto unary = [](int x){ return x; };
5648 using nullary_t = decltype(nullary);
5649 using unary_t = decltype(unary);
5650 const auto higher1st = [](nullary_t f){ return f(); };
5651 const auto higher2nd = [unary](nullary_t f1){
5652 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5654 return higher1st(nullary) + higher2nd(nullary)(unary);
5659 namespace test_variadic_templates
5665 template <int N0, int... N1toN>
5666 struct sum<N0, N1toN...>
5668 static constexpr auto value = N0 + sum<N1toN...>::value;
5674 static constexpr auto value = 0;
5677 static_assert(sum<>::value == 0, "");
5678 static_assert(sum<1>::value == 1, "");
5679 static_assert(sum<23>::value == 23, "");
5680 static_assert(sum<1, 2>::value == 3, "");
5681 static_assert(sum<5, 5, 11>::value == 21, "");
5682 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5686 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5687 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5689 namespace test_template_alias_sfinae
5694 template<typename T>
5695 using member = typename T::member_type;
5697 template<typename T>
5700 template<typename T>
5701 void func(member<T>*) {}
5705 void test() { func<foo>(0); }
5709 } // namespace cxx11
5711 #endif // __cplusplus >= 201103L
5716 if ac_fn_cxx_try_compile
"$LINENO"; then :
5721 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5724 eval ac_res
=\$
$cachevar
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5726 $as_echo "$ac_res" >&6; }
5727 if eval test x\$
$cachevar = xyes
; then
5728 CXX_DIALECT
="$switch"
5735 if test x
$ac_success = xno
; then
5736 for alternative
in ${ax_cxx_compile_alternatives}; do
5737 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5738 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
5740 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
5741 if eval \${$cachevar+:} false; then :
5742 $as_echo_n "(cached
) " >&6
5746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5747 /* end confdefs.h. */
5750 // If the compiler admits that it is not ready for C++11, why torture it?
5751 // Hopefully, this will speed up the test.
5755 #error "This is not a C
++ compiler
"
5757 #elif __cplusplus < 201103L
5759 #error "This is not a C
++11 compiler
"
5766 namespace test_static_assert
5769 template <typename T>
5772 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
5777 namespace test_final_override
5785 struct Derived : public Base
5787 virtual void f() override {}
5792 namespace test_double_right_angle_brackets
5795 template < typename T >
5798 typedef check<void> single_type;
5799 typedef check<check<void>> double_type;
5800 typedef check<check<check<void>>> triple_type;
5801 typedef check<check<check<check<void>>>> quadruple_type;
5805 namespace test_decltype
5818 namespace test_type_deduction
5821 template < typename T1, typename T2 >
5824 static const bool value = false;
5827 template < typename T >
5828 struct is_same<T, T>
5830 static const bool value = true;
5833 template < typename T1, typename T2 >
5835 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5841 test(const int c, volatile int v)
5843 static_assert(is_same<int, decltype(0)>::value == true, "");
5844 static_assert(is_same<int, decltype(c)>::value == false, "");
5845 static_assert(is_same<int, decltype(v)>::value == false, "");
5848 auto sumi = ac + av + 'x';
5849 auto sumf = ac + av + 1.0;
5850 static_assert(is_same<int, decltype(ac)>::value == true, "");
5851 static_assert(is_same<int, decltype(av)>::value == true, "");
5852 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5853 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5854 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5855 return (sumf > 0.0) ? sumi : add(c, v);
5860 namespace test_noexcept
5863 int f() { return 0; }
5864 int g() noexcept { return 0; }
5866 static_assert(noexcept(f()) == false, "");
5867 static_assert(noexcept(g()) == true, "");
5871 namespace test_constexpr
5874 template < typename CharT >
5875 unsigned long constexpr
5876 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5878 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5881 template < typename CharT >
5882 unsigned long constexpr
5883 strlen_c(const CharT *const s) noexcept
5885 return strlen_c_r(s, 0UL);
5888 static_assert(strlen_c("") == 0UL, "");
5889 static_assert(strlen_c("1") == 1UL, "");
5890 static_assert(strlen_c("example
") == 7UL, "");
5891 static_assert(strlen_c("another\
0example
") == 7UL, "");
5895 namespace test_rvalue_references
5901 static constexpr int value = N;
5904 answer<1> f(int&) { return answer<1>(); }
5905 answer<2> f(const int&) { return answer<2>(); }
5906 answer<3> f(int&&) { return answer<3>(); }
5913 static_assert(decltype(f(i))::value == 1, "");
5914 static_assert(decltype(f(c))::value == 2, "");
5915 static_assert(decltype(f(0))::value == 3, "");
5920 namespace test_uniform_initialization
5925 static const int zero {};
5926 static const int one {1};
5929 static_assert(test::zero == 0, "");
5930 static_assert(test::one == 1, "");
5934 namespace test_lambdas
5940 auto lambda1 = [](){};
5941 auto lambda2 = lambda1;
5949 auto a = [](int i, int j){ return i + j; }(1, 2);
5950 auto b = []() -> int { return '0'; }();
5951 auto c = [=](){ return a + b; }();
5952 auto d = [&](){ return c; }();
5953 auto e = [a, &b](int x) mutable {
5954 const auto identity = [](int y){ return y; };
5955 for (auto i = 0; i < a; ++i)
5957 return x + identity(a + b);
5959 return a + b + c + d + e;
5965 const auto nullary = [](){ return 0; };
5966 const auto unary = [](int x){ return x; };
5967 using nullary_t = decltype(nullary);
5968 using unary_t = decltype(unary);
5969 const auto higher1st = [](nullary_t f){ return f(); };
5970 const auto higher2nd = [unary](nullary_t f1){
5971 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5973 return higher1st(nullary) + higher2nd(nullary)(unary);
5978 namespace test_variadic_templates
5984 template <int N0, int... N1toN>
5985 struct sum<N0, N1toN...>
5987 static constexpr auto value = N0 + sum<N1toN...>::value;
5993 static constexpr auto value = 0;
5996 static_assert(sum<>::value == 0, "");
5997 static_assert(sum<1>::value == 1, "");
5998 static_assert(sum<23>::value == 23, "");
5999 static_assert(sum<1, 2>::value == 3, "");
6000 static_assert(sum<5, 5, 11>::value == 21, "");
6001 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6005 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6006 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6008 namespace test_template_alias_sfinae
6013 template<typename T>
6014 using member = typename T::member_type;
6016 template<typename T>
6019 template<typename T>
6020 void func(member<T>*) {}
6024 void test() { func<foo>(0); }
6028 } // namespace cxx11
6030 #endif // __cplusplus >= 201103L
6035 if ac_fn_cxx_try_compile "$LINENO"; then :
6040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6043 eval ac_res=\$$cachevar
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6045 $as_echo "$ac_res" >&6; }
6046 if eval test x\$$cachevar = xyes; then
6047 CXX_DIALECT="$switch"
6052 if test x$ac_success = xyes; then
6058 ac_cpp='$CPP $CPPFLAGS'
6059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6063 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6064 if test x$ac_success = xno; then
6065 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6068 if test x$ac_success = xno; then
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6071 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6075 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6082 # Dependency checking.
6083 rm -rf .tst
2>/dev
/null
6084 mkdir .tst
2>/dev
/null
6085 if test -d .tst
; then
6090 rmdir .tst
2>/dev
/null
6092 DEPDIR
="${am__leading_dot}deps"
6094 ac_config_commands
="$ac_config_commands depdir"
6097 depcc
="$CC" am_compiler_list
=
6099 am_depcomp
=$ac_aux_dir/depcomp
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6101 $as_echo_n "checking dependency style of $depcc... " >&6; }
6102 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
6103 $as_echo_n "(cached) " >&6
6105 if test -f "$am_depcomp"; then
6106 # We make a subdir and do the tests there. Otherwise we can end up
6107 # making bogus files that we don't know about and never remove. For
6108 # instance it was reported that on HP-UX the gcc test will end up
6109 # making a dummy file named `D' -- because `-MD' means `put the output
6112 # Copy depcomp to subdir because otherwise we won't find it if we're
6113 # using a relative directory.
6114 cp "$am_depcomp" conftest.dir
6116 # We will build objects and dependencies in a subdirectory because
6117 # it helps to detect inapplicable dependency modes. For instance
6118 # both Tru64's cc and ICC support -MD to output dependencies as a
6119 # side effect of compilation, but ICC will put the dependencies in
6120 # the current directory while Tru64 will put them in the object
6124 am_cv_CC_dependencies_compiler_type
=none
6125 if test "$am_compiler_list" = ""; then
6126 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6128 for depmode
in $am_compiler_list; do
6129 if test $depmode = none
; then break; fi
6131 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6132 # Setup a source with many dependencies, because some compilers
6133 # like to wrap large dependency lists on column 80 (with \), and
6134 # we should not choose a depcomp mode which is confused by this.
6136 # We need to recreate these files for each test, as the compiler may
6137 # overwrite some of them when testing with obscure command lines.
6138 # This happens at least with the AIX C compiler.
6140 for i
in 1 2 3 4 5 6; do
6141 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6142 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6143 # Solaris 8's {/usr,}/bin/sh.
6144 touch sub
/conftst
$i.h
6146 echo "include sub/conftest.Po" > confmf
6148 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6149 # mode. It turns out that the SunPro C++ compiler does not properly
6150 # handle `-M -o', and we need to detect this.
6151 depcmd
="depmode=$depmode \
6152 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6153 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6154 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6155 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
6156 if env
$depcmd > conftest.err
2>&1 &&
6157 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
6158 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
6159 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
6160 # icc doesn't choke on unknown options, it will just issue warnings
6161 # or remarks (even with -Werror). So we grep stderr for any message
6162 # that says an option was ignored or not supported.
6163 # When given -MP, icc 7.0 and 7.1 complain thusly:
6164 # icc: Command line warning: ignoring option '-M'; no argument required
6165 # The diagnosis changed in icc 8.0:
6166 # icc: Command line remark: option '-MP' not supported
6167 if (grep 'ignoring option' conftest.err ||
6168 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6169 am_cv_CC_dependencies_compiler_type
=$depmode
6170 $as_echo "$as_me:$LINENO: success" >&5
6174 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6175 sed -e 's/^/| /' < conftest.err
>&5
6181 am_cv_CC_dependencies_compiler_type
=none
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6186 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6187 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
6188 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
6189 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
6194 gnulib_extra_configure_args
=
6195 # If large-file support is disabled, make sure gnulib does the same.
6196 if test "$enable_largefile" = no
; then
6197 gnulib_extra_configure_args
="$gnulib_extra_configure_args --disable-largefile"
6200 # Configure gnulib. We need to build gnulib under some other
6201 # directory not "gnulib", to avoid the problem of both GDB and
6202 # GDBserver wanting to build it in the same directory, when building
6203 # in the source dir.
6206 in_build
="build-gnulib"
6207 in_extra_args
="$gnulib_extra_configure_args"
6209 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
6210 # so they do not pile up.
6211 ac_sub_configure_args
=
6213 eval "set x $ac_configure_args"
6217 if test -n "$ac_prev"; then
6222 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
6223 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
6224 ac_prev
=cache_file
;;
6225 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
6226 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
6229 --config-cache |
-C)
6231 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
6233 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
6235 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
6237 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
6239 --disable-option-checking)
6243 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6245 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
6249 # Always prepend --prefix to ensure using the same prefix
6250 # in subdir configurations.
6251 ac_arg
="--prefix=$prefix"
6253 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6255 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
6258 if test "$silent" = yes; then
6259 ac_sub_configure_args
="--silent $ac_sub_configure_args"
6262 # Always prepend --disable-option-checking to silence warnings, since
6263 # different subdirs can have different --enable and --with options.
6264 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
6269 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
6270 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
6271 $as_echo "$ac_msg" >&6
6272 as_dir
="$ac_dir"; as_fn_mkdir_p
6276 ac_srcdir
=$srcdir/$in_src ;;
6278 ac_srcdir
=..
/$srcdir/$in_src ;;
6283 ac_sub_configure
=$ac_srcdir/configure
6285 # Make the cache file name correct relative to the subdirectory.
6287 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
6289 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
6292 if test -n "$in_extra_args"; then
6293 # Add the extra args at the end.
6294 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
6297 { $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
6298 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6299 # The eval makes quoting arguments work.
6300 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
6301 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
6302 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
6318 # If we haven't got the data from the intl directory,
6319 # assume NLS is disabled.
6328 if test -f ..
/intl
/config.intl
; then
6329 . ..
/intl
/config.intl
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6332 $as_echo_n "checking whether NLS is requested... " >&6; }
6333 if test x
"$USE_NLS" != xyes
; then
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6335 $as_echo "no" >&6; }
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6338 $as_echo "yes" >&6; }
6340 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6344 $as_echo_n "checking for catalogs to be installed... " >&6; }
6345 # Look for .po and .gmo files in the source directory.
6348 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
6349 # If there aren't any .gmo files the shell will give us the
6350 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6352 case "$cat" in *\
**)
6355 # The quadruple backslash is collapsed to a double backslash
6356 # by the backticks, then collapsed again by the double quotes,
6357 # leaving us with one backslash in the sed expression (right
6358 # before the dot that mustn't act as a wildcard).
6359 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6360 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
6361 # The user is allowed to set LINGUAS to a list of languages to
6362 # install catalogs for. If it's empty that means "all of them."
6363 if test "x$LINGUAS" = x
; then
6364 CATALOGS
="$CATALOGS $cat"
6365 XLINGUAS
="$XLINGUAS $lang"
6367 case "$LINGUAS" in *$lang*)
6368 CATALOGS
="$CATALOGS $cat"
6369 XLINGUAS
="$XLINGUAS $lang"
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6376 $as_echo "$LINGUAS" >&6; }
6389 localedir
='${datadir}/locale'
6392 if test x
"$USE_NLS" = xyes
; then
6393 CONFIG_ALL
="$CONFIG_ALL all-po"
6394 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
6395 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
6396 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
6399 GNULIB
=build-gnulib
/import
6401 # For Makefile dependencies.
6403 if test x
"$STDINT_H" != x
; then
6404 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
6410 cat >>confdefs.h
<<_ACEOF
6411 #define PACKAGE "$PACKAGE"
6416 # We never need to detect it in this sub-configure.
6417 # But preserve it for config.status --recheck.
6421 MAKEINFO_EXTRA_FLAGS
=""
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
6423 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
6424 if ${gdb_cv_have_makeinfo_click+:} false
; then :
6425 $as_echo_n "(cached) " >&6
6427 echo '@clicksequence{a @click{} b}' >conftest.texinfo
6428 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
6429 gdb_cv_have_makeinfo_click
=yes
6431 gdb_cv_have_makeinfo_click
=no
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
6435 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
6436 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
6437 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
6443 # Check whether --with-separate-debug-dir was given.
6444 if test "${with_separate_debug_dir+set}" = set; then :
6445 withval
=$with_separate_debug_dir;
6448 DEBUGDIR
=${libdir}/debug
6452 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6453 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6454 ac_define_dir
=`eval echo $DEBUGDIR`
6455 ac_define_dir
=`eval echo $ac_define_dir`
6457 cat >>confdefs.h
<<_ACEOF
6458 #define DEBUGDIR "$ac_define_dir"
6464 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6465 if test "x$prefix" = xNONE
; then
6466 test_prefix
=/usr
/local
6471 test_prefix
=$exec_prefix
6474 case ${ac_define_dir} in
6475 "${test_prefix}"|
"${test_prefix}/"*|\
6476 '${exec_prefix}'|
'${exec_prefix}/'*)
6481 cat >>confdefs.h
<<_ACEOF
6482 #define DEBUGDIR_RELOCATABLE $value
6488 # We can't pass paths as command line arguments.
6489 # Mingw32 tries to be clever and will convert the paths for us.
6490 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
6491 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
6492 # This breaks GDB's relocatable path conversions since paths passed in
6493 # config.h would not get so translated, the path prefixes no longer match.
6495 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6496 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6497 ac_define_dir
=`eval echo $bindir`
6498 ac_define_dir
=`eval echo $ac_define_dir`
6500 cat >>confdefs.h
<<_ACEOF
6501 #define BINDIR "$ac_define_dir"
6506 # GDB's datadir relocation
6510 # Check whether --with-gdb-datadir was given.
6511 if test "${with_gdb_datadir+set}" = set; then :
6512 withval
=$with_gdb_datadir;
6513 GDB_DATADIR
=$withval
6515 GDB_DATADIR
=${datadir}/gdb
6519 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6520 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6521 ac_define_dir
=`eval echo $GDB_DATADIR`
6522 ac_define_dir
=`eval echo $ac_define_dir`
6524 cat >>confdefs.h
<<_ACEOF
6525 #define GDB_DATADIR "$ac_define_dir"
6531 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6532 if test "x$prefix" = xNONE
; then
6533 test_prefix
=/usr
/local
6538 test_prefix
=$exec_prefix
6541 case ${ac_define_dir} in
6542 "${test_prefix}"|
"${test_prefix}/"*|\
6543 '${exec_prefix}'|
'${exec_prefix}/'*)
6548 cat >>confdefs.h
<<_ACEOF
6549 #define GDB_DATADIR_RELOCATABLE $value
6556 # Check whether --with-relocated-sources was given.
6557 if test "${with_relocated_sources+set}" = set; then :
6558 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
6560 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6561 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6562 ac_define_dir
=`eval echo $reloc_srcdir`
6563 ac_define_dir
=`eval echo $ac_define_dir`
6565 cat >>confdefs.h
<<_ACEOF
6566 #define RELOC_SRCDIR "$ac_define_dir"
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
6575 $as_echo_n "checking for default auto-load directory... " >&6; }
6577 # Check whether --with-auto-load-dir was given.
6578 if test "${with_auto_load_dir+set}" = set; then :
6579 withval
=$with_auto_load_dir;
6581 with_auto_load_dir
='$debugdir:$datadir/auto-load'
6584 escape_dir
=`echo $with_auto_load_dir | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6586 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6587 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6588 ac_define_dir
=`eval echo $escape_dir`
6589 ac_define_dir
=`eval echo $ac_define_dir`
6591 cat >>confdefs.h
<<_ACEOF
6592 #define AUTO_LOAD_DIR "$ac_define_dir"
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
6597 $as_echo "$with_auto_load_dir" >&6; }
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
6600 $as_echo_n "checking for default auto-load safe-path... " >&6; }
6602 # Check whether --with-auto-load-safe-path was given.
6603 if test "${with_auto_load_safe_path+set}" = set; then :
6604 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
6605 with_auto_load_safe_path
="/"
6608 with_auto_load_safe_path
="$with_auto_load_dir"
6611 escape_dir
=`echo $with_auto_load_safe_path | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6613 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6614 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6615 ac_define_dir
=`eval echo $escape_dir`
6616 ac_define_dir
=`eval echo $ac_define_dir`
6618 cat >>confdefs.h
<<_ACEOF
6619 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
6624 $as_echo "$with_auto_load_safe_path" >&6; }
6628 subdirs
="$subdirs testsuite"
6631 # Check whether to support alternative target configurations
6632 # Check whether --enable-targets was given.
6633 if test "${enable_targets+set}" = set; then :
6634 enableval
=$enable_targets; case "${enableval}" in
6635 yes |
"") as_fn_error $?
"enable-targets option must specify target names or 'all'" "$LINENO" 5
6637 no
) enable_targets
= ;;
6638 *) enable_targets
=$enableval ;;
6643 # Check whether to enable 64-bit support on 32-bit hosts
6644 # Check whether --enable-64-bit-bfd was given.
6645 if test "${enable_64_bit_bfd+set}" = set; then :
6646 enableval
=$enable_64_bit_bfd; case "${enableval}" in
6649 *) as_fn_error $?
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
6655 # Provide defaults for some variables set by the per-host and per-target
6657 gdb_host_obs
=posix-hdep.o
6659 if test "${target}" = "${host}"; then
6665 .
$srcdir/configure.
host
6667 # Add in the common host objects.
6668 .
$srcdir/common
/common.
host
6669 gdb_host_obs
="$gdb_host_obs $common_host_obs"
6671 # Accumulate some settings from configure.tgt over all enabled targets
6675 HAVE_NATIVE_GCORE_TARGET
=
6677 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6679 if test "$targ_alias" = "all"; then
6682 # Canonicalize the secondary target names.
6683 result
=`$ac_config_sub $targ_alias 2>/dev/null`
6684 if test -n "$result"; then
6690 .
${srcdir}/configure.tgt
6692 if test -z "${gdb_target_obs}"; then :
6693 as_fn_error $?
"configuration ${targ} is unsupported." "$LINENO" 5
6696 # Target-specific object files
6697 for i
in ${gdb_target_obs}; do
6698 case " $TARGET_OBS " in
6701 TARGET_OBS
="$TARGET_OBS ${i}"
6706 # Check whether this target needs 64-bit CORE_ADDR
6707 if test x
${want64} = xfalse
; then
6708 .
${srcdir}/..
/bfd
/config.bfd
6711 # Check whether this target is native and supports gcore.
6712 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
6713 && $gdb_have_gcore; then
6714 HAVE_NATIVE_GCORE_TARGET
=1
6719 if test x
${all_targets} = xtrue
; then
6721 # We want all 64-bit targets if we either:
6722 # - run on a 64-bit host or
6723 # - already require 64-bit support for some other target or
6724 # - the --enable-64-bit-bfd option was supplied
6725 # Otherwise we only support all 32-bit targets.
6727 # NOTE: This test must be in sync with the corresponding
6730 if test x
${want64} = xfalse
; then
6731 # The cast to long int works around a bug in the HP C Compiler
6732 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6733 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6734 # This bug is HP SR number 8606223364.
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6736 $as_echo_n "checking size of long... " >&6; }
6737 if ${ac_cv_sizeof_long+:} false
; then :
6738 $as_echo_n "(cached) " >&6
6740 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6743 if test "$ac_cv_type_long" = yes; then
6744 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6746 as_fn_error
77 "cannot compute sizeof (long)
6747 See \`config.log' for more details" "$LINENO" 5; }
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6755 $as_echo "$ac_cv_sizeof_long" >&6; }
6759 cat >>confdefs.h
<<_ACEOF
6760 #define SIZEOF_LONG $ac_cv_sizeof_long
6764 if test "x${ac_cv_sizeof_long}" = "x8"; then
6768 if test x
${want64} = xtrue
; then
6769 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
6771 TARGET_OBS
='$(ALL_TARGET_OBS)'
6778 # For other settings, only the main target counts.
6782 targ
=$target; .
${srcdir}/configure.tgt
6784 # Fetch the default architecture and default target vector from BFD.
6785 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
6787 # We only want the first architecture, so strip off the others if
6788 # there is more than one.
6789 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
6791 if test "x$targ_archs" != x
; then
6793 cat >>confdefs.h
<<_ACEOF
6794 #define DEFAULT_BFD_ARCH $targ_archs
6798 if test "x$targ_defvec" != x
; then
6800 cat >>confdefs.h
<<_ACEOF
6801 #define DEFAULT_BFD_VEC $targ_defvec
6807 # Check whether --enable-gdbmi was given.
6808 if test "${enable_gdbmi+set}" = set; then :
6809 enableval
=$enable_gdbmi; case $enableval in
6813 as_fn_error $?
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
6819 if test x
"$enable_gdbmi" = xyes
; then
6820 if test -d $srcdir/mi
; then
6821 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6822 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6823 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6824 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6829 # Check whether --enable-tui was given.
6830 if test "${enable_tui+set}" = set; then :
6831 enableval
=$enable_tui; case $enableval in
6835 as_fn_error $?
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
6843 # Check whether --enable-gdbtk was given.
6844 if test "${enable_gdbtk+set}" = set; then :
6845 enableval
=$enable_gdbtk; case $enableval in
6849 as_fn_error $?
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
6852 if test -d $srcdir/gdbtk
; then
6859 # We unconditionally disable gdbtk tests on selected platforms.
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
6863 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6867 # Libunwind support for ia64.
6870 # Check whether --with-libunwind-ia64 was given.
6871 if test "${with_libunwind_ia64+set}" = set; then :
6872 withval
=$with_libunwind_ia64;
6874 with_libunwind_ia64
=auto
6878 # Backward compatibility option.
6879 if test "${with_libunwind+set}" = set; then
6880 if test x
"$with_libunwind_ia64" != xauto
; then
6881 as_fn_error $?
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
6884 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
6885 with_libunwind_ia64
="$with_libunwind"
6888 case "$with_libunwind_ia64" in
6892 for ac_header
in libunwind-ia64.h
6894 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
6895 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
6896 cat >>confdefs.h
<<_ACEOF
6897 #define HAVE_LIBUNWIND_IA64_H 1
6904 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
6907 as_fn_error $?
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
6911 if test x
"$with_libunwind_ia64" = xyes
; then
6912 for ac_header
in libunwind-ia64.h
6914 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
6915 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
6916 cat >>confdefs.h
<<_ACEOF
6917 #define HAVE_LIBUNWIND_IA64_H 1
6924 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
6925 as_fn_error $?
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
6927 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
6928 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
6929 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
6934 # Check whether --with-curses was given.
6935 if test "${with_curses+set}" = set; then :
6936 withval
=$with_curses; opt_curses
=$withval
6941 if test "$opt_curses" = "yes"; then
6945 # Profiling support.
6946 # Check whether --enable-profiling was given.
6947 if test "${enable_profiling+set}" = set; then :
6948 enableval
=$enable_profiling; case $enableval in
6952 as_fn_error $?
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
6959 for ac_func
in monstartup _mcleanup
6961 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6962 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6963 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6964 cat >>confdefs.h
<<_ACEOF
6965 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
6972 $as_echo_n "checking for _etext... " >&6; }
6973 if ${ac_cv_var__etext+:} false
; then :
6974 $as_echo_n "(cached) " >&6
6976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6977 /* end confdefs.h. */
6989 if ac_fn_c_try_link
"$LINENO"; then :
6990 ac_cv_var__etext
=yes
6994 rm -f core conftest.err conftest.
$ac_objext \
6995 conftest
$ac_exeext conftest.
$ac_ext
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
6998 $as_echo "$ac_cv_var__etext" >&6; }
6999 if test $ac_cv_var__etext = yes; then
7001 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
7005 $as_echo_n "checking for etext... " >&6; }
7006 if ${ac_cv_var_etext+:} false
; then :
7007 $as_echo_n "(cached) " >&6
7009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7010 /* end confdefs.h. */
7022 if ac_fn_c_try_link
"$LINENO"; then :
7027 rm -f core conftest.err conftest.
$ac_objext \
7028 conftest
$ac_exeext conftest.
$ac_ext
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
7031 $as_echo "$ac_cv_var_etext" >&6; }
7032 if test $ac_cv_var_etext = yes; then
7034 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
7037 if test "$enable_profiling" = yes ; then
7038 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
7039 as_fn_error $?
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
7042 OLD_CFLAGS
="$CFLAGS"
7043 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
7046 $as_echo_n "checking whether $CC supports -pg... " >&6; }
7047 if ${ac_cv_cc_supports_pg+:} false
; then :
7048 $as_echo_n "(cached) " >&6
7050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7051 /* end confdefs.h. */
7061 if ac_fn_c_try_compile
"$LINENO"; then :
7062 ac_cv_cc_supports_pg
=yes
7064 ac_cv_cc_supports_pg
=no
7066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
7069 $as_echo "$ac_cv_cc_supports_pg" >&6; }
7071 if test $ac_cv_cc_supports_pg = no
; then
7072 as_fn_error $?
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
7075 CFLAGS
="$OLD_CFLAGS"
7079 # Check whether --enable-codesign was given.
7080 if test "${enable_codesign+set}" = set; then :
7081 enableval
=$enable_codesign; CODESIGN_CERT
=$enableval
7088 # Check whether --with-pkgversion was given.
7089 if test "${with_pkgversion+set}" = set; then :
7090 withval
=$with_pkgversion; case "$withval" in
7091 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
7093 *) PKGVERSION
="($withval) " ;;
7104 # Check whether --with-bugurl was given.
7105 if test "${with_bugurl+set}" = set; then :
7106 withval
=$with_bugurl; case "$withval" in
7107 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
7110 *) BUGURL
="$withval"
7114 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
7124 REPORT_BUGS_TO
="<$BUGURL>"
7125 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7132 cat >>confdefs.h
<<_ACEOF
7133 #define PKGVERSION "$PKGVERSION"
7137 cat >>confdefs.h
<<_ACEOF
7138 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7142 # --------------------- #
7143 # Checks for programs. #
7144 # --------------------- #
7146 for ac_prog
in gawk mawk nawk
awk
7148 # Extract the first word of "$ac_prog", so it can be a program name with args.
7149 set dummy
$ac_prog; ac_word
=$2
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7151 $as_echo_n "checking for $ac_word... " >&6; }
7152 if ${ac_cv_prog_AWK+:} false
; then :
7153 $as_echo_n "(cached) " >&6
7155 if test -n "$AWK"; then
7156 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7158 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7162 test -z "$as_dir" && as_dir
=.
7163 for ac_exec_ext
in '' $ac_executable_extensions; do
7164 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7165 ac_cv_prog_AWK
="$ac_prog"
7166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7176 if test -n "$AWK"; then
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7178 $as_echo "$AWK" >&6; }
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7181 $as_echo "no" >&6; }
7185 test -n "$AWK" && break
7188 # Find a good install program. We prefer a C program (faster),
7189 # so one script is as good as another. But avoid the broken or
7190 # incompatible versions:
7191 # SysV /etc/install, /usr/sbin/install
7192 # SunOS /usr/etc/install
7193 # IRIX /sbin/install
7195 # AmigaOS /C/install, which installs bootblocks on floppy discs
7196 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7197 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7198 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7199 # OS/2's system install, which has a completely different semantic
7200 # ./install, which can be erroneously created by make from ./install.sh.
7201 # Reject install programs that cannot install multiple files.
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7203 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7204 if test -z "$INSTALL"; then
7205 if ${ac_cv_path_install+:} false
; then :
7206 $as_echo_n "(cached) " >&6
7208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7212 test -z "$as_dir" && as_dir
=.
7213 # Account for people who put trailing slashes in PATH elements.
7214 case $as_dir/ in #((
7215 .
/ | .
// |
/[cC
]/* | \
7216 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7217 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
7220 # OSF1 and SCO ODT 3.0 have their own names for install.
7221 # Don't use installbsd from OSF since it installs stuff as root
7223 for ac_prog
in ginstall scoinst
install; do
7224 for ac_exec_ext
in '' $ac_executable_extensions; do
7225 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
7226 if test $ac_prog = install &&
7227 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7228 # AIX install. It has an incompatible calling convention.
7230 elif test $ac_prog = install &&
7231 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7232 # program-specific install script used by HP pwplus--don't use.
7235 rm -rf conftest.one conftest.two conftest.dir
7236 echo one
> conftest.one
7237 echo two
> conftest.two
7239 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
7240 test -s conftest.one
&& test -s conftest.two
&&
7241 test -s conftest.dir
/conftest.one
&&
7242 test -s conftest.dir
/conftest.two
7244 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7257 rm -rf conftest.one conftest.two conftest.dir
7260 if test "${ac_cv_path_install+set}" = set; then
7261 INSTALL
=$ac_cv_path_install
7263 # As a last resort, use the slow shell script. Don't cache a
7264 # value for INSTALL within a source directory, because that will
7265 # break other packages using the cache if that directory is
7266 # removed, or if the value is a relative name.
7267 INSTALL
=$ac_install_sh
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7271 $as_echo "$INSTALL" >&6; }
7273 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7274 # It thinks the first close brace ends the variable substitution.
7275 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7277 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7279 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7282 $as_echo_n "checking whether ln -s works... " >&6; }
7284 if test "$LN_S" = "ln -s"; then
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7286 $as_echo "yes" >&6; }
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7289 $as_echo "no, using $LN_S" >&6; }
7292 if test -n "$ac_tool_prefix"; then
7293 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7294 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7296 $as_echo_n "checking for $ac_word... " >&6; }
7297 if ${ac_cv_prog_RANLIB+:} false
; then :
7298 $as_echo_n "(cached) " >&6
7300 if test -n "$RANLIB"; then
7301 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7303 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7307 test -z "$as_dir" && as_dir
=.
7308 for ac_exec_ext
in '' $ac_executable_extensions; do
7309 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7310 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7320 RANLIB
=$ac_cv_prog_RANLIB
7321 if test -n "$RANLIB"; then
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7323 $as_echo "$RANLIB" >&6; }
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326 $as_echo "no" >&6; }
7331 if test -z "$ac_cv_prog_RANLIB"; then
7332 ac_ct_RANLIB
=$RANLIB
7333 # Extract the first word of "ranlib", so it can be a program name with args.
7334 set dummy ranlib
; ac_word
=$2
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7336 $as_echo_n "checking for $ac_word... " >&6; }
7337 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
7338 $as_echo_n "(cached) " >&6
7340 if test -n "$ac_ct_RANLIB"; then
7341 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7343 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7347 test -z "$as_dir" && as_dir
=.
7348 for ac_exec_ext
in '' $ac_executable_extensions; do
7349 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7350 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7360 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7361 if test -n "$ac_ct_RANLIB"; then
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7363 $as_echo "$ac_ct_RANLIB" >&6; }
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7366 $as_echo "no" >&6; }
7369 if test "x$ac_ct_RANLIB" = x
; then
7372 case $cross_compiling:$ac_tool_warned in
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7376 ac_tool_warned
=yes ;;
7378 RANLIB
=$ac_ct_RANLIB
7381 RANLIB
="$ac_cv_prog_RANLIB"
7384 for ac_prog
in 'bison -y' byacc
7386 # Extract the first word of "$ac_prog", so it can be a program name with args.
7387 set dummy
$ac_prog; ac_word
=$2
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7389 $as_echo_n "checking for $ac_word... " >&6; }
7390 if ${ac_cv_prog_YACC+:} false
; then :
7391 $as_echo_n "(cached) " >&6
7393 if test -n "$YACC"; then
7394 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
7396 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7400 test -z "$as_dir" && as_dir
=.
7401 for ac_exec_ext
in '' $ac_executable_extensions; do
7402 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7403 ac_cv_prog_YACC
="$ac_prog"
7404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7413 YACC
=$ac_cv_prog_YACC
7414 if test -n "$YACC"; then
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7416 $as_echo "$YACC" >&6; }
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7419 $as_echo "no" >&6; }
7423 test -n "$YACC" && break
7425 test -n "$YACC" || YACC
="yacc"
7428 if test -n "$ac_tool_prefix"; then
7429 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7430 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7432 $as_echo_n "checking for $ac_word... " >&6; }
7433 if ${ac_cv_prog_AR+:} false
; then :
7434 $as_echo_n "(cached) " >&6
7436 if test -n "$AR"; then
7437 ac_cv_prog_AR
="$AR" # Let the user override the test.
7439 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7443 test -z "$as_dir" && as_dir
=.
7444 for ac_exec_ext
in '' $ac_executable_extensions; do
7445 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7446 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7457 if test -n "$AR"; then
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7459 $as_echo "$AR" >&6; }
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462 $as_echo "no" >&6; }
7467 if test -z "$ac_cv_prog_AR"; then
7469 # Extract the first word of "ar", so it can be a program name with args.
7470 set dummy
ar; ac_word
=$2
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7472 $as_echo_n "checking for $ac_word... " >&6; }
7473 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
7474 $as_echo_n "(cached) " >&6
7476 if test -n "$ac_ct_AR"; then
7477 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7479 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7483 test -z "$as_dir" && as_dir
=.
7484 for ac_exec_ext
in '' $ac_executable_extensions; do
7485 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7486 ac_cv_prog_ac_ct_AR
="ar"
7487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7496 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7497 if test -n "$ac_ct_AR"; then
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7499 $as_echo "$ac_ct_AR" >&6; }
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7502 $as_echo "no" >&6; }
7505 if test "x$ac_ct_AR" = x
; then
7508 case $cross_compiling:$ac_tool_warned in
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7512 ac_tool_warned
=yes ;;
7520 if test -n "$ac_tool_prefix"; then
7521 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7522 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7524 $as_echo_n "checking for $ac_word... " >&6; }
7525 if ${ac_cv_prog_DLLTOOL+:} false
; then :
7526 $as_echo_n "(cached) " >&6
7528 if test -n "$DLLTOOL"; then
7529 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
7531 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7535 test -z "$as_dir" && as_dir
=.
7536 for ac_exec_ext
in '' $ac_executable_extensions; do
7537 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7538 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
7539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7548 DLLTOOL
=$ac_cv_prog_DLLTOOL
7549 if test -n "$DLLTOOL"; then
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7551 $as_echo "$DLLTOOL" >&6; }
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7554 $as_echo "no" >&6; }
7559 if test -z "$ac_cv_prog_DLLTOOL"; then
7560 ac_ct_DLLTOOL
=$DLLTOOL
7561 # Extract the first word of "dlltool", so it can be a program name with args.
7562 set dummy dlltool
; ac_word
=$2
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7564 $as_echo_n "checking for $ac_word... " >&6; }
7565 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
7566 $as_echo_n "(cached) " >&6
7568 if test -n "$ac_ct_DLLTOOL"; then
7569 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
7571 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7575 test -z "$as_dir" && as_dir
=.
7576 for ac_exec_ext
in '' $ac_executable_extensions; do
7577 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7578 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
7579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7588 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
7589 if test -n "$ac_ct_DLLTOOL"; then
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7591 $as_echo "$ac_ct_DLLTOOL" >&6; }
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7594 $as_echo "no" >&6; }
7597 if test "x$ac_ct_DLLTOOL" = x
; then
7600 case $cross_compiling:$ac_tool_warned in
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7604 ac_tool_warned
=yes ;;
7606 DLLTOOL
=$ac_ct_DLLTOOL
7609 DLLTOOL
="$ac_cv_prog_DLLTOOL"
7612 if test -n "$ac_tool_prefix"; then
7613 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7614 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7616 $as_echo_n "checking for $ac_word... " >&6; }
7617 if ${ac_cv_prog_WINDRES+:} false
; then :
7618 $as_echo_n "(cached) " >&6
7620 if test -n "$WINDRES"; then
7621 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
7623 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7627 test -z "$as_dir" && as_dir
=.
7628 for ac_exec_ext
in '' $ac_executable_extensions; do
7629 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7630 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
7631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7640 WINDRES
=$ac_cv_prog_WINDRES
7641 if test -n "$WINDRES"; then
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7643 $as_echo "$WINDRES" >&6; }
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646 $as_echo "no" >&6; }
7651 if test -z "$ac_cv_prog_WINDRES"; then
7652 ac_ct_WINDRES
=$WINDRES
7653 # Extract the first word of "windres", so it can be a program name with args.
7654 set dummy windres
; ac_word
=$2
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656 $as_echo_n "checking for $ac_word... " >&6; }
7657 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
7658 $as_echo_n "(cached) " >&6
7660 if test -n "$ac_ct_WINDRES"; then
7661 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
7663 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7667 test -z "$as_dir" && as_dir
=.
7668 for ac_exec_ext
in '' $ac_executable_extensions; do
7669 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7670 ac_cv_prog_ac_ct_WINDRES
="windres"
7671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7680 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
7681 if test -n "$ac_ct_WINDRES"; then
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7683 $as_echo "$ac_ct_WINDRES" >&6; }
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686 $as_echo "no" >&6; }
7689 if test "x$ac_ct_WINDRES" = x
; then
7692 case $cross_compiling:$ac_tool_warned in
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7696 ac_tool_warned
=yes ;;
7698 WINDRES
=$ac_ct_WINDRES
7701 WINDRES
="$ac_cv_prog_WINDRES"
7707 # Needed for GNU Hurd hosts.
7708 if test -n "$ac_tool_prefix"; then
7709 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7710 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7712 $as_echo_n "checking for $ac_word... " >&6; }
7713 if ${ac_cv_prog_MIG+:} false
; then :
7714 $as_echo_n "(cached) " >&6
7716 if test -n "$MIG"; then
7717 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
7719 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7723 test -z "$as_dir" && as_dir
=.
7724 for ac_exec_ext
in '' $ac_executable_extensions; do
7725 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7726 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
7727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7737 if test -n "$MIG"; then
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
7739 $as_echo "$MIG" >&6; }
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742 $as_echo "no" >&6; }
7747 if test -z "$ac_cv_prog_MIG"; then
7749 # Extract the first word of "mig", so it can be a program name with args.
7750 set dummy mig
; ac_word
=$2
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7752 $as_echo_n "checking for $ac_word... " >&6; }
7753 if ${ac_cv_prog_ac_ct_MIG+:} false
; then :
7754 $as_echo_n "(cached) " >&6
7756 if test -n "$ac_ct_MIG"; then
7757 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
7759 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7763 test -z "$as_dir" && as_dir
=.
7764 for ac_exec_ext
in '' $ac_executable_extensions; do
7765 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7766 ac_cv_prog_ac_ct_MIG
="mig"
7767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7776 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
7777 if test -n "$ac_ct_MIG"; then
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
7779 $as_echo "$ac_ct_MIG" >&6; }
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7782 $as_echo "no" >&6; }
7785 if test "x$ac_ct_MIG" = x
; then
7788 case $cross_compiling:$ac_tool_warned in
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7792 ac_tool_warned
=yes ;;
7797 MIG
="$ac_cv_prog_MIG"
7800 if test x
"$MIG" = x
; then
7801 as_fn_error $?
"MIG not found but required for $host hosts" "$LINENO" 5
7806 # ---------------------- #
7807 # Checks for libraries. #
7808 # ---------------------- #
7810 # We might need to link with -lm; most simulators need it.
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7812 $as_echo_n "checking for main in -lm... " >&6; }
7813 if ${ac_cv_lib_m_main+:} false
; then :
7814 $as_echo_n "(cached) " >&6
7816 ac_check_lib_save_LIBS
=$LIBS
7818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7819 /* end confdefs.h. */
7830 if ac_fn_c_try_link
"$LINENO"; then :
7831 ac_cv_lib_m_main
=yes
7835 rm -f core conftest.err conftest.
$ac_objext \
7836 conftest
$ac_exeext conftest.
$ac_ext
7837 LIBS
=$ac_check_lib_save_LIBS
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7840 $as_echo "$ac_cv_lib_m_main" >&6; }
7841 if test "x$ac_cv_lib_m_main" = xyes
; then :
7842 cat >>confdefs.h
<<_ACEOF
7851 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
7853 $as_echo_n "checking for library containing gethostbyname... " >&6; }
7854 if ${ac_cv_search_gethostbyname+:} false
; then :
7855 $as_echo_n "(cached) " >&6
7857 ac_func_search_save_LIBS
=$LIBS
7858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7859 /* end confdefs.h. */
7861 /* Override any GCC internal prototype to avoid an error.
7862 Use char because int might match the return type of a GCC
7863 builtin and then its argument prototype would still apply. */
7867 char gethostbyname ();
7871 return gethostbyname ();
7876 for ac_lib
in '' nsl
; do
7877 if test -z "$ac_lib"; then
7878 ac_res
="none required"
7881 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7883 if ac_fn_c_try_link
"$LINENO"; then :
7884 ac_cv_search_gethostbyname
=$ac_res
7886 rm -f core conftest.err conftest.
$ac_objext \
7888 if ${ac_cv_search_gethostbyname+:} false
; then :
7892 if ${ac_cv_search_gethostbyname+:} false
; then :
7895 ac_cv_search_gethostbyname
=no
7898 LIBS
=$ac_func_search_save_LIBS
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
7901 $as_echo "$ac_cv_search_gethostbyname" >&6; }
7902 ac_res
=$ac_cv_search_gethostbyname
7903 if test "$ac_res" != no
; then :
7904 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7909 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
7911 $as_echo_n "checking for library containing socketpair... " >&6; }
7912 if ${ac_cv_search_socketpair+:} false
; then :
7913 $as_echo_n "(cached) " >&6
7915 ac_func_search_save_LIBS
=$LIBS
7916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7917 /* end confdefs.h. */
7919 /* Override any GCC internal prototype to avoid an error.
7920 Use char because int might match the return type of a GCC
7921 builtin and then its argument prototype would still apply. */
7929 return socketpair ();
7934 for ac_lib
in '' socket
; do
7935 if test -z "$ac_lib"; then
7936 ac_res
="none required"
7939 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7941 if ac_fn_c_try_link
"$LINENO"; then :
7942 ac_cv_search_socketpair
=$ac_res
7944 rm -f core conftest.err conftest.
$ac_objext \
7946 if ${ac_cv_search_socketpair+:} false
; then :
7950 if ${ac_cv_search_socketpair+:} false
; then :
7953 ac_cv_search_socketpair
=no
7956 LIBS
=$ac_func_search_save_LIBS
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
7959 $as_echo "$ac_cv_search_socketpair" >&6; }
7960 ac_res
=$ac_cv_search_socketpair
7961 if test "$ac_res" != no
; then :
7962 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7967 # Link in zlib if we can. This allows us to read compressed debug sections.
7969 # Use the system's zlib library.
7970 zlibdir
="-L\$(top_builddir)/../zlib"
7971 zlibinc
="-I\$(top_srcdir)/../zlib"
7973 # Check whether --with-system-zlib was given.
7974 if test "${with_system_zlib+set}" = set; then :
7975 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
7986 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
7987 # On GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
7989 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
7990 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
7991 $as_echo_n "(cached) " >&6
7993 ac_func_search_save_LIBS
=$LIBS
7994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7995 /* end confdefs.h. */
7997 /* Override any GCC internal prototype to avoid an error.
7998 Use char because int might match the return type of a GCC
7999 builtin and then its argument prototype would still apply. */
8003 char kinfo_getvmmap ();
8007 return kinfo_getvmmap ();
8012 for ac_lib
in '' util util-freebsd
; do
8013 if test -z "$ac_lib"; then
8014 ac_res
="none required"
8017 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8019 if ac_fn_c_try_link
"$LINENO"; then :
8020 ac_cv_search_kinfo_getvmmap
=$ac_res
8022 rm -f core conftest.err conftest.
$ac_objext \
8024 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
8028 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
8031 ac_cv_search_kinfo_getvmmap
=no
8034 LIBS
=$ac_func_search_save_LIBS
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
8037 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
8038 ac_res
=$ac_cv_search_kinfo_getvmmap
8039 if test "$ac_res" != no
; then :
8040 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8042 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
8047 # fbsd-nat.c can also use kinfo_getfile.
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
8049 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
8050 if ${ac_cv_search_kinfo_getfile+:} false
; then :
8051 $as_echo_n "(cached) " >&6
8053 ac_func_search_save_LIBS
=$LIBS
8054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8055 /* end confdefs.h. */
8057 /* Override any GCC internal prototype to avoid an error.
8058 Use char because int might match the return type of a GCC
8059 builtin and then its argument prototype would still apply. */
8063 char kinfo_getfile ();
8067 return kinfo_getfile ();
8072 for ac_lib
in '' util util-freebsd
; do
8073 if test -z "$ac_lib"; then
8074 ac_res
="none required"
8077 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8079 if ac_fn_c_try_link
"$LINENO"; then :
8080 ac_cv_search_kinfo_getfile
=$ac_res
8082 rm -f core conftest.err conftest.
$ac_objext \
8084 if ${ac_cv_search_kinfo_getfile+:} false
; then :
8088 if ${ac_cv_search_kinfo_getfile+:} false
; then :
8091 ac_cv_search_kinfo_getfile
=no
8094 LIBS
=$ac_func_search_save_LIBS
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
8097 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
8098 ac_res
=$ac_cv_search_kinfo_getfile
8099 if test "$ac_res" != no
; then :
8100 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8102 $as_echo "#define HAVE_KINFO_GETFILE 1" >>confdefs.h
8108 if test "X$prefix" = "XNONE"; then
8109 acl_final_prefix
="$ac_default_prefix"
8111 acl_final_prefix
="$prefix"
8113 if test "X$exec_prefix" = "XNONE"; then
8114 acl_final_exec_prefix
='${prefix}'
8116 acl_final_exec_prefix
="$exec_prefix"
8118 acl_save_prefix
="$prefix"
8119 prefix
="$acl_final_prefix"
8120 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8121 prefix
="$acl_save_prefix"
8124 # Check whether --with-gnu-ld was given.
8125 if test "${with_gnu_ld+set}" = set; then :
8126 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8131 # Prepare PATH_SEPARATOR.
8132 # The user is always right.
8133 if test "${PATH_SEPARATOR+set}" != set; then
8134 echo "#! /bin/sh" >conf$$.sh
8135 echo "exit 0" >>conf$$.sh
8137 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8145 if test "$GCC" = yes; then
8146 # Check if gcc -print-prog-name=ld gives a path.
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8148 $as_echo_n "checking for ld used by GCC... " >&6; }
8151 # gcc leaves a trailing carriage return which upsets mingw
8152 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8154 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8157 # Accept absolute paths.
8158 [\\/]* |
[A-Za-z
]:[\\/]*)
8159 re_direlt
='/[^/][^/]*/\.\./'
8160 # Canonicalize the path of ld
8161 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8162 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8163 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8165 test -z "$LD" && LD
="$ac_prog"
8168 # If it fails, then pretend we aren't using GCC.
8172 # If it is relative, then search for the first ld in PATH.
8176 elif test "$with_gnu_ld" = yes; then
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8178 $as_echo_n "checking for GNU ld... " >&6; }
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8181 $as_echo_n "checking for non-GNU ld... " >&6; }
8183 if ${acl_cv_path_LD+:} false
; then :
8184 $as_echo_n "(cached) " >&6
8186 if test -z "$LD"; then
8187 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8188 for ac_dir
in $PATH; do
8189 test -z "$ac_dir" && ac_dir
=.
8190 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8191 acl_cv_path_LD
="$ac_dir/$ac_prog"
8192 # Check to see if the program is GNU ld. I'd rather use --version,
8193 # but apparently some GNU ld's only accept -v.
8194 # Break only if it was the GNU/non-GNU ld that we prefer.
8195 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
8196 test "$with_gnu_ld" != no
&& break
8198 test "$with_gnu_ld" != yes && break
8204 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8208 LD
="$acl_cv_path_LD"
8209 if test -n "$LD"; then
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8211 $as_echo "$LD" >&6; }
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8214 $as_echo "no" >&6; }
8216 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8218 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8219 if ${acl_cv_prog_gnu_ld+:} false
; then :
8220 $as_echo_n "(cached) " >&6
8222 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8223 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8224 acl_cv_prog_gnu_ld
=yes
8226 acl_cv_prog_gnu_ld
=no
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8230 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8231 with_gnu_ld
=$acl_cv_prog_gnu_ld
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8236 $as_echo_n "checking for shared library run path origin... " >&6; }
8237 if ${acl_cv_rpath+:} false
; then :
8238 $as_echo_n "(cached) " >&6
8241 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8242 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8249 $as_echo "$acl_cv_rpath" >&6; }
8251 libext
="$acl_cv_libext"
8252 shlibext
="$acl_cv_shlibext"
8253 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8254 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8255 hardcode_direct
="$acl_cv_hardcode_direct"
8256 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8257 # Check whether --enable-rpath was given.
8258 if test "${enable_rpath+set}" = set; then :
8259 enableval
=$enable_rpath; :
8273 acl_save_prefix
="$prefix"
8274 prefix
="$acl_final_prefix"
8275 acl_save_exec_prefix
="$exec_prefix"
8276 exec_prefix
="$acl_final_exec_prefix"
8278 eval additional_includedir
=\"$includedir\"
8279 eval additional_libdir
=\"$libdir\"
8281 exec_prefix
="$acl_save_exec_prefix"
8282 prefix
="$acl_save_prefix"
8285 # Check whether --with-libiconv-prefix was given.
8286 if test "${with_libiconv_prefix+set}" = set; then :
8287 withval
=$with_libiconv_prefix;
8288 if test "X$withval" = "Xno"; then
8291 if test "X$withval" = "X"; then
8293 acl_save_prefix
="$prefix"
8294 prefix
="$acl_final_prefix"
8295 acl_save_exec_prefix
="$exec_prefix"
8296 exec_prefix
="$acl_final_exec_prefix"
8298 eval additional_includedir
=\"$includedir\"
8299 eval additional_libdir
=\"$libdir\"
8301 exec_prefix
="$acl_save_exec_prefix"
8302 prefix
="$acl_save_prefix"
8305 additional_includedir
="$withval/include"
8306 additional_libdir
="$withval/lib"
8317 names_already_handled
=
8318 names_next_round
='iconv '
8319 while test -n "$names_next_round"; do
8320 names_this_round
="$names_next_round"
8322 for name
in $names_this_round; do
8324 for n
in $names_already_handled; do
8325 if test "$n" = "$name"; then
8330 if test -z "$already_handled"; then
8331 names_already_handled
="$names_already_handled $name"
8332 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8333 eval value
=\"\
$HAVE_LIB$uppername\"
8334 if test -n "$value"; then
8335 if test "$value" = yes; then
8336 eval value
=\"\
$LIB$uppername\"
8337 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
8338 eval value
=\"\
$LTLIB$uppername\"
8339 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
8348 if test $use_additional = yes; then
8349 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8350 found_dir
="$additional_libdir"
8351 found_so
="$additional_libdir/lib$name.$shlibext"
8352 if test -f "$additional_libdir/lib$name.la"; then
8353 found_la
="$additional_libdir/lib$name.la"
8356 if test -f "$additional_libdir/lib$name.$libext"; then
8357 found_dir
="$additional_libdir"
8358 found_a
="$additional_libdir/lib$name.$libext"
8359 if test -f "$additional_libdir/lib$name.la"; then
8360 found_la
="$additional_libdir/lib$name.la"
8365 if test "X$found_dir" = "X"; then
8366 for x
in $LDFLAGS $LTLIBICONV; do
8368 acl_save_prefix
="$prefix"
8369 prefix
="$acl_final_prefix"
8370 acl_save_exec_prefix
="$exec_prefix"
8371 exec_prefix
="$acl_final_exec_prefix"
8373 exec_prefix
="$acl_save_exec_prefix"
8374 prefix
="$acl_save_prefix"
8378 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8379 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8381 found_so
="$dir/lib$name.$shlibext"
8382 if test -f "$dir/lib$name.la"; then
8383 found_la
="$dir/lib$name.la"
8386 if test -f "$dir/lib$name.$libext"; then
8388 found_a
="$dir/lib$name.$libext"
8389 if test -f "$dir/lib$name.la"; then
8390 found_la
="$dir/lib$name.la"
8396 if test "X$found_dir" != "X"; then
8401 if test "X$found_dir" != "X"; then
8402 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8403 if test "X$found_so" != "X"; then
8404 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8405 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8408 for x
in $ltrpathdirs; do
8409 if test "X$x" = "X$found_dir"; then
8414 if test -z "$haveit"; then
8415 ltrpathdirs
="$ltrpathdirs $found_dir"
8417 if test "$hardcode_direct" = yes; then
8418 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8420 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8421 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8423 for x
in $rpathdirs; do
8424 if test "X$x" = "X$found_dir"; then
8429 if test -z "$haveit"; then
8430 rpathdirs
="$rpathdirs $found_dir"
8434 for x
in $LDFLAGS $LIBICONV; do
8436 acl_save_prefix
="$prefix"
8437 prefix
="$acl_final_prefix"
8438 acl_save_exec_prefix
="$exec_prefix"
8439 exec_prefix
="$acl_final_exec_prefix"
8441 exec_prefix
="$acl_save_exec_prefix"
8442 prefix
="$acl_save_prefix"
8444 if test "X$x" = "X-L$found_dir"; then
8449 if test -z "$haveit"; then
8450 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8452 if test "$hardcode_minus_L" != no
; then
8453 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8455 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8461 if test "X$found_a" != "X"; then
8462 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
8464 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8467 additional_includedir
=
8468 case "$found_dir" in
8470 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8471 additional_includedir
="$basedir/include"
8474 if test "X$additional_includedir" != "X"; then
8475 if test "X$additional_includedir" != "X/usr/include"; then
8477 if test "X$additional_includedir" = "X/usr/local/include"; then
8478 if test -n "$GCC"; then
8480 linux
*) haveit
=yes;;
8484 if test -z "$haveit"; then
8485 for x
in $CPPFLAGS $INCICONV; do
8487 acl_save_prefix
="$prefix"
8488 prefix
="$acl_final_prefix"
8489 acl_save_exec_prefix
="$exec_prefix"
8490 exec_prefix
="$acl_final_exec_prefix"
8492 exec_prefix
="$acl_save_exec_prefix"
8493 prefix
="$acl_save_prefix"
8495 if test "X$x" = "X-I$additional_includedir"; then
8500 if test -z "$haveit"; then
8501 if test -d "$additional_includedir"; then
8502 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8508 if test -n "$found_la"; then
8509 save_libdir
="$libdir"
8511 */* |
*\\*) .
"$found_la" ;;
8512 *) .
"./$found_la" ;;
8514 libdir
="$save_libdir"
8515 for dep
in $dependency_libs; do
8518 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8519 if test "X$additional_libdir" != "X/usr/lib"; then
8521 if test "X$additional_libdir" = "X/usr/local/lib"; then
8522 if test -n "$GCC"; then
8524 linux
*) haveit
=yes;;
8528 if test -z "$haveit"; then
8530 for x
in $LDFLAGS $LIBICONV; do
8532 acl_save_prefix
="$prefix"
8533 prefix
="$acl_final_prefix"
8534 acl_save_exec_prefix
="$exec_prefix"
8535 exec_prefix
="$acl_final_exec_prefix"
8537 exec_prefix
="$acl_save_exec_prefix"
8538 prefix
="$acl_save_prefix"
8540 if test "X$x" = "X-L$additional_libdir"; then
8545 if test -z "$haveit"; then
8546 if test -d "$additional_libdir"; then
8547 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8551 for x
in $LDFLAGS $LTLIBICONV; do
8553 acl_save_prefix
="$prefix"
8554 prefix
="$acl_final_prefix"
8555 acl_save_exec_prefix
="$exec_prefix"
8556 exec_prefix
="$acl_final_exec_prefix"
8558 exec_prefix
="$acl_save_exec_prefix"
8559 prefix
="$acl_save_prefix"
8561 if test "X$x" = "X-L$additional_libdir"; then
8566 if test -z "$haveit"; then
8567 if test -d "$additional_libdir"; then
8568 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8575 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8576 if test "$enable_rpath" != no
; then
8578 for x
in $rpathdirs; do
8579 if test "X$x" = "X$dir"; then
8584 if test -z "$haveit"; then
8585 rpathdirs
="$rpathdirs $dir"
8588 for x
in $ltrpathdirs; do
8589 if test "X$x" = "X$dir"; then
8594 if test -z "$haveit"; then
8595 ltrpathdirs
="$ltrpathdirs $dir"
8600 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8603 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8606 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
8607 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8613 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8614 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8620 if test "X$rpathdirs" != "X"; then
8621 if test -n "$hardcode_libdir_separator"; then
8623 for found_dir
in $rpathdirs; do
8624 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8626 acl_save_libdir
="$libdir"
8628 eval flag
=\"$hardcode_libdir_flag_spec\"
8629 libdir
="$acl_save_libdir"
8630 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8632 for found_dir
in $rpathdirs; do
8633 acl_save_libdir
="$libdir"
8635 eval flag
=\"$hardcode_libdir_flag_spec\"
8636 libdir
="$acl_save_libdir"
8637 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8641 if test "X$ltrpathdirs" != "X"; then
8642 for found_dir
in $ltrpathdirs; do
8643 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8654 $as_echo_n "checking for iconv... " >&6; }
8655 if ${am_cv_func_iconv+:} false
; then :
8656 $as_echo_n "(cached) " >&6
8659 am_cv_func_iconv
="no, consider installing GNU libiconv"
8661 am_save_CPPFLAGS
="$CPPFLAGS"
8662 CPPFLAGS
="$CPPFLAGS $INCICONV"
8663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8664 /* end confdefs.h. */
8670 iconv_t cd = iconv_open("","");
8671 iconv(cd,NULL,NULL,NULL,NULL);
8677 if ac_fn_c_try_link
"$LINENO"; then :
8678 am_cv_func_iconv
=yes
8680 rm -f core conftest.err conftest.
$ac_objext \
8681 conftest
$ac_exeext conftest.
$ac_ext
8682 CPPFLAGS
="$am_save_CPPFLAGS"
8684 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
8685 for _libs
in .libs _libs
; do
8686 am_save_CPPFLAGS
="$CPPFLAGS"
8687 am_save_LIBS
="$LIBS"
8688 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
8689 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
8690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8691 /* end confdefs.h. */
8697 iconv_t cd = iconv_open("","");
8698 iconv(cd,NULL,NULL,NULL,NULL);
8704 if ac_fn_c_try_link
"$LINENO"; then :
8705 INCICONV
="-I../libiconv/include"
8706 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
8707 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
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"
8715 if test "$am_cv_func_iconv" = "yes"; then
8721 if test "$am_cv_func_iconv" != yes; then
8722 am_save_CPPFLAGS
="$CPPFLAGS"
8723 am_save_LIBS
="$LIBS"
8724 CPPFLAGS
="$CPPFLAGS $INCICONV"
8725 LIBS
="$LIBS $LIBICONV"
8726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8727 /* end confdefs.h. */
8733 iconv_t cd = iconv_open("","");
8734 iconv(cd,NULL,NULL,NULL,NULL);
8740 if ac_fn_c_try_link
"$LINENO"; then :
8742 am_cv_func_iconv
=yes
8744 rm -f core conftest.err conftest.
$ac_objext \
8745 conftest
$ac_exeext conftest.
$ac_ext
8746 CPPFLAGS
="$am_save_CPPFLAGS"
8747 LIBS
="$am_save_LIBS"
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8752 $as_echo "$am_cv_func_iconv" >&6; }
8753 if test "$am_cv_func_iconv" = yes; then
8755 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8758 if test "$am_cv_lib_iconv" = yes; then
8760 for element
in $INCICONV; do
8762 for x
in $CPPFLAGS; do
8764 acl_save_prefix
="$prefix"
8765 prefix
="$acl_final_prefix"
8766 acl_save_exec_prefix
="$exec_prefix"
8767 exec_prefix
="$acl_final_exec_prefix"
8769 exec_prefix
="$acl_save_exec_prefix"
8770 prefix
="$acl_save_prefix"
8772 if test "X$x" = "X$element"; then
8777 if test -z "$haveit"; then
8778 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8783 $as_echo_n "checking how to link with libiconv... " >&6; }
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8785 $as_echo "$LIBICONV" >&6; }
8793 if test "$am_cv_func_iconv" = yes; then
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8795 $as_echo_n "checking for iconv declaration... " >&6; }
8796 if ${am_cv_proto_iconv+:} false
; then :
8797 $as_echo_n "(cached) " >&6
8800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8801 /* end confdefs.h. */
8809 #if defined(__STDC__) || defined(__cplusplus)
8810 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8823 if ac_fn_c_try_compile
"$LINENO"; then :
8824 am_cv_proto_iconv_arg1
=""
8826 am_cv_proto_iconv_arg1
="const"
8828 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8829 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);"
8832 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8834 }$am_cv_proto_iconv" >&5
8836 }$am_cv_proto_iconv" >&6; }
8838 cat >>confdefs.h
<<_ACEOF
8839 #define ICONV_CONST $am_cv_proto_iconv_arg1
8845 # GDB may fork/exec the iconv program to get the list of supported character
8846 # sets. Allow the user to specify where to find it.
8847 # There are several factors affecting the choice of option name:
8848 # - There is already --with-libiconv-prefix but we can't use it, it specifies
8849 # the build-time location of libiconv files.
8850 # - The program we need to find is iconv, which comes with glibc. The user
8851 # doesn't necessarily have libiconv installed. Therefore naming this
8852 # --with-libiconv-foo feels wrong.
8853 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
8854 # defined to work on directories not files (though it really doesn't know
8856 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
8857 # with --with-libiconv-prefix.
8858 # Putting these together is why the option name is --with-iconv-bin.
8861 # Check whether --with-iconv-bin was given.
8862 if test "${with_iconv_bin+set}" = set; then :
8863 withval
=$with_iconv_bin; iconv_bin
="${withval}"
8865 cat >>confdefs.h
<<_ACEOF
8866 #define ICONV_BIN "${iconv_bin}"
8870 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
8871 if test "x$prefix" = xNONE
; then
8872 test_prefix
=/usr
/local
8877 test_prefix
=$exec_prefix
8880 case ${iconv_bin} in
8881 "${test_prefix}"|
"${test_prefix}/"*|\
8882 '${exec_prefix}'|
'${exec_prefix}/'*)
8887 cat >>confdefs.h
<<_ACEOF
8888 #define ICONV_BIN_RELOCATABLE $value
8896 # For the TUI, we need enhanced curses functionality.
8897 if test x
"$enable_tui" != xno
; then
8902 if test x
"$prefer_curses" = xyes
; then
8903 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8904 # curses library because the latter might not provide all the
8905 # functionality we need. However, this leads to problems on systems
8906 # where the linker searches /usr/local/lib, but the compiler doesn't
8907 # search /usr/local/include, if ncurses is installed in /usr/local. A
8908 # default installation of ncurses on alpha*-dec-osf* will lead to such
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
8911 $as_echo_n "checking for library containing waddstr... " >&6; }
8912 if ${ac_cv_search_waddstr+:} false
; then :
8913 $as_echo_n "(cached) " >&6
8915 ac_func_search_save_LIBS
=$LIBS
8916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8917 /* end confdefs.h. */
8919 /* Override any GCC internal prototype to avoid an error.
8920 Use char because int might match the return type of a GCC
8921 builtin and then its argument prototype would still apply. */
8934 for ac_lib
in '' ncursesw ncurses cursesX curses
; do
8935 if test -z "$ac_lib"; then
8936 ac_res
="none required"
8939 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8941 if ac_fn_c_try_link
"$LINENO"; then :
8942 ac_cv_search_waddstr
=$ac_res
8944 rm -f core conftest.err conftest.
$ac_objext \
8946 if ${ac_cv_search_waddstr+:} false
; then :
8950 if ${ac_cv_search_waddstr+:} false
; then :
8953 ac_cv_search_waddstr
=no
8956 LIBS
=$ac_func_search_save_LIBS
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
8959 $as_echo "$ac_cv_search_waddstr" >&6; }
8960 ac_res
=$ac_cv_search_waddstr
8961 if test "$ac_res" != no
; then :
8962 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8967 if test "$ac_cv_search_waddstr" != no
; then
8972 # Check whether we should enable the TUI, but only do so if we really
8974 if test x
"$enable_tui" != xno
; then
8975 if test -d $srcdir/tui
; then
8976 if test "$curses_found" != no
; then
8977 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
8978 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
8979 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
8980 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
8982 if test x
"$enable_tui" = xyes
; then
8983 as_fn_error $?
"no enhanced curses library found; disable TUI" "$LINENO" 5
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
8986 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
8992 # Since GDB uses Readline, we need termcap functionality. In many
8993 # cases this will be provided by the curses library, but some systems
8994 # have a separate termcap library, or no curses library at all.
8998 if test -d $srcdir/libtermcap
; then
8999 LIBS
="../libtermcap/libtermcap.a $LIBS"
9000 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
9003 ac_cv_search_tgetent
="none required"
9007 # These are the libraries checked by Readline.
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9009 $as_echo_n "checking for library containing tgetent... " >&6; }
9010 if ${ac_cv_search_tgetent+:} false
; then :
9011 $as_echo_n "(cached) " >&6
9013 ac_func_search_save_LIBS
=$LIBS
9014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9015 /* end confdefs.h. */
9017 /* Override any GCC internal prototype to avoid an error.
9018 Use char because int might match the return type of a GCC
9019 builtin and then its argument prototype would still apply. */
9032 for ac_lib
in '' termcap tinfow tinfo curses ncursesw ncurses
; do
9033 if test -z "$ac_lib"; then
9034 ac_res
="none required"
9037 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9039 if ac_fn_c_try_link
"$LINENO"; then :
9040 ac_cv_search_tgetent
=$ac_res
9042 rm -f core conftest.err conftest.
$ac_objext \
9044 if ${ac_cv_search_tgetent+:} false
; then :
9048 if ${ac_cv_search_tgetent+:} false
; then :
9051 ac_cv_search_tgetent
=no
9054 LIBS
=$ac_func_search_save_LIBS
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9057 $as_echo "$ac_cv_search_tgetent" >&6; }
9058 ac_res
=$ac_cv_search_tgetent
9059 if test "$ac_res" != no
; then :
9060 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9065 if test "$ac_cv_search_tgetent" = no
; then
9066 CONFIG_OBS
="$CONFIG_OBS stub-termcap.o"
9070 # Check whether --with-system-readline was given.
9071 if test "${with_system_readline+set}" = set; then :
9072 withval
=$with_system_readline;
9076 if test "$with_system_readline" = yes; then
9080 READLINE_TEXI_INCFLAG
=
9082 READLINE
='$(READLINE_DIR)/libreadline.a'
9083 READLINE_DEPS
='$(READLINE)'
9084 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
9085 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
9092 # Generate jit-reader.h
9094 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
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 long" >&5
9102 $as_echo_n "checking size of unsigned long long... " >&6; }
9103 if ${ac_cv_sizeof_unsigned_long_long+:} false
; then :
9104 $as_echo_n "(cached) " >&6
9106 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
9109 if test "$ac_cv_type_unsigned_long_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 long)
9113 See \`config.log' for more details" "$LINENO" 5; }
9115 ac_cv_sizeof_unsigned_long_long
=0
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
9121 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
9125 cat >>confdefs.h
<<_ACEOF
9126 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_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 long" >&5
9135 $as_echo_n "checking size of unsigned long... " >&6; }
9136 if ${ac_cv_sizeof_unsigned_long+:} false
; then :
9137 $as_echo_n "(cached) " >&6
9139 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
9142 if test "$ac_cv_type_unsigned_long" = 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 long)
9146 See \`config.log' for more details" "$LINENO" 5; }
9148 ac_cv_sizeof_unsigned_long
=0
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
9154 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
9158 cat >>confdefs.h
<<_ACEOF
9159 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9163 # The cast to long int works around a bug in the HP C Compiler
9164 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9165 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9166 # This bug is HP SR number 8606223364.
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
9168 $as_echo_n "checking size of unsigned __int128... " >&6; }
9169 if ${ac_cv_sizeof_unsigned___int128+:} false
; then :
9170 $as_echo_n "(cached) " >&6
9172 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
9175 if test "$ac_cv_type_unsigned___int128" = yes; then
9176 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9178 as_fn_error
77 "cannot compute sizeof (unsigned __int128)
9179 See \`config.log' for more details" "$LINENO" 5; }
9181 ac_cv_sizeof_unsigned___int128
=0
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
9187 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
9191 cat >>confdefs.h
<<_ACEOF
9192 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
9197 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9198 TARGET_PTR
="unsigned long"
9199 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9200 TARGET_PTR
="unsigned long long"
9201 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
9202 TARGET_PTR
="unsigned __int128"
9204 TARGET_PTR
="unsigned long"
9208 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9212 $as_echo_n "checking for library containing dlopen... " >&6; }
9213 if ${ac_cv_search_dlopen+:} false
; then :
9214 $as_echo_n "(cached) " >&6
9216 ac_func_search_save_LIBS
=$LIBS
9217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9218 /* end confdefs.h. */
9220 /* Override any GCC internal prototype to avoid an error.
9221 Use char because int might match the return type of a GCC
9222 builtin and then its argument prototype would still apply. */
9235 for ac_lib
in '' dl
; do
9236 if test -z "$ac_lib"; then
9237 ac_res
="none required"
9240 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9242 if ac_fn_c_try_link
"$LINENO"; then :
9243 ac_cv_search_dlopen
=$ac_res
9245 rm -f core conftest.err conftest.
$ac_objext \
9247 if ${ac_cv_search_dlopen+:} false
; then :
9251 if ${ac_cv_search_dlopen+:} false
; then :
9254 ac_cv_search_dlopen
=no
9257 LIBS
=$ac_func_search_save_LIBS
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9260 $as_echo "$ac_cv_search_dlopen" >&6; }
9261 ac_res
=$ac_cv_search_dlopen
9262 if test "$ac_res" != no
; then :
9263 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9270 # Check whether --with-jit-reader-dir was given.
9271 if test "${with_jit_reader_dir+set}" = set; then :
9272 withval
=$with_jit_reader_dir;
9273 JIT_READER_DIR
=$withval
9275 JIT_READER_DIR
=${libdir}/gdb
9279 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9280 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9281 ac_define_dir
=`eval echo $JIT_READER_DIR`
9282 ac_define_dir
=`eval echo $ac_define_dir`
9284 cat >>confdefs.h
<<_ACEOF
9285 #define JIT_READER_DIR "$ac_define_dir"
9291 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9292 if test "x$prefix" = xNONE
; then
9293 test_prefix
=/usr
/local
9298 test_prefix
=$exec_prefix
9301 case ${ac_define_dir} in
9302 "${test_prefix}"|
"${test_prefix}/"*|\
9303 '${exec_prefix}'|
'${exec_prefix}/'*)
9308 cat >>confdefs.h
<<_ACEOF
9309 #define JIT_READER_DIR_RELOCATABLE $value
9316 # Check whether --with-expat was given.
9317 if test "${with_expat+set}" = set; then :
9318 withval
=$with_expat;
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9324 $as_echo_n "checking whether to use expat... " >&6; }
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9326 $as_echo "$with_expat" >&6; }
9328 if test "${with_expat}" = no
; then
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9330 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9343 acl_save_prefix
="$prefix"
9344 prefix
="$acl_final_prefix"
9345 acl_save_exec_prefix
="$exec_prefix"
9346 exec_prefix
="$acl_final_exec_prefix"
9348 eval additional_includedir
=\"$includedir\"
9349 eval additional_libdir
=\"$libdir\"
9351 exec_prefix
="$acl_save_exec_prefix"
9352 prefix
="$acl_save_prefix"
9355 # Check whether --with-libexpat-prefix was given.
9356 if test "${with_libexpat_prefix+set}" = set; then :
9357 withval
=$with_libexpat_prefix;
9358 if test "X$withval" = "Xno"; then
9361 if test "X$withval" = "X"; then
9363 acl_save_prefix
="$prefix"
9364 prefix
="$acl_final_prefix"
9365 acl_save_exec_prefix
="$exec_prefix"
9366 exec_prefix
="$acl_final_exec_prefix"
9368 eval additional_includedir
=\"$includedir\"
9369 eval additional_libdir
=\"$libdir\"
9371 exec_prefix
="$acl_save_exec_prefix"
9372 prefix
="$acl_save_prefix"
9375 additional_includedir
="$withval/include"
9376 additional_libdir
="$withval/lib"
9387 names_already_handled
=
9388 names_next_round
='expat '
9389 while test -n "$names_next_round"; do
9390 names_this_round
="$names_next_round"
9392 for name
in $names_this_round; do
9394 for n
in $names_already_handled; do
9395 if test "$n" = "$name"; then
9400 if test -z "$already_handled"; then
9401 names_already_handled
="$names_already_handled $name"
9402 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9403 eval value
=\"\
$HAVE_LIB$uppername\"
9404 if test -n "$value"; then
9405 if test "$value" = yes; then
9406 eval value
=\"\
$LIB$uppername\"
9407 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
9408 eval value
=\"\
$LTLIB$uppername\"
9409 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
9418 if test $use_additional = yes; then
9419 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9420 found_dir
="$additional_libdir"
9421 found_so
="$additional_libdir/lib$name.$shlibext"
9422 if test -f "$additional_libdir/lib$name.la"; then
9423 found_la
="$additional_libdir/lib$name.la"
9426 if test -f "$additional_libdir/lib$name.$libext"; then
9427 found_dir
="$additional_libdir"
9428 found_a
="$additional_libdir/lib$name.$libext"
9429 if test -f "$additional_libdir/lib$name.la"; then
9430 found_la
="$additional_libdir/lib$name.la"
9435 if test "X$found_dir" = "X"; then
9436 for x
in $LDFLAGS $LTLIBEXPAT; do
9438 acl_save_prefix
="$prefix"
9439 prefix
="$acl_final_prefix"
9440 acl_save_exec_prefix
="$exec_prefix"
9441 exec_prefix
="$acl_final_exec_prefix"
9443 exec_prefix
="$acl_save_exec_prefix"
9444 prefix
="$acl_save_prefix"
9448 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9449 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9451 found_so
="$dir/lib$name.$shlibext"
9452 if test -f "$dir/lib$name.la"; then
9453 found_la
="$dir/lib$name.la"
9456 if test -f "$dir/lib$name.$libext"; then
9458 found_a
="$dir/lib$name.$libext"
9459 if test -f "$dir/lib$name.la"; then
9460 found_la
="$dir/lib$name.la"
9466 if test "X$found_dir" != "X"; then
9471 if test "X$found_dir" != "X"; then
9472 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
9473 if test "X$found_so" != "X"; then
9474 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9475 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9478 for x
in $ltrpathdirs; do
9479 if test "X$x" = "X$found_dir"; then
9484 if test -z "$haveit"; then
9485 ltrpathdirs
="$ltrpathdirs $found_dir"
9487 if test "$hardcode_direct" = yes; then
9488 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9490 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9491 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9493 for x
in $rpathdirs; do
9494 if test "X$x" = "X$found_dir"; then
9499 if test -z "$haveit"; then
9500 rpathdirs
="$rpathdirs $found_dir"
9504 for x
in $LDFLAGS $LIBEXPAT; do
9506 acl_save_prefix
="$prefix"
9507 prefix
="$acl_final_prefix"
9508 acl_save_exec_prefix
="$exec_prefix"
9509 exec_prefix
="$acl_final_exec_prefix"
9511 exec_prefix
="$acl_save_exec_prefix"
9512 prefix
="$acl_save_prefix"
9514 if test "X$x" = "X-L$found_dir"; then
9519 if test -z "$haveit"; then
9520 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
9522 if test "$hardcode_minus_L" != no
; then
9523 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9525 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9531 if test "X$found_a" != "X"; then
9532 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
9534 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
9537 additional_includedir
=
9538 case "$found_dir" in
9540 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9541 additional_includedir
="$basedir/include"
9544 if test "X$additional_includedir" != "X"; then
9545 if test "X$additional_includedir" != "X/usr/include"; then
9547 if test "X$additional_includedir" = "X/usr/local/include"; then
9548 if test -n "$GCC"; then
9550 linux
*) haveit
=yes;;
9554 if test -z "$haveit"; then
9555 for x
in $CPPFLAGS $INCEXPAT; do
9557 acl_save_prefix
="$prefix"
9558 prefix
="$acl_final_prefix"
9559 acl_save_exec_prefix
="$exec_prefix"
9560 exec_prefix
="$acl_final_exec_prefix"
9562 exec_prefix
="$acl_save_exec_prefix"
9563 prefix
="$acl_save_prefix"
9565 if test "X$x" = "X-I$additional_includedir"; then
9570 if test -z "$haveit"; then
9571 if test -d "$additional_includedir"; then
9572 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
9578 if test -n "$found_la"; then
9579 save_libdir
="$libdir"
9581 */* |
*\\*) .
"$found_la" ;;
9582 *) .
"./$found_la" ;;
9584 libdir
="$save_libdir"
9585 for dep
in $dependency_libs; do
9588 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9589 if test "X$additional_libdir" != "X/usr/lib"; then
9591 if test "X$additional_libdir" = "X/usr/local/lib"; then
9592 if test -n "$GCC"; then
9594 linux
*) haveit
=yes;;
9598 if test -z "$haveit"; then
9600 for x
in $LDFLAGS $LIBEXPAT; do
9602 acl_save_prefix
="$prefix"
9603 prefix
="$acl_final_prefix"
9604 acl_save_exec_prefix
="$exec_prefix"
9605 exec_prefix
="$acl_final_exec_prefix"
9607 exec_prefix
="$acl_save_exec_prefix"
9608 prefix
="$acl_save_prefix"
9610 if test "X$x" = "X-L$additional_libdir"; then
9615 if test -z "$haveit"; then
9616 if test -d "$additional_libdir"; then
9617 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
9621 for x
in $LDFLAGS $LTLIBEXPAT; do
9623 acl_save_prefix
="$prefix"
9624 prefix
="$acl_final_prefix"
9625 acl_save_exec_prefix
="$exec_prefix"
9626 exec_prefix
="$acl_final_exec_prefix"
9628 exec_prefix
="$acl_save_exec_prefix"
9629 prefix
="$acl_save_prefix"
9631 if test "X$x" = "X-L$additional_libdir"; then
9636 if test -z "$haveit"; then
9637 if test -d "$additional_libdir"; then
9638 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
9645 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9646 if test "$enable_rpath" != no
; then
9648 for x
in $rpathdirs; do
9649 if test "X$x" = "X$dir"; then
9654 if test -z "$haveit"; then
9655 rpathdirs
="$rpathdirs $dir"
9658 for x
in $ltrpathdirs; do
9659 if test "X$x" = "X$dir"; then
9664 if test -z "$haveit"; then
9665 ltrpathdirs
="$ltrpathdirs $dir"
9670 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9673 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9676 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
9677 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
9683 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9684 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
9690 if test "X$rpathdirs" != "X"; then
9691 if test -n "$hardcode_libdir_separator"; then
9693 for found_dir
in $rpathdirs; do
9694 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9696 acl_save_libdir
="$libdir"
9698 eval flag
=\"$hardcode_libdir_flag_spec\"
9699 libdir
="$acl_save_libdir"
9700 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9702 for found_dir
in $rpathdirs; do
9703 acl_save_libdir
="$libdir"
9705 eval flag
=\"$hardcode_libdir_flag_spec\"
9706 libdir
="$acl_save_libdir"
9707 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9711 if test "X$ltrpathdirs" != "X"; then
9712 for found_dir
in $ltrpathdirs; do
9713 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9718 ac_save_CPPFLAGS
="$CPPFLAGS"
9720 for element
in $INCEXPAT; do
9722 for x
in $CPPFLAGS; do
9724 acl_save_prefix
="$prefix"
9725 prefix
="$acl_final_prefix"
9726 acl_save_exec_prefix
="$exec_prefix"
9727 exec_prefix
="$acl_final_exec_prefix"
9729 exec_prefix
="$acl_save_exec_prefix"
9730 prefix
="$acl_save_prefix"
9732 if test "X$x" = "X$element"; then
9737 if test -z "$haveit"; then
9738 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9744 $as_echo_n "checking for libexpat... " >&6; }
9745 if ${ac_cv_libexpat+:} false
; then :
9746 $as_echo_n "(cached) " >&6
9749 ac_save_LIBS
="$LIBS"
9750 LIBS
="$LIBS $LIBEXPAT"
9751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9752 /* end confdefs.h. */
9757 XML_Parser p = XML_ParserCreate (0);
9762 if ac_fn_c_try_link
"$LINENO"; then :
9767 rm -f core conftest.err conftest.
$ac_objext \
9768 conftest
$ac_exeext conftest.
$ac_ext
9769 LIBS
="$ac_save_LIBS"
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
9773 $as_echo "$ac_cv_libexpat" >&6; }
9774 if test "$ac_cv_libexpat" = yes; then
9777 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
9780 $as_echo_n "checking how to link with libexpat... " >&6; }
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
9782 $as_echo "$LIBEXPAT" >&6; }
9785 CPPFLAGS
="$ac_save_CPPFLAGS"
9795 if test "$HAVE_LIBEXPAT" != yes; then
9796 if test "$with_expat" = yes; then
9797 as_fn_error $?
"expat is missing or unusable" "$LINENO" 5
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
9800 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
9804 LIBS
="$LIBS $LIBEXPAT"
9805 for ac_func
in XML_StopParser
9807 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
9808 if test "x$ac_cv_func_XML_StopParser" = xyes
; then :
9809 cat >>confdefs.h
<<_ACEOF
9810 #define HAVE_XML_STOPPARSER 1
9821 # Check whether --with-mpfr was given.
9822 if test "${with_mpfr+set}" = set; then :
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5
9829 $as_echo_n "checking whether to use MPFR... " >&6; }
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5
9831 $as_echo "$with_mpfr" >&6; }
9833 if test "${with_mpfr}" = no
; then
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5
9835 $as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;}
9848 acl_save_prefix
="$prefix"
9849 prefix
="$acl_final_prefix"
9850 acl_save_exec_prefix
="$exec_prefix"
9851 exec_prefix
="$acl_final_exec_prefix"
9853 eval additional_includedir
=\"$includedir\"
9854 eval additional_libdir
=\"$libdir\"
9856 exec_prefix
="$acl_save_exec_prefix"
9857 prefix
="$acl_save_prefix"
9860 # Check whether --with-libmpfr-prefix was given.
9861 if test "${with_libmpfr_prefix+set}" = set; then :
9862 withval
=$with_libmpfr_prefix;
9863 if test "X$withval" = "Xno"; then
9866 if test "X$withval" = "X"; then
9868 acl_save_prefix
="$prefix"
9869 prefix
="$acl_final_prefix"
9870 acl_save_exec_prefix
="$exec_prefix"
9871 exec_prefix
="$acl_final_exec_prefix"
9873 eval additional_includedir
=\"$includedir\"
9874 eval additional_libdir
=\"$libdir\"
9876 exec_prefix
="$acl_save_exec_prefix"
9877 prefix
="$acl_save_prefix"
9880 additional_includedir
="$withval/include"
9881 additional_libdir
="$withval/lib"
9892 names_already_handled
=
9893 names_next_round
='mpfr gmp'
9894 while test -n "$names_next_round"; do
9895 names_this_round
="$names_next_round"
9897 for name
in $names_this_round; do
9899 for n
in $names_already_handled; do
9900 if test "$n" = "$name"; then
9905 if test -z "$already_handled"; then
9906 names_already_handled
="$names_already_handled $name"
9907 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9908 eval value
=\"\
$HAVE_LIB$uppername\"
9909 if test -n "$value"; then
9910 if test "$value" = yes; then
9911 eval value
=\"\
$LIB$uppername\"
9912 test -z "$value" || LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$value"
9913 eval value
=\"\
$LTLIB$uppername\"
9914 test -z "$value" || LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$value"
9923 if test $use_additional = yes; then
9924 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9925 found_dir
="$additional_libdir"
9926 found_so
="$additional_libdir/lib$name.$shlibext"
9927 if test -f "$additional_libdir/lib$name.la"; then
9928 found_la
="$additional_libdir/lib$name.la"
9931 if test -f "$additional_libdir/lib$name.$libext"; then
9932 found_dir
="$additional_libdir"
9933 found_a
="$additional_libdir/lib$name.$libext"
9934 if test -f "$additional_libdir/lib$name.la"; then
9935 found_la
="$additional_libdir/lib$name.la"
9940 if test "X$found_dir" = "X"; then
9941 for x
in $LDFLAGS $LTLIBMPFR; do
9943 acl_save_prefix
="$prefix"
9944 prefix
="$acl_final_prefix"
9945 acl_save_exec_prefix
="$exec_prefix"
9946 exec_prefix
="$acl_final_exec_prefix"
9948 exec_prefix
="$acl_save_exec_prefix"
9949 prefix
="$acl_save_prefix"
9953 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9954 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9956 found_so
="$dir/lib$name.$shlibext"
9957 if test -f "$dir/lib$name.la"; then
9958 found_la
="$dir/lib$name.la"
9961 if test -f "$dir/lib$name.$libext"; then
9963 found_a
="$dir/lib$name.$libext"
9964 if test -f "$dir/lib$name.la"; then
9965 found_la
="$dir/lib$name.la"
9971 if test "X$found_dir" != "X"; then
9976 if test "X$found_dir" != "X"; then
9977 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$found_dir -l$name"
9978 if test "X$found_so" != "X"; then
9979 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9980 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
9983 for x
in $ltrpathdirs; do
9984 if test "X$x" = "X$found_dir"; then
9989 if test -z "$haveit"; then
9990 ltrpathdirs
="$ltrpathdirs $found_dir"
9992 if test "$hardcode_direct" = yes; then
9993 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
9995 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9996 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
9998 for x
in $rpathdirs; do
9999 if test "X$x" = "X$found_dir"; then
10004 if test -z "$haveit"; then
10005 rpathdirs
="$rpathdirs $found_dir"
10009 for x
in $LDFLAGS $LIBMPFR; do
10011 acl_save_prefix
="$prefix"
10012 prefix
="$acl_final_prefix"
10013 acl_save_exec_prefix
="$exec_prefix"
10014 exec_prefix
="$acl_final_exec_prefix"
10016 exec_prefix
="$acl_save_exec_prefix"
10017 prefix
="$acl_save_prefix"
10019 if test "X$x" = "X-L$found_dir"; then
10024 if test -z "$haveit"; then
10025 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir"
10027 if test "$hardcode_minus_L" != no
; then
10028 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10030 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10036 if test "X$found_a" != "X"; then
10037 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_a"
10039 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir -l$name"
10042 additional_includedir
=
10043 case "$found_dir" in
10045 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10046 additional_includedir
="$basedir/include"
10049 if test "X$additional_includedir" != "X"; then
10050 if test "X$additional_includedir" != "X/usr/include"; then
10052 if test "X$additional_includedir" = "X/usr/local/include"; then
10053 if test -n "$GCC"; then
10055 linux
*) haveit
=yes;;
10059 if test -z "$haveit"; then
10060 for x
in $CPPFLAGS $INCMPFR; do
10062 acl_save_prefix
="$prefix"
10063 prefix
="$acl_final_prefix"
10064 acl_save_exec_prefix
="$exec_prefix"
10065 exec_prefix
="$acl_final_exec_prefix"
10067 exec_prefix
="$acl_save_exec_prefix"
10068 prefix
="$acl_save_prefix"
10070 if test "X$x" = "X-I$additional_includedir"; then
10075 if test -z "$haveit"; then
10076 if test -d "$additional_includedir"; then
10077 INCMPFR
="${INCMPFR}${INCMPFR:+ }-I$additional_includedir"
10083 if test -n "$found_la"; then
10084 save_libdir
="$libdir"
10085 case "$found_la" in
10086 */* |
*\\*) .
"$found_la" ;;
10087 *) .
"./$found_la" ;;
10089 libdir
="$save_libdir"
10090 for dep
in $dependency_libs; do
10093 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10094 if test "X$additional_libdir" != "X/usr/lib"; then
10096 if test "X$additional_libdir" = "X/usr/local/lib"; then
10097 if test -n "$GCC"; then
10099 linux
*) haveit
=yes;;
10103 if test -z "$haveit"; then
10105 for x
in $LDFLAGS $LIBMPFR; do
10107 acl_save_prefix
="$prefix"
10108 prefix
="$acl_final_prefix"
10109 acl_save_exec_prefix
="$exec_prefix"
10110 exec_prefix
="$acl_final_exec_prefix"
10112 exec_prefix
="$acl_save_exec_prefix"
10113 prefix
="$acl_save_prefix"
10115 if test "X$x" = "X-L$additional_libdir"; then
10120 if test -z "$haveit"; then
10121 if test -d "$additional_libdir"; then
10122 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$additional_libdir"
10126 for x
in $LDFLAGS $LTLIBMPFR; do
10128 acl_save_prefix
="$prefix"
10129 prefix
="$acl_final_prefix"
10130 acl_save_exec_prefix
="$exec_prefix"
10131 exec_prefix
="$acl_final_exec_prefix"
10133 exec_prefix
="$acl_save_exec_prefix"
10134 prefix
="$acl_save_prefix"
10136 if test "X$x" = "X-L$additional_libdir"; then
10141 if test -z "$haveit"; then
10142 if test -d "$additional_libdir"; then
10143 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$additional_libdir"
10150 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10151 if test "$enable_rpath" != no
; then
10153 for x
in $rpathdirs; do
10154 if test "X$x" = "X$dir"; then
10159 if test -z "$haveit"; then
10160 rpathdirs
="$rpathdirs $dir"
10163 for x
in $ltrpathdirs; do
10164 if test "X$x" = "X$dir"; then
10169 if test -z "$haveit"; then
10170 ltrpathdirs
="$ltrpathdirs $dir"
10175 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10178 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10181 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$dep"
10182 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$dep"
10188 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10189 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l$name"
10195 if test "X$rpathdirs" != "X"; then
10196 if test -n "$hardcode_libdir_separator"; then
10198 for found_dir
in $rpathdirs; do
10199 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10201 acl_save_libdir
="$libdir"
10203 eval flag
=\"$hardcode_libdir_flag_spec\"
10204 libdir
="$acl_save_libdir"
10205 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10207 for found_dir
in $rpathdirs; do
10208 acl_save_libdir
="$libdir"
10209 libdir
="$found_dir"
10210 eval flag
=\"$hardcode_libdir_flag_spec\"
10211 libdir
="$acl_save_libdir"
10212 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10216 if test "X$ltrpathdirs" != "X"; then
10217 for found_dir
in $ltrpathdirs; do
10218 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-R$found_dir"
10223 ac_save_CPPFLAGS
="$CPPFLAGS"
10225 for element
in $INCMPFR; do
10227 for x
in $CPPFLAGS; do
10229 acl_save_prefix
="$prefix"
10230 prefix
="$acl_final_prefix"
10231 acl_save_exec_prefix
="$exec_prefix"
10232 exec_prefix
="$acl_final_exec_prefix"
10234 exec_prefix
="$acl_save_exec_prefix"
10235 prefix
="$acl_save_prefix"
10237 if test "X$x" = "X$element"; then
10242 if test -z "$haveit"; then
10243 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpfr" >&5
10249 $as_echo_n "checking for libmpfr... " >&6; }
10250 if ${ac_cv_libmpfr+:} false
; then :
10251 $as_echo_n "(cached) " >&6
10254 ac_save_LIBS
="$LIBS"
10255 LIBS
="$LIBS $LIBMPFR"
10256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10257 /* end confdefs.h. */
10262 mpfr_exp_t exp; mpfr_t x;
10263 mpfr_frexp (&exp, x, x, MPFR_RNDN);
10268 if ac_fn_c_try_link
"$LINENO"; then :
10273 rm -f core conftest.err conftest.
$ac_objext \
10274 conftest
$ac_exeext conftest.
$ac_ext
10275 LIBS
="$ac_save_LIBS"
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmpfr" >&5
10279 $as_echo "$ac_cv_libmpfr" >&6; }
10280 if test "$ac_cv_libmpfr" = yes; then
10283 $as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libmpfr" >&5
10286 $as_echo_n "checking how to link with libmpfr... " >&6; }
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPFR" >&5
10288 $as_echo "$LIBMPFR" >&6; }
10291 CPPFLAGS
="$ac_save_CPPFLAGS"
10301 if test "$HAVE_LIBMPFR" != yes; then
10302 if test "$with_mpfr" = yes; then
10303 as_fn_error $?
"MPFR is missing or unusable" "$LINENO" 5
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR is missing or unusable; some features may be unavailable." >&5
10306 $as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;}
10311 # --------------------- #
10312 # Check for libpython. #
10313 # --------------------- #
10320 # Check whether --with-python was given.
10321 if test "${with_python+set}" = set; then :
10322 withval
=$with_python;
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10328 $as_echo_n "checking whether to use python... " >&6; }
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10330 $as_echo "$with_python" >&6; }
10332 if test "${with_python}" = no
; then
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10334 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10337 case "${with_python}" in
10339 if test -d ${with_python}; then
10340 # Assume the python binary is ${with_python}/bin/python.
10341 python_prog
="${with_python}/bin/python"
10343 # If python does not exit ${with_python}/bin, then try in
10344 # ${with_python}. On Windows/MinGW, this is where the Python
10346 if test ! -x "${python_prog}"; then
10347 python_prog
="${with_python}/python"
10350 if test ! -x "${python_prog}"; then
10351 # Fall back to gdb 7.0/7.1 behaviour.
10352 python_prog
=missing
10353 python_prefix
=${with_python}
10355 elif test -x "${with_python}"; then
10356 # While we can't run python compiled for $host (unless host == build),
10357 # the user could write a script that provides the needed information,
10358 # so we support that.
10359 python_prog
=${with_python}
10362 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
10366 # Disallow --with-python=foo/bar.
10367 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
10370 # The user has either specified auto, yes, or the name of the python
10371 # program assumed to be in $PATH.
10373 case "${with_python}" in
10375 if test ${build} = ${host}; then
10376 # Extract the first word of "python", so it can be a program name with args.
10377 set dummy python
; ac_word
=$2
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10379 $as_echo_n "checking for $ac_word... " >&6; }
10380 if ${ac_cv_path_python_prog_path+:} false
; then :
10381 $as_echo_n "(cached) " >&6
10383 case $python_prog_path in
10385 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10388 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10389 for as_dir
in $PATH
10392 test -z "$as_dir" && as_dir
=.
10393 for ac_exec_ext
in '' $ac_executable_extensions; do
10394 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10395 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10403 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10407 python_prog_path
=$ac_cv_path_python_prog_path
10408 if test -n "$python_prog_path"; then
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10410 $as_echo "$python_prog_path" >&6; }
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10413 $as_echo "no" >&6; }
10417 if test "${python_prog_path}" = missing
; then
10418 python_prog
=missing
10420 python_prog
=${python_prog_path}
10423 # Not much we can do except assume the cross-compiler will find the
10425 python_prog
=missing
10429 # While we can't run python compiled for $host (unless host == build),
10430 # the user could write a script that provides the needed information,
10431 # so we support that.
10432 python_prog
="${with_python}"
10433 # Extract the first word of "${python_prog}", so it can be a program name with args.
10434 set dummy
${python_prog}; ac_word
=$2
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10436 $as_echo_n "checking for $ac_word... " >&6; }
10437 if ${ac_cv_path_python_prog_path+:} false
; then :
10438 $as_echo_n "(cached) " >&6
10440 case $python_prog_path in
10442 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10445 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10446 for as_dir
in $PATH
10449 test -z "$as_dir" && as_dir
=.
10450 for ac_exec_ext
in '' $ac_executable_extensions; do
10451 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10452 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10460 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10464 python_prog_path
=$ac_cv_path_python_prog_path
10465 if test -n "$python_prog_path"; then
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10467 $as_echo "$python_prog_path" >&6; }
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10470 $as_echo "no" >&6; }
10474 if test "${python_prog_path}" = missing
; then
10475 as_fn_error $?
"unable to find python program ${python_prog}" "$LINENO" 5
10481 if test "${python_prog}" != missing
; then
10482 # We have a python program to use, but it may be too old.
10483 # Don't flag an error for --with-python=auto (the default).
10484 have_python_config
=yes
10485 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
10486 if test $?
!= 0; then
10487 have_python_config
=failed
10488 if test "${with_python}" != auto
; then
10489 as_fn_error $?
"failure running python-config --includes" "$LINENO" 5
10492 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10493 if test $?
!= 0; then
10494 have_python_config
=failed
10495 if test "${with_python}" != auto
; then
10496 as_fn_error $?
"failure running python-config --ldflags" "$LINENO" 5
10499 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10500 if test $?
!= 0; then
10501 have_python_config
=failed
10502 if test "${with_python}" != auto
; then
10503 as_fn_error $?
"failure running python-config --exec-prefix" "$LINENO" 5
10507 # We do not have a python executable we can use to determine where
10508 # to find the Python headers and libs. We cannot guess the include
10509 # path from the python_prefix either, because that include path
10510 # depends on the Python version. So, there is nothing much we can
10511 # do except assume that the compiler will be able to find those files.
10514 have_python_config
=no
10517 # If we have python-config, only try the configuration it provides.
10518 # Otherwise fallback on the old way of trying different versions of
10522 if test "${have_python_config}" = yes; then
10523 # Determine the Python version by extracting "-lpython<version>"
10524 # part of the python_libs. <version> is usually X.Y with X and Y
10525 # being decimal numbers, but can also be XY (seen on Windows).
10527 # The extraction is performed using sed with a regular expression.
10528 # Initially, the regexp used was using the '?' quantifier to make
10529 # the dot in the version number optional. Unfortunately, this
10530 # does not work with non-GNU versions of sed because, because of
10531 # what looks like a limitation (the '?' quantifier does not work
10532 # with back-references). We work around this limitation by using
10533 # the '*' quantifier instead. It means that, in theory, we might
10534 # match unexpected version strings such as "-lpython2..7", but
10535 # this seems unlikely in practice. And even if that happens,
10536 # an error will be triggered later on, when checking that version
10538 python_version
=`echo " ${python_libs} " \
10539 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
10540 case "${python_version}" in
10543 version
=${python_version}
10545 new_CPPFLAGS
=${python_includes}
10546 new_LIBS
=${python_libs}
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10548 $as_echo_n "checking for ${version}... " >&6; }
10549 save_CPPFLAGS
=$CPPFLAGS
10551 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10552 LIBS
="$new_LIBS $LIBS"
10553 found_usable_python
=no
10554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10555 /* end confdefs.h. */
10556 #include "Python.h"
10565 if ac_fn_c_try_link
"$LINENO"; then :
10566 have_libpython
=${version}
10567 found_usable_python
=yes
10568 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10569 PYTHON_LIBS
=$new_LIBS
10571 rm -f core conftest.err conftest.
$ac_objext \
10572 conftest
$ac_exeext conftest.
$ac_ext
10573 CPPFLAGS
=$save_CPPFLAGS
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10576 $as_echo "${found_usable_python}" >&6; }
10580 as_fn_error $?
"unable to determine python version from ${python_libs}" "$LINENO" 5
10583 elif test "${have_python_config}" != failed
; then
10584 if test "${have_libpython}" = no
; then
10588 new_CPPFLAGS
=${python_includes}
10589 new_LIBS
="-lpython2.7 ${python_libs}"
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10591 $as_echo_n "checking for ${version}... " >&6; }
10592 save_CPPFLAGS
=$CPPFLAGS
10594 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10595 LIBS
="$new_LIBS $LIBS"
10596 found_usable_python
=no
10597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10598 /* end confdefs.h. */
10599 #include "Python.h"
10608 if ac_fn_c_try_link
"$LINENO"; then :
10609 have_libpython
=${version}
10610 found_usable_python
=yes
10611 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10612 PYTHON_LIBS
=$new_LIBS
10614 rm -f core conftest.err conftest.
$ac_objext \
10615 conftest
$ac_exeext conftest.
$ac_ext
10616 CPPFLAGS
=$save_CPPFLAGS
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10619 $as_echo "${found_usable_python}" >&6; }
10622 if test "${have_libpython}" = no
; then
10626 new_CPPFLAGS
=${python_includes}
10627 new_LIBS
="-lpython2.6 ${python_libs}"
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10629 $as_echo_n "checking for ${version}... " >&6; }
10630 save_CPPFLAGS
=$CPPFLAGS
10632 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10633 LIBS
="$new_LIBS $LIBS"
10634 found_usable_python
=no
10635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10636 /* end confdefs.h. */
10637 #include "Python.h"
10646 if ac_fn_c_try_link
"$LINENO"; then :
10647 have_libpython
=${version}
10648 found_usable_python
=yes
10649 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10650 PYTHON_LIBS
=$new_LIBS
10652 rm -f core conftest.err conftest.
$ac_objext \
10653 conftest
$ac_exeext conftest.
$ac_ext
10654 CPPFLAGS
=$save_CPPFLAGS
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10657 $as_echo "${found_usable_python}" >&6; }
10661 if test "${have_libpython}" = python2.7
-o "${have_libpython}" = python27
; then
10663 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
10665 elif test "${have_libpython}" = python2.6
-o "${have_libpython}" = python26
; then
10667 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
10671 if test "${have_libpython}" = no
; then
10672 case "${with_python}" in
10674 as_fn_error $?
"python is missing or unusable" "$LINENO" 5
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10678 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10681 as_fn_error $?
"no usable python found at ${with_python}" "$LINENO" 5
10685 if test -n "${python_prefix}"; then
10687 cat >>confdefs.h
<<_ACEOF
10688 #define WITH_PYTHON_PATH "${python_prefix}"
10692 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
10693 if test "x$prefix" = xNONE
; then
10694 test_prefix
=/usr
/local
10696 test_prefix
=$prefix
10699 test_prefix
=$exec_prefix
10702 case ${python_prefix} in
10703 "${test_prefix}"|
"${test_prefix}/"*|\
10704 '${exec_prefix}'|
'${exec_prefix}/'*)
10709 cat >>confdefs.h
<<_ACEOF
10710 #define PYTHON_PATH_RELOCATABLE $value
10718 if test "${have_libpython}" != no
; then
10720 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10722 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10723 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10724 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
10725 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
10726 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
10728 # Flags needed to compile Python code (taken from python-config --cflags).
10729 # We cannot call python-config directly because it will output whatever was
10730 # used when compiling the Python interpreter itself, including flags which
10731 # would make the python-related objects be compiled differently from the
10732 # rest of GDB (e.g., -O2 and -fPIC).
10733 if test "${GCC}" = yes; then
10734 tentative_python_cflags
="-fno-strict-aliasing -fwrapv"
10735 # Python headers recommend -DNDEBUG, but it's unclear if that just
10736 # refers to building Python itself. In release mode, though, it
10737 # doesn't hurt for the Python code in gdb to follow.
10738 $development || tentative_python_cflags
="$tentative_python_cflags -DNDEBUG"
10741 if test "x${tentative_python_cflags}" != x
; then
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10743 $as_echo_n "checking compiler flags for python code... " >&6; }
10744 for flag
in ${tentative_python_cflags}; do
10745 # Check that the compiler accepts it
10746 saved_CFLAGS
="$CFLAGS"
10747 CFLAGS
="$CFLAGS $flag"
10748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10749 /* end confdefs.h. */
10759 if ac_fn_c_try_compile
"$LINENO"; then :
10760 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
10762 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10763 CFLAGS
="$saved_CFLAGS"
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
10766 $as_echo "${PYTHON_CFLAGS}" >&6; }
10769 # On x64 Windows, Python's include headers, and pyconfig.h in
10770 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
10771 # version of Windows. Unfortunately, MS_WIN64 is only defined if
10772 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
10773 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
10774 # The issue was reported to the Python community, but still isn't
10775 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
10777 case "$gdb_host" in
10779 if test "${GCC}" = yes; then
10780 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
10785 # Note that "python -m threading" cannot be used to check for
10786 # threading support due to a bug in Python 2.7.3
10787 # (http://bugs.python.org/issue15567).
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
10789 $as_echo_n "checking whether python supports threads... " >&6; }
10790 saved_CPPFLAGS
="${CPPFLAGS}"
10791 CPPFLAGS
="${PYTHON_CPPFLAGS}"
10792 # Note that the test is reversed so that python_has_threads=yes on
10793 # unexpected failures.
10794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10795 /* end confdefs.h. */
10797 #include <Python.h>
10803 if ac_fn_c_try_cpp
"$LINENO"; then :
10804 python_has_threads
=no
10806 python_has_threads
=yes
10808 rm -f conftest.err conftest.i conftest.
$ac_ext
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
10810 $as_echo "${python_has_threads}" >&6; }
10811 CPPFLAGS
="${saved_CPPFLAGS}"
10813 # Even if Python support is not compiled in, we need to have this file
10814 # included so that the "python" command, et.al., still exists.
10815 CONFIG_OBS
="$CONFIG_OBS python/python.o"
10816 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
10819 # Work around Python http://bugs.python.org/issue10112. See also
10820 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
10821 # no effect. Note that the only test after this that uses Python is
10822 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
10823 # run without -export-dynamic too.
10824 PYTHON_LIBS
=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
10829 if test "${have_libpython}" != no
; then
10831 HAVE_PYTHON_FALSE
='#'
10833 HAVE_PYTHON_TRUE
='#'
10838 # -------------------- #
10839 # Check for libguile. #
10840 # -------------------- #
10847 # Check whether --with-guile was given.
10848 if test "${with_guile+set}" = set; then :
10849 withval
=$with_guile;
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
10855 $as_echo_n "checking whether to use guile... " >&6; }
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
10857 $as_echo "$with_guile" >&6; }
10859 # Extract the first word of "pkg-config", so it can be a program name with args.
10860 set dummy pkg-config
; ac_word
=$2
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10862 $as_echo_n "checking for $ac_word... " >&6; }
10863 if ${ac_cv_path_pkg_config_prog_path+:} false
; then :
10864 $as_echo_n "(cached) " >&6
10866 case $pkg_config_prog_path in
10868 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
10871 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10872 for as_dir
in $PATH
10875 test -z "$as_dir" && as_dir
=.
10876 for ac_exec_ext
in '' $ac_executable_extensions; do
10877 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10878 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10886 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
10890 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
10891 if test -n "$pkg_config_prog_path"; then
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
10893 $as_echo "$pkg_config_prog_path" >&6; }
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10896 $as_echo "no" >&6; }
10901 try_guile_versions
="guile-2.0"
10903 case "${with_guile}" in
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
10906 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
10909 if test "${pkg_config_prog_path}" = "missing"; then
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
10911 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
10914 pkg_config
=${pkg_config_prog_path}
10915 guile_version_list
=${try_guile_versions}
10918 found_usable_guile
=checking
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
10920 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
10921 for guile_version
in ${guile_version_list}; do
10922 ${pkg_config} --exists ${guile_version} 2>/dev
/null
10923 if test $?
!= 0; then
10926 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
10927 if test $?
!= 0; then
10928 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
10930 new_LIBS
=`${pkg_config} --libs ${guile_version}`
10931 if test $?
!= 0; then
10932 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
10934 found_usable_guile
=${guile_version}
10937 if test "${found_usable_guile}" = "checking"; then
10938 if test "${flag_errors}" = "yes"; then
10939 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
10941 found_usable_guile
=no
10944 if test "${found_usable_guile}" != no
; then
10945 save_CPPFLAGS
=$CPPFLAGS
10947 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10948 LIBS
="$LIBS $new_LIBS"
10949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10950 /* end confdefs.h. */
10951 #include "libguile.h"
10960 if ac_fn_c_try_link
"$LINENO"; then :
10962 GUILE_CPPFLAGS
=$new_CPPFLAGS
10963 GUILE_LIBS
=$new_LIBS
10965 found_usable_guile
=no
10967 rm -f core conftest.err conftest.
$ac_objext \
10968 conftest
$ac_exeext conftest.
$ac_ext
10969 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
10970 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
10972 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
10977 CPPFLAGS
=$save_CPPFLAGS
10979 if test "${found_usable_guile}" = no
; then
10980 if test "${flag_errors}" = yes; then
10981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10983 as_fn_error $?
"linking guile version ${guile_version} test program failed
10984 See \`config.log' for more details" "$LINENO" 5; }
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
10989 $as_echo "${found_usable_guile}" >&6; }
10994 if test "${pkg_config_prog_path}" = "missing"; then
10995 as_fn_error $?
"pkg-config not found" "$LINENO" 5
10998 pkg_config
=${pkg_config_prog_path}
10999 guile_version_list
=${try_guile_versions}
11002 found_usable_guile
=checking
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11004 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11005 for guile_version
in ${guile_version_list}; do
11006 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11007 if test $?
!= 0; then
11010 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11011 if test $?
!= 0; then
11012 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11014 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11015 if test $?
!= 0; then
11016 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11018 found_usable_guile
=${guile_version}
11021 if test "${found_usable_guile}" = "checking"; then
11022 if test "${flag_errors}" = "yes"; then
11023 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11025 found_usable_guile
=no
11028 if test "${found_usable_guile}" != no
; then
11029 save_CPPFLAGS
=$CPPFLAGS
11031 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11032 LIBS
="$LIBS $new_LIBS"
11033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11034 /* end confdefs.h. */
11035 #include "libguile.h"
11044 if ac_fn_c_try_link
"$LINENO"; then :
11046 GUILE_CPPFLAGS
=$new_CPPFLAGS
11047 GUILE_LIBS
=$new_LIBS
11049 found_usable_guile
=no
11051 rm -f core conftest.err conftest.
$ac_objext \
11052 conftest
$ac_exeext conftest.
$ac_ext
11053 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11054 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11056 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11061 CPPFLAGS
=$save_CPPFLAGS
11063 if test "${found_usable_guile}" = no
; then
11064 if test "${flag_errors}" = yes; then
11065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11067 as_fn_error $?
"linking guile version ${guile_version} test program failed
11068 See \`config.log' for more details" "$LINENO" 5; }
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11073 $as_echo "${found_usable_guile}" >&6; }
11077 if test -x "${with_guile}"; then
11079 pkg_config
=${with_guile}
11080 guile_version_list
=${try_guile_versions}
11083 found_usable_guile
=checking
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11085 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11086 for guile_version
in ${guile_version_list}; do
11087 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11088 if test $?
!= 0; then
11091 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11092 if test $?
!= 0; then
11093 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11095 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11096 if test $?
!= 0; then
11097 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11099 found_usable_guile
=${guile_version}
11102 if test "${found_usable_guile}" = "checking"; then
11103 if test "${flag_errors}" = "yes"; then
11104 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11106 found_usable_guile
=no
11109 if test "${found_usable_guile}" != no
; then
11110 save_CPPFLAGS
=$CPPFLAGS
11112 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11113 LIBS
="$LIBS $new_LIBS"
11114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11115 /* end confdefs.h. */
11116 #include "libguile.h"
11125 if ac_fn_c_try_link
"$LINENO"; then :
11127 GUILE_CPPFLAGS
=$new_CPPFLAGS
11128 GUILE_LIBS
=$new_LIBS
11130 found_usable_guile
=no
11132 rm -f core conftest.err conftest.
$ac_objext \
11133 conftest
$ac_exeext conftest.
$ac_ext
11134 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11135 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11137 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11142 CPPFLAGS
=$save_CPPFLAGS
11144 if test "${found_usable_guile}" = no
; then
11145 if test "${flag_errors}" = yes; then
11146 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11148 as_fn_error $?
"linking guile version ${guile_version} test program failed
11149 See \`config.log' for more details" "$LINENO" 5; }
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11154 $as_echo "${found_usable_guile}" >&6; }
11157 as_fn_error $?
"Guile config program not executable: ${with_guile}" "$LINENO" 5
11161 # Disallow --with=guile="" and --with-guile=foo/bar.
11162 as_fn_error $?
"invalid value for --with-guile" "$LINENO" 5
11165 # A space separate list of guile versions to try, in order.
11166 if test "${pkg_config_prog_path}" = "missing"; then
11167 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11170 pkg_config
=${pkg_config_prog_path}
11171 guile_version_list
=${with_guile}
11174 found_usable_guile
=checking
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11176 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11177 for guile_version
in ${guile_version_list}; do
11178 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11179 if test $?
!= 0; then
11182 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11183 if test $?
!= 0; then
11184 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11186 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11187 if test $?
!= 0; then
11188 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11190 found_usable_guile
=${guile_version}
11193 if test "${found_usable_guile}" = "checking"; then
11194 if test "${flag_errors}" = "yes"; then
11195 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11197 found_usable_guile
=no
11200 if test "${found_usable_guile}" != no
; then
11201 save_CPPFLAGS
=$CPPFLAGS
11203 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11204 LIBS
="$LIBS $new_LIBS"
11205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11206 /* end confdefs.h. */
11207 #include "libguile.h"
11216 if ac_fn_c_try_link
"$LINENO"; then :
11218 GUILE_CPPFLAGS
=$new_CPPFLAGS
11219 GUILE_LIBS
=$new_LIBS
11221 found_usable_guile
=no
11223 rm -f core conftest.err conftest.
$ac_objext \
11224 conftest
$ac_exeext conftest.
$ac_ext
11225 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11226 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11228 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11233 CPPFLAGS
=$save_CPPFLAGS
11235 if test "${found_usable_guile}" = no
; then
11236 if test "${flag_errors}" = yes; then
11237 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11239 as_fn_error $?
"linking guile version ${guile_version} test program failed
11240 See \`config.log' for more details" "$LINENO" 5; }
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11245 $as_echo "${found_usable_guile}" >&6; }
11250 if test "${have_libguile}" != no
; then
11251 case "${with_guile}" in
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11255 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11256 if ${ac_cv_guild_program_name+:} false
; then :
11257 $as_echo_n "(cached) " >&6
11259 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
11261 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11262 # the 'guild' and 'bindir' variables. In that case, try to guess
11263 # what the program name is, at the risk of getting it wrong if
11264 # Guile was configured with '--program-suffix' or similar.
11265 if test "x$ac_cv_guild_program_name" = "x"; then
11266 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
11267 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11272 $as_echo "$ac_cv_guild_program_name" >&6; }
11274 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11275 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11278 GUILD
="$ac_cv_guild_program_name"
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11285 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11286 if ${ac_cv_guild_program_name+:} false
; then :
11287 $as_echo_n "(cached) " >&6
11289 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
11291 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11292 # the 'guild' and 'bindir' variables. In that case, try to guess
11293 # what the program name is, at the risk of getting it wrong if
11294 # Guile was configured with '--program-suffix' or similar.
11295 if test "x$ac_cv_guild_program_name" = "x"; then
11296 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
11297 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11302 $as_echo "$ac_cv_guild_program_name" >&6; }
11304 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11305 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11308 GUILD
="$ac_cv_guild_program_name"
11315 if test "$cross_compiling" = no
; then
11318 GUILD_TARGET_FLAG
="--target=$host"
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
11325 $as_echo_n "checking whether guild supports this host... " >&6; }
11326 if ${ac_cv_guild_ok+:} false
; then :
11327 $as_echo_n "(cached) " >&6
11329 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
11330 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
11337 $as_echo "$ac_cv_guild_ok" >&6; }
11339 if test "$ac_cv_guild_ok" = no
; then
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
11342 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
11346 if test "${have_libguile}" != no
; then
11348 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
11350 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
11351 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
11352 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
11353 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
11354 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
11357 save_CPPFLAGS
="$CPPFLAGS"
11359 CPPFLAGS
="$GUILE_CPPFLAGS"
11360 for ac_func
in scm_new_smob
11362 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
11363 if test "x$ac_cv_func_scm_new_smob" = xyes
; then :
11364 cat >>confdefs.h
<<_ACEOF
11365 #define HAVE_SCM_NEW_SMOB 1
11372 CPPFLAGS
="$save_CPPFLAGS"
11374 # Even if Guile support is not compiled in, we need to have these files
11376 CONFIG_OBS
="$CONFIG_OBS guile/guile.o"
11377 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
11381 if test "${have_libguile}" != no
; then
11383 HAVE_GUILE_FALSE
='#'
11385 HAVE_GUILE_TRUE
='#'
11390 # ---------------------------- #
11391 # Check for source highlight. #
11392 # ---------------------------- #
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
11397 $as_echo_n "checking for the source-highlight library... " >&6; }
11398 if test "${pkg_config_prog_path}" = "missing"; then
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
11400 $as_echo "no - pkg-config not found" >&6; }
11402 if ${pkg_config_prog_path} --exists source-highlight
; then
11403 SRCHIGH_CFLAGS
=`${pkg_config_prog_path} --cflags source-highlight`
11404 SRCHIGH_LIBS
=`${pkg_config_prog_path} --libs source-highlight`
11406 $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11409 $as_echo "yes" >&6; }
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11412 $as_echo "no" >&6; }
11418 # --------------------- #
11419 # Check for libmcheck. #
11420 # --------------------- #
11422 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
11423 # but turn it off if Python is enabled with threads, since -lmcheck is
11424 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
11425 # and for releases.
11426 if test \
( "${have_libpython}" = "no" -o "${python_has_threads}" = "no" \
) \
11427 && $development; then
11428 libmcheck_default
=yes
11430 libmcheck_default
=no
11433 # Check whether --enable-libmcheck was given.
11434 if test "${enable_libmcheck+set}" = set; then :
11435 enableval
=$enable_libmcheck; case "${enableval}" in
11436 yes | y
) ENABLE_LIBMCHECK
="yes" ;;
11437 no | n
) ENABLE_LIBMCHECK
="no" ;;
11438 *) as_fn_error $?
"bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
11443 if test -z "${ENABLE_LIBMCHECK}"; then
11444 ENABLE_LIBMCHECK
=${libmcheck_default}
11447 if test "$ENABLE_LIBMCHECK" = "yes" ; then
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
11449 $as_echo_n "checking for main in -lmcheck... " >&6; }
11450 if ${ac_cv_lib_mcheck_main+:} false
; then :
11451 $as_echo_n "(cached) " >&6
11453 ac_check_lib_save_LIBS
=$LIBS
11454 LIBS
="-lmcheck $LIBS"
11455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11456 /* end confdefs.h. */
11467 if ac_fn_c_try_link
"$LINENO"; then :
11468 ac_cv_lib_mcheck_main
=yes
11470 ac_cv_lib_mcheck_main
=no
11472 rm -f core conftest.err conftest.
$ac_objext \
11473 conftest
$ac_exeext conftest.
$ac_ext
11474 LIBS
=$ac_check_lib_save_LIBS
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
11477 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
11478 if test "x$ac_cv_lib_mcheck_main" = xyes
; then :
11479 cat >>confdefs.h
<<_ACEOF
11480 #define HAVE_LIBMCHECK 1
11483 LIBS
="-lmcheck $LIBS"
11490 if test "$ENABLE_LIBMCHECK" = "yes" \
11491 -a "${have_libpython}" != "no" \
11492 -a "${python_has_threads}" = "yes" ; then
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
11494 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
11498 # Check whether --with-intel_pt was given.
11499 if test "${with_intel_pt+set}" = set; then :
11500 withval
=$with_intel_pt;
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
11506 $as_echo_n "checking whether to use intel pt... " >&6; }
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
11508 $as_echo "$with_intel_pt" >&6; }
11510 if test "${with_intel_pt}" = no
; then
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
11512 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
11515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11516 /* end confdefs.h. */
11518 #include <linux/perf_event.h>
11519 #ifndef PERF_ATTR_SIZE_VER5
11524 if ac_fn_c_try_cpp
"$LINENO"; then :
11529 rm -f conftest.err conftest.i conftest.
$ac_ext
11530 if test "$perf_event" != yes; then
11531 if test "$with_intel_pt" = yes; then
11532 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
11535 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
11549 acl_save_prefix
="$prefix"
11550 prefix
="$acl_final_prefix"
11551 acl_save_exec_prefix
="$exec_prefix"
11552 exec_prefix
="$acl_final_exec_prefix"
11554 eval additional_includedir
=\"$includedir\"
11555 eval additional_libdir
=\"$libdir\"
11557 exec_prefix
="$acl_save_exec_prefix"
11558 prefix
="$acl_save_prefix"
11561 # Check whether --with-libipt-prefix was given.
11562 if test "${with_libipt_prefix+set}" = set; then :
11563 withval
=$with_libipt_prefix;
11564 if test "X$withval" = "Xno"; then
11567 if test "X$withval" = "X"; then
11569 acl_save_prefix
="$prefix"
11570 prefix
="$acl_final_prefix"
11571 acl_save_exec_prefix
="$exec_prefix"
11572 exec_prefix
="$acl_final_exec_prefix"
11574 eval additional_includedir
=\"$includedir\"
11575 eval additional_libdir
=\"$libdir\"
11577 exec_prefix
="$acl_save_exec_prefix"
11578 prefix
="$acl_save_prefix"
11581 additional_includedir
="$withval/include"
11582 additional_libdir
="$withval/lib"
11593 names_already_handled
=
11594 names_next_round
='ipt '
11595 while test -n "$names_next_round"; do
11596 names_this_round
="$names_next_round"
11598 for name
in $names_this_round; do
11600 for n
in $names_already_handled; do
11601 if test "$n" = "$name"; then
11602 already_handled
=yes
11606 if test -z "$already_handled"; then
11607 names_already_handled
="$names_already_handled $name"
11608 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11609 eval value
=\"\
$HAVE_LIB$uppername\"
11610 if test -n "$value"; then
11611 if test "$value" = yes; then
11612 eval value
=\"\
$LIB$uppername\"
11613 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
11614 eval value
=\"\
$LTLIB$uppername\"
11615 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
11624 if test $use_additional = yes; then
11625 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11626 found_dir
="$additional_libdir"
11627 found_so
="$additional_libdir/lib$name.$shlibext"
11628 if test -f "$additional_libdir/lib$name.la"; then
11629 found_la
="$additional_libdir/lib$name.la"
11632 if test -f "$additional_libdir/lib$name.$libext"; then
11633 found_dir
="$additional_libdir"
11634 found_a
="$additional_libdir/lib$name.$libext"
11635 if test -f "$additional_libdir/lib$name.la"; then
11636 found_la
="$additional_libdir/lib$name.la"
11641 if test "X$found_dir" = "X"; then
11642 for x
in $LDFLAGS $LTLIBIPT; do
11644 acl_save_prefix
="$prefix"
11645 prefix
="$acl_final_prefix"
11646 acl_save_exec_prefix
="$exec_prefix"
11647 exec_prefix
="$acl_final_exec_prefix"
11649 exec_prefix
="$acl_save_exec_prefix"
11650 prefix
="$acl_save_prefix"
11654 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11655 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11657 found_so
="$dir/lib$name.$shlibext"
11658 if test -f "$dir/lib$name.la"; then
11659 found_la
="$dir/lib$name.la"
11662 if test -f "$dir/lib$name.$libext"; then
11664 found_a
="$dir/lib$name.$libext"
11665 if test -f "$dir/lib$name.la"; then
11666 found_la
="$dir/lib$name.la"
11672 if test "X$found_dir" != "X"; then
11677 if test "X$found_dir" != "X"; then
11678 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
11679 if test "X$found_so" != "X"; then
11680 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11681 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11684 for x
in $ltrpathdirs; do
11685 if test "X$x" = "X$found_dir"; then
11690 if test -z "$haveit"; then
11691 ltrpathdirs
="$ltrpathdirs $found_dir"
11693 if test "$hardcode_direct" = yes; then
11694 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11696 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11697 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11699 for x
in $rpathdirs; do
11700 if test "X$x" = "X$found_dir"; then
11705 if test -z "$haveit"; then
11706 rpathdirs
="$rpathdirs $found_dir"
11710 for x
in $LDFLAGS $LIBIPT; do
11712 acl_save_prefix
="$prefix"
11713 prefix
="$acl_final_prefix"
11714 acl_save_exec_prefix
="$exec_prefix"
11715 exec_prefix
="$acl_final_exec_prefix"
11717 exec_prefix
="$acl_save_exec_prefix"
11718 prefix
="$acl_save_prefix"
11720 if test "X$x" = "X-L$found_dir"; then
11725 if test -z "$haveit"; then
11726 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
11728 if test "$hardcode_minus_L" != no
; then
11729 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11731 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
11737 if test "X$found_a" != "X"; then
11738 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
11740 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
11743 additional_includedir
=
11744 case "$found_dir" in
11746 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11747 additional_includedir
="$basedir/include"
11750 if test "X$additional_includedir" != "X"; then
11751 if test "X$additional_includedir" != "X/usr/include"; then
11753 if test "X$additional_includedir" = "X/usr/local/include"; then
11754 if test -n "$GCC"; then
11756 linux
*) haveit
=yes;;
11760 if test -z "$haveit"; then
11761 for x
in $CPPFLAGS $INCIPT; do
11763 acl_save_prefix
="$prefix"
11764 prefix
="$acl_final_prefix"
11765 acl_save_exec_prefix
="$exec_prefix"
11766 exec_prefix
="$acl_final_exec_prefix"
11768 exec_prefix
="$acl_save_exec_prefix"
11769 prefix
="$acl_save_prefix"
11771 if test "X$x" = "X-I$additional_includedir"; then
11776 if test -z "$haveit"; then
11777 if test -d "$additional_includedir"; then
11778 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
11784 if test -n "$found_la"; then
11785 save_libdir
="$libdir"
11786 case "$found_la" in
11787 */* |
*\\*) .
"$found_la" ;;
11788 *) .
"./$found_la" ;;
11790 libdir
="$save_libdir"
11791 for dep
in $dependency_libs; do
11794 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11795 if test "X$additional_libdir" != "X/usr/lib"; then
11797 if test "X$additional_libdir" = "X/usr/local/lib"; then
11798 if test -n "$GCC"; then
11800 linux
*) haveit
=yes;;
11804 if test -z "$haveit"; then
11806 for x
in $LDFLAGS $LIBIPT; do
11808 acl_save_prefix
="$prefix"
11809 prefix
="$acl_final_prefix"
11810 acl_save_exec_prefix
="$exec_prefix"
11811 exec_prefix
="$acl_final_exec_prefix"
11813 exec_prefix
="$acl_save_exec_prefix"
11814 prefix
="$acl_save_prefix"
11816 if test "X$x" = "X-L$additional_libdir"; then
11821 if test -z "$haveit"; then
11822 if test -d "$additional_libdir"; then
11823 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
11827 for x
in $LDFLAGS $LTLIBIPT; do
11829 acl_save_prefix
="$prefix"
11830 prefix
="$acl_final_prefix"
11831 acl_save_exec_prefix
="$exec_prefix"
11832 exec_prefix
="$acl_final_exec_prefix"
11834 exec_prefix
="$acl_save_exec_prefix"
11835 prefix
="$acl_save_prefix"
11837 if test "X$x" = "X-L$additional_libdir"; then
11842 if test -z "$haveit"; then
11843 if test -d "$additional_libdir"; then
11844 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
11851 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11852 if test "$enable_rpath" != no
; then
11854 for x
in $rpathdirs; do
11855 if test "X$x" = "X$dir"; then
11860 if test -z "$haveit"; then
11861 rpathdirs
="$rpathdirs $dir"
11864 for x
in $ltrpathdirs; do
11865 if test "X$x" = "X$dir"; then
11870 if test -z "$haveit"; then
11871 ltrpathdirs
="$ltrpathdirs $dir"
11876 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11879 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11882 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
11883 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
11889 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
11890 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
11896 if test "X$rpathdirs" != "X"; then
11897 if test -n "$hardcode_libdir_separator"; then
11899 for found_dir
in $rpathdirs; do
11900 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11902 acl_save_libdir
="$libdir"
11904 eval flag
=\"$hardcode_libdir_flag_spec\"
11905 libdir
="$acl_save_libdir"
11906 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
11908 for found_dir
in $rpathdirs; do
11909 acl_save_libdir
="$libdir"
11910 libdir
="$found_dir"
11911 eval flag
=\"$hardcode_libdir_flag_spec\"
11912 libdir
="$acl_save_libdir"
11913 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
11917 if test "X$ltrpathdirs" != "X"; then
11918 for found_dir
in $ltrpathdirs; do
11919 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
11924 ac_save_CPPFLAGS
="$CPPFLAGS"
11926 for element
in $INCIPT; do
11928 for x
in $CPPFLAGS; do
11930 acl_save_prefix
="$prefix"
11931 prefix
="$acl_final_prefix"
11932 acl_save_exec_prefix
="$exec_prefix"
11933 exec_prefix
="$acl_final_exec_prefix"
11935 exec_prefix
="$acl_save_exec_prefix"
11936 prefix
="$acl_save_prefix"
11938 if test "X$x" = "X$element"; then
11943 if test -z "$haveit"; then
11944 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
11950 $as_echo_n "checking for libipt... " >&6; }
11951 if ${ac_cv_libipt+:} false
; then :
11952 $as_echo_n "(cached) " >&6
11955 ac_save_LIBS
="$LIBS"
11956 LIBS
="$LIBS $LIBIPT"
11957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11958 /* end confdefs.h. */
11959 #include "intel-pt.h"
11963 pt_insn_alloc_decoder (0);
11968 if ac_fn_c_try_link
"$LINENO"; then :
11973 rm -f core conftest.err conftest.
$ac_objext \
11974 conftest
$ac_exeext conftest.
$ac_ext
11975 LIBS
="$ac_save_LIBS"
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
11979 $as_echo "$ac_cv_libipt" >&6; }
11980 if test "$ac_cv_libipt" = yes; then
11983 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
11986 $as_echo_n "checking how to link with libipt... " >&6; }
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
11988 $as_echo "$LIBIPT" >&6; }
11991 CPPFLAGS
="$ac_save_CPPFLAGS"
12001 if test "$HAVE_LIBIPT" != yes; then
12002 if test "$with_intel_pt" = yes; then
12003 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
12006 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
12010 LIBS
="$LIBS $LIBIPT"
12011 for ac_func
in pt_insn_event
12013 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
12014 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
12015 cat >>confdefs.h
<<_ACEOF
12016 #define HAVE_PT_INSN_EVENT 1
12022 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
12024 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
12026 cat >>confdefs.h
<<_ACEOF
12027 #define HAVE_STRUCT_PT_INSN_ENABLED 1
12032 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
12034 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
12036 cat >>confdefs.h
<<_ACEOF
12037 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
12047 # ------------------------- #
12048 # Checks for header files. #
12049 # ------------------------- #
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12052 $as_echo_n "checking for ANSI C header files... " >&6; }
12053 if ${ac_cv_header_stdc+:} false
; then :
12054 $as_echo_n "(cached) " >&6
12056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12057 /* end confdefs.h. */
12058 #include <stdlib.h>
12059 #include <stdarg.h>
12060 #include <string.h>
12071 if ac_fn_c_try_compile
"$LINENO"; then :
12072 ac_cv_header_stdc
=yes
12074 ac_cv_header_stdc
=no
12076 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12078 if test $ac_cv_header_stdc = yes; then
12079 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12081 /* end confdefs.h. */
12082 #include <string.h>
12085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12086 $EGREP "memchr" >/dev
/null
2>&1; then :
12089 ac_cv_header_stdc
=no
12095 if test $ac_cv_header_stdc = yes; then
12096 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12098 /* end confdefs.h. */
12099 #include <stdlib.h>
12102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12103 $EGREP "free" >/dev
/null
2>&1; then :
12106 ac_cv_header_stdc
=no
12112 if test $ac_cv_header_stdc = yes; then
12113 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12114 if test "$cross_compiling" = yes; then :
12117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12118 /* end confdefs.h. */
12120 #include <stdlib.h>
12121 #if ((' ' & 0x0FF) == 0x020)
12122 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12123 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12125 # define ISLOWER(c) \
12126 (('a' <= (c) && (c) <= 'i') \
12127 || ('j' <= (c) && (c) <= 'r') \
12128 || ('s' <= (c) && (c) <= 'z'))
12129 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12132 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12137 for (i = 0; i < 256; i++)
12138 if (XOR (islower (i), ISLOWER (i))
12139 || toupper (i) != TOUPPER (i))
12144 if ac_fn_c_try_run
"$LINENO"; then :
12147 ac_cv_header_stdc
=no
12149 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12150 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12156 $as_echo "$ac_cv_header_stdc" >&6; }
12157 if test $ac_cv_header_stdc = yes; then
12159 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12163 # elf_hp.h is for HP/UX 64-bit shared library support.
12164 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
12165 thread_db.h linux
/elf.h \
12166 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
12167 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
12168 sys
/reg.h sys
/debugreg.h sys
/select.h \
12169 termios.h elf_hp.h \
12172 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12173 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12174 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12175 cat >>confdefs.h
<<_ACEOF
12176 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12183 for ac_header
in sys
/user.h
12185 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
12186 # include <sys/param.h>
12190 if test "x$ac_cv_header_sys_user_h" = xyes
; then :
12191 cat >>confdefs.h
<<_ACEOF
12192 #define HAVE_SYS_USER_H 1
12200 for ac_header
in curses.h cursesX.h ncurses.h ncursesw
/ncurses.h ncurses
/ncurses.h ncurses
/term.h
12202 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12203 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12204 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12205 cat >>confdefs.h
<<_ACEOF
12206 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12213 for ac_header
in term.h
12215 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
12216 # include <curses.h>
12220 if test "x$ac_cv_header_term_h" = xyes
; then :
12221 cat >>confdefs.h
<<_ACEOF
12222 #define HAVE_TERM_H 1
12230 # ------------------------- #
12231 # Checks for declarations. #
12232 # ------------------------- #
12235 # Check for presence and size of long long.
12236 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12237 if test "x$ac_cv_type_long_long" = xyes
; then :
12239 cat >>confdefs.h
<<_ACEOF
12240 #define HAVE_LONG_LONG 1
12243 # The cast to long int works around a bug in the HP C Compiler
12244 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12245 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12246 # This bug is HP SR number 8606223364.
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12248 $as_echo_n "checking size of long long... " >&6; }
12249 if ${ac_cv_sizeof_long_long+:} false
; then :
12250 $as_echo_n "(cached) " >&6
12252 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12255 if test "$ac_cv_type_long_long" = yes; then
12256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12258 as_fn_error
77 "cannot compute sizeof (long long)
12259 See \`config.log' for more details" "$LINENO" 5; }
12261 ac_cv_sizeof_long_long
=0
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12267 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12271 cat >>confdefs.h
<<_ACEOF
12272 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12279 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
12280 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
12281 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
12287 cat >>confdefs.h
<<_ACEOF
12288 #define HAVE_DECL_BASENAME $ac_have_decl
12290 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
12291 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
12297 cat >>confdefs.h
<<_ACEOF
12298 #define HAVE_DECL_FFS $ac_have_decl
12300 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12301 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
12307 cat >>confdefs.h
<<_ACEOF
12308 #define HAVE_DECL_ASPRINTF $ac_have_decl
12310 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12311 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
12317 cat >>confdefs.h
<<_ACEOF
12318 #define HAVE_DECL_VASPRINTF $ac_have_decl
12320 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12321 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12327 cat >>confdefs.h
<<_ACEOF
12328 #define HAVE_DECL_SNPRINTF $ac_have_decl
12330 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12331 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
12337 cat >>confdefs.h
<<_ACEOF
12338 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12341 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
12342 if test "x$ac_cv_have_decl_strtol" = xyes
; then :
12348 cat >>confdefs.h
<<_ACEOF
12349 #define HAVE_DECL_STRTOL $ac_have_decl
12351 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
12352 if test "x$ac_cv_have_decl_strtoul" = xyes
; then :
12358 cat >>confdefs.h
<<_ACEOF
12359 #define HAVE_DECL_STRTOUL $ac_have_decl
12361 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
12362 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
12368 cat >>confdefs.h
<<_ACEOF
12369 #define HAVE_DECL_STRTOLL $ac_have_decl
12371 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
12372 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
12378 cat >>confdefs.h
<<_ACEOF
12379 #define HAVE_DECL_STRTOULL $ac_have_decl
12382 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12383 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
12389 cat >>confdefs.h
<<_ACEOF
12390 #define HAVE_DECL_STRVERSCMP $ac_have_decl
12395 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12396 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12402 cat >>confdefs.h
<<_ACEOF
12403 #define HAVE_DECL_SNPRINTF $ac_have_decl
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12408 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12409 if ${am_cv_val_LC_MESSAGES+:} false
; then :
12410 $as_echo_n "(cached) " >&6
12412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12413 /* end confdefs.h. */
12414 #include <locale.h>
12423 if ac_fn_c_try_link
"$LINENO"; then :
12424 am_cv_val_LC_MESSAGES
=yes
12426 am_cv_val_LC_MESSAGES
=no
12428 rm -f core conftest.err conftest.
$ac_objext \
12429 conftest
$ac_exeext conftest.
$ac_ext
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12432 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12433 if test $am_cv_val_LC_MESSAGES = yes; then
12435 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12440 # ----------------------- #
12441 # Checks for structures. #
12442 # ----------------------- #
12444 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
12445 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
12447 cat >>confdefs.h
<<_ACEOF
12448 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12453 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
12454 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
12456 cat >>confdefs.h
<<_ACEOF
12457 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12464 # ------------------ #
12465 # Checks for types. #
12466 # ------------------ #
12468 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12469 #include <sys/socket.h>
12472 if test "x$ac_cv_type_socklen_t" = xyes
; then :
12474 cat >>confdefs.h
<<_ACEOF
12475 #define HAVE_SOCKLEN_T 1
12482 # ------------------------------------- #
12483 # Checks for compiler characteristics. #
12484 # ------------------------------------- #
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12487 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12488 if ${ac_cv_c_const+:} false
; then :
12489 $as_echo_n "(cached) " >&6
12491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12492 /* end confdefs.h. */
12498 #ifndef __cplusplus
12499 /* Ultrix mips cc rejects this sort of thing. */
12500 typedef int charset[2];
12501 const charset cs = { 0, 0 };
12502 /* SunOS 4.1.1 cc rejects this. */
12503 char const *const *pcpcc;
12505 /* NEC SVR4.0.2 mips cc rejects this. */
12506 struct point {int x, y;};
12507 static struct point const zero = {0,0};
12508 /* AIX XL C 1.02.0.0 rejects this.
12509 It does not let you subtract one const X* pointer from another in
12510 an arm of an if-expression whose if-part is not a constant
12512 const char *g = "string";
12513 pcpcc = &g + (g ? g-g : 0);
12514 /* HPUX 7.0 cc rejects these. */
12516 ppc = (char**) pcpcc;
12517 pcpcc = (char const *const *) ppc;
12518 { /* SCO 3.2v4 cc rejects this sort of thing. */
12521 char const *s = 0 ? (char *) 0 : (char const *) 0;
12526 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12527 int x[] = {25, 17};
12528 const int *foo = &x[0];
12531 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12532 typedef const int *iptr;
12536 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12537 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12538 struct s { int j; const int *ap[3]; } bx;
12539 struct s *b = &bx; b->j = 5;
12541 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12542 const int foo = 10;
12543 if (!foo) return 0;
12545 return !cs[0] && !zero.x;
12552 if ac_fn_c_try_compile
"$LINENO"; then :
12557 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12560 $as_echo "$ac_cv_c_const" >&6; }
12561 if test $ac_cv_c_const = no
; then
12563 $as_echo "#define const /**/" >>confdefs.h
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12568 $as_echo_n "checking for inline... " >&6; }
12569 if ${ac_cv_c_inline+:} false
; then :
12570 $as_echo_n "(cached) " >&6
12573 for ac_kw
in inline __inline__ __inline
; do
12574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12575 /* end confdefs.h. */
12576 #ifndef __cplusplus
12578 static $ac_kw foo_t static_foo () {return 0; }
12579 $ac_kw foo_t foo () {return 0; }
12583 if ac_fn_c_try_compile
"$LINENO"; then :
12584 ac_cv_c_inline
=$ac_kw
12586 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12587 test "$ac_cv_c_inline" != no
&& break
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12592 $as_echo "$ac_cv_c_inline" >&6; }
12594 case $ac_cv_c_inline in
12597 case $ac_cv_c_inline in
12599 *) ac_val
=$ac_cv_c_inline;;
12601 cat >>confdefs.h
<<_ACEOF
12602 #ifndef __cplusplus
12603 #define inline $ac_val
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12610 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12611 if ${ac_cv_c_bigendian+:} false
; then :
12612 $as_echo_n "(cached) " >&6
12614 ac_cv_c_bigendian
=unknown
12615 # See if we're dealing with a universal compiler.
12616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12617 /* end confdefs.h. */
12618 #ifndef __APPLE_CC__
12619 not a universal capable compiler
12624 if ac_fn_c_try_compile
"$LINENO"; then :
12626 # Check for potential -arch flags. It is not universal unless
12627 # there are at least two -arch flags with different values.
12630 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12631 if test -n "$ac_prev"; then
12633 i?
86 | x86_64 | ppc | ppc64
)
12634 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12637 ac_cv_c_bigendian
=universal
12643 elif test "x$ac_word" = "x-arch"; then
12648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12649 if test $ac_cv_c_bigendian = unknown
; then
12650 # See if sys/param.h defines the BYTE_ORDER macro.
12651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12652 /* end confdefs.h. */
12653 #include <sys/types.h>
12654 #include <sys/param.h>
12659 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12660 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12662 bogus endian macros
12669 if ac_fn_c_try_compile
"$LINENO"; then :
12670 # It does; now see whether it defined to BIG_ENDIAN or not.
12671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12672 /* end confdefs.h. */
12673 #include <sys/types.h>
12674 #include <sys/param.h>
12679 #if BYTE_ORDER != BIG_ENDIAN
12687 if ac_fn_c_try_compile
"$LINENO"; then :
12688 ac_cv_c_bigendian
=yes
12690 ac_cv_c_bigendian
=no
12692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12694 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12696 if test $ac_cv_c_bigendian = unknown
; then
12697 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12699 /* end confdefs.h. */
12700 #include <limits.h>
12705 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12706 bogus endian macros
12713 if ac_fn_c_try_compile
"$LINENO"; then :
12714 # It does; now see whether it defined to _BIG_ENDIAN or not.
12715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12716 /* end confdefs.h. */
12717 #include <limits.h>
12722 #ifndef _BIG_ENDIAN
12730 if ac_fn_c_try_compile
"$LINENO"; then :
12731 ac_cv_c_bigendian
=yes
12733 ac_cv_c_bigendian
=no
12735 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12737 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12739 if test $ac_cv_c_bigendian = unknown
; then
12740 # Compile a test program.
12741 if test "$cross_compiling" = yes; then :
12742 # Try to guess by grepping values from an object file.
12743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12744 /* end confdefs.h. */
12745 short int ascii_mm[] =
12746 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12747 short int ascii_ii[] =
12748 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12749 int use_ascii (int i) {
12750 return ascii_mm[i] + ascii_ii[i];
12752 short int ebcdic_ii[] =
12753 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12754 short int ebcdic_mm[] =
12755 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12756 int use_ebcdic (int i) {
12757 return ebcdic_mm[i] + ebcdic_ii[i];
12764 return use_ascii (foo) == use_ebcdic (foo);
12769 if ac_fn_c_try_compile
"$LINENO"; then :
12770 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12771 ac_cv_c_bigendian
=yes
12773 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12774 if test "$ac_cv_c_bigendian" = unknown
; then
12775 ac_cv_c_bigendian
=no
12777 # finding both strings is unlikely to happen, but who knows?
12778 ac_cv_c_bigendian
=unknown
12782 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12785 /* end confdefs.h. */
12786 $ac_includes_default
12791 /* Are we little or big endian? From Harbison&Steele. */
12795 char c[sizeof (long int)];
12798 return u.c[sizeof (long int) - 1] == 1;
12804 if ac_fn_c_try_run
"$LINENO"; then :
12805 ac_cv_c_bigendian
=no
12807 ac_cv_c_bigendian
=yes
12809 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12810 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12816 $as_echo "$ac_cv_c_bigendian" >&6; }
12817 case $ac_cv_c_bigendian in #(
12819 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12825 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12829 as_fn_error $?
"unknown endianness
12830 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12834 # ------------------------------ #
12835 # Checks for library functions. #
12836 # ------------------------------ #
12841 for ac_header
in $ac_header_list
12843 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12844 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12846 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12847 cat >>confdefs.h
<<_ACEOF
12848 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12862 for ac_func
in getpagesize
12864 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12865 if test "x$ac_cv_func_getpagesize" = xyes
; then :
12866 cat >>confdefs.h
<<_ACEOF
12867 #define HAVE_GETPAGESIZE 1
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12874 $as_echo_n "checking for working mmap... " >&6; }
12875 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
12876 $as_echo_n "(cached) " >&6
12878 if test "$cross_compiling" = yes; then :
12879 ac_cv_func_mmap_fixed_mapped
=no
12881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12882 /* end confdefs.h. */
12883 $ac_includes_default
12884 /* malloc might have been renamed as rpl_malloc. */
12887 /* Thanks to Mike Haertel and Jim Avera for this test.
12888 Here is a matrix of mmap possibilities:
12889 mmap private not fixed
12890 mmap private fixed at somewhere currently unmapped
12891 mmap private fixed at somewhere already mapped
12892 mmap shared not fixed
12893 mmap shared fixed at somewhere currently unmapped
12894 mmap shared fixed at somewhere already mapped
12895 For private mappings, we should verify that changes cannot be read()
12896 back from the file, nor mmap's back from the file at a different
12897 address. (There have been systems where private was not correctly
12898 implemented like the infamous i386 svr4.0, and systems where the
12899 VM page cache was not coherent with the file system buffer cache
12900 like early versions of FreeBSD and possibly contemporary NetBSD.)
12901 For shared mappings, we should conversely verify that changes get
12902 propagated back to all the places they're supposed to be.
12904 Grep wants private fixed already mapped.
12905 The main things grep needs to know about mmap are:
12906 * does it exist and is it safe to write into the mmap'd area
12907 * how to use it (BSD variants) */
12910 #include <sys/mman.h>
12912 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12916 /* This mess was copied from the GNU getpagesize.h. */
12917 #ifndef HAVE_GETPAGESIZE
12918 # ifdef _SC_PAGESIZE
12919 # define getpagesize() sysconf(_SC_PAGESIZE)
12920 # else /* no _SC_PAGESIZE */
12921 # ifdef HAVE_SYS_PARAM_H
12922 # include <sys/param.h>
12923 # ifdef EXEC_PAGESIZE
12924 # define getpagesize() EXEC_PAGESIZE
12925 # else /* no EXEC_PAGESIZE */
12927 # define getpagesize() NBPG * CLSIZE
12930 # endif /* no CLSIZE */
12931 # else /* no NBPG */
12933 # define getpagesize() NBPC
12934 # else /* no NBPC */
12936 # define getpagesize() PAGESIZE
12937 # endif /* PAGESIZE */
12938 # endif /* no NBPC */
12939 # endif /* no NBPG */
12940 # endif /* no EXEC_PAGESIZE */
12941 # else /* no HAVE_SYS_PARAM_H */
12942 # define getpagesize() 8192 /* punt totally */
12943 # endif /* no HAVE_SYS_PARAM_H */
12944 # endif /* no _SC_PAGESIZE */
12946 #endif /* no HAVE_GETPAGESIZE */
12951 char *data, *data2, *data3;
12952 const char *cdata2;
12956 pagesize = getpagesize ();
12958 /* First, make a file with some known garbage in it. */
12959 data = (char *) malloc (pagesize);
12962 for (i = 0; i < pagesize; ++i)
12963 *(data + i) = rand ();
12965 fd = creat ("conftest.mmap", 0600);
12968 if (write (fd, data, pagesize) != pagesize)
12972 /* Next, check that the tail of a page is zero-filled. File must have
12973 non-zero length, otherwise we risk SIGBUS for entire page. */
12974 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12978 if (write (fd2, cdata2, 1) != 1)
12980 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12981 if (data2 == MAP_FAILED)
12983 for (i = 0; i < pagesize; ++i)
12987 if (munmap (data2, pagesize))
12990 /* Next, try to mmap the file at a fixed address which already has
12991 something else allocated at it. If we can, also make sure that
12992 we see the same garbage. */
12993 fd = open ("conftest.mmap", O_RDWR);
12996 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12997 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12999 for (i = 0; i < pagesize; ++i)
13000 if (*(data + i) != *(data2 + i))
13003 /* Finally, make sure that changes to the mapped area do not
13004 percolate back to the file as seen by read(). (This is a bug on
13005 some variants of i386 svr4.0.) */
13006 for (i = 0; i < pagesize; ++i)
13007 *(data2 + i) = *(data2 + i) + 1;
13008 data3 = (char *) malloc (pagesize);
13011 if (read (fd, data3, pagesize) != pagesize)
13013 for (i = 0; i < pagesize; ++i)
13014 if (*(data + i) != *(data3 + i))
13020 if ac_fn_c_try_run
"$LINENO"; then :
13021 ac_cv_func_mmap_fixed_mapped
=yes
13023 ac_cv_func_mmap_fixed_mapped
=no
13025 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13026 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13031 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13032 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13034 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13037 rm -f conftest.mmap conftest.txt
13039 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13040 if test "x$ac_cv_type_pid_t" = xyes
; then :
13044 cat >>confdefs.h
<<_ACEOF
13050 for ac_header
in vfork.h
13052 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13053 if test "x$ac_cv_header_vfork_h" = xyes
; then :
13054 cat >>confdefs.h
<<_ACEOF
13055 #define HAVE_VFORK_H 1
13062 for ac_func
in fork vfork
13064 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13065 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13066 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13067 cat >>confdefs.h
<<_ACEOF
13068 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13074 if test "x$ac_cv_func_fork" = xyes
; then
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13076 $as_echo_n "checking for working fork... " >&6; }
13077 if ${ac_cv_func_fork_works+:} false
; then :
13078 $as_echo_n "(cached) " >&6
13080 if test "$cross_compiling" = yes; then :
13081 ac_cv_func_fork_works
=cross
13083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13084 /* end confdefs.h. */
13085 $ac_includes_default
13090 /* By Ruediger Kuhlmann. */
13091 return fork () < 0;
13097 if ac_fn_c_try_run
"$LINENO"; then :
13098 ac_cv_func_fork_works
=yes
13100 ac_cv_func_fork_works
=no
13102 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13103 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13108 $as_echo "$ac_cv_func_fork_works" >&6; }
13111 ac_cv_func_fork_works
=$ac_cv_func_fork
13113 if test "x$ac_cv_func_fork_works" = xcross
; then
13115 *-*-amigaos* |
*-*-msdosdjgpp*)
13116 # Override, as these systems have only a dummy fork() stub
13117 ac_cv_func_fork_works
=no
13120 ac_cv_func_fork_works
=yes
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13124 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13126 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13127 if test "x$ac_cv_func_vfork" = xyes
; then
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13129 $as_echo_n "checking for working vfork... " >&6; }
13130 if ${ac_cv_func_vfork_works+:} false
; then :
13131 $as_echo_n "(cached) " >&6
13133 if test "$cross_compiling" = yes; then :
13134 ac_cv_func_vfork_works
=cross
13136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13137 /* end confdefs.h. */
13138 /* Thanks to Paul Eggert for this test. */
13139 $ac_includes_default
13140 #include <sys/wait.h>
13141 #ifdef HAVE_VFORK_H
13142 # include <vfork.h>
13144 /* On some sparc systems, changes by the child to local and incoming
13145 argument registers are propagated back to the parent. The compiler
13146 is told about this with #include <vfork.h>, but some compilers
13147 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13148 static variable whose address is put into a register that is
13149 clobbered by the vfork. */
13152 sparc_address_test (int arg)
13154 sparc_address_test (arg) int arg;
13157 static pid_t child;
13175 pid_t parent = getpid ();
13178 sparc_address_test (0);
13183 /* Here is another test for sparc vfork register problems. This
13184 test uses lots of local variables, at least as many local
13185 variables as main has allocated so far including compiler
13186 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13187 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13188 reuse the register of parent for one of the local variables,
13189 since it will think that parent can't possibly be used any more
13190 in this routine. Assigning to the local variable will thus
13191 munge parent in the parent process. */
13193 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13194 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13195 /* Convince the compiler that p..p7 are live; otherwise, it might
13196 use the same hardware register for all 8 local variables. */
13197 if (p != p1 || p != p2 || p != p3 || p != p4
13198 || p != p5 || p != p6 || p != p7)
13201 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13202 from child file descriptors. If the child closes a descriptor
13203 before it execs or exits, this munges the parent's descriptor
13204 as well. Test for this by closing stdout in the child. */
13205 _exit(close(fileno(stdout)) != 0);
13210 while (wait(&status) != child)
13213 /* Was there some problem with vforking? */
13216 /* Did the child fail? (This shouldn't happen.) */
13219 /* Did the vfork/compiler bug occur? */
13220 || parent != getpid()
13222 /* Did the file descriptor bug occur? */
13223 || fstat(fileno(stdout), &st) != 0
13228 if ac_fn_c_try_run
"$LINENO"; then :
13229 ac_cv_func_vfork_works
=yes
13231 ac_cv_func_vfork_works
=no
13233 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13234 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13239 $as_echo "$ac_cv_func_vfork_works" >&6; }
13242 if test "x$ac_cv_func_fork_works" = xcross
; then
13243 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13245 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13248 if test "x$ac_cv_func_vfork_works" = xyes
; then
13250 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13254 $as_echo "#define vfork fork" >>confdefs.h
13257 if test "x$ac_cv_func_fork_works" = xyes
; then
13259 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13263 for ac_func
in getauxval getrusage getuid getgid \
13264 pipe poll pread pread64 pwrite resize_term \
13265 sbrk getpgid setpgid setpgrp setsid \
13266 sigaction sigprocmask sigsetmask socketpair \
13267 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
13268 setrlimit getrlimit posix_madvise waitpid \
13269 ptrace64 sigaltstack setns use_default_colors
13271 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13272 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13273 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13274 cat >>confdefs.h
<<_ACEOF
13275 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13283 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13284 if ${am_cv_langinfo_codeset+:} false
; then :
13285 $as_echo_n "(cached) " >&6
13287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13288 /* end confdefs.h. */
13289 #include <langinfo.h>
13293 char* cs = nl_langinfo(CODESET);
13298 if ac_fn_c_try_link
"$LINENO"; then :
13299 am_cv_langinfo_codeset
=yes
13301 am_cv_langinfo_codeset
=no
13303 rm -f core conftest.err conftest.
$ac_objext \
13304 conftest
$ac_exeext conftest.
$ac_ext
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13308 $as_echo "$am_cv_langinfo_codeset" >&6; }
13309 if test $am_cv_langinfo_codeset = yes; then
13311 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13315 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13316 if test "x$ac_cv_type_size_t" = xyes
; then :
13320 cat >>confdefs.h
<<_ACEOF
13321 #define size_t unsigned int
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13328 $as_echo_n "checking for ANSI C header files... " >&6; }
13329 if ${ac_cv_header_stdc+:} false
; then :
13330 $as_echo_n "(cached) " >&6
13332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13333 /* end confdefs.h. */
13334 #include <stdlib.h>
13335 #include <stdarg.h>
13336 #include <string.h>
13347 if ac_fn_c_try_compile
"$LINENO"; then :
13348 ac_cv_header_stdc
=yes
13350 ac_cv_header_stdc
=no
13352 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13354 if test $ac_cv_header_stdc = yes; then
13355 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13357 /* end confdefs.h. */
13358 #include <string.h>
13361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13362 $EGREP "memchr" >/dev
/null
2>&1; then :
13365 ac_cv_header_stdc
=no
13371 if test $ac_cv_header_stdc = yes; then
13372 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13374 /* end confdefs.h. */
13375 #include <stdlib.h>
13378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13379 $EGREP "free" >/dev
/null
2>&1; then :
13382 ac_cv_header_stdc
=no
13388 if test $ac_cv_header_stdc = yes; then
13389 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13390 if test "$cross_compiling" = yes; then :
13393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13394 /* end confdefs.h. */
13396 #include <stdlib.h>
13397 #if ((' ' & 0x0FF) == 0x020)
13398 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13399 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13401 # define ISLOWER(c) \
13402 (('a' <= (c) && (c) <= 'i') \
13403 || ('j' <= (c) && (c) <= 'r') \
13404 || ('s' <= (c) && (c) <= 'z'))
13405 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13408 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13413 for (i = 0; i < 256; i++)
13414 if (XOR (islower (i), ISLOWER (i))
13415 || toupper (i) != TOUPPER (i))
13420 if ac_fn_c_try_run
"$LINENO"; then :
13423 ac_cv_header_stdc
=no
13425 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13426 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13432 $as_echo "$ac_cv_header_stdc" >&6; }
13433 if test $ac_cv_header_stdc = yes; then
13435 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13439 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13440 # for constant arguments. Useless!
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13442 $as_echo_n "checking for working alloca.h... " >&6; }
13443 if ${ac_cv_working_alloca_h+:} false
; then :
13444 $as_echo_n "(cached) " >&6
13446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13447 /* end confdefs.h. */
13448 #include <alloca.h>
13452 char *p = (char *) alloca (2 * sizeof (int));
13458 if ac_fn_c_try_link
"$LINENO"; then :
13459 ac_cv_working_alloca_h
=yes
13461 ac_cv_working_alloca_h
=no
13463 rm -f core conftest.err conftest.
$ac_objext \
13464 conftest
$ac_exeext conftest.
$ac_ext
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13467 $as_echo "$ac_cv_working_alloca_h" >&6; }
13468 if test $ac_cv_working_alloca_h = yes; then
13470 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13475 $as_echo_n "checking for alloca... " >&6; }
13476 if ${ac_cv_func_alloca_works+:} false
; then :
13477 $as_echo_n "(cached) " >&6
13479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13480 /* end confdefs.h. */
13482 # define alloca __builtin_alloca
13485 # include <malloc.h>
13486 # define alloca _alloca
13488 # ifdef HAVE_ALLOCA_H
13489 # include <alloca.h>
13494 # ifndef alloca /* predefined by HP cc +Olibcalls */
13495 void *alloca (size_t);
13505 char *p = (char *) alloca (1);
13511 if ac_fn_c_try_link
"$LINENO"; then :
13512 ac_cv_func_alloca_works
=yes
13514 ac_cv_func_alloca_works
=no
13516 rm -f core conftest.err conftest.
$ac_objext \
13517 conftest
$ac_exeext conftest.
$ac_ext
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13520 $as_echo "$ac_cv_func_alloca_works" >&6; }
13522 if test $ac_cv_func_alloca_works = yes; then
13524 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13527 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13528 # that cause trouble. Some versions do not even contain alloca or
13529 # contain a buggy version. If you still want to use their alloca,
13530 # use ar to extract alloca.o from them instead of compiling alloca.c.
13532 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
13534 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13538 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13539 if ${ac_cv_os_cray+:} false
; then :
13540 $as_echo_n "(cached) " >&6
13542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13543 /* end confdefs.h. */
13544 #if defined CRAY && ! defined CRAY2
13551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13552 $EGREP "webecray" >/dev
/null
2>&1; then :
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13561 $as_echo "$ac_cv_os_cray" >&6; }
13562 if test $ac_cv_os_cray = yes; then
13563 for ac_func
in _getb67 GETB67 getb67
; do
13564 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13565 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13566 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13568 cat >>confdefs.h
<<_ACEOF
13569 #define CRAY_STACKSEG_END $ac_func
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13579 $as_echo_n "checking stack direction for C alloca... " >&6; }
13580 if ${ac_cv_c_stack_direction+:} false
; then :
13581 $as_echo_n "(cached) " >&6
13583 if test "$cross_compiling" = yes; then :
13584 ac_cv_c_stack_direction
=0
13586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13587 /* end confdefs.h. */
13588 $ac_includes_default
13590 find_stack_direction (int *addr, int depth)
13592 int dir, dummy = 0;
13595 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13596 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13597 return dir + dummy;
13601 main (int argc, char **argv)
13603 return find_stack_direction (0, argc + !argv + 20) < 0;
13606 if ac_fn_c_try_run
"$LINENO"; then :
13607 ac_cv_c_stack_direction
=1
13609 ac_cv_c_stack_direction
=-1
13611 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13612 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13617 $as_echo "$ac_cv_c_stack_direction" >&6; }
13618 cat >>confdefs.h
<<_ACEOF
13619 #define STACK_DIRECTION $ac_cv_c_stack_direction
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13628 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13629 if ${am_cv_langinfo_codeset+:} false
; then :
13630 $as_echo_n "(cached) " >&6
13632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13633 /* end confdefs.h. */
13634 #include <langinfo.h>
13638 char* cs = nl_langinfo(CODESET);
13643 if ac_fn_c_try_link
"$LINENO"; then :
13644 am_cv_langinfo_codeset
=yes
13646 am_cv_langinfo_codeset
=no
13648 rm -f core conftest.err conftest.
$ac_objext \
13649 conftest
$ac_exeext conftest.
$ac_ext
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13653 $as_echo "$am_cv_langinfo_codeset" >&6; }
13654 if test $am_cv_langinfo_codeset = yes; then
13656 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13661 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
13663 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13664 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13665 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13666 cat >>confdefs.h
<<_ACEOF
13667 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13675 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair sigaction
13677 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13678 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13679 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13680 cat >>confdefs.h
<<_ACEOF
13681 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13688 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
13689 if test "x$ac_cv_have_decl_strerror" = xyes
; then :
13695 cat >>confdefs.h
<<_ACEOF
13696 #define HAVE_DECL_STRERROR $ac_have_decl
13698 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13699 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
13705 cat >>confdefs.h
<<_ACEOF
13706 #define HAVE_DECL_STRSTR $ac_have_decl
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
13711 $as_echo_n "checking for sigsetjmp... " >&6; }
13712 if ${gdb_cv_func_sigsetjmp+:} false
; then :
13713 $as_echo_n "(cached) " >&6
13715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13716 /* end confdefs.h. */
13718 #include <setjmp.h>
13723 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
13728 if ac_fn_c_try_compile
"$LINENO"; then :
13729 gdb_cv_func_sigsetjmp
=yes
13731 gdb_cv_func_sigsetjmp
=no
13733 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
13736 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
13737 if test $gdb_cv_func_sigsetjmp = yes; then
13739 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
13744 # Check the return and argument types of ptrace.
13747 for ac_header
in sys
/ptrace.h ptrace.h
13749 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13750 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13751 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13752 cat >>confdefs.h
<<_ACEOF
13753 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13761 gdb_ptrace_headers
='
13762 #include <sys/types.h>
13763 #if HAVE_SYS_PTRACE_H
13764 # include <sys/ptrace.h>
13767 # include <unistd.h>
13770 # There is no point in checking if we don't have a prototype.
13771 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
13773 if test "x$ac_cv_have_decl_ptrace" = xyes
; then :
13779 cat >>confdefs.h
<<_ACEOF
13780 #define HAVE_DECL_PTRACE $ac_have_decl
13782 if test $ac_have_decl = 1; then :
13786 : ${gdb_cv_func_ptrace_ret='int'}
13787 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13791 # Check return type. Varargs (used on GNU/Linux) conflict with the
13792 # empty argument list, so check for that explicitly.
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
13794 $as_echo_n "checking return type of ptrace... " >&6; }
13795 if ${gdb_cv_func_ptrace_ret+:} false
; then :
13796 $as_echo_n "(cached) " >&6
13798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13799 /* end confdefs.h. */
13800 $gdb_ptrace_headers
13804 extern long ptrace (enum __ptrace_request, ...);
13809 if ac_fn_c_try_compile
"$LINENO"; then :
13810 gdb_cv_func_ptrace_ret
='long'
13812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13813 /* end confdefs.h. */
13814 $gdb_ptrace_headers
13818 extern int ptrace ();
13823 if ac_fn_c_try_compile
"$LINENO"; then :
13824 gdb_cv_func_ptrace_ret
='int'
13826 gdb_cv_func_ptrace_ret
='long'
13828 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13830 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
13833 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
13835 cat >>confdefs.h
<<_ACEOF
13836 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
13839 # Check argument types.
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
13841 $as_echo_n "checking types of arguments for ptrace... " >&6; }
13842 if ${gdb_cv_func_ptrace_args+:} false
; then :
13843 $as_echo_n "(cached) " >&6
13846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13847 /* end confdefs.h. */
13848 $gdb_ptrace_headers
13852 extern long ptrace (enum __ptrace_request, ...);
13857 if ac_fn_c_try_compile
"$LINENO"; then :
13858 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
13861 for gdb_arg1
in 'int' 'long'; do
13862 for gdb_arg2
in 'pid_t' 'int' 'long'; do
13863 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
13864 for gdb_arg4
in 'int' 'long' 'void *'; do
13865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13866 /* end confdefs.h. */
13867 $gdb_ptrace_headers
13872 extern $gdb_cv_func_ptrace_ret
13873 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
13879 if ac_fn_c_try_compile
"$LINENO"; then :
13880 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
13883 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13884 for gdb_arg5
in 'int *' 'int' 'long'; do
13885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13886 /* end confdefs.h. */
13887 $gdb_ptrace_headers
13892 extern $gdb_cv_func_ptrace_ret
13893 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
13899 if ac_fn_c_try_compile
"$LINENO"; then :
13901 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
13904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13910 # Provide a safe default value.
13911 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13914 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
13917 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
13918 ac_save_IFS
=$IFS; IFS
=','
13919 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
13923 cat >>confdefs.h
<<_ACEOF
13924 #define PTRACE_TYPE_ARG1 $1
13928 cat >>confdefs.h
<<_ACEOF
13929 #define PTRACE_TYPE_ARG3 $3
13933 cat >>confdefs.h
<<_ACEOF
13934 #define PTRACE_TYPE_ARG4 $4
13937 if test -n "$5"; then
13939 cat >>confdefs.h
<<_ACEOF
13940 #define PTRACE_TYPE_ARG5 $5
13946 if test "$cross_compiling" = no
; then
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
13948 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
13949 if ${ac_cv_func_setpgrp_void+:} false
; then :
13950 $as_echo_n "(cached) " >&6
13952 if test "$cross_compiling" = yes; then :
13953 as_fn_error $?
"cannot check setpgrp when cross compiling" "$LINENO" 5
13955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13956 /* end confdefs.h. */
13957 $ac_includes_default
13961 /* If this system has a BSD-style setpgrp which takes arguments,
13962 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
13963 exit successfully. */
13964 return setpgrp (1,1) != -1;
13969 if ac_fn_c_try_run
"$LINENO"; then :
13970 ac_cv_func_setpgrp_void
=no
13972 ac_cv_func_setpgrp_void
=yes
13974 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13975 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
13980 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
13981 if test $ac_cv_func_setpgrp_void = yes; then
13983 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
13989 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
13990 if ${ac_cv_func_setpgrp_void+:} false
; then :
13991 $as_echo_n "(cached) " >&6
13993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13994 /* end confdefs.h. */
13996 #include <unistd.h>
14002 if (setpgrp(1,1) == -1)
14011 if ac_fn_c_try_compile
"$LINENO"; then :
14012 ac_cv_func_setpgrp_void
=no
14014 ac_cv_func_setpgrp_void
=yes
14016 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
14019 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
14020 if test $ac_cv_func_setpgrp_void = yes; then
14021 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
14026 # Assume we'll default to using the included libiberty regex.
14027 gdb_use_included_regex
=yes
14029 # However, if the system regex is GNU regex, then default to *not*
14030 # using the included regex.
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
14032 $as_echo_n "checking for GNU regex... " >&6; }
14033 if ${gdb_cv_have_gnu_regex+:} false
; then :
14034 $as_echo_n "(cached) " >&6
14036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14037 /* end confdefs.h. */
14038 #include <gnu-versions.h>
14042 #define REGEX_INTERFACE_VERSION 1
14043 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
14044 # error "Version mismatch"
14050 if ac_fn_c_try_compile
"$LINENO"; then :
14051 gdb_cv_have_gnu_regex
=yes
14053 gdb_cv_have_gnu_regex
=no
14055 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
14058 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
14059 if test $gdb_cv_have_gnu_regex = yes; then
14060 gdb_use_included_regex
=no
14064 # Check whether --with-included-regex was given.
14065 if test "${with_included_regex+set}" = set; then :
14066 withval
=$with_included_regex; gdb_with_regex
=$withval
14068 gdb_with_regex
=$gdb_use_included_regex
14071 if test "$gdb_with_regex" = yes; then
14073 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
14077 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
14078 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
14079 #include <sys/proc.h>
14082 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes
; then :
14084 cat >>confdefs.h
<<_ACEOF
14085 #define HAVE_STRUCT_THREAD_TD_PCB 1
14092 # See if <sys/lwp.h> defines `struct lwp`.
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
14094 $as_echo_n "checking for struct lwp... " >&6; }
14095 if ${gdb_cv_struct_lwp+:} false
; then :
14096 $as_echo_n "(cached) " >&6
14098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14099 /* end confdefs.h. */
14100 #include <sys/param.h>
14102 #include <sys/lwp.h>
14111 if ac_fn_c_try_compile
"$LINENO"; then :
14112 gdb_cv_struct_lwp
=yes
14114 gdb_cv_struct_lwp
=no
14116 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
14119 $as_echo "$gdb_cv_struct_lwp" >&6; }
14120 if test $gdb_cv_struct_lwp = yes; then
14122 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
14126 # See if <machine/reg.h> degines `struct reg'.
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
14128 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
14129 if ${gdb_cv_struct_reg+:} false
; then :
14130 $as_echo_n "(cached) " >&6
14132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14133 /* end confdefs.h. */
14134 #include <sys/types.h>
14135 #include <machine/reg.h>
14144 if ac_fn_c_try_compile
"$LINENO"; then :
14145 gdb_cv_struct_reg
=yes
14147 gdb_cv_struct_reg
=no
14149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
14152 $as_echo "$gdb_cv_struct_reg" >&6; }
14153 if test $gdb_cv_struct_reg = yes; then
14155 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
14159 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
14160 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
14161 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
14162 #include <machine/reg.h>
14164 if test "x$ac_cv_member_struct_reg_r_fs" = xyes
; then :
14166 cat >>confdefs.h
<<_ACEOF
14167 #define HAVE_STRUCT_REG_R_FS 1
14172 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
14173 #include <machine/reg.h>
14175 if test "x$ac_cv_member_struct_reg_r_gs" = xyes
; then :
14177 cat >>confdefs.h
<<_ACEOF
14178 #define HAVE_STRUCT_REG_R_GS 1
14185 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
14186 # Older amd64 Linux's don't have the fs_base and gs_base members of
14187 # `struct user_regs_struct'.
14188 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>
14189 #include <sys/user.h>
14191 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = xyes
; then :
14193 cat >>confdefs.h
<<_ACEOF
14194 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
14199 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>
14200 #include <sys/user.h>
14202 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = xyes
; then :
14204 cat >>confdefs.h
<<_ACEOF
14205 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
14212 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
14214 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
14215 if ${gdb_cv_have_ptrace_getregs+:} false
; then :
14216 $as_echo_n "(cached) " >&6
14218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14219 /* end confdefs.h. */
14220 #include <sys/ptrace.h>
14229 if ac_fn_c_try_compile
"$LINENO"; then :
14230 gdb_cv_have_ptrace_getregs
=yes
14232 gdb_cv_have_ptrace_getregs
=no
14234 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
14238 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
14239 if test $gdb_cv_have_ptrace_getregs = yes; then
14241 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
14245 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
14247 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
14248 if ${gdb_cv_have_ptrace_getfpxregs+:} false
; then :
14249 $as_echo_n "(cached) " >&6
14251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14252 /* end confdefs.h. */
14253 #include <sys/ptrace.h>
14262 if ac_fn_c_try_compile
"$LINENO"; then :
14263 gdb_cv_have_ptrace_getfpxregs
=yes
14265 gdb_cv_have_ptrace_getfpxregs
=no
14267 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
14271 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
14272 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
14274 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
14278 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
14280 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
14281 if ${gdb_cv_have_pt_getdbregs+:} false
; then :
14282 $as_echo_n "(cached) " >&6
14284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14285 /* end confdefs.h. */
14286 #include <sys/types.h>
14287 #include <sys/ptrace.h>
14296 if ac_fn_c_try_compile
"$LINENO"; then :
14297 gdb_cv_have_pt_getdbregs
=yes
14299 gdb_cv_have_pt_getdbregs
=no
14301 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
14305 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
14306 if test $gdb_cv_have_pt_getdbregs = yes; then
14308 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
14312 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
14314 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
14315 if ${gdb_cv_have_pt_getxmmregs+:} false
; then :
14316 $as_echo_n "(cached) " >&6
14318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14319 /* end confdefs.h. */
14320 #include <sys/types.h>
14321 #include <sys/ptrace.h>
14330 if ac_fn_c_try_compile
"$LINENO"; then :
14331 gdb_cv_have_pt_getxmmregs
=yes
14333 gdb_cv_have_pt_getxmmregs
=no
14335 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
14339 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
14340 if test $gdb_cv_have_pt_getxmmregs = yes; then
14342 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
14346 # See if <sys/ptrace.h> supports LWP names on FreeBSD
14347 # Older FreeBSD versions don't have the pl_tdname member of
14348 # `struct ptrace_lwpinfo'.
14349 ac_fn_c_check_member
"$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
14351 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes
; then :
14353 cat >>confdefs.h
<<_ACEOF
14354 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
14361 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
14362 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
14364 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>
14366 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes
; then :
14368 cat >>confdefs.h
<<_ACEOF
14369 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
14376 if test "$ac_cv_header_sys_procfs_h" = yes; then
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
14378 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
14379 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
14380 $as_echo_n "(cached) " >&6
14382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14383 /* end confdefs.h. */
14386 /* Needed for new procfs interface on sparc-solaris. */
14387 #define _STRUCTURED_PROC 1
14388 #include <sys/procfs.h>
14397 if ac_fn_c_try_compile
"$LINENO"; then :
14398 bfd_cv_have_sys_procfs_type_gregset_t
=yes
14400 bfd_cv_have_sys_procfs_type_gregset_t
=no
14403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14406 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
14408 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
14412 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
14415 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
14416 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
14417 $as_echo_n "(cached) " >&6
14419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14420 /* end confdefs.h. */
14423 /* Needed for new procfs interface on sparc-solaris. */
14424 #define _STRUCTURED_PROC 1
14425 #include <sys/procfs.h>
14434 if ac_fn_c_try_compile
"$LINENO"; then :
14435 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
14437 bfd_cv_have_sys_procfs_type_fpregset_t
=no
14440 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14443 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
14445 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
14449 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
14452 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
14453 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
14454 $as_echo_n "(cached) " >&6
14456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14457 /* end confdefs.h. */
14460 /* Needed for new procfs interface on sparc-solaris. */
14461 #define _STRUCTURED_PROC 1
14462 #include <sys/procfs.h>
14471 if ac_fn_c_try_compile
"$LINENO"; then :
14472 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
14474 bfd_cv_have_sys_procfs_type_prgregset_t
=no
14477 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14480 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
14482 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
14486 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
14489 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
14490 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
14491 $as_echo_n "(cached) " >&6
14493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14494 /* end confdefs.h. */
14497 /* Needed for new procfs interface on sparc-solaris. */
14498 #define _STRUCTURED_PROC 1
14499 #include <sys/procfs.h>
14508 if ac_fn_c_try_compile
"$LINENO"; then :
14509 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
14511 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
14514 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14517 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
14519 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
14523 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
14526 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
14527 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
14528 $as_echo_n "(cached) " >&6
14530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14531 /* end confdefs.h. */
14534 /* Needed for new procfs interface on sparc-solaris. */
14535 #define _STRUCTURED_PROC 1
14536 #include <sys/procfs.h>
14545 if ac_fn_c_try_compile
"$LINENO"; then :
14546 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
14548 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
14551 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14554 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
14556 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
14560 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
14563 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
14564 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
14565 $as_echo_n "(cached) " >&6
14567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14568 /* end confdefs.h. */
14571 /* Needed for new procfs interface on sparc-solaris. */
14572 #define _STRUCTURED_PROC 1
14573 #include <sys/procfs.h>
14582 if ac_fn_c_try_compile
"$LINENO"; then :
14583 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
14585 bfd_cv_have_sys_procfs_type_lwpid_t
=no
14588 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14591 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
14593 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
14597 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
14600 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
14601 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
14602 $as_echo_n "(cached) " >&6
14604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14605 /* end confdefs.h. */
14608 /* Needed for new procfs interface on sparc-solaris. */
14609 #define _STRUCTURED_PROC 1
14610 #include <sys/procfs.h>
14619 if ac_fn_c_try_compile
"$LINENO"; then :
14620 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
14622 bfd_cv_have_sys_procfs_type_psaddr_t
=no
14625 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14628 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
14630 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
14634 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
14637 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
14638 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
14639 $as_echo_n "(cached) " >&6
14641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14642 /* end confdefs.h. */
14645 /* Needed for new procfs interface on sparc-solaris. */
14646 #define _STRUCTURED_PROC 1
14647 #include <sys/procfs.h>
14651 elf_fpregset_t avar
14656 if ac_fn_c_try_compile
"$LINENO"; then :
14657 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
14659 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
14662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14665 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
14667 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
14671 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
14675 # Check if the compiler supports the `long long' type.
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
14678 $as_echo_n "checking for long long support in compiler... " >&6; }
14679 if ${gdb_cv_c_long_long+:} false
; then :
14680 $as_echo_n "(cached) " >&6
14682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14683 /* end confdefs.h. */
14684 extern long long foo;
14688 switch (foo & 2) { case 0: return 1; }
14693 if ac_fn_c_try_compile
"$LINENO"; then :
14694 gdb_cv_c_long_long
=yes
14696 gdb_cv_c_long_long
=no
14698 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
14701 $as_echo "$gdb_cv_c_long_long" >&6; }
14702 if test $gdb_cv_c_long_long != yes; then
14703 # libdecnumber requires long long.
14704 as_fn_error $?
"Compiler must support long long for GDB." "$LINENO" 5
14707 # Check if the compiler and runtime support printing long longs.
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
14710 $as_echo_n "checking for long long support in printf... " >&6; }
14711 if ${gdb_cv_printf_has_long_long+:} false
; then :
14712 $as_echo_n "(cached) " >&6
14714 if test "$cross_compiling" = yes; then :
14715 gdb_cv_printf_has_long_long
=no
14717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14718 /* end confdefs.h. */
14719 $ac_includes_default
14725 l = (l << 16) + 0x0123;
14726 l = (l << 16) + 0x4567;
14727 l = (l << 16) + 0x89ab;
14728 l = (l << 16) + 0xcdef;
14729 sprintf (buf, "0x%016llx", l);
14730 return (strcmp ("0x0123456789abcdef", buf));
14735 if ac_fn_c_try_run
"$LINENO"; then :
14736 gdb_cv_printf_has_long_long
=yes
14738 gdb_cv_printf_has_long_long
=no
14740 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14741 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
14746 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
14747 if test $gdb_cv_printf_has_long_long = yes; then
14749 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
14753 # Check if the compiler and runtime support printing decfloats.
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
14756 $as_echo_n "checking for decfloat support in printf... " >&6; }
14757 if ${gdb_cv_printf_has_decfloat+:} false
; then :
14758 $as_echo_n "(cached) " >&6
14760 if test "$cross_compiling" = yes; then :
14761 gdb_cv_printf_has_decfloat
=no
14763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14764 /* end confdefs.h. */
14765 $ac_includes_default
14770 _Decimal32 d32 = 1.2345df;
14771 _Decimal64 d64 = 1.2345dd;
14772 _Decimal128 d128 = 1.2345dl;
14773 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
14774 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
14779 if ac_fn_c_try_run
"$LINENO"; then :
14780 gdb_cv_printf_has_decfloat
=yes
14782 gdb_cv_printf_has_decfloat
=no
14784 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14785 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
14790 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
14791 if test $gdb_cv_printf_has_decfloat = yes; then
14793 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
14797 # Check if the compiler supports the `long double' type. We can't use
14798 # AC_C_LONG_DOUBLE because that one does additional checks on the
14799 # constants defined in <float.h> that fail on some systems,
14800 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
14803 $as_echo_n "checking for long double support in compiler... " >&6; }
14804 if ${gdb_cv_c_long_double+:} false
; then :
14805 $as_echo_n "(cached) " >&6
14807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14808 /* end confdefs.h. */
14811 if ac_fn_c_try_compile
"$LINENO"; then :
14812 gdb_cv_c_long_double
=yes
14814 gdb_cv_c_long_double
=no
14816 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
14819 $as_echo "$gdb_cv_c_long_double" >&6; }
14820 if test $gdb_cv_c_long_double = yes; then
14822 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14826 # Check if the compiler and runtime support printing long doubles.
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
14829 $as_echo_n "checking for long double support in printf... " >&6; }
14830 if ${gdb_cv_printf_has_long_double+:} false
; then :
14831 $as_echo_n "(cached) " >&6
14833 if test "$cross_compiling" = yes; then :
14834 gdb_cv_printf_has_long_double
=no
14836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14837 /* end confdefs.h. */
14838 $ac_includes_default
14843 long double f = 3.141592653;
14844 sprintf (buf, "%Lg", f);
14845 return (strncmp ("3.14159", buf, 7));
14850 if ac_fn_c_try_run
"$LINENO"; then :
14851 gdb_cv_printf_has_long_double
=yes
14853 gdb_cv_printf_has_long_double
=no
14855 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14856 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
14861 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
14862 if test $gdb_cv_printf_has_long_double = yes; then
14864 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
14868 # Check if the compiler and runtime support scanning long doubles.
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
14871 $as_echo_n "checking for long double support in scanf... " >&6; }
14872 if ${gdb_cv_scanf_has_long_double+:} false
; then :
14873 $as_echo_n "(cached) " >&6
14875 if test "$cross_compiling" = yes; then :
14876 gdb_cv_scanf_has_long_double
=no
14878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14879 /* end confdefs.h. */
14884 char *buf = "3.141592653";
14886 sscanf (buf, "%Lg", &f);
14887 return !(f > 3.14159 && f < 3.14160);
14892 if ac_fn_c_try_run
"$LINENO"; then :
14893 gdb_cv_scanf_has_long_double
=yes
14895 gdb_cv_scanf_has_long_double
=no
14897 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14898 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
14903 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
14904 if test $gdb_cv_scanf_has_long_double = yes; then
14906 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
14913 $as_echo_n "checking for -bbigtoc option... " >&6; }
14914 if ${gdb_cv_bigtoc+:} false
; then :
14915 $as_echo_n "(cached) " >&6
14918 SAVE_LDFLAGS
=$LDFLAGS
14921 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
14922 *) gdb_cv_bigtoc
=-bbigtoc ;;
14925 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
14926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14927 /* end confdefs.h. */
14937 if ac_fn_c_try_link
"$LINENO"; then :
14942 rm -f core conftest.err conftest.
$ac_objext \
14943 conftest
$ac_exeext conftest.
$ac_ext
14944 LDFLAGS
="${SAVE_LDFLAGS}"
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
14948 $as_echo "$gdb_cv_bigtoc" >&6; }
14949 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
14954 $as_echo_n "checking for the dynamic export flag... " >&6; }
14956 if test "${gdb_native}" = yes; then
14957 # The dynamically loaded libthread_db needs access to symbols in the gdb
14958 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
14959 # may not be supported there.
14960 old_LDFLAGS
="$LDFLAGS"
14961 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
14962 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
14963 LDFLAGS
="$LDFLAGS $RDYNAMIC"
14964 if test "${have_libpython}" = no
; then
14965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14966 /* end confdefs.h. */
14976 if ac_fn_c_try_link
"$LINENO"; then :
14979 rm -f core conftest.err conftest.
$ac_objext \
14980 conftest
$ac_exeext conftest.
$ac_ext
14982 # Workaround http://bugs.python.org/issue4434 where static
14983 # libpythonX.Y.a would get its symbols required for
14984 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
14985 # Problem does not happen for the recommended libpythonX.Y.so linkage.
14987 # Note the workaround for Python
14988 # http://bugs.python.org/issue10112 earlier has removed
14989 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
14990 # here too, as otherwise it'd make this -Wl,--dynamic-list test
14992 old_CFLAGS
="$CFLAGS"
14993 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
14995 LIBS
="$LIBS $PYTHON_LIBS"
14996 old_CPPFLAGS
="$CPPFLAGS"
14997 CPPFLAGS
="$CPPFLAGS $PYTHON_CPPFLAGS"
14998 if test "$cross_compiling" = yes; then :
15001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15002 /* end confdefs.h. */
15003 #include "Python.h"
15009 err = PyRun_SimpleString ("import itertools\n");
15011 return err == 0 ? 0 : 1;
15016 if ac_fn_c_try_run
"$LINENO"; then :
15019 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15020 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15024 CFLAGS
="$old_CFLAGS"
15025 CPPFLAGS
="$old_CPPFLAGS"
15027 LDFLAGS
="$old_LDFLAGS"
15029 if $dynamic_list; then
15030 found
="-Wl,--dynamic-list"
15031 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
15034 RDYNAMIC
="-rdynamic"
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
15038 $as_echo "$found" >&6; }
15041 if test ${build} = ${host} -a ${host} = ${target} ; then
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
15045 $as_echo_n "checking for AiX thread debugging library... " >&6; }
15046 if ${gdb_cv_have_aix_thread_debug+:} false
; then :
15047 $as_echo_n "(cached) " >&6
15049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15050 /* end confdefs.h. */
15051 #include <sys/pthdebug.h>
15055 #ifndef PTHDB_VERSION_3
15062 if ac_fn_c_try_compile
"$LINENO"; then :
15063 gdb_cv_have_aix_thread_debug
=yes
15065 gdb_cv_have_aix_thread_debug
=no
15067 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
15071 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
15072 if test $gdb_cv_have_aix_thread_debug = yes; then
15073 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
15074 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
15075 LIBS
="$LIBS -lpthdebug"
15077 # Older versions of AIX do not provide the declaration for
15078 # the getthrds function (it appears that it was introduced
15080 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
15082 if test "x$ac_cv_have_decl_getthrds" = xyes
; then :
15088 cat >>confdefs.h
<<_ACEOF
15089 #define HAVE_DECL_GETTHRDS $ac_have_decl
15098 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
15100 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
15101 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false
; then :
15102 $as_echo_n "(cached) " >&6
15104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15105 /* end confdefs.h. */
15106 #include <thread_db.h>
15110 int i = TD_NOTALLOC;
15115 if ac_fn_c_try_compile
"$LINENO"; then :
15116 gdb_cv_thread_db_h_has_td_notalloc
=yes
15118 gdb_cv_thread_db_h_has_td_notalloc
=no
15121 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
15125 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
15127 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
15128 if ${gdb_cv_thread_db_h_has_td_version+:} false
; then :
15129 $as_echo_n "(cached) " >&6
15131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15132 /* end confdefs.h. */
15133 #include <thread_db.h>
15137 int i = TD_VERSION;
15142 if ac_fn_c_try_compile
"$LINENO"; then :
15143 gdb_cv_thread_db_h_has_td_version
=yes
15145 gdb_cv_thread_db_h_has_td_version
=no
15148 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
15152 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
15154 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
15155 if ${gdb_cv_thread_db_h_has_td_notls+:} false
; then :
15156 $as_echo_n "(cached) " >&6
15158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15159 /* end confdefs.h. */
15160 #include <thread_db.h>
15169 if ac_fn_c_try_compile
"$LINENO"; then :
15170 gdb_cv_thread_db_h_has_td_notls
=yes
15172 gdb_cv_thread_db_h_has_td_notls
=no
15175 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
15179 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
15181 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
15183 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
15186 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
15188 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
15191 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
15193 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
15197 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
15199 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
15205 cat >>confdefs.h
<<_ACEOF
15206 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
15210 if test "$cross_compiling" = yes; then :
15211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15212 /* end confdefs.h. */
15213 #include <sys/personality.h>
15218 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
15219 # define ADDR_NO_RANDOMIZE 0x0040000
15221 /* Test the flag could be set and stays set. */
15222 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
15223 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
15229 if ac_fn_c_try_link
"$LINENO"; then :
15230 have_personality
=true
15232 have_personality
=false
15234 rm -f core conftest.err conftest.
$ac_objext \
15235 conftest
$ac_exeext conftest.
$ac_ext
15237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15238 /* end confdefs.h. */
15239 #include <sys/personality.h>
15244 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
15245 # define ADDR_NO_RANDOMIZE 0x0040000
15247 /* Test the flag could be set and stays set. */
15248 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
15249 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
15255 if ac_fn_c_try_run
"$LINENO"; then :
15256 have_personality
=true
15258 have_personality
=false
15260 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15261 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15264 if $have_personality
15267 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
15280 cat >>confdefs.h
<<_ACEOF
15281 #define GDBINIT "$gdbinit"
15286 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
15287 # except that the argument to --with-sysroot is optional.
15288 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
15289 if test "x$with_sysroot" = xyes
; then
15290 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
15293 # Check whether --with-sysroot was given.
15294 if test "${with_sysroot+set}" = set; then :
15295 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
15297 TARGET_SYSTEM_ROOT
=
15301 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
15302 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15303 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
15304 ac_define_dir
=`eval echo $ac_define_dir`
15306 cat >>confdefs.h
<<_ACEOF
15307 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
15313 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
15314 if test "x$prefix" = xNONE
; then
15315 test_prefix
=/usr
/local
15317 test_prefix
=$prefix
15320 test_prefix
=$exec_prefix
15323 case ${ac_define_dir} in
15324 "${test_prefix}"|
"${test_prefix}/"*|\
15325 '${exec_prefix}'|
'${exec_prefix}/'*)
15330 cat >>confdefs.h
<<_ACEOF
15331 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
15338 # Check whether --with-system-gdbinit was given.
15339 if test "${with_system_gdbinit+set}" = set; then :
15340 withval
=$with_system_gdbinit;
15341 SYSTEM_GDBINIT
=$withval
15347 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
15348 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15349 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
15350 ac_define_dir
=`eval echo $ac_define_dir`
15352 cat >>confdefs.h
<<_ACEOF
15353 #define SYSTEM_GDBINIT "$ac_define_dir"
15359 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
15360 if test "x$prefix" = xNONE
; then
15361 test_prefix
=/usr
/local
15363 test_prefix
=$prefix
15366 test_prefix
=$exec_prefix
15369 case ${ac_define_dir} in
15370 "${test_prefix}"|
"${test_prefix}/"*|\
15371 '${exec_prefix}'|
'${exec_prefix}/'*)
15376 cat >>confdefs.h
<<_ACEOF
15377 #define SYSTEM_GDBINIT_RELOCATABLE $value
15384 # Check whether --enable-werror was given.
15385 if test "${enable_werror+set}" = set; then :
15386 enableval
=$enable_werror; case "${enableval}" in
15387 yes | y
) ERROR_ON_WARNING
="yes" ;;
15388 no | n
) ERROR_ON_WARNING
="no" ;;
15389 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15394 # Enable -Werror by default when using gcc. Turn it off for releases.
15395 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
15396 ERROR_ON_WARNING
=yes
15400 if test "${ERROR_ON_WARNING}" = yes ; then
15401 WERROR_CFLAGS
="-Werror"
15404 # The options we'll try to enable.
15405 build_warnings
="-Wall -Wpointer-arith \
15406 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
15407 -Wno-switch -Wno-char-subscripts \
15408 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
15409 -Wno-sign-compare -Wno-error=maybe-uninitialized \
15410 -Wno-mismatched-tags \
15411 -Wno-error=deprecated-register \
15412 -Wsuggest-override \
15413 -Wimplicit-fallthrough=3 \
15414 -Wduplicated-cond \
15419 # Enable -Wno-format by default when using gcc on mingw since many
15420 # GCC versions complain about %I64.
15421 build_warnings
="$build_warnings -Wno-format" ;;
15423 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
15424 # doesn't understand.
15425 build_warnings
="$build_warnings -Wno-unknown-pragmas"
15426 # Solaris 11 <unistd.h> marks vfork deprecated.
15427 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
15429 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
15430 # but there's a special case for this below.
15431 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
15434 # Check whether --enable-build-warnings was given.
15435 if test "${enable_build_warnings+set}" = set; then :
15436 enableval
=$enable_build_warnings; case "${enableval}" in
15438 no
) build_warnings
="-w";;
15439 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15440 build_warnings
="${build_warnings} ${t}";;
15441 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15442 build_warnings
="${t} ${build_warnings}";;
15443 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15445 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
15446 echo "Setting compiler warning flags = $build_warnings" 6>&1
15449 # Check whether --enable-gdb-build-warnings was given.
15450 if test "${enable_gdb_build_warnings+set}" = set; then :
15451 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
15453 no
) build_warnings
="-w";;
15454 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15455 build_warnings
="${build_warnings} ${t}";;
15456 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15457 build_warnings
="${t} ${build_warnings}";;
15458 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15460 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
15461 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
15465 # The set of warnings supported by a C++ compiler is not the same as
15466 # of the C compiler.
15468 ac_cpp
='$CXXCPP $CPPFLAGS'
15469 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15470 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15471 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
15475 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
15478 $as_echo_n "checking compiler warning flags... " >&6; }
15479 # Separate out the -Werror flag as some files just cannot be
15480 # compiled with it enabled.
15481 for w
in ${build_warnings}; do
15482 # GCC does not complain about -Wno-unknown-warning. Invert
15483 # and test -Wunknown-warning instead.
15486 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
15487 -Wformat-nonliteral)
15488 # gcc requires -Wformat before -Wformat-nonliteral
15489 # will work, so stick them together.
15498 -Werr*) WERROR_CFLAGS
=-Werror ;;
15500 # Check whether GCC accepts it.
15501 saved_CFLAGS
="$CFLAGS"
15502 CFLAGS
="$CFLAGS -Werror $wtest"
15503 saved_CXXFLAGS
="$CXXFLAGS"
15504 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
15505 if test "x$w" = "x-Wunused-variable"; then
15506 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
15507 # fixed in GCC 4.9. This test is derived from the gdb
15508 # source code that triggered this bug in GCC.
15509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15510 /* end confdefs.h. */
15511 struct scoped_restore_base {};
15512 struct scoped_restore_tmpl : public scoped_restore_base {
15513 ~scoped_restore_tmpl() {}
15518 const scoped_restore_base &b = scoped_restore_tmpl();
15523 if ac_fn_cxx_try_compile
"$LINENO"; then :
15524 WARN_CFLAGS
="${WARN_CFLAGS} $w"
15526 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15529 /* end confdefs.h. */
15539 if ac_fn_cxx_try_compile
"$LINENO"; then :
15540 WARN_CFLAGS
="${WARN_CFLAGS} $w"
15542 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15544 CFLAGS
="$saved_CFLAGS"
15545 CXXFLAGS
="$saved_CXXFLAGS"
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
15549 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
15555 ac_cpp='$CPP $CPPFLAGS'
15556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15562 # Check whether --enable-ubsan was given.
15563 if test "${enable_ubsan+set}" = set; then :
15564 enableval=$enable_ubsan;
15569 if test "x
$enable_ubsan" = xauto; then
15570 if $development; then
15575 ac_cpp='$CXXCPP $CPPFLAGS'
15576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15580 if test "x
$enable_ubsan" = xyes; then
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
-fsanitize=undefined is accepted
" >&5
15582 $as_echo_n "checking whether
-fsanitize=undefined is accepted...
" >&6; }
15583 saved_CXXFLAGS="$CXXFLAGS"
15584 CXXFLAGS="$CXXFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
15585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15586 /* end confdefs.h. */
15596 if ac_fn_cxx_try_link "$LINENO"; then :
15601 rm -f core conftest.err conftest.$ac_objext \
15602 conftest$ac_exeext conftest.$ac_ext
15603 CXXFLAGS="$saved_CXXFLAGS"
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $enable_ubsan" >&5
15605 $as_echo "$enable_ubsan" >&6; }
15606 if test "x
$enable_ubsan" = xyes; then
15607 WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
15608 CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined
"
15612 ac_cpp='$CPP $CPPFLAGS'
15613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15619 # In the Cygwin environment, we need some additional flags.
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
15621 $as_echo_n "checking
for cygwin...
" >&6; }
15622 if ${gdb_cv_os_cygwin+:} false; then :
15623 $as_echo_n "(cached
) " >&6
15625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15626 /* end confdefs.h. */
15628 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
15632 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15633 $EGREP "^lose$
" >/dev/null 2>&1; then :
15634 gdb_cv_os_cygwin=yes
15636 gdb_cv_os_cygwin=no
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
15642 $as_echo "$gdb_cv_os_cygwin" >&6; }
15645 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
15647 *go32* ) SER_HARDWIRE=ser-go32.o ;;
15648 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
15649 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
15650 *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o
" ;;
15654 # libreadline needs libuser32.a in a cygwin environment
15656 if test x$gdb_cv_os_cygwin = xyes; then
15657 WIN32LIBS="-luser32"
15658 case "${target}" in
15659 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
15664 # The ser-tcp.c module requires sockets.
15668 $as_echo "#define USE_WIN32API 1" >>confdefs.h
15670 WIN32LIBS
="$WIN32LIBS -lws2_32"
15675 # Add ELF support to GDB, but only if BFD includes ELF support.
15678 OLD_LDFLAGS
=$LDFLAGS
15680 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
15681 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
15682 # always want our bfd.
15683 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
15684 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
15685 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
15686 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15687 LIBS
="-lbfd -liberty -lz $intl $LIBS"
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
15689 $as_echo_n "checking for ELF support in BFD... " >&6; }
15690 if ${gdb_cv_var_elf+:} false
; then :
15691 $as_echo_n "(cached) " >&6
15693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15694 /* end confdefs.h. */
15695 #include <stdlib.h>
15697 #include "elf-bfd.h"
15702 return bfd_get_elf_phdr_upper_bound (NULL);
15707 if ac_fn_c_try_link
"$LINENO"; then :
15712 rm -f core conftest.err conftest.
$ac_objext \
15713 conftest
$ac_exeext conftest.
$ac_ext
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
15716 $as_echo "$gdb_cv_var_elf" >&6; }
15718 LDFLAGS
=$OLD_LDFLAGS
15720 if test $gdb_cv_var_elf = yes; then
15721 CONFIG_OBS
="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o"
15723 $as_echo "#define HAVE_ELF 1" >>confdefs.h
15725 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
15726 if test "$plugins" = "yes"; then
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15728 $as_echo_n "checking for library containing dlopen... " >&6; }
15729 if ${ac_cv_search_dlopen+:} false
; then :
15730 $as_echo_n "(cached) " >&6
15732 ac_func_search_save_LIBS
=$LIBS
15733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15734 /* end confdefs.h. */
15736 /* Override any GCC internal prototype to avoid an error.
15737 Use char because int might match the return type of a GCC
15738 builtin and then its argument prototype would still apply. */
15751 for ac_lib
in '' dl
; do
15752 if test -z "$ac_lib"; then
15753 ac_res
="none required"
15756 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15758 if ac_fn_c_try_link
"$LINENO"; then :
15759 ac_cv_search_dlopen
=$ac_res
15761 rm -f core conftest.err conftest.
$ac_objext \
15763 if ${ac_cv_search_dlopen+:} false
; then :
15767 if ${ac_cv_search_dlopen+:} false
; then :
15770 ac_cv_search_dlopen
=no
15772 rm conftest.
$ac_ext
15773 LIBS
=$ac_func_search_save_LIBS
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15776 $as_echo "$ac_cv_search_dlopen" >&6; }
15777 ac_res
=$ac_cv_search_dlopen
15778 if test "$ac_res" != no
; then :
15779 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15786 # Add macho support to GDB, but only if BFD includes it.
15789 OLD_LDFLAGS
=$LDFLAGS
15791 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
15792 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
15793 # always want our bfd.
15794 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
15795 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
15796 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
15797 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15798 LIBS
="-lbfd -liberty -lz $intl $LIBS"
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
15800 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
15801 if ${gdb_cv_var_macho+:} false
; then :
15802 $as_echo_n "(cached) " >&6
15804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15805 /* end confdefs.h. */
15806 #include <stdlib.h>
15808 #include "mach-o.h"
15813 return bfd_mach_o_lookup_command (NULL, 0, NULL);
15818 if ac_fn_c_try_link
"$LINENO"; then :
15819 gdb_cv_var_macho
=yes
15821 gdb_cv_var_macho
=no
15823 rm -f core conftest.err conftest.
$ac_objext \
15824 conftest
$ac_exeext conftest.
$ac_ext
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
15827 $as_echo "$gdb_cv_var_macho" >&6; }
15829 LDFLAGS
=$OLD_LDFLAGS
15831 if test $gdb_cv_var_macho = yes; then
15832 CONFIG_OBS
="$CONFIG_OBS machoread.o"
15835 # Add any host-specific objects to GDB.
15836 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
15838 # If building on ELF, look for lzma support for embedded compressed debug info.
15839 if test $gdb_cv_var_elf = yes; then
15841 # Check whether --with-lzma was given.
15842 if test "${with_lzma+set}" = set; then :
15843 withval
=$with_lzma;
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
15849 $as_echo_n "checking whether to use lzma... " >&6; }
15850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
15851 $as_echo "$with_lzma" >&6; }
15853 if test "${with_lzma}" != no
; then
15864 acl_save_prefix
="$prefix"
15865 prefix
="$acl_final_prefix"
15866 acl_save_exec_prefix
="$exec_prefix"
15867 exec_prefix
="$acl_final_exec_prefix"
15869 eval additional_includedir
=\"$includedir\"
15870 eval additional_libdir
=\"$libdir\"
15872 exec_prefix
="$acl_save_exec_prefix"
15873 prefix
="$acl_save_prefix"
15876 # Check whether --with-liblzma-prefix was given.
15877 if test "${with_liblzma_prefix+set}" = set; then :
15878 withval
=$with_liblzma_prefix;
15879 if test "X$withval" = "Xno"; then
15882 if test "X$withval" = "X"; then
15884 acl_save_prefix
="$prefix"
15885 prefix
="$acl_final_prefix"
15886 acl_save_exec_prefix
="$exec_prefix"
15887 exec_prefix
="$acl_final_exec_prefix"
15889 eval additional_includedir
=\"$includedir\"
15890 eval additional_libdir
=\"$libdir\"
15892 exec_prefix
="$acl_save_exec_prefix"
15893 prefix
="$acl_save_prefix"
15896 additional_includedir
="$withval/include"
15897 additional_libdir
="$withval/lib"
15908 names_already_handled
=
15909 names_next_round
='lzma '
15910 while test -n "$names_next_round"; do
15911 names_this_round
="$names_next_round"
15913 for name
in $names_this_round; do
15915 for n
in $names_already_handled; do
15916 if test "$n" = "$name"; then
15917 already_handled
=yes
15921 if test -z "$already_handled"; then
15922 names_already_handled
="$names_already_handled $name"
15923 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15924 eval value
=\"\
$HAVE_LIB$uppername\"
15925 if test -n "$value"; then
15926 if test "$value" = yes; then
15927 eval value
=\"\
$LIB$uppername\"
15928 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
15929 eval value
=\"\
$LTLIB$uppername\"
15930 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
15939 if test $use_additional = yes; then
15940 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15941 found_dir
="$additional_libdir"
15942 found_so
="$additional_libdir/lib$name.$shlibext"
15943 if test -f "$additional_libdir/lib$name.la"; then
15944 found_la
="$additional_libdir/lib$name.la"
15947 if test -f "$additional_libdir/lib$name.$libext"; then
15948 found_dir
="$additional_libdir"
15949 found_a
="$additional_libdir/lib$name.$libext"
15950 if test -f "$additional_libdir/lib$name.la"; then
15951 found_la
="$additional_libdir/lib$name.la"
15956 if test "X$found_dir" = "X"; then
15957 for x
in $LDFLAGS $LTLIBLZMA; do
15959 acl_save_prefix
="$prefix"
15960 prefix
="$acl_final_prefix"
15961 acl_save_exec_prefix
="$exec_prefix"
15962 exec_prefix
="$acl_final_exec_prefix"
15964 exec_prefix
="$acl_save_exec_prefix"
15965 prefix
="$acl_save_prefix"
15969 dir
=`echo "X$x" | sed -e 's/^X-L//'`
15970 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15972 found_so
="$dir/lib$name.$shlibext"
15973 if test -f "$dir/lib$name.la"; then
15974 found_la
="$dir/lib$name.la"
15977 if test -f "$dir/lib$name.$libext"; then
15979 found_a
="$dir/lib$name.$libext"
15980 if test -f "$dir/lib$name.la"; then
15981 found_la
="$dir/lib$name.la"
15987 if test "X$found_dir" != "X"; then
15992 if test "X$found_dir" != "X"; then
15993 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
15994 if test "X$found_so" != "X"; then
15995 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
15996 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
15999 for x
in $ltrpathdirs; do
16000 if test "X$x" = "X$found_dir"; then
16005 if test -z "$haveit"; then
16006 ltrpathdirs
="$ltrpathdirs $found_dir"
16008 if test "$hardcode_direct" = yes; then
16009 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
16011 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
16012 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
16014 for x
in $rpathdirs; do
16015 if test "X$x" = "X$found_dir"; then
16020 if test -z "$haveit"; then
16021 rpathdirs
="$rpathdirs $found_dir"
16025 for x
in $LDFLAGS $LIBLZMA; do
16027 acl_save_prefix
="$prefix"
16028 prefix
="$acl_final_prefix"
16029 acl_save_exec_prefix
="$exec_prefix"
16030 exec_prefix
="$acl_final_exec_prefix"
16032 exec_prefix
="$acl_save_exec_prefix"
16033 prefix
="$acl_save_prefix"
16035 if test "X$x" = "X-L$found_dir"; then
16040 if test -z "$haveit"; then
16041 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
16043 if test "$hardcode_minus_L" != no
; then
16044 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
16046 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
16052 if test "X$found_a" != "X"; then
16053 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
16055 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
16058 additional_includedir
=
16059 case "$found_dir" in
16061 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16062 additional_includedir
="$basedir/include"
16065 if test "X$additional_includedir" != "X"; then
16066 if test "X$additional_includedir" != "X/usr/include"; then
16068 if test "X$additional_includedir" = "X/usr/local/include"; then
16069 if test -n "$GCC"; then
16071 linux
*) haveit
=yes;;
16075 if test -z "$haveit"; then
16076 for x
in $CPPFLAGS $INCLZMA; do
16078 acl_save_prefix
="$prefix"
16079 prefix
="$acl_final_prefix"
16080 acl_save_exec_prefix
="$exec_prefix"
16081 exec_prefix
="$acl_final_exec_prefix"
16083 exec_prefix
="$acl_save_exec_prefix"
16084 prefix
="$acl_save_prefix"
16086 if test "X$x" = "X-I$additional_includedir"; then
16091 if test -z "$haveit"; then
16092 if test -d "$additional_includedir"; then
16093 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
16099 if test -n "$found_la"; then
16100 save_libdir
="$libdir"
16101 case "$found_la" in
16102 */* |
*\\*) .
"$found_la" ;;
16103 *) .
"./$found_la" ;;
16105 libdir
="$save_libdir"
16106 for dep
in $dependency_libs; do
16109 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
16110 if test "X$additional_libdir" != "X/usr/lib"; then
16112 if test "X$additional_libdir" = "X/usr/local/lib"; then
16113 if test -n "$GCC"; then
16115 linux
*) haveit
=yes;;
16119 if test -z "$haveit"; then
16121 for x
in $LDFLAGS $LIBLZMA; do
16123 acl_save_prefix
="$prefix"
16124 prefix
="$acl_final_prefix"
16125 acl_save_exec_prefix
="$exec_prefix"
16126 exec_prefix
="$acl_final_exec_prefix"
16128 exec_prefix
="$acl_save_exec_prefix"
16129 prefix
="$acl_save_prefix"
16131 if test "X$x" = "X-L$additional_libdir"; then
16136 if test -z "$haveit"; then
16137 if test -d "$additional_libdir"; then
16138 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
16142 for x
in $LDFLAGS $LTLIBLZMA; do
16144 acl_save_prefix
="$prefix"
16145 prefix
="$acl_final_prefix"
16146 acl_save_exec_prefix
="$exec_prefix"
16147 exec_prefix
="$acl_final_exec_prefix"
16149 exec_prefix
="$acl_save_exec_prefix"
16150 prefix
="$acl_save_prefix"
16152 if test "X$x" = "X-L$additional_libdir"; then
16157 if test -z "$haveit"; then
16158 if test -d "$additional_libdir"; then
16159 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
16166 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
16167 if test "$enable_rpath" != no
; then
16169 for x
in $rpathdirs; do
16170 if test "X$x" = "X$dir"; then
16175 if test -z "$haveit"; then
16176 rpathdirs
="$rpathdirs $dir"
16179 for x
in $ltrpathdirs; do
16180 if test "X$x" = "X$dir"; then
16185 if test -z "$haveit"; then
16186 ltrpathdirs
="$ltrpathdirs $dir"
16191 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16194 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16197 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
16198 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
16204 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
16205 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
16211 if test "X$rpathdirs" != "X"; then
16212 if test -n "$hardcode_libdir_separator"; then
16214 for found_dir
in $rpathdirs; do
16215 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16217 acl_save_libdir
="$libdir"
16219 eval flag
=\"$hardcode_libdir_flag_spec\"
16220 libdir
="$acl_save_libdir"
16221 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
16223 for found_dir
in $rpathdirs; do
16224 acl_save_libdir
="$libdir"
16225 libdir
="$found_dir"
16226 eval flag
=\"$hardcode_libdir_flag_spec\"
16227 libdir
="$acl_save_libdir"
16228 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
16232 if test "X$ltrpathdirs" != "X"; then
16233 for found_dir
in $ltrpathdirs; do
16234 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
16239 ac_save_CPPFLAGS
="$CPPFLAGS"
16241 for element
in $INCLZMA; do
16243 for x
in $CPPFLAGS; do
16245 acl_save_prefix
="$prefix"
16246 prefix
="$acl_final_prefix"
16247 acl_save_exec_prefix
="$exec_prefix"
16248 exec_prefix
="$acl_final_exec_prefix"
16250 exec_prefix
="$acl_save_exec_prefix"
16251 prefix
="$acl_save_prefix"
16253 if test "X$x" = "X$element"; then
16258 if test -z "$haveit"; then
16259 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
16265 $as_echo_n "checking for liblzma... " >&6; }
16266 if ${ac_cv_liblzma+:} false
; then :
16267 $as_echo_n "(cached) " >&6
16270 ac_save_LIBS
="$LIBS"
16271 LIBS
="$LIBS $LIBLZMA"
16272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16273 /* end confdefs.h. */
16278 lzma_index_iter iter;
16279 lzma_index_iter_init (&iter, 0);
16280 lzma_mf_is_supported (LZMA_MF_HC3);
16285 if ac_fn_c_try_link
"$LINENO"; then :
16290 rm -f core conftest.err conftest.
$ac_objext \
16291 conftest
$ac_exeext conftest.
$ac_ext
16292 LIBS
="$ac_save_LIBS"
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
16296 $as_echo "$ac_cv_liblzma" >&6; }
16297 if test "$ac_cv_liblzma" = yes; then
16300 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
16303 $as_echo_n "checking how to link with liblzma... " >&6; }
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
16305 $as_echo "$LIBLZMA" >&6; }
16308 CPPFLAGS
="$ac_save_CPPFLAGS"
16318 if test "$HAVE_LIBLZMA" != yes; then
16319 if test "$with_lzma" = yes; then
16320 as_fn_error $?
"missing liblzma for --with-lzma" "$LINENO" 5
16326 LIBGUI
="../libgui/src/libgui.a"
16327 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
16336 *-*-cygwin* |
*-*-mingw* )
16345 if test "${enable_gdbtk}" = "yes"; then
16347 # Gdbtk must have an absolute path to srcdir in order to run
16348 # properly when not installed.
16351 GDBTK_SRC_DIR
=`pwd`
16356 # Ok, lets find the tcl configuration
16357 # First, look for one uninstalled.
16358 # the alternative search directory is invoked by --with-tcl
16361 if test x
"${no_tcl}" = x
; then
16362 # we reset no_tcl in case something fails here
16365 # Check whether --with-tcl was given.
16366 if test "${with_tcl+set}" = set; then :
16367 withval
=$with_tcl; with_tclconfig
=${withval}
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
16371 $as_echo_n "checking for Tcl configuration... " >&6; }
16372 if ${ac_cv_c_tclconfig+:} false
; then :
16373 $as_echo_n "(cached) " >&6
16377 # First check to see if --with-tcl was specified.
16379 *-*-cygwin*) platDir
="win" ;;
16380 *) platDir
="unix" ;;
16382 if test x
"${with_tclconfig}" != x
; then
16383 if test -f "${with_tclconfig}/tclConfig.sh" ; then
16384 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
16386 as_fn_error $?
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
16390 # then check for a private Tcl installation
16391 if test x
"${ac_cv_c_tclconfig}" = x
; then
16394 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16395 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
16396 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
16398 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16399 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
16400 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
16402 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16403 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
16404 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
16405 if test -f "$i/$platDir/tclConfig.sh" ; then
16406 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
16412 # on Darwin, check in Framework installation locations
16413 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
16414 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
16415 `ls -d /Library/Frameworks 2>/dev/null` \
16416 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16417 `ls -d /System/Library/Frameworks 2>/dev/null` \
16419 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
16420 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
16426 # check in a few common install locations
16427 if test x
"${ac_cv_c_tclconfig}" = x
; then
16428 for i
in `ls -d ${libdir} 2>/dev/null` \
16429 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16430 `ls -d ${prefix}/lib 2>/dev/null` \
16431 `ls -d /usr/local/lib 2>/dev/null` \
16432 `ls -d /usr/contrib/lib 2>/dev/null` \
16433 `ls -d /usr/lib 2>/dev/null` \
16435 if test -f "$i/tclConfig.sh" ; then
16436 ac_cv_c_tclconfig
=`(cd $i; pwd)`
16442 # check in a few other private locations
16443 if test x
"${ac_cv_c_tclconfig}" = x
; then
16446 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16447 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
16448 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
16449 if test -f "$i/$platDir/tclConfig.sh" ; then
16450 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
16459 if test x
"${ac_cv_c_tclconfig}" = x
; then
16460 TCL_BIN_DIR
="# no Tcl configs found"
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
16462 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
16465 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
16467 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
16472 # If $no_tk is nonempty, then we can't do Tk, and there is no
16473 # point to doing Tcl.
16476 # Ok, lets find the tk configuration
16477 # First, look for one uninstalled.
16478 # the alternative search directory is invoked by --with-tk
16481 if test x
"${no_tk}" = x
; then
16482 # we reset no_tk in case something fails here
16485 # Check whether --with-tk was given.
16486 if test "${with_tk+set}" = set; then :
16487 withval
=$with_tk; with_tkconfig
=${withval}
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
16491 $as_echo_n "checking for Tk configuration... " >&6; }
16492 if ${ac_cv_c_tkconfig+:} false
; then :
16493 $as_echo_n "(cached) " >&6
16497 # First check to see if --with-tkconfig was specified.
16498 if test x
"${with_tkconfig}" != x
; then
16499 if test -f "${with_tkconfig}/tkConfig.sh" ; then
16500 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
16502 as_fn_error $?
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
16506 # then check for a private Tk library
16508 *-*-cygwin*) platDir
="win" ;;
16509 *) platDir
="unix" ;;
16511 if test x
"${ac_cv_c_tkconfig}" = x
; then
16514 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16515 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
16516 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
16518 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16519 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
16520 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
16522 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16523 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
16524 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
16525 if test -f "$i/$platDir/tkConfig.sh" ; then
16526 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
16532 # on Darwin, check in Framework installation locations
16533 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
16534 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
16535 `ls -d /Library/Frameworks 2>/dev/null` \
16536 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16537 `ls -d /System/Library/Frameworks 2>/dev/null` \
16539 if test -f "$i/Tk.framework/tkConfig.sh" ; then
16540 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
16546 # check in a few common install locations
16547 if test x
"${ac_cv_c_tkconfig}" = x
; then
16548 for i
in `ls -d ${libdir} 2>/dev/null` \
16549 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16550 `ls -d ${prefix}/lib 2>/dev/null` \
16551 `ls -d /usr/local/lib 2>/dev/null` \
16552 `ls -d /usr/contrib/lib 2>/dev/null` \
16553 `ls -d /usr/lib 2>/dev/null` \
16555 if test -f "$i/tkConfig.sh" ; then
16556 ac_cv_c_tkconfig
=`(cd $i; pwd)`
16561 # check in a few other private locations
16562 if test x
"${ac_cv_c_tkconfig}" = x
; then
16565 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16566 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
16567 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
16568 if test -f "$i/$platDir/tkConfig.sh" ; then
16569 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
16578 if test x
"${ac_cv_c_tkconfig}" = x
; then
16579 TK_BIN_DIR
="# no Tk configs found"
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
16581 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
16584 TK_BIN_DIR
=${ac_cv_c_tkconfig}
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
16586 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
16591 if test -z "${no_tcl}" -a -z "${no_tk}"; then
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
16594 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
16596 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
16598 $as_echo "loading" >&6; }
16599 .
${TCL_BIN_DIR}/tclConfig.sh
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
16602 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
16605 # eval is required to do the TCL_DBGX substitution
16606 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
16607 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
16609 # If the TCL_BIN_DIR is the build directory (not the install directory),
16610 # then set the common variable name to the value of the build variables.
16611 # For example, the variable TCL_LIB_SPEC will be set to the value
16612 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
16613 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
16614 # installed and uninstalled version of Tcl.
16615 if test -f "${TCL_BIN_DIR}/Makefile" ; then
16616 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
16617 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
16618 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
16619 elif test "`uname -s`" = "Darwin"; then
16620 # If Tcl was built as a framework, attempt to use the libraries
16621 # from the framework at the given location so that linking works
16622 # against Tcl.framework installed in an arbitrary location.
16623 case ${TCL_DEFS} in
16625 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
16626 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
16627 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
16628 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
16629 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
16634 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
16635 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
16636 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
16642 # eval is required to do the TCL_DBGX substitution
16643 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
16644 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
16645 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
16646 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
16662 # Check for in-tree tcl
16669 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
16673 # Find Tcl private headers
16674 if test x
"${intree}" = xno
; then
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
16677 $as_echo_n "checking for Tcl private headers... " >&6; }
16679 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
16680 if test -f ${dir}/tclInt.h
; then
16684 if test x
"${private_dir}" = x
; then
16685 as_fn_error $?
"could not find private Tcl headers" "$LINENO" 5
16687 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
16689 $as_echo "${private_dir}" >&6; }
16692 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
16693 TCL_LIBRARY
="${TCL_LIB_SPEC}"
16696 # If building tcl in the same src tree, private headers
16697 # are not needed, but we need to be sure to use the right
16699 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
16700 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
16701 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
16709 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
16711 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
16712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
16713 $as_echo "loading" >&6; }
16714 .
${TK_BIN_DIR}/tkConfig.sh
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
16717 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
16720 # eval is required to do the TK_DBGX substitution
16721 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
16722 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
16724 # If the TK_BIN_DIR is the build directory (not the install directory),
16725 # then set the common variable name to the value of the build variables.
16726 # For example, the variable TK_LIB_SPEC will be set to the value
16727 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
16728 # instead of TK_BUILD_LIB_SPEC since it will work with both an
16729 # installed and uninstalled version of Tcl.
16730 if test -f "${TK_BIN_DIR}/Makefile" ; then
16731 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
16732 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
16733 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
16734 elif test "`uname -s`" = "Darwin"; then
16735 # If Tk was built as a framework, attempt to use the libraries
16736 # from the framework at the given location so that linking works
16737 # against Tk.framework installed in an arbitrary location.
16740 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
16741 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
16742 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
16743 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
16744 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
16749 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
16750 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
16751 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
16757 # eval is required to do the TK_DBGX substitution
16758 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
16759 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
16760 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
16761 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
16776 # Check for in-tree Tk
16778 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
16782 # Find Tk private headers
16783 if test x
"${intree}" = xno
; then
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
16786 $as_echo_n "checking for Tk private headers... " >&6; }
16788 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
16789 if test -f ${dir}/tkInt.h
; then
16793 if test x
"${private_dir}" = x
; then
16794 as_fn_error $?
"could not find Tk private headers" "$LINENO" 5
16796 TK_PRIVATE_INCLUDE
="-I${private_dir}"
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
16798 $as_echo "${private_dir}" >&6; }
16801 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
16802 TK_LIBRARY
=${TK_LIB_SPEC}
16805 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
16806 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
16807 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
16814 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
16816 # Include some libraries that Tcl and Tk want.
16817 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
16818 # Yes, the ordering seems wrong here. But it isn't.
16819 # TK_LIBS is the list of libraries that need to be linked
16820 # after Tcl/Tk. Note that this isn't put into LIBS. If it
16821 # were in LIBS then any link tests after this point would
16822 # try to include things like `$(LIBGUI)', which wouldn't work.
16823 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
16825 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
16826 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
16827 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
16828 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
16829 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
16830 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
16831 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
16833 if test x
$gdb_cv_os_cygwin = xyes
; then
16834 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
16835 WIN32LDAPP
="-Wl,--subsystem,console"
16836 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
16839 subdirs
="$subdirs gdbtk"
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
16852 $as_echo_n "checking for X... " >&6; }
16855 # Check whether --with-x was given.
16856 if test "${with_x+set}" = set; then :
16860 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
16861 if test "x$with_x" = xno
; then
16862 # The user explicitly disabled X.
16865 case $x_includes,$x_libraries in #(
16866 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
16867 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
16868 $as_echo_n "(cached) " >&6
16870 # One or both of the vars are not set, and there is no cached value.
16871 ac_x_includes
=no ac_x_libraries
=no
16872 rm -f -r conftest.dir
16873 if mkdir conftest.dir
; then
16875 cat >Imakefile
<<'_ACEOF'
16877 @echo incroot='${INCROOT}'
16879 @echo usrlibdir='${USRLIBDIR}'
16881 @echo libdir='${LIBDIR}'
16883 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
16884 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16885 for ac_var
in incroot usrlibdir libdir
; do
16886 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
16888 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
16889 for ac_extension
in a so sl dylib la dll
; do
16890 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
16891 test -f "$ac_im_libdir/libX11.$ac_extension"; then
16892 ac_im_usrlibdir
=$ac_im_libdir; break
16895 # Screen out bogus values from the imake configuration. They are
16896 # bogus both because they are the default anyway, and because
16897 # using them would break gcc on systems where it needs fixed includes.
16898 case $ac_im_incroot in
16899 /usr
/include
) ac_x_includes
= ;;
16900 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
16902 case $ac_im_usrlibdir in
16903 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
16904 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
16908 rm -f -r conftest.dir
16911 # Standard set of common directories for X headers.
16912 # Check X11 before X11Rn because it is often a symlink to the current release.
16926 /usr/local/X11/include
16927 /usr/local/X11R7/include
16928 /usr/local/X11R6/include
16929 /usr/local/X11R5/include
16930 /usr/local/X11R4/include
16932 /usr/local/include/X11
16933 /usr/local/include/X11R7
16934 /usr/local/include/X11R6
16935 /usr/local/include/X11R5
16936 /usr/local/include/X11R4
16940 /usr/XFree86/include/X11
16944 /usr/unsupported/include
16945 /usr/athena/include
16946 /usr/local/x11r5/include
16947 /usr/lpp/Xamples/include
16949 /usr/openwin/include
16950 /usr/openwin/share/include'
16952 if test "$ac_x_includes" = no
; then
16953 # Guess where to find include files, by looking for Xlib.h.
16954 # First, try using that file with no special directory specified.
16955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16956 /* end confdefs.h. */
16957 #include <X11/Xlib.h>
16959 if ac_fn_c_try_cpp
"$LINENO"; then :
16960 # We can compile using X headers with no special include directory.
16963 for ac_dir
in $ac_x_header_dirs; do
16964 if test -r "$ac_dir/X11/Xlib.h"; then
16965 ac_x_includes
=$ac_dir
16970 rm -f conftest.err conftest.i conftest.
$ac_ext
16971 fi # $ac_x_includes = no
16973 if test "$ac_x_libraries" = no
; then
16974 # Check for the libraries.
16975 # See if we find them without any special options.
16976 # Don't add to $LIBS permanently.
16979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16980 /* end confdefs.h. */
16981 #include <X11/Xlib.h>
16990 if ac_fn_c_try_link
"$LINENO"; then :
16992 # We can link X programs with no special library path.
16996 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
16998 # Don't even attempt the hair of trying to link an X program!
16999 for ac_extension
in a so sl dylib la dll
; do
17000 if test -r "$ac_dir/libX11.$ac_extension"; then
17001 ac_x_libraries
=$ac_dir
17007 rm -f core conftest.err conftest.
$ac_objext \
17008 conftest
$ac_exeext conftest.
$ac_ext
17009 fi # $ac_x_libraries = no
17011 case $ac_x_includes,$ac_x_libraries in #(
17012 no
,* |
*,no |
*\'*)
17013 # Didn't find X, or a directory has "'" in its name.
17014 ac_cv_have_x
="have_x=no";; #(
17016 # Record where we found X for the cache.
17017 ac_cv_have_x
="have_x=yes\
17018 ac_x_includes='$ac_x_includes'\
17019 ac_x_libraries='$ac_x_libraries'"
17025 eval "$ac_cv_have_x"
17028 if test "$have_x" != yes; then
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
17030 $as_echo "$have_x" >&6; }
17033 # If each of the values was on the command line, it overrides each guess.
17034 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
17035 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
17036 # Update the cache value to reflect the command line values.
17037 ac_cv_have_x
="have_x=yes\
17038 ac_x_includes='$x_includes'\
17039 ac_x_libraries='$x_libraries'"
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
17041 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
17045 # Unlike the sim directory, whether a simulator is linked is controlled by
17046 # presence of a gdb_sim definition in the target configure.tgt entry.
17047 # This code just checks for a few cases where we'd like to ignore those
17048 # definitions, even when they're present in the '.mt' file. These cases
17049 # are when --disable-sim is specified, or if the simulator directory is
17050 # not part of the source tree.
17052 # Check whether --enable-sim was given.
17053 if test "${enable_sim+set}" = set; then :
17054 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
17055 echo "enableval = ${enableval}";
17056 case "${enableval}" in
17057 yes) ignore_sim
=false
;;
17058 no
) ignore_sim
=true
;;
17059 *) ignore_sim
=false
;;
17066 if test ! -d "${srcdir}/../sim"; then
17072 if test "${ignore_sim}" = "false"; then
17073 if test x
"${gdb_sim}" != x
; then
17075 SIM_OBS
="remote-sim.o"
17077 $as_echo "#define WITH_SIM 1" >>confdefs.h
17080 # Some tdep code should only be compiled in when the ppc sim is
17081 # built. PR sim/13418.
17085 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
17105 # List of host floatformats.
17107 cat >>confdefs.h
<<_ACEOF
17108 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
17112 cat >>confdefs.h
<<_ACEOF
17113 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
17117 cat >>confdefs.h
<<_ACEOF
17118 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
17122 # target_subdir is used by the testsuite to find the target libraries.
17124 if test "${host}" != "${target}"; then
17125 target_subdir
="${target_alias}/"
17129 # Import nat definitions.
17130 nat_makefile_frag
=/dev
/null
17131 if test "${gdb_native}" = "yes"; then
17132 .
${srcdir}/configure.nat
17133 nativefile
=$NAT_FILE
17146 if test x
"${gdb_osabi}" != x
; then
17148 cat >>confdefs.h
<<_ACEOF
17149 #define GDB_OSABI_DEFAULT $gdb_osabi
17154 # Check whether --enable-gdbserver was given.
17155 if test "${enable_gdbserver+set}" = set; then :
17156 enableval
=$enable_gdbserver; case "${enableval}" in
17158 *) as_fn_error $?
"bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
17161 enable_gdbserver
=auto
17165 # We only build gdbserver automatically in a native configuration, and
17166 # only if the user did not explicitly disable its build.
17167 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
17168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
17169 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
17170 if test "x$build_gdbserver" = xyes
; then
17171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17172 $as_echo "yes" >&6; }
17173 subdirs
="$subdirs gdbserver"
17175 gdbserver_build_enabled
=yes
17177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17178 $as_echo "no" >&6; }
17182 # If the user explicitly request the gdbserver to be built, verify that
17183 # we were in fact able to enable it.
17184 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
17185 as_fn_error $?
"Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
17188 # Check for babeltrace and babeltrace-ctf
17190 # Check whether --with-babeltrace was given.
17191 if test "${with_babeltrace+set}" = set; then :
17192 withval
=$with_babeltrace;
17194 with_babeltrace
=auto
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
17198 $as_echo_n "checking whether to use babeltrace... " >&6; }
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
17200 $as_echo "$with_babeltrace" >&6; }
17202 if test "x$with_babeltrace" = "xno"; then
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
17204 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
17206 # Append -Werror to CFLAGS so that configure can catch the warning
17207 # "assignment from incompatible pointer type", which is related to
17208 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
17209 # in GDB, while babeltrace 1.0.3 is broken.
17210 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
17211 # safe to save and restore CFLAGS here.
17212 saved_CFLAGS
=$CFLAGS
17213 CFLAGS
="$CFLAGS -Werror"
17224 acl_save_prefix
="$prefix"
17225 prefix
="$acl_final_prefix"
17226 acl_save_exec_prefix
="$exec_prefix"
17227 exec_prefix
="$acl_final_exec_prefix"
17229 eval additional_includedir
=\"$includedir\"
17230 eval additional_libdir
=\"$libdir\"
17232 exec_prefix
="$acl_save_exec_prefix"
17233 prefix
="$acl_save_prefix"
17236 # Check whether --with-libbabeltrace-prefix was given.
17237 if test "${with_libbabeltrace_prefix+set}" = set; then :
17238 withval
=$with_libbabeltrace_prefix;
17239 if test "X$withval" = "Xno"; then
17242 if test "X$withval" = "X"; then
17244 acl_save_prefix
="$prefix"
17245 prefix
="$acl_final_prefix"
17246 acl_save_exec_prefix
="$exec_prefix"
17247 exec_prefix
="$acl_final_exec_prefix"
17249 eval additional_includedir
=\"$includedir\"
17250 eval additional_libdir
=\"$libdir\"
17252 exec_prefix
="$acl_save_exec_prefix"
17253 prefix
="$acl_save_prefix"
17256 additional_includedir
="$withval/include"
17257 additional_libdir
="$withval/lib"
17268 names_already_handled
=
17269 names_next_round
='babeltrace babeltrace-ctf'
17270 while test -n "$names_next_round"; do
17271 names_this_round
="$names_next_round"
17273 for name
in $names_this_round; do
17275 for n
in $names_already_handled; do
17276 if test "$n" = "$name"; then
17277 already_handled
=yes
17281 if test -z "$already_handled"; then
17282 names_already_handled
="$names_already_handled $name"
17283 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17284 eval value
=\"\
$HAVE_LIB$uppername\"
17285 if test -n "$value"; then
17286 if test "$value" = yes; then
17287 eval value
=\"\
$LIB$uppername\"
17288 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
17289 eval value
=\"\
$LTLIB$uppername\"
17290 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
17299 if test $use_additional = yes; then
17300 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17301 found_dir
="$additional_libdir"
17302 found_so
="$additional_libdir/lib$name.$shlibext"
17303 if test -f "$additional_libdir/lib$name.la"; then
17304 found_la
="$additional_libdir/lib$name.la"
17307 if test -f "$additional_libdir/lib$name.$libext"; then
17308 found_dir
="$additional_libdir"
17309 found_a
="$additional_libdir/lib$name.$libext"
17310 if test -f "$additional_libdir/lib$name.la"; then
17311 found_la
="$additional_libdir/lib$name.la"
17316 if test "X$found_dir" = "X"; then
17317 for x
in $LDFLAGS $LTLIBBABELTRACE; do
17319 acl_save_prefix
="$prefix"
17320 prefix
="$acl_final_prefix"
17321 acl_save_exec_prefix
="$exec_prefix"
17322 exec_prefix
="$acl_final_exec_prefix"
17324 exec_prefix
="$acl_save_exec_prefix"
17325 prefix
="$acl_save_prefix"
17329 dir
=`echo "X$x" | sed -e 's/^X-L//'`
17330 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17332 found_so
="$dir/lib$name.$shlibext"
17333 if test -f "$dir/lib$name.la"; then
17334 found_la
="$dir/lib$name.la"
17337 if test -f "$dir/lib$name.$libext"; then
17339 found_a
="$dir/lib$name.$libext"
17340 if test -f "$dir/lib$name.la"; then
17341 found_la
="$dir/lib$name.la"
17347 if test "X$found_dir" != "X"; then
17352 if test "X$found_dir" != "X"; then
17353 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
17354 if test "X$found_so" != "X"; then
17355 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
17356 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17359 for x
in $ltrpathdirs; do
17360 if test "X$x" = "X$found_dir"; then
17365 if test -z "$haveit"; then
17366 ltrpathdirs
="$ltrpathdirs $found_dir"
17368 if test "$hardcode_direct" = yes; then
17369 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17371 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
17372 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17374 for x
in $rpathdirs; do
17375 if test "X$x" = "X$found_dir"; then
17380 if test -z "$haveit"; then
17381 rpathdirs
="$rpathdirs $found_dir"
17385 for x
in $LDFLAGS $LIBBABELTRACE; do
17387 acl_save_prefix
="$prefix"
17388 prefix
="$acl_final_prefix"
17389 acl_save_exec_prefix
="$exec_prefix"
17390 exec_prefix
="$acl_final_exec_prefix"
17392 exec_prefix
="$acl_save_exec_prefix"
17393 prefix
="$acl_save_prefix"
17395 if test "X$x" = "X-L$found_dir"; then
17400 if test -z "$haveit"; then
17401 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
17403 if test "$hardcode_minus_L" != no
; then
17404 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17406 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
17412 if test "X$found_a" != "X"; then
17413 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
17415 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
17418 additional_includedir
=
17419 case "$found_dir" in
17421 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17422 additional_includedir
="$basedir/include"
17425 if test "X$additional_includedir" != "X"; then
17426 if test "X$additional_includedir" != "X/usr/include"; then
17428 if test "X$additional_includedir" = "X/usr/local/include"; then
17429 if test -n "$GCC"; then
17431 linux
*) haveit
=yes;;
17435 if test -z "$haveit"; then
17436 for x
in $CPPFLAGS $INCBABELTRACE; do
17438 acl_save_prefix
="$prefix"
17439 prefix
="$acl_final_prefix"
17440 acl_save_exec_prefix
="$exec_prefix"
17441 exec_prefix
="$acl_final_exec_prefix"
17443 exec_prefix
="$acl_save_exec_prefix"
17444 prefix
="$acl_save_prefix"
17446 if test "X$x" = "X-I$additional_includedir"; then
17451 if test -z "$haveit"; then
17452 if test -d "$additional_includedir"; then
17453 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
17459 if test -n "$found_la"; then
17460 save_libdir
="$libdir"
17461 case "$found_la" in
17462 */* |
*\\*) .
"$found_la" ;;
17463 *) .
"./$found_la" ;;
17465 libdir
="$save_libdir"
17466 for dep
in $dependency_libs; do
17469 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
17470 if test "X$additional_libdir" != "X/usr/lib"; then
17472 if test "X$additional_libdir" = "X/usr/local/lib"; then
17473 if test -n "$GCC"; then
17475 linux
*) haveit
=yes;;
17479 if test -z "$haveit"; then
17481 for x
in $LDFLAGS $LIBBABELTRACE; do
17483 acl_save_prefix
="$prefix"
17484 prefix
="$acl_final_prefix"
17485 acl_save_exec_prefix
="$exec_prefix"
17486 exec_prefix
="$acl_final_exec_prefix"
17488 exec_prefix
="$acl_save_exec_prefix"
17489 prefix
="$acl_save_prefix"
17491 if test "X$x" = "X-L$additional_libdir"; then
17496 if test -z "$haveit"; then
17497 if test -d "$additional_libdir"; then
17498 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
17502 for x
in $LDFLAGS $LTLIBBABELTRACE; do
17504 acl_save_prefix
="$prefix"
17505 prefix
="$acl_final_prefix"
17506 acl_save_exec_prefix
="$exec_prefix"
17507 exec_prefix
="$acl_final_exec_prefix"
17509 exec_prefix
="$acl_save_exec_prefix"
17510 prefix
="$acl_save_prefix"
17512 if test "X$x" = "X-L$additional_libdir"; then
17517 if test -z "$haveit"; then
17518 if test -d "$additional_libdir"; then
17519 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
17526 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
17527 if test "$enable_rpath" != no
; then
17529 for x
in $rpathdirs; do
17530 if test "X$x" = "X$dir"; then
17535 if test -z "$haveit"; then
17536 rpathdirs
="$rpathdirs $dir"
17539 for x
in $ltrpathdirs; do
17540 if test "X$x" = "X$dir"; then
17545 if test -z "$haveit"; then
17546 ltrpathdirs
="$ltrpathdirs $dir"
17551 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17554 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17557 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
17558 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
17564 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
17565 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
17571 if test "X$rpathdirs" != "X"; then
17572 if test -n "$hardcode_libdir_separator"; then
17574 for found_dir
in $rpathdirs; do
17575 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17577 acl_save_libdir
="$libdir"
17579 eval flag
=\"$hardcode_libdir_flag_spec\"
17580 libdir
="$acl_save_libdir"
17581 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
17583 for found_dir
in $rpathdirs; do
17584 acl_save_libdir
="$libdir"
17585 libdir
="$found_dir"
17586 eval flag
=\"$hardcode_libdir_flag_spec\"
17587 libdir
="$acl_save_libdir"
17588 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
17592 if test "X$ltrpathdirs" != "X"; then
17593 for found_dir
in $ltrpathdirs; do
17594 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
17599 ac_save_CPPFLAGS
="$CPPFLAGS"
17601 for element
in $INCBABELTRACE; do
17603 for x
in $CPPFLAGS; do
17605 acl_save_prefix
="$prefix"
17606 prefix
="$acl_final_prefix"
17607 acl_save_exec_prefix
="$exec_prefix"
17608 exec_prefix
="$acl_final_exec_prefix"
17610 exec_prefix
="$acl_save_exec_prefix"
17611 prefix
="$acl_save_prefix"
17613 if test "X$x" = "X$element"; then
17618 if test -z "$haveit"; then
17619 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
17625 $as_echo_n "checking for libbabeltrace... " >&6; }
17626 if ${ac_cv_libbabeltrace+:} false
; then :
17627 $as_echo_n "(cached) " >&6
17630 ac_save_LIBS
="$LIBS"
17631 LIBS
="$LIBS $LIBBABELTRACE"
17632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17633 /* end confdefs.h. */
17634 #include <babeltrace/babeltrace.h>
17635 #include <babeltrace/ctf/events.h>
17636 #include <babeltrace/ctf/iterator.h>
17640 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
17641 struct bt_ctf_event *event = NULL;
17642 const struct bt_definition *scope;
17644 pos->type = BT_SEEK_BEGIN;
17645 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
17646 scope = bt_ctf_get_top_level_scope (event,
17647 BT_STREAM_EVENT_HEADER);
17648 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
17654 if ac_fn_c_try_link
"$LINENO"; then :
17655 ac_cv_libbabeltrace
=yes
17657 ac_cv_libbabeltrace
=no
17659 rm -f core conftest.err conftest.
$ac_objext \
17660 conftest
$ac_exeext conftest.
$ac_ext
17661 LIBS
="$ac_save_LIBS"
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
17665 $as_echo "$ac_cv_libbabeltrace" >&6; }
17666 if test "$ac_cv_libbabeltrace" = yes; then
17667 HAVE_LIBBABELTRACE
=yes
17669 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
17672 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
17674 $as_echo "$LIBBABELTRACE" >&6; }
17676 HAVE_LIBBABELTRACE
=no
17677 CPPFLAGS
="$ac_save_CPPFLAGS"
17687 CFLAGS
=$saved_CFLAGS
17689 if test "$HAVE_LIBBABELTRACE" != yes; then
17690 if test "$with_babeltrace" = yes; then
17691 as_fn_error $?
"babeltrace is missing or unusable" "$LINENO" 5
17693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
17694 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
17699 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
17706 if test "${nativefile}" != ""; then
17707 case "${nativefile}" in
17708 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
17709 * ) GDB_NM_FILE
="${nativefile}"
17711 files
="${files} ${GDB_NM_FILE}"
17712 links
="${links} nm.h"
17714 cat >>confdefs.h
<<_ACEOF
17715 #define GDB_NM_FILE "${GDB_NM_FILE}"
17721 for ac_prog
in xsltproc
17723 # Extract the first word of "$ac_prog", so it can be a program name with args.
17724 set dummy
$ac_prog; ac_word
=$2
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17726 $as_echo_n "checking for $ac_word... " >&6; }
17727 if ${ac_cv_path_XSLTPROC+:} false
; then :
17728 $as_echo_n "(cached) " >&6
17732 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
17735 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17736 for as_dir
in $PATH
17739 test -z "$as_dir" && as_dir
=.
17740 for ac_exec_ext
in '' $ac_executable_extensions; do
17741 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
17742 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
17743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17753 XSLTPROC
=$ac_cv_path_XSLTPROC
17754 if test -n "$XSLTPROC"; then
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
17756 $as_echo "$XSLTPROC" >&6; }
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17759 $as_echo "no" >&6; }
17763 test -n "$XSLTPROC" && break
17765 test -n "$XSLTPROC" || XSLTPROC
="missing"
17767 if test "x$USE_MAINTAINER_MODE" = xyes
; then
17768 if test "${XSLTPROC}" = missing
; then
17769 as_fn_error $?
"unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
17774 ac_sources
="$files"
17776 while test -n "$ac_sources"; do
17777 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
17778 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
17779 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
17781 ac_config_links
="$ac_config_links $ac_config_links_1"
17787 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
17791 # Check whether we will enable the inclusion of unit tests when
17794 # The default value of this option changes depending whether we're on
17795 # development mode (in which case it's "true") or not (in which case
17797 # Check whether --enable-unit-tests was given.
17798 if test "${enable_unit_tests+set}" = set; then :
17799 enableval
=$enable_unit_tests; case "${enableval}" in
17800 yes) enable_unittests
=true
;;
17801 no
) enable_unittests
=false
;;
17802 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
17805 enable_unittests
=$development
17809 if $enable_unittests; then
17811 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
17814 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_UNITTESTS_OBS) common/selftest.o selftest-arch.o"
17815 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_UNITTESTS_SRCS) common/selftest.c selftest-arch.c"
17821 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
17822 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
17823 if test "x$GDB_TRANSFORM_NAME" = x
; then
17824 GDB_TRANSFORM_NAME
=gdb
17829 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
17830 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
17831 if test "x$GCORE_TRANSFORM_NAME" = x
; then
17832 GCORE_TRANSFORM_NAME
=gcore
17836 ac_config_files
="$ac_config_files gcore"
17838 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
17841 cat >confcache
<<\_ACEOF
17842 # This file is a shell script that caches the results of configure
17843 # tests run on this system so they can be shared between configure
17844 # scripts and configure runs, see configure's option --config-cache.
17845 # It is not useful on other systems. If it contains results you don't
17846 # want to keep, you may remove or edit it.
17848 # config.status only pays attention to the cache file if you give it
17849 # the --recheck option to rerun configure.
17851 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17852 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17853 # following values.
17857 # The following way of writing the cache mishandles newlines in values,
17858 # but we know of no workaround that is simple, portable, and efficient.
17859 # So, we kill variables containing newlines.
17860 # Ultrix sh set writes to stderr and can't be redirected directly,
17861 # and sets the high bit in the cache file unless we assign to the vars.
17863 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17864 eval ac_val
=\$
$ac_var
17868 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17869 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17872 _ | IFS | as_nl
) ;; #(
17873 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
17874 *) { eval $ac_var=; unset $ac_var;} ;;
17880 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17881 *${as_nl}ac_space
=\
*)
17882 # `set' does not quote correctly, so add quotes: double-quote
17883 # substitution turns \\\\ into \\, and sed turns \\ into \.
17886 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17889 # `set' quotes correctly as required by POSIX, so do not add quotes.
17890 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17899 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17901 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17903 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17904 if test -w "$cache_file"; then
17905 if test "x$cache_file" != "x/dev/null"; then
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17907 $as_echo "$as_me: updating cache $cache_file" >&6;}
17908 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
17909 cat confcache
>"$cache_file"
17911 case $cache_file in #(
17913 mv -f confcache
"$cache_file"$$
&&
17914 mv -f "$cache_file"$$
"$cache_file" ;; #(
17916 mv -f confcache
"$cache_file" ;;
17921 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17922 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17927 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17928 # Let make expand exec_prefix.
17929 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17931 DEFS
=-DHAVE_CONFIG_H
17936 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17937 # 1. Remove the extension, and $U if already installed.
17938 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
17939 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
17940 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17941 # will be set to the directory where LIBOBJS objects are built.
17942 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17943 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
17945 LIBOBJS
=$ac_libobjs
17947 LTLIBOBJS
=$ac_ltlibobjs
17950 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17951 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
17952 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17954 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
17955 as_fn_error $?
"conditional \"HAVE_PYTHON\" was never defined.
17956 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17958 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
17959 as_fn_error $?
"conditional \"HAVE_GUILE\" was never defined.
17960 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17964 : "${CONFIG_STATUS=./config.status}"
17966 ac_clean_files_save
=$ac_clean_files
17967 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17969 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17971 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17973 # Generated by $as_me.
17974 # Run this file to recreate the current configuration.
17975 # Compiler output produced by configure, useful for debugging
17976 # configure, is in config.log if it exists.
17979 ac_cs_recheck=false
17982 SHELL=\${CONFIG_SHELL-$SHELL}
17985 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
17986 ## -------------------- ##
17987 ## M4sh Initialization. ##
17988 ## -------------------- ##
17990 # Be more Bourne compatible
17991 DUALCASE
=1; export DUALCASE
# for MKS sh
17992 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
17995 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17996 # is contrary to our usage. Disable this feature.
17997 alias -g '${1+"$@"}'='"$@"'
17998 setopt NO_GLOB_SUBST
18000 case `(set -o) 2>/dev/null` in #(
18012 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18013 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18014 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18015 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18016 # Prefer a ksh shell builtin over an external printf program on Solaris,
18017 # but without wasting forks for bash or zsh.
18018 if test -z "$BASH_VERSION$ZSH_VERSION" \
18019 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18020 as_echo='print
-r --'
18021 as_echo_n='print
-rn --'
18022 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18023 as_echo='printf %s
\n'
18024 as_echo_n='printf %s
'
18026 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18027 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
18028 as_echo_n='/usr
/ucb
/echo -n'
18030 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18031 as_echo_n_body='eval
18035 expr "X$arg" : "X\\(.*\\)$as_nl";
18036 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18038 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
18040 export as_echo_n_body
18041 as_echo_n='sh
-c $as_echo_n_body as_echo
'
18043 export as_echo_body
18044 as_echo='sh
-c $as_echo_body as_echo
'
18047 # The user is always right.
18048 if test "${PATH_SEPARATOR+set}" != set; then
18050 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18051 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18058 # We need space, tab and new line, in precisely that order. Quoting is
18059 # there to prevent editors from complaining about space-tab.
18060 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18061 # splitting by setting IFS to empty value.)
18064 # Find who we are. Look in the path if we contain no directory separator.
18067 *[\\/]* ) as_myself=$0 ;;
18068 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18069 for as_dir in $PATH
18072 test -z "$as_dir" && as_dir=.
18073 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18079 # We did not find ourselves, most probably we were run as `sh COMMAND'
18080 # in which case we are not to be found in the path.
18081 if test "x$as_myself" = x
; then
18084 if test ! -f "$as_myself"; then
18085 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18089 # Unset variables that we do not need and which cause bugs (e.g. in
18090 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18091 # suppresses any "Segmentation fault" message there. '((' could
18092 # trigger a bug in pdksh 5.2.14.
18093 for as_var
in BASH_ENV ENV MAIL MAILPATH
18094 do eval test x\
${$as_var+set} = xset \
18095 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
18108 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
18111 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18112 # ----------------------------------------
18113 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18114 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18115 # script with STATUS, using 1 if that was 0.
18118 as_status
=$1; test $as_status -eq 0 && as_status
=1
18120 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
18121 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18123 $as_echo "$as_me: error: $2" >&2
18124 as_fn_exit
$as_status
18128 # as_fn_set_status STATUS
18129 # -----------------------
18130 # Set $? to STATUS, without forking.
18131 as_fn_set_status
()
18134 } # as_fn_set_status
18136 # as_fn_exit STATUS
18137 # -----------------
18138 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18142 as_fn_set_status
$1
18148 # Portably unset VAR.
18151 { eval $1=; unset $1;}
18153 as_unset
=as_fn_unset
18154 # as_fn_append VAR VALUE
18155 # ----------------------
18156 # Append the text in VALUE to the end of the definition contained in VAR. Take
18157 # advantage of any shell optimizations that allow amortized linear growth over
18158 # repeated appends, instead of the typical quadratic growth present in naive
18160 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
18161 eval 'as_fn_append ()
18172 # as_fn_arith ARG...
18173 # ------------------
18174 # Perform arithmetic evaluation on the ARGs, and store the result in the
18175 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18176 # must be portable across $(()) and expr.
18177 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
18178 eval 'as_fn_arith ()
18185 as_val
=`expr "$@" || test $? -eq 1`
18190 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
18191 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
18197 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18198 as_basename
=basename
18203 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
18209 as_me
=`$as_basename -- "$0" ||
18210 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18211 X"$0" : 'X\(//\)$' \| \
18212 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18214 sed '/^.*\/\([^/][^/]*\)\/*$/{
18228 # Avoid depending upon Character Ranges.
18229 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18230 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18231 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18232 as_cr_digits
='0123456789'
18233 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18235 ECHO_C
= ECHO_N
= ECHO_T
=
18236 case `echo -n x` in #(((((
18238 case `echo 'xy\c'` in
18239 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
18241 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
18248 rm -f conf$$ conf$$.exe conf$$.
file
18249 if test -d conf$$.dir
; then
18250 rm -f conf$$.dir
/conf$$.
file
18253 mkdir conf$$.dir
2>/dev
/null
18255 if (echo >conf$$.
file) 2>/dev
/null
; then
18256 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18258 # ... but there are two gotchas:
18259 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18260 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18261 # In both cases, we have to default to `cp -pR'.
18262 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
18264 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18272 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
18273 rmdir conf$$.dir
2>/dev
/null
18278 # Create "$as_dir" as a directory, including parents if necessary.
18283 -*) as_dir
=.
/$as_dir;;
18285 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
18289 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18290 *) as_qdir
=$as_dir;;
18292 as_dirs
="'$as_qdir' $as_dirs"
18293 as_dir
=`$as_dirname -- "$as_dir" ||
18294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18295 X"$as_dir" : 'X\(//\)[^/]' \| \
18296 X"$as_dir" : 'X\(//\)$' \| \
18297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18298 $as_echo X"$as_dir" |
18299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18303 /^X\(\/\/\)[^/].*/{
18316 test -d "$as_dir" && break
18318 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
18319 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
18323 if mkdir
-p .
2>/dev
/null
; then
18324 as_mkdir_p
='mkdir -p "$as_dir"'
18326 test -d .
/-p && rmdir .
/-p
18331 # as_fn_executable_p FILE
18332 # -----------------------
18333 # Test if FILE is an executable regular file.
18334 as_fn_executable_p
()
18336 test -f "$1" && test -x "$1"
18337 } # as_fn_executable_p
18338 as_test_x
='test -x'
18339 as_executable_p
=as_fn_executable_p
18341 # Sed expression to map a string onto a valid CPP name.
18342 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18344 # Sed expression to map a string onto a valid variable name.
18345 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18349 ## ----------------------------------- ##
18350 ## Main body of $CONFIG_STATUS script. ##
18351 ## ----------------------------------- ##
18353 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
18355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18356 # Save the log message, to keep $0 and so on meaningful, and to
18357 # report actual input values of CONFIG_FILES etc. instead of their
18358 # values after options handling.
18360 This file was extended by $as_me, which was
18361 generated by GNU Autoconf 2.69. Invocation command line was
18363 CONFIG_FILES = $CONFIG_FILES
18364 CONFIG_HEADERS = $CONFIG_HEADERS
18365 CONFIG_LINKS = $CONFIG_LINKS
18366 CONFIG_COMMANDS = $CONFIG_COMMANDS
18369 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18374 case $ac_config_files in *"
18375 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
18378 case $ac_config_headers in *"
18379 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
18383 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18384 # Files that config.status was made for.
18385 config_files="$ac_config_files"
18386 config_headers="$ac_config_headers"
18387 config_links="$ac_config_links"
18388 config_commands="$ac_config_commands"
18392 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18394 \`$as_me' instantiates files and other configuration actions
18395 from templates according to the current configuration. Unless the files
18396 and actions are specified as TAGs, all are instantiated by default.
18398 Usage: $0 [OPTION]... [TAG]...
18400 -h, --help print this help, then exit
18401 -V, --version print version number and configuration settings, then exit
18402 --config print configuration, then exit
18403 -q, --quiet, --silent
18404 do not print progress messages
18405 -d, --debug don't remove temporary files
18406 --recheck update $as_me by reconfiguring in the same conditions
18407 --file=FILE[:TEMPLATE]
18408 instantiate the configuration file FILE
18409 --header=FILE[:TEMPLATE]
18410 instantiate the configuration header FILE
18412 Configuration files:
18415 Configuration headers:
18418 Configuration links:
18421 Configuration commands:
18424 Report bugs to the package provider."
18427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18428 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18431 configured by $0, generated by GNU Autoconf 2.69,
18432 with options \\"\$ac_cs_config\\"
18434 Copyright (C) 2012 Free Software Foundation, Inc.
18435 This config.status script is free software; the Free Software Foundation
18436 gives unlimited permission to copy, distribute and modify it."
18442 test -n "\$AWK" || AWK=awk
18445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18446 # The default lists apply if the user does not specify any file.
18452 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18453 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
18457 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18469 # Handling of the options.
18470 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18472 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
18473 $as_echo "$ac_cs_version"; exit ;;
18474 --config |
--confi |
--conf |
--con |
--co |
--c )
18475 $as_echo "$ac_cs_config"; exit ;;
18476 --debug |
--debu |
--deb |
--de |
--d |
-d )
18478 --file |
--fil |
--fi |
--f )
18481 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18482 '') as_fn_error $?
"missing file argument" ;;
18484 as_fn_append CONFIG_FILES
" '$ac_optarg'"
18485 ac_need_defaults
=false
;;
18486 --header |
--heade |
--head |
--hea )
18489 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18491 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
18492 ac_need_defaults
=false
;;
18494 # Conflict between --help and --header
18495 as_fn_error $?
"ambiguous option: \`$1'
18496 Try \`$0 --help' for more information.";;
18497 --help |
--hel |
-h )
18498 $as_echo "$ac_cs_usage"; exit ;;
18499 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18500 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18503 # This is an error.
18504 -*) as_fn_error $?
"unrecognized option: \`$1'
18505 Try \`$0 --help' for more information." ;;
18507 *) as_fn_append ac_config_targets
" $1"
18508 ac_need_defaults
=false
;;
18514 ac_configure_extra_args
=
18516 if $ac_cs_silent; then
18518 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18522 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18523 if \$ac_cs_recheck; then
18524 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18526 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18527 CONFIG_SHELL='$SHELL'
18528 export CONFIG_SHELL
18533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18537 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18538 ## Running $as_me. ##
18544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18548 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
18552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18554 # Handling of arguments.
18555 for ac_config_target
in $ac_config_targets
18557 case $ac_config_target in
18558 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
18559 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
18560 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
18561 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
18562 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
18563 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18564 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
18565 "gdb-gdb.py") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.py" ;;
18566 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
18567 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
18569 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18574 # If the user did not use the arguments to specify the items to instantiate,
18575 # then the envvar interface is used. Set only those that are not.
18576 # We use the long form for the default assignment because of an extremely
18577 # bizarre bug on SunOS 4.1.3.
18578 if $ac_need_defaults; then
18579 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18580 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18581 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
18582 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18585 # Have a temporary directory for convenience. Make it in the build tree
18586 # simply because there is no reason against having it here, and in addition,
18587 # creating and moving files from /tmp can sometimes cause problems.
18588 # Hook for its removal unless debugging.
18589 # Note that there is a small window in which the directory will not be cleaned:
18590 # after its creation but before its name has been assigned to `$tmp'.
18594 trap 'exit_status=$?
18595 : "${ac_tmp:=$tmp}"
18596 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18598 trap 'as_fn_exit 1' 1 2 13 15
18600 # Create a (secure) tmp directory for tmp files.
18603 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18607 tmp
=.
/conf$$
-$RANDOM
18608 (umask 077 && mkdir
"$tmp")
18609 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
18612 # Set up the scripts for CONFIG_FILES section.
18613 # No need to generate them if there are no CONFIG_FILES.
18614 # This happens for instance with `./config.status config.h'.
18615 if test -n "$CONFIG_FILES"; then
18617 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
18618 ac_cs_awk_getline
=:
18619 ac_cs_awk_pipe_init
=
18620 ac_cs_awk_read_file
='
18621 while ((getline aline < (F[key])) > 0)
18624 ac_cs_awk_pipe_fini
=
18626 ac_cs_awk_getline
=false
18627 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
18628 ac_cs_awk_read_file
='
18630 print "cat " F[key] " &&"
18631 '$ac_cs_awk_pipe_init
18632 # The final `:' finishes the AND list.
18633 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
18635 ac_cr
=`echo X | tr X '\015'`
18636 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18637 # But we know of no other shell where ac_cr would be empty at this
18638 # point, so we can use a bashism as a fallback.
18639 if test "x$ac_cr" = x
; then
18640 eval ac_cr
=\$
\'\\r
\'
18642 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18643 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18646 ac_cs_awk_cr
=$ac_cr
18649 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18652 # Create commands to substitute file output variables.
18654 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18655 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
18656 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
18659 } >conf$
$files.sh
&&
18660 . .
/conf$
$files.sh ||
18661 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
18662 rm -f conf$
$files.sh
18665 echo "cat >conf$$subs.awk <<_ACEOF" &&
18666 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18668 } >conf$$subs.sh ||
18669 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18670 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18672 for ac_last_try in false false false false false :; do
18673 . ./conf$$subs.sh ||
18674 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18676 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18677 if test $ac_delim_n = $ac_delim_num; then
18679 elif $ac_last_try; then
18680 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18682 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18685 rm -f conf$$subs.sh
18687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18688 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
18692 s/^/S["/; s
/!.
*/"]=/
18702 s/\(.\{148\}\)..*/\1/
18704 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18709 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18716 s/\(.\{148\}\)..*/\1/
18718 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18722 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18727 ' <conf$$subs.awk | sed '
18732 ' >>$CONFIG_STATUS || ac_write_fail=1
18733 rm -f conf$$subs.awk
18734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18736 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
18737 for (key in S) S_is_set[key] = 1
18739 \$ac_cs_awk_pipe_init
18743 nfields = split(line, field, "@
")
18745 len = length(field[1])
18746 for (i = 2; i < nfields; i++) {
18748 keylen = length(key)
18749 if (S_is_set[key]) {
18751 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18752 len += length(value) + length(field[++i])
18757 if (nfields == 3 && !substed) {
18759 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18760 \$ac_cs_awk_read_file
18766 \$ac_cs_awk_pipe_fini
18769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18770 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18771 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18774 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
18775 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
18778 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18779 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
18780 # trailing colons and then remove the whole line if VPATH becomes empty
18781 # (actually we leave an empty line to preserve line numbers).
18782 if test "x
$srcdir" = x.; then
18783 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18802 fi # test -n "$CONFIG_FILES"
18804 # Set up the scripts for CONFIG_HEADERS section.
18805 # No need to generate them if there are no CONFIG_HEADERS.
18806 # This happens for instance with `./config.status Makefile'.
18807 if test -n "$CONFIG_HEADERS"; then
18808 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
18812 # Transform confdefs.h into an awk script `defines.awk', embedded as
18813 # here-document in config.status, that substitutes the proper values into
18814 # config.h.in to produce config.h.
18816 # Create a delimiter string that does not exist in confdefs.h, to ease
18817 # handling of long lines.
18819 for ac_last_try in false false :; do
18820 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
18821 if test -z "$ac_tt"; then
18823 elif $ac_last_try; then
18824 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
18826 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18830 # For the awk script, D is an array of macro values keyed by name,
18831 # likewise P contains macro parameters if any. Preserve backslash
18832 # newline sequences.
18834 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18836 s/.\{148\}/&'"$ac_delim"'/g
18839 s/^[ ]*#[ ]*define[ ][ ]*/ /
18846 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18848 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18852 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18853 D["\
1"]=" \
3\\\\\\n
"\\/p
18855 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18860 s/.\{148\}/&'"$ac_delim"'/g
18865 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18868 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18870 ' <confdefs.h | sed '
18871 s/'"$ac_delim"'/"\\\
18872 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18875 for (key in D) D_is_set[key] = 1
18878 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18880 split(line, arg, " ")
18881 if (arg[1] == "#") {
18885 defundef
= substr
(arg
[1], 2)
18888 split(mac1
, mac2
, "(") #)
18890 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18891 if (D_is_set
[macro
]) {
18892 # Preserve the white space surrounding the "#".
18893 print prefix
"define", macro P
[macro
] D
[macro
]
18896 # Replace #undef with comments. This is necessary, for example,
18897 # in the case of _POSIX_SOURCE, which is predefined and required
18898 # on some systems where configure will not decide to define it.
18899 if (defundef
== "undef") {
18900 print
"/*", prefix defundef
, macro
, "*/"
18908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18909 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
18910 fi # test -n "$CONFIG_HEADERS"
18913 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18918 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18920 case $ac_mode$ac_tag in
18922 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
18923 :[FH
]-) ac_tag
=-:-;;
18924 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18941 -) ac_f
="$ac_tmp/stdin";;
18942 *) # Look for the file first in the build tree, then in the source tree
18943 # (if the path is not absolute). The absolute path cannot be DOS-style,
18944 # because $ac_f cannot contain `:'.
18948 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18950 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18952 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18953 as_fn_append ac_file_inputs
" '$ac_f'"
18956 # Let's still pretend it is `configure' which instantiates (i.e., don't
18957 # use $as_me), people would be surprised to read:
18958 # /* config.h. Generated by config.status. */
18959 configure_input
='Generated from '`
18960 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18962 if test x
"$ac_file" != x-
; then
18963 configure_input
="$ac_file. $configure_input"
18964 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18965 $as_echo "$as_me: creating $ac_file" >&6;}
18967 # Neutralize special characters interpreted by sed in replacement strings.
18968 case $configure_input in #(
18969 *\
&* |
*\|
* |
*\\* )
18970 ac_sed_conf_input
=`$as_echo "$configure_input" |
18971 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18972 *) ac_sed_conf_input
=$configure_input;;
18976 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
18977 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
18982 ac_dir
=`$as_dirname -- "$ac_file" ||
18983 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18984 X"$ac_file" : 'X\(//\)[^/]' \| \
18985 X"$ac_file" : 'X\(//\)$' \| \
18986 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18987 $as_echo X"$ac_file" |
18988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18992 /^X\(\/\/\)[^/].*/{
19005 as_dir
="$ac_dir"; as_fn_mkdir_p
19009 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19011 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19012 # A ".." for each directory in $ac_dir_suffix.
19013 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19014 case $ac_top_builddir_sub in
19015 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19016 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
19019 ac_abs_top_builddir
=$ac_pwd
19020 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
19021 # for backward compatibility:
19022 ac_top_builddir
=$ac_top_build_prefix
19025 .
) # We are building in place.
19027 ac_top_srcdir
=$ac_top_builddir_sub
19028 ac_abs_top_srcdir
=$ac_pwd ;;
19029 [\\/]* | ?
:[\\/]* ) # Absolute name.
19030 ac_srcdir
=$srcdir$ac_dir_suffix;
19031 ac_top_srcdir
=$srcdir
19032 ac_abs_top_srcdir
=$srcdir ;;
19033 *) # Relative name.
19034 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
19035 ac_top_srcdir
=$ac_top_build_prefix$srcdir
19036 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
19038 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
19048 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
19049 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
19053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19054 # If the template does not know about datarootdir, expand it.
19055 # FIXME: This hack should be removed a few years after 2.60.
19056 ac_datarootdir_hack
=; ac_datarootdir_seen
=
19067 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19068 *datarootdir
*) ac_datarootdir_seen
=yes;;
19069 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
19070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19071 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19074 ac_datarootdir_hack='
19075 s&@datadir@&$datadir&g
19076 s&@docdir@&$docdir&g
19077 s&@infodir@&$infodir&g
19078 s&@localedir@&$localedir&g
19079 s&@mandir@&$mandir&g
19080 s&\\\${datarootdir}&$datarootdir&g' ;;
19084 # Neutralize VPATH when `$srcdir' = `.'.
19085 # Shell code in configure.ac might set extrasub.
19086 # FIXME: do we really want to maintain this feature?
19087 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19088 ac_sed_extra="$ac_vpsub
19091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19093 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19094 s|@configure_input@|
$ac_sed_conf_input|
;t t
19095 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
19096 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
19097 s
&@srcdir@
&$ac_srcdir&;t t
19098 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
19099 s
&@top_srcdir@
&$ac_top_srcdir&;t t
19100 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
19101 s
&@builddir@
&$ac_builddir&;t t
19102 s
&@abs_builddir@
&$ac_abs_builddir&;t t
19103 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
19104 s
&@INSTALL@
&$ac_INSTALL&;t t
19105 $ac_datarootdir_hack
19107 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19108 if $ac_cs_awk_getline; then
19109 $AWK -f "$ac_tmp/subs.
awk"
19111 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
19113 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
19115 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19116 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
19117 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19118 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
19119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
19120 which seems to be undefined. Please make sure it is defined" >&5
19121 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
19122 which seems to be undefined. Please make sure it is defined" >&2;}
19124 rm -f "$ac_tmp/stdin"
19126 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19127 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19129 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19135 if test x"$ac_file" != x-; then
19137 $as_echo "/* $configure_input */" \
19138 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19139 } >"$ac_tmp/config.h" \
19140 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19141 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19142 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19143 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19146 mv "$ac_tmp/config.h" "$ac_file" \
19147 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19150 $as_echo "/* $configure_input */" \
19151 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19152 || as_fn_error $? "could not create -" "$LINENO" 5
19160 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
19163 # Prefer the file from the source tree if names are identical.
19164 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
19165 ac_source=$srcdir/$ac_source
19168 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
19169 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
19171 if test ! -r "$ac_source"; then
19172 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
19176 # Try a relative symlink, then a hard link, then a copy.
19178 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
19179 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
19181 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
19182 ln "$ac_source" "$ac_file" 2>/dev/null ||
19183 cp -p "$ac_source" "$ac_file" ||
19184 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
19187 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19188 $as_echo "$as_me: executing $ac_file commands" >&6;}
19193 case $ac_file$ac_mode in
19194 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
19195 "gcore":F) chmod +x gcore ;;
19197 case x$CONFIG_HEADERS in
19198 xconfig.h:config.in)
19203 case x$CONFIG_HEADERS in
19204 xconfig.h:config.in)
19209 case x$CONFIG_HEADERS in
19210 xconfig.h:config.in)
19215 case x$CONFIG_HEADERS in
19216 xconfig.h:config.in)
19220 "data-directory/Makefile":F)
19221 case x$CONFIG_HEADERS in
19222 xconfig.h:config.in)
19233 ac_clean_files=$ac_clean_files_save
19235 test $ac_write_fail = 0 ||
19236 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19239 # configure is writing to config.log, and then calls config.status.
19240 # config.status does its own redirection, appending to config.log.
19241 # Unfortunately, on DOS this fails, as config.log is still kept open
19242 # by configure, so config.status won't be able to
write to it
; its
19243 # output is simply discarded. So we exec the FD to /dev/null,
19244 # effectively closing config.log, so it can be properly (re)opened and
19245 # appended to by config.status. When coming back to configure, we
19246 # need to make the FD available again.
19247 if test "$no_create" != yes; then
19249 ac_config_status_args
=
19250 test "$silent" = yes &&
19251 ac_config_status_args
="$ac_config_status_args --quiet"
19253 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19255 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19256 # would make configure fail if this is the last instruction.
19257 $ac_cs_success || as_fn_exit
1
19261 # CONFIG_SUBDIRS section.
19263 if test "$no_recursion" != yes; then
19265 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19266 # so they do not pile up.
19267 ac_sub_configure_args
=
19269 eval "set x $ac_configure_args"
19273 if test -n "$ac_prev"; then
19278 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
19279 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
19280 ac_prev
=cache_file
;;
19281 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
19282 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
19285 --config-cache |
-C)
19287 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
19289 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
19291 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
19293 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
19295 --disable-option-checking)
19299 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19301 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
19305 # Always prepend --prefix to ensure using the same prefix
19306 # in subdir configurations.
19307 ac_arg
="--prefix=$prefix"
19309 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19311 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
19314 if test "$silent" = yes; then
19315 ac_sub_configure_args
="--silent $ac_sub_configure_args"
19318 # Always prepend --disable-option-checking to silence warnings, since
19319 # different subdirs can have different --enable and --with options.
19320 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
19323 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
19325 # Do not complain, so a configure script can configure whichever
19326 # parts of a large source tree are present.
19327 test -d "$srcdir/$ac_dir" ||
continue
19329 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19330 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19331 $as_echo "$ac_msg" >&6
19332 as_dir
="$ac_dir"; as_fn_mkdir_p
19336 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19338 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19339 # A ".." for each directory in $ac_dir_suffix.
19340 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19341 case $ac_top_builddir_sub in
19342 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19343 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
19346 ac_abs_top_builddir
=$ac_pwd
19347 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
19348 # for backward compatibility:
19349 ac_top_builddir
=$ac_top_build_prefix
19352 .
) # We are building in place.
19354 ac_top_srcdir
=$ac_top_builddir_sub
19355 ac_abs_top_srcdir
=$ac_pwd ;;
19356 [\\/]* | ?
:[\\/]* ) # Absolute name.
19357 ac_srcdir
=$srcdir$ac_dir_suffix;
19358 ac_top_srcdir
=$srcdir
19359 ac_abs_top_srcdir
=$srcdir ;;
19360 *) # Relative name.
19361 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
19362 ac_top_srcdir
=$ac_top_build_prefix$srcdir
19363 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
19365 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
19370 # Check for guested configure; otherwise get Cygnus style configure.
19371 if test -f "$ac_srcdir/configure.gnu"; then
19372 ac_sub_configure
=$ac_srcdir/configure.gnu
19373 elif test -f "$ac_srcdir/configure"; then
19374 ac_sub_configure
=$ac_srcdir/configure
19375 elif test -f "$ac_srcdir/configure.in"; then
19376 # This should be Cygnus configure.
19377 ac_sub_configure
=$ac_aux_dir/configure
19379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19380 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19384 # The recursion is here.
19385 if test -n "$ac_sub_configure"; then
19386 # Make the cache file name correct relative to the subdirectory.
19387 case $cache_file in
19388 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
19389 *) # Relative name.
19390 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
19393 { $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
19394 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19395 # The eval makes quoting arguments work.
19396 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19397 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19398 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19404 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19406 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}