2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="main.c"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
622 enable_option_checking
=no
624 ac_subst_vars
='LTLIBOBJS
633 HAVE_NATIVE_GCORE_HOST
725 READLINE_TEXI_INCFLAG
749 HAVE_NATIVE_GCORE_TARGET
776 INSTALL_STRIP_PROGRAM
805 MAINTAINER_MODE_FALSE
834 program_transform_name
845 ac_subst_files
='nat_makefile_frag'
847 enable_option_checking
848 enable_maintainer_mode
851 with_separate_debug_dir
853 with_relocated_sources
855 with_auto_load_safe_path
887 enable_build_warnings
888 enable_gdb_build_warnings
897 with_libbabeltrace_prefix
899 ac_precious_vars
='build_alias
916 ac_subdirs_all
='testsuite
920 # Initialize some variables set by options.
922 ac_init_version
=false
923 ac_unrecognized_opts
=
925 # The variables have the same names as the options, with
926 # dashes changed to underlines.
934 program_transform_name
=s
,x
,x
,
942 # Installation directory options.
943 # These are left unexpanded so users can "make install exec_prefix=/foo"
944 # and all the variables that are supposed to be based on exec_prefix
945 # by default will actually change.
946 # Use braces instead of parens because sh, perl, etc. also accept them.
947 # (The list follows the same order as the GNU Coding Standards.)
948 bindir
='${exec_prefix}/bin'
949 sbindir
='${exec_prefix}/sbin'
950 libexecdir
='${exec_prefix}/libexec'
951 datarootdir
='${prefix}/share'
952 datadir
='${datarootdir}'
953 sysconfdir
='${prefix}/etc'
954 sharedstatedir
='${prefix}/com'
955 localstatedir
='${prefix}/var'
956 includedir
='${prefix}/include'
957 oldincludedir
='/usr/include'
958 docdir
='${datarootdir}/doc/${PACKAGE}'
959 infodir
='${datarootdir}/info'
964 libdir
='${exec_prefix}/lib'
965 localedir
='${datarootdir}/locale'
966 mandir
='${datarootdir}/man'
972 # If the previous option needs an argument, assign it.
973 if test -n "$ac_prev"; then
974 eval $ac_prev=\
$ac_option
980 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
985 # Accept the important Cygnus configure options, so we can diagnose typos.
987 case $ac_dashdash$ac_option in
991 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
993 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
996 -build |
--build |
--buil |
--bui |
--bu)
997 ac_prev
=build_alias
;;
998 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
999 build_alias
=$ac_optarg ;;
1001 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1002 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1003 ac_prev
=cache_file
;;
1004 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1005 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1006 cache_file
=$ac_optarg ;;
1008 --config-cache |
-C)
1009 cache_file
=config.cache
;;
1011 -datadir |
--datadir |
--datadi |
--datad)
1013 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1014 datadir
=$ac_optarg ;;
1016 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1017 |
--dataroo |
--dataro |
--datar)
1018 ac_prev
=datarootdir
;;
1019 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1020 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1021 datarootdir
=$ac_optarg ;;
1023 -disable-* |
--disable-*)
1024 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1027 as_fn_error $?
"invalid feature name: $ac_useropt"
1028 ac_useropt_orig
=$ac_useropt
1029 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030 case $ac_user_opts in
1032 "enable_
$ac_useropt"
1034 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1035 ac_unrecognized_sep
=', ';;
1037 eval enable_
$ac_useropt=no
;;
1039 -docdir |
--docdir |
--docdi |
--doc |
--do)
1041 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1042 docdir
=$ac_optarg ;;
1044 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1046 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1047 dvidir
=$ac_optarg ;;
1049 -enable-* |
--enable-*)
1050 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1053 as_fn_error $?
"invalid feature name: $ac_useropt"
1054 ac_useropt_orig
=$ac_useropt
1055 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056 case $ac_user_opts in
1058 "enable_
$ac_useropt"
1060 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1061 ac_unrecognized_sep
=', ';;
1063 eval enable_
$ac_useropt=\
$ac_optarg ;;
1065 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1066 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1067 |
--exec |
--exe |
--ex)
1068 ac_prev
=exec_prefix
;;
1069 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1070 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1071 |
--exec=* |
--exe=* |
--ex=*)
1072 exec_prefix
=$ac_optarg ;;
1074 -gas |
--gas |
--ga |
--g)
1075 # Obsolete; use --with-gas.
1078 -help |
--help |
--hel |
--he |
-h)
1079 ac_init_help
=long
;;
1080 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1081 ac_init_help
=recursive
;;
1082 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1083 ac_init_help
=short
;;
1085 -host |
--host |
--hos |
--ho)
1086 ac_prev
=host_alias
;;
1087 -host=* |
--host=* |
--hos=* |
--ho=*)
1088 host_alias
=$ac_optarg ;;
1090 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1092 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1094 htmldir
=$ac_optarg ;;
1096 -includedir |
--includedir |
--includedi |
--included |
--include \
1097 |
--includ |
--inclu |
--incl |
--inc)
1098 ac_prev
=includedir
;;
1099 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1100 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1101 includedir
=$ac_optarg ;;
1103 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1105 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1106 infodir
=$ac_optarg ;;
1108 -libdir |
--libdir |
--libdi |
--libd)
1110 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1111 libdir
=$ac_optarg ;;
1113 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1114 |
--libexe |
--libex |
--libe)
1115 ac_prev
=libexecdir
;;
1116 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1117 |
--libexe=* |
--libex=* |
--libe=*)
1118 libexecdir
=$ac_optarg ;;
1120 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1121 ac_prev
=localedir
;;
1122 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1123 localedir
=$ac_optarg ;;
1125 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1126 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1127 ac_prev
=localstatedir
;;
1128 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1129 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1130 localstatedir
=$ac_optarg ;;
1132 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1134 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1135 mandir
=$ac_optarg ;;
1137 -nfp |
--nfp |
--nf)
1138 # Obsolete; use --without-fp.
1141 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1142 |
--no-cr |
--no-c |
-n)
1145 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1146 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1149 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1150 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1151 |
--oldin |
--oldi |
--old |
--ol |
--o)
1152 ac_prev
=oldincludedir
;;
1153 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1154 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1155 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1156 oldincludedir
=$ac_optarg ;;
1158 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1160 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1161 prefix
=$ac_optarg ;;
1163 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1164 |
--program-pre |
--program-pr |
--program-p)
1165 ac_prev
=program_prefix
;;
1166 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1167 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1168 program_prefix
=$ac_optarg ;;
1170 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1171 |
--program-suf |
--program-su |
--program-s)
1172 ac_prev
=program_suffix
;;
1173 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1174 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1175 program_suffix
=$ac_optarg ;;
1177 -program-transform-name |
--program-transform-name \
1178 |
--program-transform-nam |
--program-transform-na \
1179 |
--program-transform-n |
--program-transform- \
1180 |
--program-transform |
--program-transfor \
1181 |
--program-transfo |
--program-transf \
1182 |
--program-trans |
--program-tran \
1183 |
--progr-tra |
--program-tr |
--program-t)
1184 ac_prev
=program_transform_name
;;
1185 -program-transform-name=* |
--program-transform-name=* \
1186 |
--program-transform-nam=* |
--program-transform-na=* \
1187 |
--program-transform-n=* |
--program-transform-=* \
1188 |
--program-transform=* |
--program-transfor=* \
1189 |
--program-transfo=* |
--program-transf=* \
1190 |
--program-trans=* |
--program-tran=* \
1191 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1192 program_transform_name
=$ac_optarg ;;
1194 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1196 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1197 pdfdir
=$ac_optarg ;;
1199 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1201 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1204 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1205 |
-silent |
--silent |
--silen |
--sile |
--sil)
1208 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1210 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1212 sbindir
=$ac_optarg ;;
1214 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1215 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1216 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1218 ac_prev
=sharedstatedir
;;
1219 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1220 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1221 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1223 sharedstatedir
=$ac_optarg ;;
1225 -site |
--site |
--sit)
1227 -site=* |
--site=* |
--sit=*)
1230 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1232 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1233 srcdir
=$ac_optarg ;;
1235 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1236 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1237 ac_prev
=sysconfdir
;;
1238 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1239 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1240 sysconfdir
=$ac_optarg ;;
1242 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1243 ac_prev
=target_alias
;;
1244 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1245 target_alias
=$ac_optarg ;;
1247 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1250 -version |
--version |
--versio |
--versi |
--vers |
-V)
1251 ac_init_version
=: ;;
1254 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1257 as_fn_error $?
"invalid package name: $ac_useropt"
1258 ac_useropt_orig
=$ac_useropt
1259 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1260 case $ac_user_opts in
1264 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1265 ac_unrecognized_sep
=', ';;
1267 eval with_
$ac_useropt=\
$ac_optarg ;;
1269 -without-* |
--without-*)
1270 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1273 as_fn_error $?
"invalid package name: $ac_useropt"
1274 ac_useropt_orig
=$ac_useropt
1275 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276 case $ac_user_opts in
1280 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1281 ac_unrecognized_sep
=', ';;
1283 eval with_
$ac_useropt=no
;;
1286 # Obsolete; use --with-x.
1289 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1290 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1291 ac_prev
=x_includes
;;
1292 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1293 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1294 x_includes
=$ac_optarg ;;
1296 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1297 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1298 ac_prev
=x_libraries
;;
1299 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1300 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1301 x_libraries
=$ac_optarg ;;
1303 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1304 Try \`$0 --help' for more information"
1308 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1309 # Reject names that are not valid shell variable names.
1310 case $ac_envvar in #(
1311 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1312 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1314 eval $ac_envvar=\
$ac_optarg
1315 export $ac_envvar ;;
1318 # FIXME: should be removed in autoconf 3.0.
1319 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1320 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1321 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1322 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1328 if test -n "$ac_prev"; then
1329 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1330 as_fn_error $?
"missing argument to $ac_option"
1333 if test -n "$ac_unrecognized_opts"; then
1334 case $enable_option_checking in
1336 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1337 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1341 # Check all directory arguments for consistency.
1342 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1343 datadir sysconfdir sharedstatedir localstatedir includedir \
1344 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1345 libdir localedir mandir
1347 eval ac_val
=\$
$ac_var
1348 # Remove trailing slashes.
1351 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1352 eval $ac_var=\
$ac_val;;
1354 # Be sure to have absolute directory names.
1356 [\\/$
]* | ?
:[\\/]* ) continue;;
1357 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1359 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1362 # There might be people who depend on the old broken behavior: `$host'
1363 # used to hold the argument of --host etc.
1364 # FIXME: To remove some day.
1367 target
=$target_alias
1369 # FIXME: To remove some day.
1370 if test "x$host_alias" != x
; then
1371 if test "x$build_alias" = x
; then
1372 cross_compiling
=maybe
1373 elif test "x$build_alias" != "x$host_alias"; then
1379 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1381 test "$silent" = yes && exec 6>/dev
/null
1384 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1385 ac_ls_di
=`ls -di .` &&
1386 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1387 as_fn_error $?
"working directory cannot be determined"
1388 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389 as_fn_error $?
"pwd does not report name of working directory"
1392 # Find the source files, if location was not specified.
1393 if test -z "$srcdir"; then
1394 ac_srcdir_defaulted
=yes
1395 # Try the directory containing this script, then the parent directory.
1396 ac_confdir
=`$as_dirname -- "$as_myself" ||
1397 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1398 X"$as_myself" : 'X\(//\)[^/]' \| \
1399 X"$as_myself" : 'X\(//\)$' \| \
1400 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1401 $as_echo X"$as_myself" |
1402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1424 ac_srcdir_defaulted
=no
1426 if test ! -r "$srcdir/$ac_unique_file"; then
1427 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1428 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1430 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1432 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1434 # When building in place, set srcdir=.
1435 if test "$ac_abs_confdir" = "$ac_pwd"; then
1438 # Remove unnecessary trailing slashes from srcdir.
1439 # Double slashes in file names in object file debugging info
1440 # mess up M-x gdb in Emacs.
1442 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1444 for ac_var
in $ac_precious_vars; do
1445 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1446 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1447 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1448 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1452 # Report the --help message.
1454 if test "$ac_init_help" = "long"; then
1455 # Omit some internal or obsolete options to make the list less imposing.
1456 # This message is too long to be a string in the A/UX 3.1 sh.
1458 \`configure' configures this package to adapt to many kinds of systems.
1460 Usage: $0 [OPTION]... [VAR=VALUE]...
1462 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1463 VAR=VALUE. See below for descriptions of some of the useful variables.
1465 Defaults for the options are specified in brackets.
1468 -h, --help display this help and exit
1469 --help=short display options specific to this package
1470 --help=recursive display the short help of all the included packages
1471 -V, --version display version information and exit
1472 -q, --quiet, --silent do not print \`checking ...' messages
1473 --cache-file=FILE cache test results in FILE [disabled]
1474 -C, --config-cache alias for \`--cache-file=config.cache'
1475 -n, --no-create do not create output files
1476 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1478 Installation directories:
1479 --prefix=PREFIX install architecture-independent files in PREFIX
1480 [$ac_default_prefix]
1481 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1484 By default, \`make install' will install all the files in
1485 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1486 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1487 for instance \`--prefix=\$HOME'.
1489 For better control, use the options below.
1491 Fine tuning of the installation directories:
1492 --bindir=DIR user executables [EPREFIX/bin]
1493 --sbindir=DIR system admin executables [EPREFIX/sbin]
1494 --libexecdir=DIR program executables [EPREFIX/libexec]
1495 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1496 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1497 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1498 --libdir=DIR object code libraries [EPREFIX/lib]
1499 --includedir=DIR C header files [PREFIX/include]
1500 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1501 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1502 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1503 --infodir=DIR info documentation [DATAROOTDIR/info]
1504 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1505 --mandir=DIR man documentation [DATAROOTDIR/man]
1506 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1507 --htmldir=DIR html documentation [DOCDIR]
1508 --dvidir=DIR dvi documentation [DOCDIR]
1509 --pdfdir=DIR pdf documentation [DOCDIR]
1510 --psdir=DIR ps documentation [DOCDIR]
1516 --program-prefix=PREFIX prepend PREFIX to installed program names
1517 --program-suffix=SUFFIX append SUFFIX to installed program names
1518 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1521 --x-includes=DIR X include files are
in DIR
1522 --x-libraries=DIR X library files are
in DIR
1525 --build=BUILD configure
for building on BUILD
[guessed
]
1526 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1527 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1531 if test -n "$ac_init_help"; then
1536 --disable-option-checking ignore unrecognized
--enable/--with options
1537 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1538 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1539 --enable-maintainer-mode
1540 enable make rules and dependencies not useful
(and
1541 sometimes confusing
) to the casual installer
1542 --enable-plugins Enable support
for plugins
1543 --disable-largefile omit support
for large files
1544 --enable-targets=TARGETS
1545 alternative target configurations
1546 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1547 --disable-gdbmi disable machine-interface
(MI
)
1548 --enable-tui enable full-screen terminal user interface
(TUI
)
1549 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1550 --enable-profiling enable profiling of GDB
1551 --enable-codesign=CERT sign gdb with
'codesign -s CERT'
1552 --disable-rpath do not hardcode runtime library paths
1553 --enable-libmcheck Try linking with
-lmcheck if available
1554 --enable-werror treat compile warnings as errors
1555 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1556 --enable-gdb-build-warnings
1557 enable GDB specific build-time compiler warnings
if
1559 --enable-sim link gdb with simulator
1560 --enable-gdbserver automatically build gdbserver
(yes
/no
/auto
, default
1564 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1565 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1566 --with-separate-debug-dir=PATH
1567 look for global separate debug info
in this path
1569 --with-gdb-datadir=PATH
look for global separate data files
in this path
1571 --with-relocated-sources=PATH
1572 automatically relocate this path
for source files
1573 --with-auto-load-dir=PATH
1574 directories from
which to load auto-loaded scripts
1575 [$debugdir:$datadir/auto-load
]
1576 --with-auto-load-safe-path=PATH
1577 directories safe to hold auto-loaded files
1578 [--with-auto-load-dir]
1579 --without-auto-load-safe-path
1580 do not restrict auto-loaded files locations
1581 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1582 --with-curses use the curses library instead of the termcap
1584 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1585 --with-bugurl=URL Direct users to URL to report a bug
1586 --with-system-zlib use installed libz
1587 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1588 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1589 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1590 --with-iconv-bin=PATH specify where to find the iconv program
1591 --with-system-readline use installed readline library
1592 --with-jit-reader-dir=PATH
1593 directory to load the JIT readers from
1594 --with-expat include expat support (auto/yes/no)
1595 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1596 --without-libexpat-prefix don't search
for libexpat
in includedir and libdir
1597 --with-mpfr include MPFR support
(auto
/yes
/no
)
1598 --with-libmpfr-prefix[=DIR
] search
for libmpfr
in DIR
/include and DIR
/lib
1599 --without-libmpfr-prefix don
't search for libmpfr in includedir and libdir
1600 --with-python[=PYTHON] include python support
1601 (auto/yes/no/<python-program>)
1602 --with-guile[=GUILE] include guile support
1603 (auto/yes/no/<guile-version>/<pkg-config-program>)
1604 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1605 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1606 --without-libipt-prefix don't search
for libipt
in includedir and libdir
1607 --without-included-regex
1608 don
't use included regex; this is the default on
1609 systems with version 2 of the GNU C library (use
1610 with caution on other system)
1611 --with-sysroot[=DIR] search for usr/lib et al within DIR
1612 --with-system-gdbinit=PATH
1613 automatically load a system-wide gdbinit file
1614 --with-lzma support lzma compression (auto/yes/no)
1615 --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib
1616 --without-liblzma-prefix don't search
for liblzma
in includedir and libdir
1617 --with-tcl directory containing tcl configuration
(tclConfig.sh
)
1618 --with-tk directory containing tk configuration
(tkConfig.sh
)
1619 --with-x use the X Window System
1620 --with-babeltrace include babeltrace support
(auto
/yes
/no
)
1621 --with-libbabeltrace-prefix[=DIR
] search
for libbabeltrace
in DIR
/include and DIR
/lib
1622 --without-libbabeltrace-prefix don
't search for libbabeltrace in includedir and libdir
1624 Some influential environment variables:
1625 CC C compiler command
1626 CFLAGS C compiler flags
1627 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1628 nonstandard directory <lib dir>
1629 LIBS libraries to pass to the linker, e.g. -l<library>
1630 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1631 you have headers in a nonstandard directory <include dir>
1632 CXX C++ compiler command
1633 CXXFLAGS C++ compiler flags
1635 MAKEINFO Parent configure detects if it is of sufficient version.
1637 Parameters for MAKEINFO.
1638 YACC The `Yet Another Compiler Compiler' implementation to use.
1639 Defaults to the first program found out of
: `bison -y', `byacc
',
1641 YFLAGS The list of arguments that will be passed by default to
$YACC.
1642 This
script will default YFLAGS to the empty string to avoid a
1643 default value of
`-d' given by some make applications.
1644 XMKMF Path to xmkmf, Makefile generator for X Window System
1646 Use these variables to override the choices made by `configure
' or to help
1647 it to find libraries and programs with nonstandard names/locations.
1649 Report bugs to the package provider.
1654 if test "$ac_init_help" = "recursive"; then
1655 # If there are subdirs, report their specific --help.
1656 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1657 test -d "$ac_dir" ||
1658 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1663 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1665 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.
[\\/]||
'`
1666 # A ".." for each directory in $ac_dir_suffix.
1667 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|
/[^
\\/]*|
/..|g
;s|
/||
'`
1668 case $ac_top_builddir_sub in
1669 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1670 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1673 ac_abs_top_builddir=$ac_pwd
1674 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1675 # for backward compatibility:
1676 ac_top_builddir=$ac_top_build_prefix
1679 .) # We are building in place.
1681 ac_top_srcdir=$ac_top_builddir_sub
1682 ac_abs_top_srcdir=$ac_pwd ;;
1683 [\\/]* | ?:[\\/]* ) # Absolute name.
1684 ac_srcdir=$srcdir$ac_dir_suffix;
1685 ac_top_srcdir=$srcdir
1686 ac_abs_top_srcdir=$srcdir ;;
1688 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1689 ac_top_srcdir=$ac_top_build_prefix$srcdir
1690 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1692 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1694 cd "$ac_dir" || { ac_status=$?; continue; }
1695 # Check for guested configure.
1696 if test -f "$ac_srcdir/configure.gnu"; then
1698 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1699 elif test -f "$ac_srcdir/configure"; then
1701 $SHELL "$ac_srcdir/configure" --help=recursive
1703 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1705 cd "$ac_pwd" || { ac_status=$?; break; }
1709 test -n "$ac_init_help" && exit $ac_status
1710 if $ac_init_version; then
1713 generated by GNU Autoconf 2.69
1715 Copyright (C) 2012 Free Software Foundation, Inc.
1716 This configure script is free software; the Free Software Foundation
1717 gives unlimited permission to copy, distribute and modify it.
1722 ## ------------------------ ##
1723 ## Autoconf initialization. ##
1724 ## ------------------------ ##
1726 # ac_fn_c_try_compile LINENO
1727 # --------------------------
1728 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1729 ac_fn_c_try_compile ()
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 rm -f conftest.$ac_objext
1733 if { { ac_try="$ac_compile"
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_compile") 2>conftest.err
1742 if test -s conftest.err; then
1743 grep -v '^
*+' conftest.err >conftest.er1
1744 cat conftest.er1 >&5
1745 mv -f conftest.er1 conftest.err
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } && {
1749 test -z "$ac_c_werror_flag" ||
1750 test ! -s conftest.err
1751 } && test -s conftest.$ac_objext; then :
1754 $as_echo "$as_me: failed program was:" >&5
1755 sed 's
/^
/|
/' conftest.$ac_ext >&5
1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760 as_fn_set_status $ac_retval
1762 } # ac_fn_c_try_compile
1764 # ac_fn_cxx_try_compile LINENO
1765 # ----------------------------
1766 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1767 ac_fn_cxx_try_compile ()
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 rm -f conftest.$ac_objext
1771 if { { ac_try="$ac_compile"
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_compile") 2>conftest.err
1780 if test -s conftest.err; then
1781 grep -v '^
*+' conftest.err >conftest.er1
1782 cat conftest.er1 >&5
1783 mv -f conftest.er1 conftest.err
1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; } && {
1787 test -z "$ac_cxx_werror_flag" ||
1788 test ! -s conftest.err
1789 } && test -s conftest.$ac_objext; then :
1792 $as_echo "$as_me: failed program was:" >&5
1793 sed 's
/^
/|
/' conftest.$ac_ext >&5
1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798 as_fn_set_status $ac_retval
1800 } # ac_fn_cxx_try_compile
1802 # ac_fn_c_try_cpp LINENO
1803 # ----------------------
1804 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 if { { ac_try="$ac_cpp conftest.$ac_ext"
1810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811 *) ac_try_echo=$ac_try;;
1813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814 $as_echo "$ac_try_echo"; } >&5
1815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1817 if test -s conftest.err; then
1818 grep -v '^
*+' conftest.err >conftest.er1
1819 cat conftest.er1 >&5
1820 mv -f conftest.er1 conftest.err
1822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1823 test $ac_status = 0; } > conftest.i && {
1824 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1825 test ! -s conftest.err
1829 $as_echo "$as_me: failed program was:" >&5
1830 sed 's
/^
/|
/' conftest.$ac_ext >&5
1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835 as_fn_set_status $ac_retval
1839 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1840 # -------------------------------------------------------
1841 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1842 # the include files in INCLUDES and setting the cache variable VAR
1844 ac_fn_c_check_header_mongrel ()
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 if eval \${$3+:} false; then :
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1849 $as_echo_n "checking for $2... " >&6; }
1850 if eval \${$3+:} false; then :
1851 $as_echo_n "(cached) " >&6
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855 $as_echo "$ac_res" >&6; }
1857 # Is the header compilable?
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1859 $as_echo_n "checking $2 usability... " >&6; }
1860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1861 /* end confdefs.h. */
1865 if ac_fn_c_try_compile "$LINENO"; then :
1866 ac_header_compiler=yes
1868 ac_header_compiler=no
1870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1872 $as_echo "$ac_header_compiler" >&6; }
1874 # Is the header present?
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1876 $as_echo_n "checking $2 presence... " >&6; }
1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878 /* end confdefs.h. */
1881 if ac_fn_c_try_cpp "$LINENO"; then :
1882 ac_header_preproc=yes
1884 ac_header_preproc=no
1886 rm -f conftest.err conftest.i conftest.$ac_ext
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1888 $as_echo "$ac_header_preproc" >&6; }
1890 # So? What about this header?
1891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1894 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1896 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1900 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1902 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1904 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1906 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1908 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912 $as_echo_n "checking for $2... " >&6; }
1913 if eval \${$3+:} false; then :
1914 $as_echo_n "(cached) " >&6
1916 eval "$3=\$ac_header_compiler"
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920 $as_echo "$ac_res" >&6; }
1922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924 } # ac_fn_c_check_header_mongrel
1926 # ac_fn_c_try_run LINENO
1927 # ----------------------
1928 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1929 # that executables *can* be run.
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 if { { ac_try="$ac_link"
1935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1936 *) ac_try_echo=$ac_try;;
1938 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1939 $as_echo "$ac_try_echo"; } >&5
1940 (eval "$ac_link") 2>&5
1942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943 test $ac_status = 0; } && { ac_try='.
/conftest
$ac_exeext'
1944 { { case "(($ac_try" in
1945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1946 *) ac_try_echo=$ac_try;;
1948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1949 $as_echo "$ac_try_echo"; } >&5
1950 (eval "$ac_try") 2>&5
1952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1953 test $ac_status = 0; }; }; then :
1956 $as_echo "$as_me: program exited with status $ac_status" >&5
1957 $as_echo "$as_me: failed program was:" >&5
1958 sed 's
/^
/|
/' conftest.$ac_ext >&5
1960 ac_retval=$ac_status
1962 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1963 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1964 as_fn_set_status $ac_retval
1968 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1969 # -------------------------------------------------------
1970 # Tests whether HEADER exists and can be compiled using the include files in
1971 # INCLUDES, setting the cache variable VAR accordingly.
1972 ac_fn_c_check_header_compile ()
1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1976 $as_echo_n "checking for $2... " >&6; }
1977 if eval \${$3+:} false; then :
1978 $as_echo_n "(cached) " >&6
1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h. */
1985 if ac_fn_c_try_compile "$LINENO"; then :
1990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994 $as_echo "$ac_res" >&6; }
1995 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997 } # ac_fn_c_check_header_compile
1999 # ac_fn_c_try_link LINENO
2000 # -----------------------
2001 # Try to link conftest.$ac_ext, and return whether this succeeded.
2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005 rm -f conftest.$ac_objext conftest$ac_exeext
2006 if { { ac_try="$ac_link"
2008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2009 *) ac_try_echo=$ac_try;;
2011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2012 $as_echo "$ac_try_echo"; } >&5
2013 (eval "$ac_link") 2>conftest.err
2015 if test -s conftest.err; then
2016 grep -v '^
*+' conftest.err >conftest.er1
2017 cat conftest.er1 >&5
2018 mv -f conftest.er1 conftest.err
2020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2021 test $ac_status = 0; } && {
2022 test -z "$ac_c_werror_flag" ||
2023 test ! -s conftest.err
2024 } && test -s conftest$ac_exeext && {
2025 test "$cross_compiling" = yes ||
2026 test -x conftest$ac_exeext
2030 $as_echo "$as_me: failed program was:" >&5
2031 sed 's
/^
/|
/' conftest.$ac_ext >&5
2035 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2036 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2037 # interfere with the next link command; also delete a directory that is
2038 # left behind by Apple's compiler. We
do this before executing the actions.
2039 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041 as_fn_set_status
$ac_retval
2043 } # ac_fn_c_try_link
2045 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2046 # --------------------------------------------
2047 # Tries to find the compile-time value of EXPR in a program that includes
2048 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2050 ac_fn_c_compute_int
()
2052 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2053 if test "$cross_compiling" = yes; then
2054 # Depending upon the size, compute the lo and hi bounds.
2055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2061 static int test_array [1 - 2 * !(($2) >= 0)];
2063 return test_array [0];
2069 if ac_fn_c_try_compile
"$LINENO"; then :
2072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2078 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2080 return test_array [0];
2086 if ac_fn_c_try_compile
"$LINENO"; then :
2087 ac_hi
=$ac_mid; break
2089 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2090 if test $ac_lo -le $ac_mid; then
2094 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2096 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h. */
2105 static int test_array [1 - 2 * !(($2) < 0)];
2107 return test_array [0];
2113 if ac_fn_c_try_compile
"$LINENO"; then :
2116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h. */
2122 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2124 return test_array [0];
2130 if ac_fn_c_try_compile
"$LINENO"; then :
2131 ac_lo
=$ac_mid; break
2133 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2134 if test $ac_mid -le $ac_hi; then
2138 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2140 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2147 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2148 # Binary search between lo and hi bounds.
2149 while test "x$ac_lo" != "x$ac_hi"; do
2150 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h. */
2157 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2159 return test_array [0];
2165 if ac_fn_c_try_compile
"$LINENO"; then :
2168 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2173 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2178 /* end confdefs.h. */
2180 static long int longval () { return $2; }
2181 static unsigned long int ulongval () { return $2; }
2188 FILE *f = fopen ("conftest.val", "w");
2193 long int i = longval ();
2196 fprintf (f, "%ld", i);
2200 unsigned long int i = ulongval ();
2203 fprintf (f, "%lu", i);
2205 /* Do not output a trailing newline, as this causes \r\n confusion
2206 on some platforms. */
2207 return ferror (f) || fclose (f) != 0;
2213 if ac_fn_c_try_run
"$LINENO"; then :
2214 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2218 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2219 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2223 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2224 as_fn_set_status
$ac_retval
2226 } # ac_fn_c_compute_int
2228 # ac_fn_c_check_func LINENO FUNC VAR
2229 # ----------------------------------
2230 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2231 ac_fn_c_check_func
()
2233 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2235 $as_echo_n "checking for $2... " >&6; }
2236 if eval \
${$3+:} false
; then :
2237 $as_echo_n "(cached) " >&6
2239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2240 /* end confdefs.h. */
2241 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2243 #define $2 innocuous_$2
2245 /* System header to define __stub macros and hopefully few prototypes,
2246 which can conflict with char $2 (); below.
2247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2248 <limits.h> exists even on freestanding compilers. */
2251 # include <limits.h>
2253 # include <assert.h>
2258 /* Override any GCC internal prototype to avoid an error.
2259 Use char because int might match the return type of a GCC
2260 builtin and then its argument prototype would still apply. */
2265 /* The GNU C library defines this for functions which it implements
2266 to always fail with ENOSYS. Some functions are actually named
2267 something starting with __ and the normal name is an alias. */
2268 #if defined __stub_$2 || defined __stub___$2
2280 if ac_fn_c_try_link
"$LINENO"; then :
2285 rm -f core conftest.err conftest.
$ac_objext \
2286 conftest
$ac_exeext conftest.
$ac_ext
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2290 $as_echo "$ac_res" >&6; }
2291 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2293 } # ac_fn_c_check_func
2295 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2296 # ----------------------------------------------------
2297 # Tries to find if the field MEMBER exists in type AGGR, after including
2298 # INCLUDES, setting cache variable VAR accordingly.
2299 ac_fn_c_check_member
()
2301 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2303 $as_echo_n "checking for $2.$3... " >&6; }
2304 if eval \
${$4+:} false
; then :
2305 $as_echo_n "(cached) " >&6
2307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h. */
2320 if ac_fn_c_try_compile
"$LINENO"; then :
2323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2324 /* end confdefs.h. */
2330 if (sizeof ac_aggr.$3)
2336 if ac_fn_c_try_compile
"$LINENO"; then :
2341 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2343 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2347 $as_echo "$ac_res" >&6; }
2348 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2350 } # ac_fn_c_check_member
2352 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2353 # -------------------------------------------
2354 # Tests whether TYPE exists after having included INCLUDES, setting cache
2355 # variable VAR accordingly.
2356 ac_fn_c_check_type
()
2358 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2360 $as_echo_n "checking for $2... " >&6; }
2361 if eval \
${$3+:} false
; then :
2362 $as_echo_n "(cached) " >&6
2365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2366 /* end confdefs.h. */
2377 if ac_fn_c_try_compile
"$LINENO"; then :
2378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2379 /* end confdefs.h. */
2390 if ac_fn_c_try_compile
"$LINENO"; then :
2395 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2397 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2401 $as_echo "$ac_res" >&6; }
2402 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2404 } # ac_fn_c_check_type
2406 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2407 # ---------------------------------------------
2408 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2410 ac_fn_c_check_decl
()
2412 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2413 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2414 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2416 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2417 if eval \
${$3+:} false
; then :
2418 $as_echo_n "(cached) " >&6
2420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2421 /* end confdefs.h. */
2426 #ifndef $as_decl_name
2428 (void) $as_decl_use;
2430 (void) $as_decl_name;
2438 if ac_fn_c_try_compile
"$LINENO"; then :
2443 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2447 $as_echo "$ac_res" >&6; }
2448 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2450 } # ac_fn_c_check_decl
2451 cat >config.log
<<_ACEOF
2452 This file contains any messages produced by compilers while
2453 running configure, to aid debugging if configure makes a mistake.
2455 It was created by $as_me, which was
2456 generated by GNU Autoconf 2.69. Invocation command line was
2468 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2469 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2470 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2471 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2472 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2474 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2475 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2477 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2478 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2479 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2480 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2481 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2482 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2483 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2487 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2491 test -z "$as_dir" && as_dir
=.
2492 $as_echo "PATH: $as_dir"
2508 # Keep a trace of the command line.
2509 # Strip out --no-create and --no-recursion so they do not pile up.
2510 # Strip out --silent because we don't want to record it for future runs.
2511 # Also quote any args containing shell meta-characters.
2512 # Make two passes to allow for proper duplicate-argument suppression.
2516 ac_must_keep_next
=false
2522 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2523 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2524 |
-silent |
--silent |
--silen |
--sile |
--sil)
2527 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2530 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2532 as_fn_append ac_configure_args1
" '$ac_arg'"
2533 if test $ac_must_keep_next = true
; then
2534 ac_must_keep_next
=false
# Got value, back to normal.
2537 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2538 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2539 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2540 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2541 case "$ac_configure_args0 " in
2542 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2545 -* ) ac_must_keep_next
=true
;;
2548 as_fn_append ac_configure_args
" '$ac_arg'"
2553 { ac_configure_args0
=; unset ac_configure_args0
;}
2554 { ac_configure_args1
=; unset ac_configure_args1
;}
2556 # When interrupted or exit'd, cleanup temporary files, and complete
2557 # config.log. We remove comments because anyway the quotes in there
2558 # would cause problems or look ugly.
2559 # WARNING: Use '\'' to represent an apostrophe within the trap.
2560 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2561 trap 'exit_status=$?
2562 # Save into config.log some information that might help in debugging.
2566 $as_echo "## ---------------- ##
2567 ## Cache variables. ##
2568 ## ---------------- ##"
2570 # The following way of writing the cache mishandles newlines in values,
2572 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2573 eval ac_val=\$$ac_var
2577 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2578 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2581 _ | IFS | as_nl) ;; #(
2582 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2583 *) { eval $ac_var=; unset $ac_var;} ;;
2588 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2589 *${as_nl}ac_space=\ *)
2591 "s/'\''/'\''\\\\'\'''\''/g;
2592 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2595 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2602 $as_echo "## ----------------- ##
2603 ## Output variables. ##
2604 ## ----------------- ##"
2606 for ac_var in $ac_subst_vars
2608 eval ac_val=\$$ac_var
2610 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2612 $as_echo "$ac_var='\''$ac_val'\''"
2616 if test -n "$ac_subst_files"; then
2617 $as_echo "## ------------------- ##
2618 ## File substitutions. ##
2619 ## ------------------- ##"
2621 for ac_var
in $ac_subst_files
2623 eval ac_val
=\$
$ac_var
2625 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2627 $as_echo "$ac_var='\''$ac_val'\''"
2632 if test -s confdefs.h; then
2633 $as_echo "## ----------- ##
2640 test "$ac_signal" != 0 &&
2641 $as_echo "$as_me: caught signal $ac_signal"
2642 $as_echo "$as_me: exit $exit_status"
2644 rm -f core *.core core.conftest.* &&
2645 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2648 for ac_signal
in 1 2 13 15; do
2649 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2653 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2654 rm -f -r conftest
* confdefs.h
2656 $as_echo "/* confdefs.h */" > confdefs.h
2658 # Predefined preprocessor variables.
2660 cat >>confdefs.h
<<_ACEOF
2661 #define PACKAGE_NAME "$PACKAGE_NAME"
2664 cat >>confdefs.h
<<_ACEOF
2665 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2668 cat >>confdefs.h
<<_ACEOF
2669 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2672 cat >>confdefs.h
<<_ACEOF
2673 #define PACKAGE_STRING "$PACKAGE_STRING"
2676 cat >>confdefs.h
<<_ACEOF
2677 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2680 cat >>confdefs.h
<<_ACEOF
2681 #define PACKAGE_URL "$PACKAGE_URL"
2685 # Let the site file select an alternate cache file if it wants to.
2686 # Prefer an explicitly selected file to automatically selected ones.
2689 if test -n "$CONFIG_SITE"; then
2690 # We do not want a PATH search for config.site.
2691 case $CONFIG_SITE in #((
2692 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2693 */*) ac_site_file1
=$CONFIG_SITE;;
2694 *) ac_site_file1
=.
/$CONFIG_SITE;;
2696 elif test "x$prefix" != xNONE
; then
2697 ac_site_file1
=$prefix/share
/config.site
2698 ac_site_file2
=$prefix/etc
/config.site
2700 ac_site_file1
=$ac_default_prefix/share
/config.site
2701 ac_site_file2
=$ac_default_prefix/etc
/config.site
2703 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2705 test "x$ac_site_file" = xNONE
&& continue
2706 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2708 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2709 sed 's/^/| /' "$ac_site_file" >&5
2711 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2712 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2713 as_fn_error $?
"failed to load site script $ac_site_file
2714 See \`config.log' for more details" "$LINENO" 5; }
2718 if test -r "$cache_file"; then
2719 # Some versions of bash will fail to source /dev/null (special files
2720 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2721 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2723 $as_echo "$as_me: loading cache $cache_file" >&6;}
2725 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2726 *) .
"./$cache_file";;
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2731 $as_echo "$as_me: creating cache $cache_file" >&6;}
2735 as_fn_append ac_header_list
" stdlib.h"
2736 as_fn_append ac_header_list
" unistd.h"
2737 as_fn_append ac_header_list
" sys/param.h"
2738 # Check that the precious variables saved in the cache have kept the same
2740 ac_cache_corrupted
=false
2741 for ac_var
in $ac_precious_vars; do
2742 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2743 eval ac_new_set
=\
$ac_env_${ac_var}_set
2744 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2745 eval ac_new_val
=\
$ac_env_${ac_var}_value
2746 case $ac_old_set,$ac_new_set in
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2749 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2750 ac_cache_corrupted
=: ;;
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2753 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2754 ac_cache_corrupted
=: ;;
2757 if test "x$ac_old_val" != "x$ac_new_val"; then
2758 # differences in whitespace do not lead to failure.
2759 ac_old_val_w
=`echo x $ac_old_val`
2760 ac_new_val_w
=`echo x $ac_new_val`
2761 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2763 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2764 ac_cache_corrupted
=:
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2767 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2768 eval $ac_var=\
$ac_old_val
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2771 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2773 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2776 # Pass precious variables to config.status.
2777 if test "$ac_new_set" = set; then
2779 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2780 *) ac_arg
=$ac_var=$ac_new_val ;;
2782 case " $ac_configure_args " in
2783 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2784 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2788 if $ac_cache_corrupted; then
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2790 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2792 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2793 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2795 ## -------------------- ##
2796 ## Main body of script. ##
2797 ## -------------------- ##
2800 ac_cpp
='$CPP $CPPFLAGS'
2801 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2802 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2803 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2809 ac_config_headers
="$ac_config_headers config.h:config.in"
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2813 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2814 # Check whether --enable-maintainer-mode was given.
2815 if test "${enable_maintainer_mode+set}" = set; then :
2816 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2818 USE_MAINTAINER_MODE
=no
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2822 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2823 if test $USE_MAINTAINER_MODE = yes; then
2824 MAINTAINER_MODE_TRUE
=
2825 MAINTAINER_MODE_FALSE
='#'
2827 MAINTAINER_MODE_TRUE
='#'
2828 MAINTAINER_MODE_FALSE
=
2831 MAINT
=$MAINTAINER_MODE_TRUE
2835 # Set the 'development' global.
2836 .
$srcdir/..
/bfd
/development.sh
2839 ac_cpp
='$CPP $CPPFLAGS'
2840 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2841 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2842 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2843 if test -n "$ac_tool_prefix"; then
2844 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2845 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2847 $as_echo_n "checking for $ac_word... " >&6; }
2848 if ${ac_cv_prog_CC+:} false
; then :
2849 $as_echo_n "(cached) " >&6
2851 if test -n "$CC"; then
2852 ac_cv_prog_CC
="$CC" # Let the user override the test.
2854 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2858 test -z "$as_dir" && as_dir
=.
2859 for ac_exec_ext
in '' $ac_executable_extensions; do
2860 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2861 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2872 if test -n "$CC"; then
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2874 $as_echo "$CC" >&6; }
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2877 $as_echo "no" >&6; }
2882 if test -z "$ac_cv_prog_CC"; then
2884 # Extract the first word of "gcc", so it can be a program name with args.
2885 set dummy gcc
; ac_word
=$2
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2887 $as_echo_n "checking for $ac_word... " >&6; }
2888 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2889 $as_echo_n "(cached) " >&6
2891 if test -n "$ac_ct_CC"; then
2892 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2894 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2898 test -z "$as_dir" && as_dir
=.
2899 for ac_exec_ext
in '' $ac_executable_extensions; do
2900 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2901 ac_cv_prog_ac_ct_CC
="gcc"
2902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2912 if test -n "$ac_ct_CC"; then
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2914 $as_echo "$ac_ct_CC" >&6; }
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2917 $as_echo "no" >&6; }
2920 if test "x$ac_ct_CC" = x
; then
2923 case $cross_compiling:$ac_tool_warned in
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2927 ac_tool_warned
=yes ;;
2935 if test -z "$CC"; then
2936 if test -n "$ac_tool_prefix"; then
2937 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2938 set dummy
${ac_tool_prefix}cc
; 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_CC+:} false
; then :
2942 $as_echo_n "(cached) " >&6
2944 if test -n "$CC"; then
2945 ac_cv_prog_CC
="$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_CC
="${ac_tool_prefix}cc"
2955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2965 if test -n "$CC"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2967 $as_echo "$CC" >&6; }
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2976 if test -z "$CC"; then
2977 # Extract the first word of "cc", so it can be a program name with args.
2978 set dummy cc
; ac_word
=$2
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2980 $as_echo_n "checking for $ac_word... " >&6; }
2981 if ${ac_cv_prog_CC+:} false
; then :
2982 $as_echo_n "(cached) " >&6
2984 if test -n "$CC"; then
2985 ac_cv_prog_CC
="$CC" # Let the user override the test.
2988 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2992 test -z "$as_dir" && as_dir
=.
2993 for ac_exec_ext
in '' $ac_executable_extensions; do
2994 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2995 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2996 ac_prog_rejected
=yes
3000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3007 if test $ac_prog_rejected = yes; then
3008 # We found a bogon in the path, so make sure we never use it.
3009 set dummy
$ac_cv_prog_CC
3011 if test $# != 0; then
3012 # We chose a different compiler from the bogus one.
3013 # However, it has the same basename, so the bogon will be chosen
3014 # first if we set CC to just the basename; use the full file name.
3016 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3022 if test -n "$CC"; then
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3024 $as_echo "$CC" >&6; }
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027 $as_echo "no" >&6; }
3032 if test -z "$CC"; then
3033 if test -n "$ac_tool_prefix"; then
3034 for ac_prog
in cl.exe
3036 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3037 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039 $as_echo_n "checking for $ac_word... " >&6; }
3040 if ${ac_cv_prog_CC+:} false
; then :
3041 $as_echo_n "(cached) " >&6
3043 if test -n "$CC"; then
3044 ac_cv_prog_CC
="$CC" # Let the user override the test.
3046 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3050 test -z "$as_dir" && as_dir
=.
3051 for ac_exec_ext
in '' $ac_executable_extensions; do
3052 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3053 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3064 if test -n "$CC"; then
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3066 $as_echo "$CC" >&6; }
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069 $as_echo "no" >&6; }
3073 test -n "$CC" && break
3076 if test -z "$CC"; then
3078 for ac_prog
in cl.exe
3080 # Extract the first word of "$ac_prog", so it can be a program name with args.
3081 set dummy
$ac_prog; ac_word
=$2
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3083 $as_echo_n "checking for $ac_word... " >&6; }
3084 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3085 $as_echo_n "(cached) " >&6
3087 if test -n "$ac_ct_CC"; then
3088 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3090 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3094 test -z "$as_dir" && as_dir
=.
3095 for ac_exec_ext
in '' $ac_executable_extensions; do
3096 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3097 ac_cv_prog_ac_ct_CC
="$ac_prog"
3098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3107 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3108 if test -n "$ac_ct_CC"; then
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3110 $as_echo "$ac_ct_CC" >&6; }
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113 $as_echo "no" >&6; }
3117 test -n "$ac_ct_CC" && break
3120 if test "x$ac_ct_CC" = x
; then
3123 case $cross_compiling:$ac_tool_warned in
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3126 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3127 ac_tool_warned
=yes ;;
3136 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3138 as_fn_error $?
"no acceptable C compiler found in \$PATH
3139 See \`config.log' for more details" "$LINENO" 5; }
3141 # Provide some information about the compiler.
3142 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3145 for ac_option
in --version -v -V -qversion; do
3146 { { ac_try
="$ac_compiler $ac_option >&5"
3148 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3151 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3152 $as_echo "$ac_try_echo"; } >&5
3153 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3155 if test -s conftest.err; then
3157 ... rest of stderr output deleted ...
3158 10q' conftest.err >conftest.er1
3159 cat conftest.er1 >&5
3161 rm -f conftest.er1 conftest.err
3162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3163 test $ac_status = 0; }
3166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3167 /* end confdefs.h. */
3177 ac_clean_files_save=$ac_clean_files
3178 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3179 # Try to create an executable without -o first, disregard a.out.
3180 # It will help us diagnose broken compilers, and finding out an intuition
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3183 $as_echo_n "checking whether the C compiler works... " >&6; }
3184 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3186 # The possible output files:
3187 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3190 for ac_file in $ac_files
3193 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3194 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3199 if { { ac_try="$ac_link_default"
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_link_default") 2>&5
3208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3209 test $ac_status = 0; }; then :
3210 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3211 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3212 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3213 # so that the user can short-circuit this test for compilers unknown to
3215 for ac_file
in $ac_files ''
3217 test -f "$ac_file" ||
continue
3219 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3222 # We found the default executable, but exeext='' is most
3226 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3228 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3230 # We set ac_cv_exeext here because the later test for it is not
3231 # safe: cross compilers may not add the suffix if given an `-o'
3232 # argument, so we may need to know it at that point already.
3233 # Even if this section looks crufty: it has the advantage of
3240 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3245 if test -z "$ac_file"; then :
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3247 $as_echo "no" >&6; }
3248 $as_echo "$as_me: failed program was:" >&5
3249 sed 's/^/| /' conftest.
$ac_ext >&5
3251 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3253 as_fn_error
77 "C compiler cannot create executables
3254 See \`config.log' for more details" "$LINENO" 5; }
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3257 $as_echo "yes" >&6; }
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3260 $as_echo_n "checking for C compiler default output file name... " >&6; }
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3262 $as_echo "$ac_file" >&6; }
3263 ac_exeext
=$ac_cv_exeext
3265 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3266 ac_clean_files
=$ac_clean_files_save
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3268 $as_echo_n "checking for suffix of executables... " >&6; }
3269 if { { ac_try
="$ac_link"
3271 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3275 $as_echo "$ac_try_echo"; } >&5
3276 (eval "$ac_link") 2>&5
3278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3279 test $ac_status = 0; }; then :
3280 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3281 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3282 # work properly (i.e., refer to `conftest.exe'), while it won't with
3284 for ac_file
in conftest.exe conftest conftest.
*; do
3285 test -f "$ac_file" ||
continue
3287 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3288 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3294 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3296 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3297 See \`config.log' for more details" "$LINENO" 5; }
3299 rm -f conftest conftest
$ac_cv_exeext
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3301 $as_echo "$ac_cv_exeext" >&6; }
3303 rm -f conftest.
$ac_ext
3304 EXEEXT
=$ac_cv_exeext
3306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3307 /* end confdefs.h. */
3312 FILE *f = fopen ("conftest.out", "w");
3313 return ferror (f) || fclose (f) != 0;
3319 ac_clean_files
="$ac_clean_files conftest.out"
3320 # Check that the compiler produces executables we can run. If not, either
3321 # the compiler is broken, or we cross compile.
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3323 $as_echo_n "checking whether we are cross compiling... " >&6; }
3324 if test "$cross_compiling" != yes; then
3325 { { ac_try
="$ac_link"
3327 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3331 $as_echo "$ac_try_echo"; } >&5
3332 (eval "$ac_link") 2>&5
3334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3335 test $ac_status = 0; }
3336 if { ac_try='./conftest$ac_cv_exeext'
3337 { { case "(($ac_try" in
3338 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3339 *) ac_try_echo
=$ac_try;;
3341 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3342 $as_echo "$ac_try_echo"; } >&5
3343 (eval "$ac_try") 2>&5
3345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3346 test $ac_status = 0; }; }; then
3349 if test "$cross_compiling" = maybe
; then
3352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3354 as_fn_error $?
"cannot run C compiled programs.
3355 If you meant to cross compile, use \`--host'.
3356 See \`config.log' for more details" "$LINENO" 5; }
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3361 $as_echo "$cross_compiling" >&6; }
3363 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3364 ac_clean_files
=$ac_clean_files_save
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3366 $as_echo_n "checking for suffix of object files... " >&6; }
3367 if ${ac_cv_objext+:} false
; then :
3368 $as_echo_n "(cached) " >&6
3370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3371 /* end confdefs.h. */
3381 rm -f conftest.o conftest.obj
3382 if { { ac_try
="$ac_compile"
3384 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3388 $as_echo "$ac_try_echo"; } >&5
3389 (eval "$ac_compile") 2>&5
3391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3392 test $ac_status = 0; }; then :
3393 for ac_file in conftest.o conftest.obj conftest.*; do
3394 test -f "$ac_file" || continue;
3396 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3397 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3402 $as_echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
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 compute suffix of object files
: cannot compile
3408 See \
`config.log' for more details" "$LINENO" 5; }
3410 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3413 $as_echo "$ac_cv_objext" >&6; }
3414 OBJEXT=$ac_cv_objext
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3417 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3418 if ${ac_cv_c_compiler_gnu+:} false; then :
3419 $as_echo_n "(cached) " >&6
3421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3422 /* end confdefs.h. */
3435 if ac_fn_c_try_compile "$LINENO"; then :
3440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3441 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3445 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3446 if test $ac_compiler_gnu = yes; then
3451 ac_test_CFLAGS=${CFLAGS+set}
3452 ac_save_CFLAGS=$CFLAGS
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3454 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3455 if ${ac_cv_prog_cc_g+:} false; then :
3456 $as_echo_n "(cached) " >&6
3458 ac_save_c_werror_flag=$ac_c_werror_flag
3459 ac_c_werror_flag=yes
3462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463 /* end confdefs.h. */
3473 if ac_fn_c_try_compile "$LINENO"; then :
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h. */
3488 if ac_fn_c_try_compile "$LINENO"; then :
3491 ac_c_werror_flag=$ac_save_c_werror_flag
3493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494 /* end confdefs.h. */
3504 if ac_fn_c_try_compile "$LINENO"; then :
3507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3512 ac_c_werror_flag=$ac_save_c_werror_flag
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3515 $as_echo "$ac_cv_prog_cc_g" >&6; }
3516 if test "$ac_test_CFLAGS" = set; then
3517 CFLAGS=$ac_save_CFLAGS
3518 elif test $ac_cv_prog_cc_g = yes; then
3519 if test "$GCC" = yes; then
3525 if test "$GCC" = yes; then
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3532 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3533 if ${ac_cv_prog_cc_c89+:} false; then :
3534 $as_echo_n "(cached) " >&6
3536 ac_cv_prog_cc_c89=no
3538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539 /* end confdefs.h. */
3543 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3544 struct buf { int x; };
3545 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3546 static char *e (p, i)
3552 static char *f (char * (*g) (char **, int), char **p, ...)
3557 s = g (p, va_arg (v,int));
3562 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3563 function prototypes and stuff, but not '\xHH' hex character constants.
3564 These don't provoke an error unfortunately, instead are silently treated
3565 as 'x'. The following induces an error, until -std is added to get
3566 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3567 array size at least. It's necessary to write '\x00'==0 to get something
3568 that's true only with -std. */
3569 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3571 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3572 inside strings and character constants. */
3574 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3576 int test (int i, double x);
3577 struct s1 {int (*f) (int a);};
3578 struct s2 {int (*f) (double a);};
3579 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3585 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3590 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3591 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3593 CC="$ac_save_CC $ac_arg"
3594 if ac_fn_c_try_compile "$LINENO"; then :
3595 ac_cv_prog_cc_c89=$ac_arg
3597 rm -f core conftest.err conftest.$ac_objext
3598 test "x$ac_cv_prog_cc_c89" != "xno" && break
3600 rm -f conftest.$ac_ext
3605 case "x$ac_cv_prog_cc_c89" in
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3608 $as_echo "none needed" >&6; } ;;
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3611 $as_echo "unsupported" >&6; } ;;
3613 CC="$CC $ac_cv_prog_cc_c89"
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3615 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3617 if test "x$ac_cv_prog_cc_c89" != xno; then :
3622 ac_cpp='$CPP $CPPFLAGS'
3623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3628 ac_cpp='$CXXCPP $CPPFLAGS'
3629 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3632 if test -z "$CXX"; then
3633 if test -n "$CCC"; then
3636 if test -n "$ac_tool_prefix"; then
3637 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3639 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3640 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3642 $as_echo_n "checking for $ac_word... " >&6; }
3643 if ${ac_cv_prog_CXX+:} false; then :
3644 $as_echo_n "(cached) " >&6
3646 if test -n "$CXX"; then
3647 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653 test -z "$as_dir" && as_dir=.
3654 for ac_exec_ext in '' $ac_executable_extensions; do
3655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3656 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3667 if test -n "$CXX"; then
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3669 $as_echo "$CXX" >&6; }
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3672 $as_echo "no" >&6; }
3676 test -n "$CXX" && break
3679 if test -z "$CXX"; then
3681 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3683 # Extract the first word of "$ac_prog", so it can be a program name with args.
3684 set dummy $ac_prog; ac_word=$2
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3686 $as_echo_n "checking for $ac_word... " >&6; }
3687 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3688 $as_echo_n "(cached) " >&6
3690 if test -n "$ac_ct_CXX"; then
3691 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697 test -z "$as_dir" && as_dir=.
3698 for ac_exec_ext in '' $ac_executable_extensions; do
3699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3700 ac_cv_prog_ac_ct_CXX="$ac_prog"
3701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3710 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3711 if test -n "$ac_ct_CXX"; then
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3713 $as_echo "$ac_ct_CXX" >&6; }
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3716 $as_echo "no" >&6; }
3720 test -n "$ac_ct_CXX" && break
3723 if test "x$ac_ct_CXX" = x; then
3726 case $cross_compiling:$ac_tool_warned in
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3730 ac_tool_warned=yes ;;
3738 # Provide some information about the compiler.
3739 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3742 for ac_option in --version -v -V -qversion; do
3743 { { ac_try="$ac_compiler $ac_option >&5"
3745 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3746 *) ac_try_echo
=$ac_try;;
3748 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3749 $as_echo "$ac_try_echo"; } >&5
3750 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3752 if test -s conftest.err
; then
3754 ... rest of stderr output deleted ...
3755 10q' conftest.err
>conftest.er1
3756 cat conftest.er1
>&5
3758 rm -f conftest.er1 conftest.err
3759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3760 test $ac_status = 0; }
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3764 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3765 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3766 $as_echo_n "(cached) " >&6
3768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3769 /* end confdefs.h. */
3782 if ac_fn_cxx_try_compile
"$LINENO"; then :
3787 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3788 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3792 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3793 if test $ac_compiler_gnu = yes; then
3798 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3799 ac_save_CXXFLAGS
=$CXXFLAGS
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3801 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3802 if ${ac_cv_prog_cxx_g+:} false
; then :
3803 $as_echo_n "(cached) " >&6
3805 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3806 ac_cxx_werror_flag
=yes
3809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3810 /* end confdefs.h. */
3820 if ac_fn_cxx_try_compile
"$LINENO"; then :
3821 ac_cv_prog_cxx_g
=yes
3824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3825 /* end confdefs.h. */
3835 if ac_fn_cxx_try_compile
"$LINENO"; then :
3838 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3851 if ac_fn_cxx_try_compile
"$LINENO"; then :
3852 ac_cv_prog_cxx_g
=yes
3854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3856 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3858 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3859 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3862 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3863 if test "$ac_test_CXXFLAGS" = set; then
3864 CXXFLAGS
=$ac_save_CXXFLAGS
3865 elif test $ac_cv_prog_cxx_g = yes; then
3866 if test "$GXX" = yes; then
3872 if test "$GXX" = yes; then
3879 ac_cpp
='$CPP $CPPFLAGS'
3880 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3881 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3882 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3887 ac_cpp
='$CPP $CPPFLAGS'
3888 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3889 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3890 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3892 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3893 # On Suns, sometimes $CPP names a directory.
3894 if test -n "$CPP" && test -d "$CPP"; then
3897 if test -z "$CPP"; then
3898 if ${ac_cv_prog_CPP+:} false
; then :
3899 $as_echo_n "(cached) " >&6
3901 # Double quotes because CPP needs to be expanded
3902 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3905 for ac_c_preproc_warn_flag
in '' yes
3907 # Use a header file that comes with gcc, so configuring glibc
3908 # with a fresh cross-compiler works.
3909 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3910 # <limits.h> exists even on freestanding compilers.
3911 # On the NeXT, cc -E runs the code through the compiler's parser,
3912 # not just through cpp. "Syntax error" is here to catch this case.
3913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3914 /* end confdefs.h. */
3916 # include <limits.h>
3918 # include <assert.h>
3922 if ac_fn_c_try_cpp
"$LINENO"; then :
3925 # Broken: fails on valid input.
3928 rm -f conftest.err conftest.i conftest.
$ac_ext
3930 # OK, works on sane cases. Now check whether nonexistent headers
3931 # can be detected and how.
3932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h. */
3934 #include <ac_nonexistent.h>
3936 if ac_fn_c_try_cpp
"$LINENO"; then :
3937 # Broken: success on invalid input.
3940 # Passes both tests.
3944 rm -f conftest.err conftest.i conftest.
$ac_ext
3947 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3948 rm -f conftest.i conftest.err conftest.
$ac_ext
3949 if $ac_preproc_ok; then :
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3962 $as_echo "$CPP" >&6; }
3964 for ac_c_preproc_warn_flag
in '' yes
3966 # Use a header file that comes with gcc, so configuring glibc
3967 # with a fresh cross-compiler works.
3968 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3969 # <limits.h> exists even on freestanding compilers.
3970 # On the NeXT, cc -E runs the code through the compiler's parser,
3971 # not just through cpp. "Syntax error" is here to catch this case.
3972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h. */
3975 # include <limits.h>
3977 # include <assert.h>
3981 if ac_fn_c_try_cpp
"$LINENO"; then :
3984 # Broken: fails on valid input.
3987 rm -f conftest.err conftest.i conftest.
$ac_ext
3989 # OK, works on sane cases. Now check whether nonexistent headers
3990 # can be detected and how.
3991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3992 /* end confdefs.h. */
3993 #include <ac_nonexistent.h>
3995 if ac_fn_c_try_cpp
"$LINENO"; then :
3996 # Broken: success on invalid input.
3999 # Passes both tests.
4003 rm -f conftest.err conftest.i conftest.
$ac_ext
4006 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4007 rm -f conftest.i conftest.err conftest.
$ac_ext
4008 if $ac_preproc_ok; then :
4011 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4013 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4014 See \`config.log' for more details" "$LINENO" 5; }
4018 ac_cpp
='$CPP $CPPFLAGS'
4019 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4020 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4021 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4025 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4026 if ${ac_cv_path_GREP+:} false
; then :
4027 $as_echo_n "(cached) " >&6
4029 if test -z "$GREP"; then
4030 ac_path_GREP_found
=false
4031 # Loop through the user's path and test for each of PROGNAME-LIST
4032 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4033 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4036 test -z "$as_dir" && as_dir
=.
4037 for ac_prog
in grep ggrep
; do
4038 for ac_exec_ext
in '' $ac_executable_extensions; do
4039 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4040 as_fn_executable_p
"$ac_path_GREP" ||
continue
4041 # Check for GNU ac_path_GREP and select it if it is found.
4042 # Check for GNU $ac_path_GREP
4043 case `"$ac_path_GREP" --version 2>&1` in
4045 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4048 $as_echo_n 0123456789 >"conftest.in"
4051 cat "conftest.in" "conftest.in" >"conftest.tmp"
4052 mv "conftest.tmp" "conftest.in"
4053 cp "conftest.in" "conftest.nl"
4054 $as_echo 'GREP' >> "conftest.nl"
4055 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4056 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4057 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4058 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4059 # Best one so far, save it but keep looking for a better one
4060 ac_cv_path_GREP
="$ac_path_GREP"
4061 ac_path_GREP_max
=$ac_count
4063 # 10*(2^10) chars as input seems more than enough
4064 test $ac_count -gt 10 && break
4066 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4069 $ac_path_GREP_found && break 3
4074 if test -z "$ac_cv_path_GREP"; then
4075 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4078 ac_cv_path_GREP
=$GREP
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4083 $as_echo "$ac_cv_path_GREP" >&6; }
4084 GREP
="$ac_cv_path_GREP"
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4088 $as_echo_n "checking for egrep... " >&6; }
4089 if ${ac_cv_path_EGREP+:} false
; then :
4090 $as_echo_n "(cached) " >&6
4092 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4093 then ac_cv_path_EGREP
="$GREP -E"
4095 if test -z "$EGREP"; then
4096 ac_path_EGREP_found
=false
4097 # Loop through the user's path and test for each of PROGNAME-LIST
4098 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4099 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4102 test -z "$as_dir" && as_dir
=.
4103 for ac_prog
in egrep; do
4104 for ac_exec_ext
in '' $ac_executable_extensions; do
4105 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4106 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4107 # Check for GNU ac_path_EGREP and select it if it is found.
4108 # Check for GNU $ac_path_EGREP
4109 case `"$ac_path_EGREP" --version 2>&1` in
4111 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4114 $as_echo_n 0123456789 >"conftest.in"
4117 cat "conftest.in" "conftest.in" >"conftest.tmp"
4118 mv "conftest.tmp" "conftest.in"
4119 cp "conftest.in" "conftest.nl"
4120 $as_echo 'EGREP' >> "conftest.nl"
4121 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4122 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4123 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4124 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4125 # Best one so far, save it but keep looking for a better one
4126 ac_cv_path_EGREP
="$ac_path_EGREP"
4127 ac_path_EGREP_max
=$ac_count
4129 # 10*(2^10) chars as input seems more than enough
4130 test $ac_count -gt 10 && break
4132 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4135 $ac_path_EGREP_found && break 3
4140 if test -z "$ac_cv_path_EGREP"; then
4141 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4144 ac_cv_path_EGREP
=$EGREP
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4150 $as_echo "$ac_cv_path_EGREP" >&6; }
4151 EGREP
="$ac_cv_path_EGREP"
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4155 $as_echo_n "checking for ANSI C header files... " >&6; }
4156 if ${ac_cv_header_stdc+:} false
; then :
4157 $as_echo_n "(cached) " >&6
4159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4174 if ac_fn_c_try_compile
"$LINENO"; then :
4175 ac_cv_header_stdc
=yes
4177 ac_cv_header_stdc
=no
4179 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4181 if test $ac_cv_header_stdc = yes; then
4182 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4184 /* end confdefs.h. */
4188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4189 $EGREP "memchr" >/dev
/null
2>&1; then :
4192 ac_cv_header_stdc
=no
4198 if test $ac_cv_header_stdc = yes; then
4199 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h. */
4205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4206 $EGREP "free" >/dev
/null
2>&1; then :
4209 ac_cv_header_stdc
=no
4215 if test $ac_cv_header_stdc = yes; then
4216 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4217 if test "$cross_compiling" = yes; then :
4220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h. */
4224 #if ((' ' & 0x0FF) == 0x020)
4225 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4226 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4228 # define ISLOWER(c) \
4229 (('a' <= (c) && (c) <= 'i') \
4230 || ('j' <= (c) && (c) <= 'r') \
4231 || ('s' <= (c) && (c) <= 'z'))
4232 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4235 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4240 for (i = 0; i < 256; i++)
4241 if (XOR (islower (i), ISLOWER (i))
4242 || toupper (i) != TOUPPER (i))
4247 if ac_fn_c_try_run
"$LINENO"; then :
4250 ac_cv_header_stdc
=no
4252 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4253 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4259 $as_echo "$ac_cv_header_stdc" >&6; }
4260 if test $ac_cv_header_stdc = yes; then
4262 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4266 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4267 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4268 inttypes.h stdint.h unistd.h
4270 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4271 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4273 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4274 cat >>confdefs.h
<<_ACEOF
4275 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4284 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4285 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4292 if test "$MINIX" = yes; then
4294 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4297 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4300 $as_echo "#define _MINIX 1" >>confdefs.h
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4306 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4307 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4308 $as_echo_n "(cached) " >&6
4310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4311 /* end confdefs.h. */
4313 # define __EXTENSIONS__ 1
4314 $ac_includes_default
4323 if ac_fn_c_try_compile
"$LINENO"; then :
4324 ac_cv_safe_to_define___extensions__
=yes
4326 ac_cv_safe_to_define___extensions__
=no
4328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4331 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4332 test $ac_cv_safe_to_define___extensions__ = yes &&
4333 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4335 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4337 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4339 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4341 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4345 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4346 if test -f "$ac_dir/install-sh"; then
4348 ac_install_sh
="$ac_aux_dir/install-sh -c"
4350 elif test -f "$ac_dir/install.sh"; then
4352 ac_install_sh
="$ac_aux_dir/install.sh -c"
4354 elif test -f "$ac_dir/shtool"; then
4356 ac_install_sh
="$ac_aux_dir/shtool install -c"
4360 if test -z "$ac_aux_dir"; then
4361 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4364 # These three variables are undocumented and unsupported,
4365 # and are intended to be withdrawn in a future Autoconf release.
4366 # They can cause serious problems if a builder's source tree is in a directory
4367 # whose full name contains unusual characters.
4368 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4369 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4370 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4373 # Make sure we can run config.sub.
4374 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4375 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4378 $as_echo_n "checking build system type... " >&6; }
4379 if ${ac_cv_build+:} false
; then :
4380 $as_echo_n "(cached) " >&6
4382 ac_build_alias
=$build_alias
4383 test "x$ac_build_alias" = x
&&
4384 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4385 test "x$ac_build_alias" = x
&&
4386 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4387 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4388 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4392 $as_echo "$ac_cv_build" >&6; }
4393 case $ac_cv_build in
4395 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4398 ac_save_IFS
=$IFS; IFS
='-'
4404 # Remember, the first character of IFS is used to create $*,
4405 # except with old shells:
4408 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4412 $as_echo_n "checking host system type... " >&6; }
4413 if ${ac_cv_host+:} false
; then :
4414 $as_echo_n "(cached) " >&6
4416 if test "x$host_alias" = x
; then
4417 ac_cv_host
=$ac_cv_build
4419 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4420 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4425 $as_echo "$ac_cv_host" >&6; }
4428 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4431 ac_save_IFS
=$IFS; IFS
='-'
4437 # Remember, the first character of IFS is used to create $*,
4438 # except with old shells:
4441 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4445 $as_echo_n "checking target system type... " >&6; }
4446 if ${ac_cv_target+:} false
; then :
4447 $as_echo_n "(cached) " >&6
4449 if test "x$target_alias" = x
; then
4450 ac_cv_target
=$ac_cv_host
4452 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4453 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4458 $as_echo "$ac_cv_target" >&6; }
4459 case $ac_cv_target in
4461 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4463 target
=$ac_cv_target
4464 ac_save_IFS
=$IFS; IFS
='-'
4470 # Remember, the first character of IFS is used to create $*,
4471 # except with old shells:
4474 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4477 # The aliases save the names the user supplied, while $host etc.
4478 # will get canonicalized.
4479 test -n "$target_alias" &&
4480 test "$program_prefix$program_suffix$program_transform_name" = \
4482 program_prefix
=${target_alias}-
4484 # The tests for host and target for $enable_largefile require
4489 # As the $enable_largefile decision depends on --enable-plugins we must set it
4490 # even in directories otherwise not depending on the $plugins option.
4494 for ac_header
in dlfcn.h
4496 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4498 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
4499 cat >>confdefs.h
<<_ACEOF
4500 #define HAVE_DLFCN_H 1
4507 for ac_header
in windows.h
4509 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4511 if test "x$ac_cv_header_windows_h" = xyes
; then :
4512 cat >>confdefs.h
<<_ACEOF
4513 #define HAVE_WINDOWS_H 1
4521 # Check whether --enable-plugins was given.
4522 if test "${enable_plugins+set}" = set; then :
4523 enableval
=$enable_plugins; case "${enableval}" in
4526 if test "$maybe_plugins" != "yes" ; then
4527 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4531 plugins
=$maybe_plugins
4535 if test "$plugins" = "yes"; then
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4537 $as_echo_n "checking for library containing dlsym... " >&6; }
4538 if ${ac_cv_search_dlsym+:} false
; then :
4539 $as_echo_n "(cached) " >&6
4541 ac_func_search_save_LIBS
=$LIBS
4542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4543 /* end confdefs.h. */
4545 /* Override any GCC internal prototype to avoid an error.
4546 Use char because int might match the return type of a GCC
4547 builtin and then its argument prototype would still apply. */
4560 for ac_lib
in '' dl
; do
4561 if test -z "$ac_lib"; then
4562 ac_res
="none required"
4565 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4567 if ac_fn_c_try_link
"$LINENO"; then :
4568 ac_cv_search_dlsym
=$ac_res
4570 rm -f core conftest.err conftest.
$ac_objext \
4572 if ${ac_cv_search_dlsym+:} false
; then :
4576 if ${ac_cv_search_dlsym+:} false
; then :
4579 ac_cv_search_dlsym
=no
4582 LIBS
=$ac_func_search_save_LIBS
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4585 $as_echo "$ac_cv_search_dlsym" >&6; }
4586 ac_res
=$ac_cv_search_dlsym
4587 if test "$ac_res" != no
; then :
4588 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4596 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4597 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4598 # are mutually exclusive; and without procfs support, the bfd/ elf module
4599 # cannot provide certain routines such as elfcore_write_prpsinfo
4600 # or elfcore_write_prstatus. So unless the user explicitly requested
4601 # large-file support through the --enable-largefile switch, disable
4602 # large-file support in favor of procfs support.
4603 test "${target}" = "${host}" -a "x$plugins" = xno \
4604 && : ${enable_largefile="no"}
4608 # Check whether --enable-largefile was given.
4609 if test "${enable_largefile+set}" = set; then :
4610 enableval
=$enable_largefile;
4613 if test "$enable_largefile" != no
; then
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4616 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4617 if ${ac_cv_sys_largefile_CC+:} false
; then :
4618 $as_echo_n "(cached) " >&6
4620 ac_cv_sys_largefile_CC
=no
4621 if test "$GCC" != yes; then
4624 # IRIX 6.2 and later do not support large files by default,
4625 # so use the C compiler's -n32 option if that helps.
4626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4627 /* end confdefs.h. */
4628 #include <sys/types.h>
4629 /* Check that off_t can represent 2**63 - 1 correctly.
4630 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4631 since some C++ compilers masquerading as C compilers
4632 incorrectly reject 9223372036854775807. */
4633 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4634 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4635 && LARGE_OFF_T % 2147483647 == 1)
4645 if ac_fn_c_try_compile
"$LINENO"; then :
4648 rm -f core conftest.err conftest.
$ac_objext
4650 if ac_fn_c_try_compile
"$LINENO"; then :
4651 ac_cv_sys_largefile_CC
=' -n32'; break
4653 rm -f core conftest.err conftest.
$ac_objext
4657 rm -f conftest.
$ac_ext
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4661 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4662 if test "$ac_cv_sys_largefile_CC" != no
; then
4663 CC
=$CC$ac_cv_sys_largefile_CC
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4667 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4668 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4669 $as_echo_n "(cached) " >&6
4672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4673 /* end confdefs.h. */
4674 #include <sys/types.h>
4675 /* Check that off_t can represent 2**63 - 1 correctly.
4676 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4677 since some C++ compilers masquerading as C compilers
4678 incorrectly reject 9223372036854775807. */
4679 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4680 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4681 && LARGE_OFF_T % 2147483647 == 1)
4691 if ac_fn_c_try_compile
"$LINENO"; then :
4692 ac_cv_sys_file_offset_bits
=no
; break
4694 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4697 #define _FILE_OFFSET_BITS 64
4698 #include <sys/types.h>
4699 /* Check that off_t can represent 2**63 - 1 correctly.
4700 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4701 since some C++ compilers masquerading as C compilers
4702 incorrectly reject 9223372036854775807. */
4703 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4704 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4705 && LARGE_OFF_T % 2147483647 == 1)
4715 if ac_fn_c_try_compile
"$LINENO"; then :
4716 ac_cv_sys_file_offset_bits
=64; break
4718 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4719 ac_cv_sys_file_offset_bits
=unknown
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4724 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4725 case $ac_cv_sys_file_offset_bits in #(
4728 cat >>confdefs.h
<<_ACEOF
4729 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4734 if test $ac_cv_sys_file_offset_bits = unknown
; then
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4736 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4737 if ${ac_cv_sys_large_files+:} false
; then :
4738 $as_echo_n "(cached) " >&6
4741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4742 /* end confdefs.h. */
4743 #include <sys/types.h>
4744 /* Check that off_t can represent 2**63 - 1 correctly.
4745 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4746 since some C++ compilers masquerading as C compilers
4747 incorrectly reject 9223372036854775807. */
4748 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4749 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4750 && LARGE_OFF_T % 2147483647 == 1)
4760 if ac_fn_c_try_compile
"$LINENO"; then :
4761 ac_cv_sys_large_files
=no
; break
4763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4765 /* end confdefs.h. */
4766 #define _LARGE_FILES 1
4767 #include <sys/types.h>
4768 /* Check that off_t can represent 2**63 - 1 correctly.
4769 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4770 since some C++ compilers masquerading as C compilers
4771 incorrectly reject 9223372036854775807. */
4772 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4773 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4774 && LARGE_OFF_T % 2147483647 == 1)
4784 if ac_fn_c_try_compile
"$LINENO"; then :
4785 ac_cv_sys_large_files
=1; break
4787 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4788 ac_cv_sys_large_files
=unknown
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4793 $as_echo "$ac_cv_sys_large_files" >&6; }
4794 case $ac_cv_sys_large_files in #(
4797 cat >>confdefs.h
<<_ACEOF
4798 #define _LARGE_FILES $ac_cv_sys_large_files
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4813 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4814 if ${am_cv_prog_cc_stdc+:} false
; then :
4815 $as_echo_n "(cached) " >&6
4817 am_cv_prog_cc_stdc
=no
4819 # Don't try gcc -ansi; that turns off useful extensions and
4820 # breaks some systems' header files.
4821 # AIX -qlanglvl=ansi
4822 # Ultrix and OSF/1 -std1
4823 # HP-UX 10.20 and later -Ae
4824 # HP-UX older versions -Aa -D_HPUX_SOURCE
4825 # SVR4 -Xc -D__EXTENSIONS__
4826 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4828 CC
="$ac_save_CC $ac_arg"
4829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4830 /* end confdefs.h. */
4833 #include <sys/types.h>
4834 #include <sys/stat.h>
4835 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4836 struct buf { int x; };
4837 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4838 static char *e (p, i)
4844 static char *f (char * (*g) (char **, int), char **p, ...)
4849 s = g (p, va_arg (v,int));
4853 int test (int i, double x);
4854 struct s1 {int (*f) (int a);};
4855 struct s2 {int (*f) (double a);};
4856 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4864 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4870 if ac_fn_c_try_compile
"$LINENO"; then :
4871 am_cv_prog_cc_stdc
="$ac_arg"; break
4873 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4879 if test -z "$am_cv_prog_cc_stdc"; then
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4881 $as_echo "none needed" >&6; }
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4884 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4886 case "x$am_cv_prog_cc_stdc" in
4888 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4891 # Expand $ac_aux_dir to an absolute path.
4892 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
4894 if test x
"${install_sh+set}" != xset
; then
4897 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
4899 install_sh
="\${SHELL} $am_aux_dir/install-sh"
4903 # Installed binaries are usually stripped using 'strip' when the user
4904 # run "make install-strip". However 'strip' might not be the right
4905 # tool to use in cross-compilation environments, therefore Automake
4906 # will honor the 'STRIP' environment variable to overrule this program.
4907 if test "$cross_compiling" != no
; then
4908 if test -n "$ac_tool_prefix"; then
4909 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4910 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4912 $as_echo_n "checking for $ac_word... " >&6; }
4913 if ${ac_cv_prog_STRIP+:} false
; then :
4914 $as_echo_n "(cached) " >&6
4916 if test -n "$STRIP"; then
4917 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4919 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4923 test -z "$as_dir" && as_dir
=.
4924 for ac_exec_ext
in '' $ac_executable_extensions; do
4925 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4926 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4936 STRIP
=$ac_cv_prog_STRIP
4937 if test -n "$STRIP"; then
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4939 $as_echo "$STRIP" >&6; }
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4942 $as_echo "no" >&6; }
4947 if test -z "$ac_cv_prog_STRIP"; then
4949 # Extract the first word of "strip", so it can be a program name with args.
4950 set dummy strip
; ac_word
=$2
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4952 $as_echo_n "checking for $ac_word... " >&6; }
4953 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
4954 $as_echo_n "(cached) " >&6
4956 if test -n "$ac_ct_STRIP"; then
4957 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
4959 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4963 test -z "$as_dir" && as_dir
=.
4964 for ac_exec_ext
in '' $ac_executable_extensions; do
4965 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4966 ac_cv_prog_ac_ct_STRIP
="strip"
4967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4976 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4977 if test -n "$ac_ct_STRIP"; then
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4979 $as_echo "$ac_ct_STRIP" >&6; }
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982 $as_echo "no" >&6; }
4985 if test "x$ac_ct_STRIP" = x
; then
4988 case $cross_compiling:$ac_tool_warned in
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4992 ac_tool_warned
=yes ;;
4997 STRIP
="$ac_cv_prog_STRIP"
5001 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
5005 for ac_dir
in ..
"$srcdir"/..
; do
5006 if test -f "$ac_dir/install-sh"; then
5008 ac_install_sh
="$ac_aux_dir/install-sh -c"
5010 elif test -f "$ac_dir/install.sh"; then
5012 ac_install_sh
="$ac_aux_dir/install.sh -c"
5014 elif test -f "$ac_dir/shtool"; then
5016 ac_install_sh
="$ac_aux_dir/shtool install -c"
5020 if test -z "$ac_aux_dir"; then
5021 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
5024 # These three variables are undocumented and unsupported,
5025 # and are intended to be withdrawn in a future Autoconf release.
5026 # They can cause serious problems if a builder's source tree is in a directory
5027 # whose full name contains unusual characters.
5028 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5029 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5030 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5034 test "$program_prefix" != NONE
&&
5035 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
5036 # Use a double $ so make ignores it.
5037 test "$program_suffix" != NONE
&&
5038 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
5039 # Double any \ or $.
5040 # By default was `s,x,x', remove it if useless.
5041 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
5042 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
5045 # We require a C++11 compiler. Check if one is available, and if
5046 # necessary, set CXX_DIALECT to some -std=xxx switch.
5048 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5050 ac_cpp
='$CXXCPP $CPPFLAGS'
5051 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5052 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5053 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5057 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5058 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5059 $as_echo_n "(cached) " >&6
5061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5062 /* end confdefs.h. */
5065 // If the compiler admits that it is not ready for C++11, why torture it?
5066 // Hopefully, this will speed up the test.
5070 #error "This is not a C++ compiler"
5072 #elif __cplusplus < 201103L
5074 #error "This is not a C++11 compiler"
5081 namespace test_static_assert
5084 template <typename T>
5087 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5092 namespace test_final_override
5100 struct Derived : public Base
5102 virtual void f() override {}
5107 namespace test_double_right_angle_brackets
5110 template < typename T >
5113 typedef check<void> single_type;
5114 typedef check<check<void>> double_type;
5115 typedef check<check<check<void>>> triple_type;
5116 typedef check<check<check<check<void>>>> quadruple_type;
5120 namespace test_decltype
5133 namespace test_type_deduction
5136 template < typename T1, typename T2 >
5139 static const bool value = false;
5142 template < typename T >
5143 struct is_same<T, T>
5145 static const bool value = true;
5148 template < typename T1, typename T2 >
5150 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5156 test(const int c, volatile int v)
5158 static_assert(is_same<int, decltype(0)>::value == true, "");
5159 static_assert(is_same<int, decltype(c)>::value == false, "");
5160 static_assert(is_same<int, decltype(v)>::value == false, "");
5163 auto sumi = ac + av + 'x';
5164 auto sumf = ac + av + 1.0;
5165 static_assert(is_same<int, decltype(ac)>::value == true, "");
5166 static_assert(is_same<int, decltype(av)>::value == true, "");
5167 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5168 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5169 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5170 return (sumf > 0.0) ? sumi : add(c, v);
5175 namespace test_noexcept
5178 int f() { return 0; }
5179 int g() noexcept { return 0; }
5181 static_assert(noexcept(f()) == false, "");
5182 static_assert(noexcept(g()) == true, "");
5186 namespace test_constexpr
5189 template < typename CharT >
5190 unsigned long constexpr
5191 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5193 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5196 template < typename CharT >
5197 unsigned long constexpr
5198 strlen_c(const CharT *const s) noexcept
5200 return strlen_c_r(s, 0UL);
5203 static_assert(strlen_c("") == 0UL, "");
5204 static_assert(strlen_c("1") == 1UL, "");
5205 static_assert(strlen_c("example") == 7UL, "");
5206 static_assert(strlen_c("another\0example") == 7UL, "");
5210 namespace test_rvalue_references
5216 static constexpr int value = N;
5219 answer<1> f(int&) { return answer<1>(); }
5220 answer<2> f(const int&) { return answer<2>(); }
5221 answer<3> f(int&&) { return answer<3>(); }
5228 static_assert(decltype(f(i))::value == 1, "");
5229 static_assert(decltype(f(c))::value == 2, "");
5230 static_assert(decltype(f(0))::value == 3, "");
5235 namespace test_uniform_initialization
5240 static const int zero {};
5241 static const int one {1};
5244 static_assert(test::zero == 0, "");
5245 static_assert(test::one == 1, "");
5249 namespace test_lambdas
5255 auto lambda1 = [](){};
5256 auto lambda2 = lambda1;
5264 auto a = [](int i, int j){ return i + j; }(1, 2);
5265 auto b = []() -> int { return '0'; }();
5266 auto c = [=](){ return a + b; }();
5267 auto d = [&](){ return c; }();
5268 auto e = [a, &b](int x) mutable {
5269 const auto identity = [](int y){ return y; };
5270 for (auto i = 0; i < a; ++i)
5272 return x + identity(a + b);
5274 return a + b + c + d + e;
5280 const auto nullary = [](){ return 0; };
5281 const auto unary = [](int x){ return x; };
5282 using nullary_t = decltype(nullary);
5283 using unary_t = decltype(unary);
5284 const auto higher1st = [](nullary_t f){ return f(); };
5285 const auto higher2nd = [unary](nullary_t f1){
5286 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5288 return higher1st(nullary) + higher2nd(nullary)(unary);
5293 namespace test_variadic_templates
5299 template <int N0, int... N1toN>
5300 struct sum<N0, N1toN...>
5302 static constexpr auto value = N0 + sum<N1toN...>::value;
5308 static constexpr auto value = 0;
5311 static_assert(sum<>::value == 0, "");
5312 static_assert(sum<1>::value == 1, "");
5313 static_assert(sum<23>::value == 23, "");
5314 static_assert(sum<1, 2>::value == 3, "");
5315 static_assert(sum<5, 5, 11>::value == 21, "");
5316 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5320 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5321 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5323 namespace test_template_alias_sfinae
5328 template<typename T>
5329 using member = typename T::member_type;
5331 template<typename T>
5334 template<typename T>
5335 void func(member<T>*) {}
5339 void test() { func<foo>(0); }
5343 } // namespace cxx11
5345 #endif // __cplusplus >= 201103L
5350 if ac_fn_cxx_try_compile
"$LINENO"; then :
5351 ax_cv_cxx_compile_cxx11
=yes
5353 ax_cv_cxx_compile_cxx11
=no
5355 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5358 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5359 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
5363 if test x
$ac_success = xno
; then
5364 for alternative
in ${ax_cxx_compile_alternatives}; do
5365 switch
="-std=gnu++${alternative}"
5366 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5368 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5369 if eval \
${$cachevar+:} false
; then :
5370 $as_echo_n "(cached) " >&6
5374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5375 /* end confdefs.h. */
5378 // If the compiler admits that it is not ready for C++11, why torture it?
5379 // Hopefully, this will speed up the test.
5383 #error "This is not a C++ compiler"
5385 #elif __cplusplus < 201103L
5387 #error "This is not a C++11 compiler"
5394 namespace test_static_assert
5397 template <typename T>
5400 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5405 namespace test_final_override
5413 struct Derived : public Base
5415 virtual void f() override {}
5420 namespace test_double_right_angle_brackets
5423 template < typename T >
5426 typedef check<void> single_type;
5427 typedef check<check<void>> double_type;
5428 typedef check<check<check<void>>> triple_type;
5429 typedef check<check<check<check<void>>>> quadruple_type;
5433 namespace test_decltype
5446 namespace test_type_deduction
5449 template < typename T1, typename T2 >
5452 static const bool value = false;
5455 template < typename T >
5456 struct is_same<T, T>
5458 static const bool value = true;
5461 template < typename T1, typename T2 >
5463 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5469 test(const int c, volatile int v)
5471 static_assert(is_same<int, decltype(0)>::value == true, "");
5472 static_assert(is_same<int, decltype(c)>::value == false, "");
5473 static_assert(is_same<int, decltype(v)>::value == false, "");
5476 auto sumi = ac + av + 'x';
5477 auto sumf = ac + av + 1.0;
5478 static_assert(is_same<int, decltype(ac)>::value == true, "");
5479 static_assert(is_same<int, decltype(av)>::value == true, "");
5480 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5481 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5482 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5483 return (sumf > 0.0) ? sumi : add(c, v);
5488 namespace test_noexcept
5491 int f() { return 0; }
5492 int g() noexcept { return 0; }
5494 static_assert(noexcept(f()) == false, "");
5495 static_assert(noexcept(g()) == true, "");
5499 namespace test_constexpr
5502 template < typename CharT >
5503 unsigned long constexpr
5504 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5506 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5509 template < typename CharT >
5510 unsigned long constexpr
5511 strlen_c(const CharT *const s) noexcept
5513 return strlen_c_r(s, 0UL);
5516 static_assert(strlen_c("") == 0UL, "");
5517 static_assert(strlen_c("1") == 1UL, "");
5518 static_assert(strlen_c("example") == 7UL, "");
5519 static_assert(strlen_c("another\0example") == 7UL, "");
5523 namespace test_rvalue_references
5529 static constexpr int value = N;
5532 answer<1> f(int&) { return answer<1>(); }
5533 answer<2> f(const int&) { return answer<2>(); }
5534 answer<3> f(int&&) { return answer<3>(); }
5541 static_assert(decltype(f(i))::value == 1, "");
5542 static_assert(decltype(f(c))::value == 2, "");
5543 static_assert(decltype(f(0))::value == 3, "");
5548 namespace test_uniform_initialization
5553 static const int zero {};
5554 static const int one {1};
5557 static_assert(test::zero == 0, "");
5558 static_assert(test::one == 1, "");
5562 namespace test_lambdas
5568 auto lambda1 = [](){};
5569 auto lambda2 = lambda1;
5577 auto a = [](int i, int j){ return i + j; }(1, 2);
5578 auto b = []() -> int { return '0'; }();
5579 auto c = [=](){ return a + b; }();
5580 auto d = [&](){ return c; }();
5581 auto e = [a, &b](int x) mutable {
5582 const auto identity = [](int y){ return y; };
5583 for (auto i = 0; i < a; ++i)
5585 return x + identity(a + b);
5587 return a + b + c + d + e;
5593 const auto nullary = [](){ return 0; };
5594 const auto unary = [](int x){ return x; };
5595 using nullary_t = decltype(nullary);
5596 using unary_t = decltype(unary);
5597 const auto higher1st = [](nullary_t f){ return f(); };
5598 const auto higher2nd = [unary](nullary_t f1){
5599 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5601 return higher1st(nullary) + higher2nd(nullary)(unary);
5606 namespace test_variadic_templates
5612 template <int N0, int... N1toN>
5613 struct sum<N0, N1toN...>
5615 static constexpr auto value = N0 + sum<N1toN...>::value;
5621 static constexpr auto value = 0;
5624 static_assert(sum<>::value == 0, "");
5625 static_assert(sum<1>::value == 1, "");
5626 static_assert(sum<23>::value == 23, "");
5627 static_assert(sum<1, 2>::value == 3, "");
5628 static_assert(sum<5, 5, 11>::value == 21, "");
5629 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5633 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5634 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5636 namespace test_template_alias_sfinae
5641 template<typename T>
5642 using member = typename T::member_type;
5644 template<typename T>
5647 template<typename T>
5648 void func(member<T>*) {}
5652 void test() { func<foo>(0); }
5656 } // namespace cxx11
5658 #endif // __cplusplus >= 201103L
5663 if ac_fn_cxx_try_compile
"$LINENO"; then :
5668 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5671 eval ac_res
=\$
$cachevar
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5673 $as_echo "$ac_res" >&6; }
5674 if eval test x\$
$cachevar = xyes
; then
5675 CXX_DIALECT
="$switch"
5682 if test x
$ac_success = xno
; then
5683 for alternative
in ${ax_cxx_compile_alternatives}; do
5684 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5685 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
5687 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
5688 if eval \${$cachevar+:} false; then :
5689 $as_echo_n "(cached
) " >&6
5693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5694 /* end confdefs.h. */
5697 // If the compiler admits that it is not ready for C++11, why torture it?
5698 // Hopefully, this will speed up the test.
5702 #error "This is not a C
++ compiler
"
5704 #elif __cplusplus < 201103L
5706 #error "This is not a C
++11 compiler
"
5713 namespace test_static_assert
5716 template <typename T>
5719 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
5724 namespace test_final_override
5732 struct Derived : public Base
5734 virtual void f() override {}
5739 namespace test_double_right_angle_brackets
5742 template < typename T >
5745 typedef check<void> single_type;
5746 typedef check<check<void>> double_type;
5747 typedef check<check<check<void>>> triple_type;
5748 typedef check<check<check<check<void>>>> quadruple_type;
5752 namespace test_decltype
5765 namespace test_type_deduction
5768 template < typename T1, typename T2 >
5771 static const bool value = false;
5774 template < typename T >
5775 struct is_same<T, T>
5777 static const bool value = true;
5780 template < typename T1, typename T2 >
5782 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5788 test(const int c, volatile int v)
5790 static_assert(is_same<int, decltype(0)>::value == true, "");
5791 static_assert(is_same<int, decltype(c)>::value == false, "");
5792 static_assert(is_same<int, decltype(v)>::value == false, "");
5795 auto sumi = ac + av + 'x';
5796 auto sumf = ac + av + 1.0;
5797 static_assert(is_same<int, decltype(ac)>::value == true, "");
5798 static_assert(is_same<int, decltype(av)>::value == true, "");
5799 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5800 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5801 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5802 return (sumf > 0.0) ? sumi : add(c, v);
5807 namespace test_noexcept
5810 int f() { return 0; }
5811 int g() noexcept { return 0; }
5813 static_assert(noexcept(f()) == false, "");
5814 static_assert(noexcept(g()) == true, "");
5818 namespace test_constexpr
5821 template < typename CharT >
5822 unsigned long constexpr
5823 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5825 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5828 template < typename CharT >
5829 unsigned long constexpr
5830 strlen_c(const CharT *const s) noexcept
5832 return strlen_c_r(s, 0UL);
5835 static_assert(strlen_c("") == 0UL, "");
5836 static_assert(strlen_c("1") == 1UL, "");
5837 static_assert(strlen_c("example
") == 7UL, "");
5838 static_assert(strlen_c("another\
0example
") == 7UL, "");
5842 namespace test_rvalue_references
5848 static constexpr int value = N;
5851 answer<1> f(int&) { return answer<1>(); }
5852 answer<2> f(const int&) { return answer<2>(); }
5853 answer<3> f(int&&) { return answer<3>(); }
5860 static_assert(decltype(f(i))::value == 1, "");
5861 static_assert(decltype(f(c))::value == 2, "");
5862 static_assert(decltype(f(0))::value == 3, "");
5867 namespace test_uniform_initialization
5872 static const int zero {};
5873 static const int one {1};
5876 static_assert(test::zero == 0, "");
5877 static_assert(test::one == 1, "");
5881 namespace test_lambdas
5887 auto lambda1 = [](){};
5888 auto lambda2 = lambda1;
5896 auto a = [](int i, int j){ return i + j; }(1, 2);
5897 auto b = []() -> int { return '0'; }();
5898 auto c = [=](){ return a + b; }();
5899 auto d = [&](){ return c; }();
5900 auto e = [a, &b](int x) mutable {
5901 const auto identity = [](int y){ return y; };
5902 for (auto i = 0; i < a; ++i)
5904 return x + identity(a + b);
5906 return a + b + c + d + e;
5912 const auto nullary = [](){ return 0; };
5913 const auto unary = [](int x){ return x; };
5914 using nullary_t = decltype(nullary);
5915 using unary_t = decltype(unary);
5916 const auto higher1st = [](nullary_t f){ return f(); };
5917 const auto higher2nd = [unary](nullary_t f1){
5918 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5920 return higher1st(nullary) + higher2nd(nullary)(unary);
5925 namespace test_variadic_templates
5931 template <int N0, int... N1toN>
5932 struct sum<N0, N1toN...>
5934 static constexpr auto value = N0 + sum<N1toN...>::value;
5940 static constexpr auto value = 0;
5943 static_assert(sum<>::value == 0, "");
5944 static_assert(sum<1>::value == 1, "");
5945 static_assert(sum<23>::value == 23, "");
5946 static_assert(sum<1, 2>::value == 3, "");
5947 static_assert(sum<5, 5, 11>::value == 21, "");
5948 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5952 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5953 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5955 namespace test_template_alias_sfinae
5960 template<typename T>
5961 using member = typename T::member_type;
5963 template<typename T>
5966 template<typename T>
5967 void func(member<T>*) {}
5971 void test() { func<foo>(0); }
5975 } // namespace cxx11
5977 #endif // __cplusplus >= 201103L
5982 if ac_fn_cxx_try_compile "$LINENO"; then :
5987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5990 eval ac_res=\$$cachevar
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
5992 $as_echo "$ac_res" >&6; }
5993 if eval test x\$$cachevar = xyes; then
5994 CXX_DIALECT="$switch"
5999 if test x$ac_success = xyes; then
6005 ac_cpp='$CPP $CPPFLAGS'
6006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6010 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6011 if test x$ac_success = xno; then
6012 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6015 if test x$ac_success = xno; then
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6018 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6022 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6029 # Dependency checking.
6030 rm -rf .tst
2>/dev
/null
6031 mkdir .tst
2>/dev
/null
6032 if test -d .tst
; then
6037 rmdir .tst
2>/dev
/null
6039 DEPDIR
="${am__leading_dot}deps"
6041 ac_config_commands
="$ac_config_commands depdir"
6044 depcc
="$CC" am_compiler_list
=
6046 am_depcomp
=$ac_aux_dir/depcomp
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6048 $as_echo_n "checking dependency style of $depcc... " >&6; }
6049 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
6050 $as_echo_n "(cached) " >&6
6052 if test -f "$am_depcomp"; then
6053 # We make a subdir and do the tests there. Otherwise we can end up
6054 # making bogus files that we don't know about and never remove. For
6055 # instance it was reported that on HP-UX the gcc test will end up
6056 # making a dummy file named `D' -- because `-MD' means `put the output
6059 # Copy depcomp to subdir because otherwise we won't find it if we're
6060 # using a relative directory.
6061 cp "$am_depcomp" conftest.dir
6063 # We will build objects and dependencies in a subdirectory because
6064 # it helps to detect inapplicable dependency modes. For instance
6065 # both Tru64's cc and ICC support -MD to output dependencies as a
6066 # side effect of compilation, but ICC will put the dependencies in
6067 # the current directory while Tru64 will put them in the object
6071 am_cv_CC_dependencies_compiler_type
=none
6072 if test "$am_compiler_list" = ""; then
6073 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6075 for depmode
in $am_compiler_list; do
6076 if test $depmode = none
; then break; fi
6078 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6079 # Setup a source with many dependencies, because some compilers
6080 # like to wrap large dependency lists on column 80 (with \), and
6081 # we should not choose a depcomp mode which is confused by this.
6083 # We need to recreate these files for each test, as the compiler may
6084 # overwrite some of them when testing with obscure command lines.
6085 # This happens at least with the AIX C compiler.
6087 for i
in 1 2 3 4 5 6; do
6088 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6089 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6090 # Solaris 8's {/usr,}/bin/sh.
6091 touch sub
/conftst
$i.h
6093 echo "include sub/conftest.Po" > confmf
6095 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6096 # mode. It turns out that the SunPro C++ compiler does not properly
6097 # handle `-M -o', and we need to detect this.
6098 depcmd
="depmode=$depmode \
6099 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6100 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6101 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6102 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
6103 if env
$depcmd > conftest.err
2>&1 &&
6104 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
6105 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
6106 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
6107 # icc doesn't choke on unknown options, it will just issue warnings
6108 # or remarks (even with -Werror). So we grep stderr for any message
6109 # that says an option was ignored or not supported.
6110 # When given -MP, icc 7.0 and 7.1 complain thusly:
6111 # icc: Command line warning: ignoring option '-M'; no argument required
6112 # The diagnosis changed in icc 8.0:
6113 # icc: Command line remark: option '-MP' not supported
6114 if (grep 'ignoring option' conftest.err ||
6115 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6116 am_cv_CC_dependencies_compiler_type
=$depmode
6117 $as_echo "$as_me:$LINENO: success" >&5
6121 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6122 sed -e 's/^/| /' < conftest.err
>&5
6128 am_cv_CC_dependencies_compiler_type
=none
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6133 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6134 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
6135 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
6136 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
6141 gnulib_extra_configure_args
=
6142 # If large-file support is disabled, make sure gnulib does the same.
6143 if test "$enable_largefile" = no
; then
6144 gnulib_extra_configure_args
="$gnulib_extra_configure_args --disable-largefile"
6147 # Configure gnulib. We need to build gnulib under some other
6148 # directory not "gnulib", to avoid the problem of both GDB and
6149 # GDBserver wanting to build it in the same directory, when building
6150 # in the source dir.
6153 in_build
="build-gnulib"
6154 in_extra_args
="$gnulib_extra_configure_args"
6156 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
6157 # so they do not pile up.
6158 ac_sub_configure_args
=
6160 eval "set x $ac_configure_args"
6164 if test -n "$ac_prev"; then
6169 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
6170 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
6171 ac_prev
=cache_file
;;
6172 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
6173 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
6176 --config-cache |
-C)
6178 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
6180 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
6182 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
6184 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
6186 --disable-option-checking)
6190 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6192 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
6196 # Always prepend --prefix to ensure using the same prefix
6197 # in subdir configurations.
6198 ac_arg
="--prefix=$prefix"
6200 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6202 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
6205 if test "$silent" = yes; then
6206 ac_sub_configure_args
="--silent $ac_sub_configure_args"
6209 # Always prepend --disable-option-checking to silence warnings, since
6210 # different subdirs can have different --enable and --with options.
6211 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
6216 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
6217 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
6218 $as_echo "$ac_msg" >&6
6219 as_dir
="$ac_dir"; as_fn_mkdir_p
6223 ac_srcdir
=$srcdir/$in_src ;;
6225 ac_srcdir
=..
/$srcdir/$in_src ;;
6230 ac_sub_configure
=$ac_srcdir/configure
6232 # Make the cache file name correct relative to the subdirectory.
6234 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
6236 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
6239 if test -n "$in_extra_args"; then
6240 # Add the extra args at the end.
6241 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
6244 { $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
6245 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6246 # The eval makes quoting arguments work.
6247 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
6248 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
6249 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
6265 # If we haven't got the data from the intl directory,
6266 # assume NLS is disabled.
6275 if test -f ..
/intl
/config.intl
; then
6276 . ..
/intl
/config.intl
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6279 $as_echo_n "checking whether NLS is requested... " >&6; }
6280 if test x
"$USE_NLS" != xyes
; then
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6282 $as_echo "no" >&6; }
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6285 $as_echo "yes" >&6; }
6287 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6291 $as_echo_n "checking for catalogs to be installed... " >&6; }
6292 # Look for .po and .gmo files in the source directory.
6295 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
6296 # If there aren't any .gmo files the shell will give us the
6297 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6299 case "$cat" in *\
**)
6302 # The quadruple backslash is collapsed to a double backslash
6303 # by the backticks, then collapsed again by the double quotes,
6304 # leaving us with one backslash in the sed expression (right
6305 # before the dot that mustn't act as a wildcard).
6306 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6307 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
6308 # The user is allowed to set LINGUAS to a list of languages to
6309 # install catalogs for. If it's empty that means "all of them."
6310 if test "x$LINGUAS" = x
; then
6311 CATALOGS
="$CATALOGS $cat"
6312 XLINGUAS
="$XLINGUAS $lang"
6314 case "$LINGUAS" in *$lang*)
6315 CATALOGS
="$CATALOGS $cat"
6316 XLINGUAS
="$XLINGUAS $lang"
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6323 $as_echo "$LINGUAS" >&6; }
6336 localedir
='${datadir}/locale'
6339 if test x
"$USE_NLS" = xyes
; then
6340 CONFIG_ALL
="$CONFIG_ALL all-po"
6341 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
6342 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
6343 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
6346 GNULIB
=build-gnulib
/import
6348 # For Makefile dependencies.
6350 if test x
"$STDINT_H" != x
; then
6351 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
6357 cat >>confdefs.h
<<_ACEOF
6358 #define PACKAGE "$PACKAGE"
6363 # We never need to detect it in this sub-configure.
6364 # But preserve it for config.status --recheck.
6368 MAKEINFO_EXTRA_FLAGS
=""
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
6370 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
6371 if ${gdb_cv_have_makeinfo_click+:} false
; then :
6372 $as_echo_n "(cached) " >&6
6374 echo '@clicksequence{a @click{} b}' >conftest.texinfo
6375 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
6376 gdb_cv_have_makeinfo_click
=yes
6378 gdb_cv_have_makeinfo_click
=no
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
6382 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
6383 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
6384 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
6390 # Check whether --with-separate-debug-dir was given.
6391 if test "${with_separate_debug_dir+set}" = set; then :
6392 withval
=$with_separate_debug_dir;
6395 DEBUGDIR
=${libdir}/debug
6399 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6400 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6401 ac_define_dir
=`eval echo $DEBUGDIR`
6402 ac_define_dir
=`eval echo $ac_define_dir`
6404 cat >>confdefs.h
<<_ACEOF
6405 #define DEBUGDIR "$ac_define_dir"
6411 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6412 if test "x$prefix" = xNONE
; then
6413 test_prefix
=/usr
/local
6418 test_prefix
=$exec_prefix
6421 case ${ac_define_dir} in
6422 "${test_prefix}"|
"${test_prefix}/"*|\
6423 '${exec_prefix}'|
'${exec_prefix}/'*)
6428 cat >>confdefs.h
<<_ACEOF
6429 #define DEBUGDIR_RELOCATABLE $value
6435 # We can't pass paths as command line arguments.
6436 # Mingw32 tries to be clever and will convert the paths for us.
6437 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
6438 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
6439 # This breaks GDB's relocatable path conversions since paths passed in
6440 # config.h would not get so translated, the path prefixes no longer match.
6442 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6443 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6444 ac_define_dir
=`eval echo $bindir`
6445 ac_define_dir
=`eval echo $ac_define_dir`
6447 cat >>confdefs.h
<<_ACEOF
6448 #define BINDIR "$ac_define_dir"
6453 # GDB's datadir relocation
6457 # Check whether --with-gdb-datadir was given.
6458 if test "${with_gdb_datadir+set}" = set; then :
6459 withval
=$with_gdb_datadir;
6460 GDB_DATADIR
=$withval
6462 GDB_DATADIR
=${datadir}/gdb
6466 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6467 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6468 ac_define_dir
=`eval echo $GDB_DATADIR`
6469 ac_define_dir
=`eval echo $ac_define_dir`
6471 cat >>confdefs.h
<<_ACEOF
6472 #define GDB_DATADIR "$ac_define_dir"
6478 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6479 if test "x$prefix" = xNONE
; then
6480 test_prefix
=/usr
/local
6485 test_prefix
=$exec_prefix
6488 case ${ac_define_dir} in
6489 "${test_prefix}"|
"${test_prefix}/"*|\
6490 '${exec_prefix}'|
'${exec_prefix}/'*)
6495 cat >>confdefs.h
<<_ACEOF
6496 #define GDB_DATADIR_RELOCATABLE $value
6503 # Check whether --with-relocated-sources was given.
6504 if test "${with_relocated_sources+set}" = set; then :
6505 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
6507 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6508 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6509 ac_define_dir
=`eval echo $reloc_srcdir`
6510 ac_define_dir
=`eval echo $ac_define_dir`
6512 cat >>confdefs.h
<<_ACEOF
6513 #define RELOC_SRCDIR "$ac_define_dir"
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
6522 $as_echo_n "checking for default auto-load directory... " >&6; }
6524 # Check whether --with-auto-load-dir was given.
6525 if test "${with_auto_load_dir+set}" = set; then :
6526 withval
=$with_auto_load_dir;
6528 with_auto_load_dir
='$debugdir:$datadir/auto-load'
6531 escape_dir
=`echo $with_auto_load_dir | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
6533 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6534 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6535 ac_define_dir
=`eval echo $escape_dir`
6536 ac_define_dir
=`eval echo $ac_define_dir`
6538 cat >>confdefs.h
<<_ACEOF
6539 #define AUTO_LOAD_DIR "$ac_define_dir"
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
6544 $as_echo "$with_auto_load_dir" >&6; }
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
6547 $as_echo_n "checking for default auto-load safe-path... " >&6; }
6549 # Check whether --with-auto-load-safe-path was given.
6550 if test "${with_auto_load_safe_path+set}" = set; then :
6551 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
6552 with_auto_load_safe_path
="/"
6555 with_auto_load_safe_path
="$with_auto_load_dir"
6558 escape_dir
=`echo $with_auto_load_safe_path | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
6560 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6561 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6562 ac_define_dir
=`eval echo $escape_dir`
6563 ac_define_dir
=`eval echo $ac_define_dir`
6565 cat >>confdefs.h
<<_ACEOF
6566 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
6571 $as_echo "$with_auto_load_safe_path" >&6; }
6575 subdirs
="$subdirs testsuite"
6578 # Check whether to support alternative target configurations
6579 # Check whether --enable-targets was given.
6580 if test "${enable_targets+set}" = set; then :
6581 enableval
=$enable_targets; case "${enableval}" in
6582 yes |
"") as_fn_error $?
"enable-targets option must specify target names or 'all'" "$LINENO" 5
6584 no
) enable_targets
= ;;
6585 *) enable_targets
=$enableval ;;
6590 # Check whether to enable 64-bit support on 32-bit hosts
6591 # Check whether --enable-64-bit-bfd was given.
6592 if test "${enable_64_bit_bfd+set}" = set; then :
6593 enableval
=$enable_64_bit_bfd; case "${enableval}" in
6596 *) as_fn_error $?
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
6602 # Provide defaults for some variables set by the per-host and per-target
6604 gdb_host_obs
=posix-hdep.o
6606 if test "${target}" = "${host}"; then
6612 .
$srcdir/configure.
host
6614 # Add in the common host objects.
6615 .
$srcdir/common
/common.
host
6616 gdb_host_obs
="$gdb_host_obs $common_host_obs"
6618 # Accumulate some settings from configure.tgt over all enabled targets
6622 HAVE_NATIVE_GCORE_TARGET
=
6624 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6626 if test "$targ_alias" = "all"; then
6629 # Canonicalize the secondary target names.
6630 result
=`$ac_config_sub $targ_alias 2>/dev/null`
6631 if test -n "$result"; then
6637 .
${srcdir}/configure.tgt
6639 if test -z "${gdb_target_obs}"; then :
6640 as_fn_error $?
"configuration ${targ} is unsupported." "$LINENO" 5
6643 # Target-specific object files
6644 for i
in ${gdb_target_obs}; do
6645 case " $TARGET_OBS " in
6648 TARGET_OBS
="$TARGET_OBS ${i}"
6653 # Check whether this target needs 64-bit CORE_ADDR
6654 if test x
${want64} = xfalse
; then
6655 .
${srcdir}/..
/bfd
/config.bfd
6658 # Check whether this target is native and supports gcore.
6659 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
6660 && $gdb_have_gcore; then
6661 HAVE_NATIVE_GCORE_TARGET
=1
6666 if test x
${all_targets} = xtrue
; then
6668 # We want all 64-bit targets if we either:
6669 # - run on a 64-bit host or
6670 # - already require 64-bit support for some other target or
6671 # - the --enable-64-bit-bfd option was supplied
6672 # Otherwise we only support all 32-bit targets.
6674 # NOTE: This test must be in sync with the corresponding
6677 if test x
${want64} = xfalse
; then
6678 # The cast to long int works around a bug in the HP C Compiler
6679 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6680 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6681 # This bug is HP SR number 8606223364.
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6683 $as_echo_n "checking size of long... " >&6; }
6684 if ${ac_cv_sizeof_long+:} false
; then :
6685 $as_echo_n "(cached) " >&6
6687 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6690 if test "$ac_cv_type_long" = yes; then
6691 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6693 as_fn_error
77 "cannot compute sizeof (long)
6694 See \`config.log' for more details" "$LINENO" 5; }
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6702 $as_echo "$ac_cv_sizeof_long" >&6; }
6706 cat >>confdefs.h
<<_ACEOF
6707 #define SIZEOF_LONG $ac_cv_sizeof_long
6711 if test "x${ac_cv_sizeof_long}" = "x8"; then
6715 if test x
${want64} = xtrue
; then
6716 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
6718 TARGET_OBS
='$(ALL_TARGET_OBS)'
6725 # For other settings, only the main target counts.
6729 targ
=$target; .
${srcdir}/configure.tgt
6731 # Fetch the default architecture and default target vector from BFD.
6732 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
6734 # We only want the first architecture, so strip off the others if
6735 # there is more than one.
6736 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
6738 if test "x$targ_archs" != x
; then
6740 cat >>confdefs.h
<<_ACEOF
6741 #define DEFAULT_BFD_ARCH $targ_archs
6745 if test "x$targ_defvec" != x
; then
6747 cat >>confdefs.h
<<_ACEOF
6748 #define DEFAULT_BFD_VEC $targ_defvec
6754 # Check whether --enable-gdbmi was given.
6755 if test "${enable_gdbmi+set}" = set; then :
6756 enableval
=$enable_gdbmi; case $enableval in
6760 as_fn_error $?
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
6766 if test x
"$enable_gdbmi" = xyes
; then
6767 if test -d $srcdir/mi
; then
6768 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6769 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6770 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6771 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6776 # Check whether --enable-tui was given.
6777 if test "${enable_tui+set}" = set; then :
6778 enableval
=$enable_tui; case $enableval in
6782 as_fn_error $?
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
6790 # Check whether --enable-gdbtk was given.
6791 if test "${enable_gdbtk+set}" = set; then :
6792 enableval
=$enable_gdbtk; case $enableval in
6796 as_fn_error $?
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
6799 if test -d $srcdir/gdbtk
; then
6806 # We unconditionally disable gdbtk tests on selected platforms.
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
6810 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6814 # Libunwind support for ia64.
6817 # Check whether --with-libunwind-ia64 was given.
6818 if test "${with_libunwind_ia64+set}" = set; then :
6819 withval
=$with_libunwind_ia64;
6821 with_libunwind_ia64
=auto
6825 # Backward compatibility option.
6826 if test "${with_libunwind+set}" = set; then
6827 if test x
"$with_libunwind_ia64" != xauto
; then
6828 as_fn_error $?
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
6831 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
6832 with_libunwind_ia64
="$with_libunwind"
6835 case "$with_libunwind_ia64" in
6839 for ac_header
in libunwind-ia64.h
6841 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
6842 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
6843 cat >>confdefs.h
<<_ACEOF
6844 #define HAVE_LIBUNWIND_IA64_H 1
6851 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
6854 as_fn_error $?
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
6858 if test x
"$with_libunwind_ia64" = xyes
; then
6859 for ac_header
in libunwind-ia64.h
6861 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
6862 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
6863 cat >>confdefs.h
<<_ACEOF
6864 #define HAVE_LIBUNWIND_IA64_H 1
6871 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
6872 as_fn_error $?
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
6874 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
6875 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
6876 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
6881 # Check whether --with-curses was given.
6882 if test "${with_curses+set}" = set; then :
6883 withval
=$with_curses; opt_curses
=$withval
6888 if test "$opt_curses" = "yes"; then
6892 # Profiling support.
6893 # Check whether --enable-profiling was given.
6894 if test "${enable_profiling+set}" = set; then :
6895 enableval
=$enable_profiling; case $enableval in
6899 as_fn_error $?
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
6906 for ac_func
in monstartup _mcleanup
6908 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6909 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6910 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6911 cat >>confdefs.h
<<_ACEOF
6912 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
6919 $as_echo_n "checking for _etext... " >&6; }
6920 if ${ac_cv_var__etext+:} false
; then :
6921 $as_echo_n "(cached) " >&6
6923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6924 /* end confdefs.h. */
6936 if ac_fn_c_try_link
"$LINENO"; then :
6937 ac_cv_var__etext
=yes
6941 rm -f core conftest.err conftest.
$ac_objext \
6942 conftest
$ac_exeext conftest.
$ac_ext
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
6945 $as_echo "$ac_cv_var__etext" >&6; }
6946 if test $ac_cv_var__etext = yes; then
6948 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
6952 $as_echo_n "checking for etext... " >&6; }
6953 if ${ac_cv_var_etext+:} false
; then :
6954 $as_echo_n "(cached) " >&6
6956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6957 /* end confdefs.h. */
6969 if ac_fn_c_try_link
"$LINENO"; then :
6974 rm -f core conftest.err conftest.
$ac_objext \
6975 conftest
$ac_exeext conftest.
$ac_ext
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
6978 $as_echo "$ac_cv_var_etext" >&6; }
6979 if test $ac_cv_var_etext = yes; then
6981 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
6984 if test "$enable_profiling" = yes ; then
6985 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
6986 as_fn_error $?
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
6989 OLD_CFLAGS
="$CFLAGS"
6990 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
6993 $as_echo_n "checking whether $CC supports -pg... " >&6; }
6994 if ${ac_cv_cc_supports_pg+:} false
; then :
6995 $as_echo_n "(cached) " >&6
6997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6998 /* end confdefs.h. */
7008 if ac_fn_c_try_compile
"$LINENO"; then :
7009 ac_cv_cc_supports_pg
=yes
7011 ac_cv_cc_supports_pg
=no
7013 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
7016 $as_echo "$ac_cv_cc_supports_pg" >&6; }
7018 if test $ac_cv_cc_supports_pg = no
; then
7019 as_fn_error $?
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
7022 CFLAGS
="$OLD_CFLAGS"
7026 # Check whether --enable-codesign was given.
7027 if test "${enable_codesign+set}" = set; then :
7028 enableval
=$enable_codesign; CODESIGN_CERT
=$enableval
7035 # Check whether --with-pkgversion was given.
7036 if test "${with_pkgversion+set}" = set; then :
7037 withval
=$with_pkgversion; case "$withval" in
7038 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
7040 *) PKGVERSION
="($withval) " ;;
7051 # Check whether --with-bugurl was given.
7052 if test "${with_bugurl+set}" = set; then :
7053 withval
=$with_bugurl; case "$withval" in
7054 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
7057 *) BUGURL
="$withval"
7061 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
7071 REPORT_BUGS_TO
="<$BUGURL>"
7072 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7079 cat >>confdefs.h
<<_ACEOF
7080 #define PKGVERSION "$PKGVERSION"
7084 cat >>confdefs.h
<<_ACEOF
7085 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7089 # --------------------- #
7090 # Checks for programs. #
7091 # --------------------- #
7093 for ac_prog
in gawk mawk nawk
awk
7095 # Extract the first word of "$ac_prog", so it can be a program name with args.
7096 set dummy
$ac_prog; ac_word
=$2
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7098 $as_echo_n "checking for $ac_word... " >&6; }
7099 if ${ac_cv_prog_AWK+:} false
; then :
7100 $as_echo_n "(cached) " >&6
7102 if test -n "$AWK"; then
7103 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7105 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7109 test -z "$as_dir" && as_dir
=.
7110 for ac_exec_ext
in '' $ac_executable_extensions; do
7111 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7112 ac_cv_prog_AWK
="$ac_prog"
7113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7123 if test -n "$AWK"; then
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7125 $as_echo "$AWK" >&6; }
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7128 $as_echo "no" >&6; }
7132 test -n "$AWK" && break
7135 # Find a good install program. We prefer a C program (faster),
7136 # so one script is as good as another. But avoid the broken or
7137 # incompatible versions:
7138 # SysV /etc/install, /usr/sbin/install
7139 # SunOS /usr/etc/install
7140 # IRIX /sbin/install
7142 # AmigaOS /C/install, which installs bootblocks on floppy discs
7143 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7144 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7145 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7146 # OS/2's system install, which has a completely different semantic
7147 # ./install, which can be erroneously created by make from ./install.sh.
7148 # Reject install programs that cannot install multiple files.
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7150 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7151 if test -z "$INSTALL"; then
7152 if ${ac_cv_path_install+:} false
; then :
7153 $as_echo_n "(cached) " >&6
7155 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7159 test -z "$as_dir" && as_dir
=.
7160 # Account for people who put trailing slashes in PATH elements.
7161 case $as_dir/ in #((
7162 .
/ | .
// |
/[cC
]/* | \
7163 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7164 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
7167 # OSF1 and SCO ODT 3.0 have their own names for install.
7168 # Don't use installbsd from OSF since it installs stuff as root
7170 for ac_prog
in ginstall scoinst
install; do
7171 for ac_exec_ext
in '' $ac_executable_extensions; do
7172 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
7173 if test $ac_prog = install &&
7174 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7175 # AIX install. It has an incompatible calling convention.
7177 elif test $ac_prog = install &&
7178 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7179 # program-specific install script used by HP pwplus--don't use.
7182 rm -rf conftest.one conftest.two conftest.dir
7183 echo one
> conftest.one
7184 echo two
> conftest.two
7186 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
7187 test -s conftest.one
&& test -s conftest.two
&&
7188 test -s conftest.dir
/conftest.one
&&
7189 test -s conftest.dir
/conftest.two
7191 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7204 rm -rf conftest.one conftest.two conftest.dir
7207 if test "${ac_cv_path_install+set}" = set; then
7208 INSTALL
=$ac_cv_path_install
7210 # As a last resort, use the slow shell script. Don't cache a
7211 # value for INSTALL within a source directory, because that will
7212 # break other packages using the cache if that directory is
7213 # removed, or if the value is a relative name.
7214 INSTALL
=$ac_install_sh
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7218 $as_echo "$INSTALL" >&6; }
7220 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7221 # It thinks the first close brace ends the variable substitution.
7222 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7224 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7226 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7229 $as_echo_n "checking whether ln -s works... " >&6; }
7231 if test "$LN_S" = "ln -s"; then
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7233 $as_echo "yes" >&6; }
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7236 $as_echo "no, using $LN_S" >&6; }
7239 if test -n "$ac_tool_prefix"; then
7240 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7241 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7243 $as_echo_n "checking for $ac_word... " >&6; }
7244 if ${ac_cv_prog_RANLIB+:} false
; then :
7245 $as_echo_n "(cached) " >&6
7247 if test -n "$RANLIB"; then
7248 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7250 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7254 test -z "$as_dir" && as_dir
=.
7255 for ac_exec_ext
in '' $ac_executable_extensions; do
7256 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7257 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7267 RANLIB
=$ac_cv_prog_RANLIB
7268 if test -n "$RANLIB"; then
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7270 $as_echo "$RANLIB" >&6; }
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7273 $as_echo "no" >&6; }
7278 if test -z "$ac_cv_prog_RANLIB"; then
7279 ac_ct_RANLIB
=$RANLIB
7280 # Extract the first word of "ranlib", so it can be a program name with args.
7281 set dummy ranlib
; ac_word
=$2
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7283 $as_echo_n "checking for $ac_word... " >&6; }
7284 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
7285 $as_echo_n "(cached) " >&6
7287 if test -n "$ac_ct_RANLIB"; then
7288 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7290 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7294 test -z "$as_dir" && as_dir
=.
7295 for ac_exec_ext
in '' $ac_executable_extensions; do
7296 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7297 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7307 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7308 if test -n "$ac_ct_RANLIB"; then
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7310 $as_echo "$ac_ct_RANLIB" >&6; }
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7313 $as_echo "no" >&6; }
7316 if test "x$ac_ct_RANLIB" = x
; then
7319 case $cross_compiling:$ac_tool_warned in
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7323 ac_tool_warned
=yes ;;
7325 RANLIB
=$ac_ct_RANLIB
7328 RANLIB
="$ac_cv_prog_RANLIB"
7331 for ac_prog
in 'bison -y' byacc
7333 # Extract the first word of "$ac_prog", so it can be a program name with args.
7334 set dummy
$ac_prog; 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_YACC+:} false
; then :
7338 $as_echo_n "(cached) " >&6
7340 if test -n "$YACC"; then
7341 ac_cv_prog_YACC
="$YACC" # 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_YACC
="$ac_prog"
7351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7360 YACC
=$ac_cv_prog_YACC
7361 if test -n "$YACC"; then
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7363 $as_echo "$YACC" >&6; }
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7366 $as_echo "no" >&6; }
7370 test -n "$YACC" && break
7372 test -n "$YACC" || YACC
="yacc"
7375 if test -n "$ac_tool_prefix"; then
7376 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7377 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7379 $as_echo_n "checking for $ac_word... " >&6; }
7380 if ${ac_cv_prog_AR+:} false
; then :
7381 $as_echo_n "(cached) " >&6
7383 if test -n "$AR"; then
7384 ac_cv_prog_AR
="$AR" # Let the user override the test.
7386 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7390 test -z "$as_dir" && as_dir
=.
7391 for ac_exec_ext
in '' $ac_executable_extensions; do
7392 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7393 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7404 if test -n "$AR"; then
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7406 $as_echo "$AR" >&6; }
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7409 $as_echo "no" >&6; }
7414 if test -z "$ac_cv_prog_AR"; then
7416 # Extract the first word of "ar", so it can be a program name with args.
7417 set dummy
ar; ac_word
=$2
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7419 $as_echo_n "checking for $ac_word... " >&6; }
7420 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
7421 $as_echo_n "(cached) " >&6
7423 if test -n "$ac_ct_AR"; then
7424 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7426 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7430 test -z "$as_dir" && as_dir
=.
7431 for ac_exec_ext
in '' $ac_executable_extensions; do
7432 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7433 ac_cv_prog_ac_ct_AR
="ar"
7434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7443 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7444 if test -n "$ac_ct_AR"; then
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7446 $as_echo "$ac_ct_AR" >&6; }
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7449 $as_echo "no" >&6; }
7452 if test "x$ac_ct_AR" = x
; then
7455 case $cross_compiling:$ac_tool_warned in
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7459 ac_tool_warned
=yes ;;
7467 if test -n "$ac_tool_prefix"; then
7468 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7469 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7471 $as_echo_n "checking for $ac_word... " >&6; }
7472 if ${ac_cv_prog_DLLTOOL+:} false
; then :
7473 $as_echo_n "(cached) " >&6
7475 if test -n "$DLLTOOL"; then
7476 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
7478 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7482 test -z "$as_dir" && as_dir
=.
7483 for ac_exec_ext
in '' $ac_executable_extensions; do
7484 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7485 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
7486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7495 DLLTOOL
=$ac_cv_prog_DLLTOOL
7496 if test -n "$DLLTOOL"; then
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7498 $as_echo "$DLLTOOL" >&6; }
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7501 $as_echo "no" >&6; }
7506 if test -z "$ac_cv_prog_DLLTOOL"; then
7507 ac_ct_DLLTOOL
=$DLLTOOL
7508 # Extract the first word of "dlltool", so it can be a program name with args.
7509 set dummy dlltool
; ac_word
=$2
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7511 $as_echo_n "checking for $ac_word... " >&6; }
7512 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
7513 $as_echo_n "(cached) " >&6
7515 if test -n "$ac_ct_DLLTOOL"; then
7516 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
7518 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7522 test -z "$as_dir" && as_dir
=.
7523 for ac_exec_ext
in '' $ac_executable_extensions; do
7524 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7525 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
7526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7535 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
7536 if test -n "$ac_ct_DLLTOOL"; then
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7538 $as_echo "$ac_ct_DLLTOOL" >&6; }
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7541 $as_echo "no" >&6; }
7544 if test "x$ac_ct_DLLTOOL" = x
; then
7547 case $cross_compiling:$ac_tool_warned in
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7551 ac_tool_warned
=yes ;;
7553 DLLTOOL
=$ac_ct_DLLTOOL
7556 DLLTOOL
="$ac_cv_prog_DLLTOOL"
7559 if test -n "$ac_tool_prefix"; then
7560 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7561 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7563 $as_echo_n "checking for $ac_word... " >&6; }
7564 if ${ac_cv_prog_WINDRES+:} false
; then :
7565 $as_echo_n "(cached) " >&6
7567 if test -n "$WINDRES"; then
7568 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
7570 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7574 test -z "$as_dir" && as_dir
=.
7575 for ac_exec_ext
in '' $ac_executable_extensions; do
7576 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7577 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
7578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7587 WINDRES
=$ac_cv_prog_WINDRES
7588 if test -n "$WINDRES"; then
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7590 $as_echo "$WINDRES" >&6; }
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7593 $as_echo "no" >&6; }
7598 if test -z "$ac_cv_prog_WINDRES"; then
7599 ac_ct_WINDRES
=$WINDRES
7600 # Extract the first word of "windres", so it can be a program name with args.
7601 set dummy windres
; ac_word
=$2
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7603 $as_echo_n "checking for $ac_word... " >&6; }
7604 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
7605 $as_echo_n "(cached) " >&6
7607 if test -n "$ac_ct_WINDRES"; then
7608 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
7610 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7614 test -z "$as_dir" && as_dir
=.
7615 for ac_exec_ext
in '' $ac_executable_extensions; do
7616 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7617 ac_cv_prog_ac_ct_WINDRES
="windres"
7618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7627 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
7628 if test -n "$ac_ct_WINDRES"; then
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7630 $as_echo "$ac_ct_WINDRES" >&6; }
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7633 $as_echo "no" >&6; }
7636 if test "x$ac_ct_WINDRES" = x
; then
7639 case $cross_compiling:$ac_tool_warned in
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7643 ac_tool_warned
=yes ;;
7645 WINDRES
=$ac_ct_WINDRES
7648 WINDRES
="$ac_cv_prog_WINDRES"
7654 # Needed for GNU Hurd hosts.
7655 if test -n "$ac_tool_prefix"; then
7656 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7657 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7659 $as_echo_n "checking for $ac_word... " >&6; }
7660 if ${ac_cv_prog_MIG+:} false
; then :
7661 $as_echo_n "(cached) " >&6
7663 if test -n "$MIG"; then
7664 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
7666 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7670 test -z "$as_dir" && as_dir
=.
7671 for ac_exec_ext
in '' $ac_executable_extensions; do
7672 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7673 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
7674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7684 if test -n "$MIG"; then
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
7686 $as_echo "$MIG" >&6; }
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689 $as_echo "no" >&6; }
7694 if test -z "$ac_cv_prog_MIG"; then
7696 # Extract the first word of "mig", so it can be a program name with args.
7697 set dummy mig
; ac_word
=$2
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7699 $as_echo_n "checking for $ac_word... " >&6; }
7700 if ${ac_cv_prog_ac_ct_MIG+:} false
; then :
7701 $as_echo_n "(cached) " >&6
7703 if test -n "$ac_ct_MIG"; then
7704 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
7706 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7710 test -z "$as_dir" && as_dir
=.
7711 for ac_exec_ext
in '' $ac_executable_extensions; do
7712 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7713 ac_cv_prog_ac_ct_MIG
="mig"
7714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7723 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
7724 if test -n "$ac_ct_MIG"; then
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
7726 $as_echo "$ac_ct_MIG" >&6; }
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729 $as_echo "no" >&6; }
7732 if test "x$ac_ct_MIG" = x
; then
7735 case $cross_compiling:$ac_tool_warned in
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7739 ac_tool_warned
=yes ;;
7744 MIG
="$ac_cv_prog_MIG"
7747 if test x
"$MIG" = x
; then
7748 as_fn_error $?
"MIG not found but required for $host hosts" "$LINENO" 5
7753 # ---------------------- #
7754 # Checks for libraries. #
7755 # ---------------------- #
7757 # We might need to link with -lm; most simulators need it.
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7759 $as_echo_n "checking for main in -lm... " >&6; }
7760 if ${ac_cv_lib_m_main+:} false
; then :
7761 $as_echo_n "(cached) " >&6
7763 ac_check_lib_save_LIBS
=$LIBS
7765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7766 /* end confdefs.h. */
7777 if ac_fn_c_try_link
"$LINENO"; then :
7778 ac_cv_lib_m_main
=yes
7782 rm -f core conftest.err conftest.
$ac_objext \
7783 conftest
$ac_exeext conftest.
$ac_ext
7784 LIBS
=$ac_check_lib_save_LIBS
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7787 $as_echo "$ac_cv_lib_m_main" >&6; }
7788 if test "x$ac_cv_lib_m_main" = xyes
; then :
7789 cat >>confdefs.h
<<_ACEOF
7798 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
7800 $as_echo_n "checking for library containing gethostbyname... " >&6; }
7801 if ${ac_cv_search_gethostbyname+:} false
; then :
7802 $as_echo_n "(cached) " >&6
7804 ac_func_search_save_LIBS
=$LIBS
7805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7806 /* end confdefs.h. */
7808 /* Override any GCC internal prototype to avoid an error.
7809 Use char because int might match the return type of a GCC
7810 builtin and then its argument prototype would still apply. */
7814 char gethostbyname ();
7818 return gethostbyname ();
7823 for ac_lib
in '' nsl
; do
7824 if test -z "$ac_lib"; then
7825 ac_res
="none required"
7828 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7830 if ac_fn_c_try_link
"$LINENO"; then :
7831 ac_cv_search_gethostbyname
=$ac_res
7833 rm -f core conftest.err conftest.
$ac_objext \
7835 if ${ac_cv_search_gethostbyname+:} false
; then :
7839 if ${ac_cv_search_gethostbyname+:} false
; then :
7842 ac_cv_search_gethostbyname
=no
7845 LIBS
=$ac_func_search_save_LIBS
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
7848 $as_echo "$ac_cv_search_gethostbyname" >&6; }
7849 ac_res
=$ac_cv_search_gethostbyname
7850 if test "$ac_res" != no
; then :
7851 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7856 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
7858 $as_echo_n "checking for library containing socketpair... " >&6; }
7859 if ${ac_cv_search_socketpair+:} false
; then :
7860 $as_echo_n "(cached) " >&6
7862 ac_func_search_save_LIBS
=$LIBS
7863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7864 /* end confdefs.h. */
7866 /* Override any GCC internal prototype to avoid an error.
7867 Use char because int might match the return type of a GCC
7868 builtin and then its argument prototype would still apply. */
7876 return socketpair ();
7881 for ac_lib
in '' socket
; do
7882 if test -z "$ac_lib"; then
7883 ac_res
="none required"
7886 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7888 if ac_fn_c_try_link
"$LINENO"; then :
7889 ac_cv_search_socketpair
=$ac_res
7891 rm -f core conftest.err conftest.
$ac_objext \
7893 if ${ac_cv_search_socketpair+:} false
; then :
7897 if ${ac_cv_search_socketpair+:} false
; then :
7900 ac_cv_search_socketpair
=no
7903 LIBS
=$ac_func_search_save_LIBS
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
7906 $as_echo "$ac_cv_search_socketpair" >&6; }
7907 ac_res
=$ac_cv_search_socketpair
7908 if test "$ac_res" != no
; then :
7909 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7914 # Link in zlib if we can. This allows us to read compressed debug sections.
7916 # Use the system's zlib library.
7917 zlibdir
="-L\$(top_builddir)/../zlib"
7918 zlibinc
="-I\$(top_srcdir)/../zlib"
7920 # Check whether --with-system-zlib was given.
7921 if test "${with_system_zlib+set}" = set; then :
7922 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
7933 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
7934 # On GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
7936 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
7937 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
7938 $as_echo_n "(cached) " >&6
7940 ac_func_search_save_LIBS
=$LIBS
7941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7942 /* end confdefs.h. */
7944 /* Override any GCC internal prototype to avoid an error.
7945 Use char because int might match the return type of a GCC
7946 builtin and then its argument prototype would still apply. */
7950 char kinfo_getvmmap ();
7954 return kinfo_getvmmap ();
7959 for ac_lib
in '' util util-freebsd
; do
7960 if test -z "$ac_lib"; then
7961 ac_res
="none required"
7964 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7966 if ac_fn_c_try_link
"$LINENO"; then :
7967 ac_cv_search_kinfo_getvmmap
=$ac_res
7969 rm -f core conftest.err conftest.
$ac_objext \
7971 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
7975 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
7978 ac_cv_search_kinfo_getvmmap
=no
7981 LIBS
=$ac_func_search_save_LIBS
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
7984 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
7985 ac_res
=$ac_cv_search_kinfo_getvmmap
7986 if test "$ac_res" != no
; then :
7987 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7989 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
7994 # fbsd-nat.c can also use kinfo_getfile.
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
7996 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
7997 if ${ac_cv_search_kinfo_getfile+:} false
; then :
7998 $as_echo_n "(cached) " >&6
8000 ac_func_search_save_LIBS
=$LIBS
8001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8002 /* end confdefs.h. */
8004 /* Override any GCC internal prototype to avoid an error.
8005 Use char because int might match the return type of a GCC
8006 builtin and then its argument prototype would still apply. */
8010 char kinfo_getfile ();
8014 return kinfo_getfile ();
8019 for ac_lib
in '' util util-freebsd
; do
8020 if test -z "$ac_lib"; then
8021 ac_res
="none required"
8024 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8026 if ac_fn_c_try_link
"$LINENO"; then :
8027 ac_cv_search_kinfo_getfile
=$ac_res
8029 rm -f core conftest.err conftest.
$ac_objext \
8031 if ${ac_cv_search_kinfo_getfile+:} false
; then :
8035 if ${ac_cv_search_kinfo_getfile+:} false
; then :
8038 ac_cv_search_kinfo_getfile
=no
8041 LIBS
=$ac_func_search_save_LIBS
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
8044 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
8045 ac_res
=$ac_cv_search_kinfo_getfile
8046 if test "$ac_res" != no
; then :
8047 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8049 $as_echo "#define HAVE_KINFO_GETFILE 1" >>confdefs.h
8055 if test "X$prefix" = "XNONE"; then
8056 acl_final_prefix
="$ac_default_prefix"
8058 acl_final_prefix
="$prefix"
8060 if test "X$exec_prefix" = "XNONE"; then
8061 acl_final_exec_prefix
='${prefix}'
8063 acl_final_exec_prefix
="$exec_prefix"
8065 acl_save_prefix
="$prefix"
8066 prefix
="$acl_final_prefix"
8067 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8068 prefix
="$acl_save_prefix"
8071 # Check whether --with-gnu-ld was given.
8072 if test "${with_gnu_ld+set}" = set; then :
8073 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8078 # Prepare PATH_SEPARATOR.
8079 # The user is always right.
8080 if test "${PATH_SEPARATOR+set}" != set; then
8081 echo "#! /bin/sh" >conf$$.sh
8082 echo "exit 0" >>conf$$.sh
8084 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8092 if test "$GCC" = yes; then
8093 # Check if gcc -print-prog-name=ld gives a path.
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8095 $as_echo_n "checking for ld used by GCC... " >&6; }
8098 # gcc leaves a trailing carriage return which upsets mingw
8099 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8101 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8104 # Accept absolute paths.
8105 [\\/]* |
[A-Za-z
]:[\\/]*)
8106 re_direlt
='/[^/][^/]*/\.\./'
8107 # Canonicalize the path of ld
8108 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8109 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8110 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8112 test -z "$LD" && LD
="$ac_prog"
8115 # If it fails, then pretend we aren't using GCC.
8119 # If it is relative, then search for the first ld in PATH.
8123 elif test "$with_gnu_ld" = yes; then
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8125 $as_echo_n "checking for GNU ld... " >&6; }
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8128 $as_echo_n "checking for non-GNU ld... " >&6; }
8130 if ${acl_cv_path_LD+:} false
; then :
8131 $as_echo_n "(cached) " >&6
8133 if test -z "$LD"; then
8134 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8135 for ac_dir
in $PATH; do
8136 test -z "$ac_dir" && ac_dir
=.
8137 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8138 acl_cv_path_LD
="$ac_dir/$ac_prog"
8139 # Check to see if the program is GNU ld. I'd rather use --version,
8140 # but apparently some GNU ld's only accept -v.
8141 # Break only if it was the GNU/non-GNU ld that we prefer.
8142 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
8143 test "$with_gnu_ld" != no
&& break
8145 test "$with_gnu_ld" != yes && break
8151 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8155 LD
="$acl_cv_path_LD"
8156 if test -n "$LD"; then
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8158 $as_echo "$LD" >&6; }
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8161 $as_echo "no" >&6; }
8163 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8165 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8166 if ${acl_cv_prog_gnu_ld+:} false
; then :
8167 $as_echo_n "(cached) " >&6
8169 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8170 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8171 acl_cv_prog_gnu_ld
=yes
8173 acl_cv_prog_gnu_ld
=no
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8177 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8178 with_gnu_ld
=$acl_cv_prog_gnu_ld
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8183 $as_echo_n "checking for shared library run path origin... " >&6; }
8184 if ${acl_cv_rpath+:} false
; then :
8185 $as_echo_n "(cached) " >&6
8188 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8189 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8196 $as_echo "$acl_cv_rpath" >&6; }
8198 libext
="$acl_cv_libext"
8199 shlibext
="$acl_cv_shlibext"
8200 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8201 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8202 hardcode_direct
="$acl_cv_hardcode_direct"
8203 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8204 # Check whether --enable-rpath was given.
8205 if test "${enable_rpath+set}" = set; then :
8206 enableval
=$enable_rpath; :
8220 acl_save_prefix
="$prefix"
8221 prefix
="$acl_final_prefix"
8222 acl_save_exec_prefix
="$exec_prefix"
8223 exec_prefix
="$acl_final_exec_prefix"
8225 eval additional_includedir
=\"$includedir\"
8226 eval additional_libdir
=\"$libdir\"
8228 exec_prefix
="$acl_save_exec_prefix"
8229 prefix
="$acl_save_prefix"
8232 # Check whether --with-libiconv-prefix was given.
8233 if test "${with_libiconv_prefix+set}" = set; then :
8234 withval
=$with_libiconv_prefix;
8235 if test "X$withval" = "Xno"; then
8238 if test "X$withval" = "X"; then
8240 acl_save_prefix
="$prefix"
8241 prefix
="$acl_final_prefix"
8242 acl_save_exec_prefix
="$exec_prefix"
8243 exec_prefix
="$acl_final_exec_prefix"
8245 eval additional_includedir
=\"$includedir\"
8246 eval additional_libdir
=\"$libdir\"
8248 exec_prefix
="$acl_save_exec_prefix"
8249 prefix
="$acl_save_prefix"
8252 additional_includedir
="$withval/include"
8253 additional_libdir
="$withval/lib"
8264 names_already_handled
=
8265 names_next_round
='iconv '
8266 while test -n "$names_next_round"; do
8267 names_this_round
="$names_next_round"
8269 for name
in $names_this_round; do
8271 for n
in $names_already_handled; do
8272 if test "$n" = "$name"; then
8277 if test -z "$already_handled"; then
8278 names_already_handled
="$names_already_handled $name"
8279 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8280 eval value
=\"\
$HAVE_LIB$uppername\"
8281 if test -n "$value"; then
8282 if test "$value" = yes; then
8283 eval value
=\"\
$LIB$uppername\"
8284 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
8285 eval value
=\"\
$LTLIB$uppername\"
8286 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
8295 if test $use_additional = yes; then
8296 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8297 found_dir
="$additional_libdir"
8298 found_so
="$additional_libdir/lib$name.$shlibext"
8299 if test -f "$additional_libdir/lib$name.la"; then
8300 found_la
="$additional_libdir/lib$name.la"
8303 if test -f "$additional_libdir/lib$name.$libext"; then
8304 found_dir
="$additional_libdir"
8305 found_a
="$additional_libdir/lib$name.$libext"
8306 if test -f "$additional_libdir/lib$name.la"; then
8307 found_la
="$additional_libdir/lib$name.la"
8312 if test "X$found_dir" = "X"; then
8313 for x
in $LDFLAGS $LTLIBICONV; do
8315 acl_save_prefix
="$prefix"
8316 prefix
="$acl_final_prefix"
8317 acl_save_exec_prefix
="$exec_prefix"
8318 exec_prefix
="$acl_final_exec_prefix"
8320 exec_prefix
="$acl_save_exec_prefix"
8321 prefix
="$acl_save_prefix"
8325 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8326 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8328 found_so
="$dir/lib$name.$shlibext"
8329 if test -f "$dir/lib$name.la"; then
8330 found_la
="$dir/lib$name.la"
8333 if test -f "$dir/lib$name.$libext"; then
8335 found_a
="$dir/lib$name.$libext"
8336 if test -f "$dir/lib$name.la"; then
8337 found_la
="$dir/lib$name.la"
8343 if test "X$found_dir" != "X"; then
8348 if test "X$found_dir" != "X"; then
8349 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8350 if test "X$found_so" != "X"; then
8351 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8352 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8355 for x
in $ltrpathdirs; do
8356 if test "X$x" = "X$found_dir"; then
8361 if test -z "$haveit"; then
8362 ltrpathdirs
="$ltrpathdirs $found_dir"
8364 if test "$hardcode_direct" = yes; then
8365 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8367 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8368 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8370 for x
in $rpathdirs; do
8371 if test "X$x" = "X$found_dir"; then
8376 if test -z "$haveit"; then
8377 rpathdirs
="$rpathdirs $found_dir"
8381 for x
in $LDFLAGS $LIBICONV; do
8383 acl_save_prefix
="$prefix"
8384 prefix
="$acl_final_prefix"
8385 acl_save_exec_prefix
="$exec_prefix"
8386 exec_prefix
="$acl_final_exec_prefix"
8388 exec_prefix
="$acl_save_exec_prefix"
8389 prefix
="$acl_save_prefix"
8391 if test "X$x" = "X-L$found_dir"; then
8396 if test -z "$haveit"; then
8397 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8399 if test "$hardcode_minus_L" != no
; then
8400 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8402 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8408 if test "X$found_a" != "X"; then
8409 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
8411 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8414 additional_includedir
=
8415 case "$found_dir" in
8417 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8418 additional_includedir
="$basedir/include"
8421 if test "X$additional_includedir" != "X"; then
8422 if test "X$additional_includedir" != "X/usr/include"; then
8424 if test "X$additional_includedir" = "X/usr/local/include"; then
8425 if test -n "$GCC"; then
8427 linux
*) haveit
=yes;;
8431 if test -z "$haveit"; then
8432 for x
in $CPPFLAGS $INCICONV; do
8434 acl_save_prefix
="$prefix"
8435 prefix
="$acl_final_prefix"
8436 acl_save_exec_prefix
="$exec_prefix"
8437 exec_prefix
="$acl_final_exec_prefix"
8439 exec_prefix
="$acl_save_exec_prefix"
8440 prefix
="$acl_save_prefix"
8442 if test "X$x" = "X-I$additional_includedir"; then
8447 if test -z "$haveit"; then
8448 if test -d "$additional_includedir"; then
8449 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8455 if test -n "$found_la"; then
8456 save_libdir
="$libdir"
8458 */* |
*\\*) .
"$found_la" ;;
8459 *) .
"./$found_la" ;;
8461 libdir
="$save_libdir"
8462 for dep
in $dependency_libs; do
8465 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8466 if test "X$additional_libdir" != "X/usr/lib"; then
8468 if test "X$additional_libdir" = "X/usr/local/lib"; then
8469 if test -n "$GCC"; then
8471 linux
*) haveit
=yes;;
8475 if test -z "$haveit"; then
8477 for x
in $LDFLAGS $LIBICONV; do
8479 acl_save_prefix
="$prefix"
8480 prefix
="$acl_final_prefix"
8481 acl_save_exec_prefix
="$exec_prefix"
8482 exec_prefix
="$acl_final_exec_prefix"
8484 exec_prefix
="$acl_save_exec_prefix"
8485 prefix
="$acl_save_prefix"
8487 if test "X$x" = "X-L$additional_libdir"; then
8492 if test -z "$haveit"; then
8493 if test -d "$additional_libdir"; then
8494 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8498 for x
in $LDFLAGS $LTLIBICONV; do
8500 acl_save_prefix
="$prefix"
8501 prefix
="$acl_final_prefix"
8502 acl_save_exec_prefix
="$exec_prefix"
8503 exec_prefix
="$acl_final_exec_prefix"
8505 exec_prefix
="$acl_save_exec_prefix"
8506 prefix
="$acl_save_prefix"
8508 if test "X$x" = "X-L$additional_libdir"; then
8513 if test -z "$haveit"; then
8514 if test -d "$additional_libdir"; then
8515 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8522 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8523 if test "$enable_rpath" != no
; then
8525 for x
in $rpathdirs; do
8526 if test "X$x" = "X$dir"; then
8531 if test -z "$haveit"; then
8532 rpathdirs
="$rpathdirs $dir"
8535 for x
in $ltrpathdirs; do
8536 if test "X$x" = "X$dir"; then
8541 if test -z "$haveit"; then
8542 ltrpathdirs
="$ltrpathdirs $dir"
8547 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8550 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8553 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
8554 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8560 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8561 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8567 if test "X$rpathdirs" != "X"; then
8568 if test -n "$hardcode_libdir_separator"; then
8570 for found_dir
in $rpathdirs; do
8571 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8573 acl_save_libdir
="$libdir"
8575 eval flag
=\"$hardcode_libdir_flag_spec\"
8576 libdir
="$acl_save_libdir"
8577 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8579 for found_dir
in $rpathdirs; do
8580 acl_save_libdir
="$libdir"
8582 eval flag
=\"$hardcode_libdir_flag_spec\"
8583 libdir
="$acl_save_libdir"
8584 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8588 if test "X$ltrpathdirs" != "X"; then
8589 for found_dir
in $ltrpathdirs; do
8590 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8601 $as_echo_n "checking for iconv... " >&6; }
8602 if ${am_cv_func_iconv+:} false
; then :
8603 $as_echo_n "(cached) " >&6
8606 am_cv_func_iconv
="no, consider installing GNU libiconv"
8608 am_save_CPPFLAGS
="$CPPFLAGS"
8609 CPPFLAGS
="$CPPFLAGS $INCICONV"
8610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8611 /* end confdefs.h. */
8617 iconv_t cd = iconv_open("","");
8618 iconv(cd,NULL,NULL,NULL,NULL);
8624 if ac_fn_c_try_link
"$LINENO"; then :
8625 am_cv_func_iconv
=yes
8627 rm -f core conftest.err conftest.
$ac_objext \
8628 conftest
$ac_exeext conftest.
$ac_ext
8629 CPPFLAGS
="$am_save_CPPFLAGS"
8631 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
8632 for _libs
in .libs _libs
; do
8633 am_save_CPPFLAGS
="$CPPFLAGS"
8634 am_save_LIBS
="$LIBS"
8635 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
8636 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
8637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8638 /* end confdefs.h. */
8644 iconv_t cd = iconv_open("","");
8645 iconv(cd,NULL,NULL,NULL,NULL);
8651 if ac_fn_c_try_link
"$LINENO"; then :
8652 INCICONV
="-I../libiconv/include"
8653 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
8654 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
8656 am_cv_func_iconv
=yes
8658 rm -f core conftest.err conftest.
$ac_objext \
8659 conftest
$ac_exeext conftest.
$ac_ext
8660 CPPFLAGS
="$am_save_CPPFLAGS"
8661 LIBS
="$am_save_LIBS"
8662 if test "$am_cv_func_iconv" = "yes"; then
8668 if test "$am_cv_func_iconv" != yes; then
8669 am_save_CPPFLAGS
="$CPPFLAGS"
8670 am_save_LIBS
="$LIBS"
8671 CPPFLAGS
="$LIBS $INCICONV"
8672 LIBS
="$LIBS $LIBICONV"
8673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8674 /* end confdefs.h. */
8680 iconv_t cd = iconv_open("","");
8681 iconv(cd,NULL,NULL,NULL,NULL);
8687 if ac_fn_c_try_link
"$LINENO"; then :
8689 am_cv_func_iconv
=yes
8691 rm -f core conftest.err conftest.
$ac_objext \
8692 conftest
$ac_exeext conftest.
$ac_ext
8693 CPPFLAGS
="$am_save_CPPFLAGS"
8694 LIBS
="$am_save_LIBS"
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8699 $as_echo "$am_cv_func_iconv" >&6; }
8700 if test "$am_cv_func_iconv" = yes; then
8702 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8705 if test "$am_cv_lib_iconv" = yes; then
8707 for element
in $INCICONV; do
8709 for x
in $CPPFLAGS; do
8711 acl_save_prefix
="$prefix"
8712 prefix
="$acl_final_prefix"
8713 acl_save_exec_prefix
="$exec_prefix"
8714 exec_prefix
="$acl_final_exec_prefix"
8716 exec_prefix
="$acl_save_exec_prefix"
8717 prefix
="$acl_save_prefix"
8719 if test "X$x" = "X$element"; then
8724 if test -z "$haveit"; then
8725 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8730 $as_echo_n "checking how to link with libiconv... " >&6; }
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8732 $as_echo "$LIBICONV" >&6; }
8740 if test "$am_cv_func_iconv" = yes; then
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8742 $as_echo_n "checking for iconv declaration... " >&6; }
8743 if ${am_cv_proto_iconv+:} false
; then :
8744 $as_echo_n "(cached) " >&6
8747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8748 /* end confdefs.h. */
8756 #if defined(__STDC__) || defined(__cplusplus)
8757 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8770 if ac_fn_c_try_compile
"$LINENO"; then :
8771 am_cv_proto_iconv_arg1
=""
8773 am_cv_proto_iconv_arg1
="const"
8775 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8776 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);"
8779 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8781 }$am_cv_proto_iconv" >&5
8783 }$am_cv_proto_iconv" >&6; }
8785 cat >>confdefs.h
<<_ACEOF
8786 #define ICONV_CONST $am_cv_proto_iconv_arg1
8792 # GDB may fork/exec the iconv program to get the list of supported character
8793 # sets. Allow the user to specify where to find it.
8794 # There are several factors affecting the choice of option name:
8795 # - There is already --with-libiconv-prefix but we can't use it, it specifies
8796 # the build-time location of libiconv files.
8797 # - The program we need to find is iconv, which comes with glibc. The user
8798 # doesn't necessarily have libiconv installed. Therefore naming this
8799 # --with-libiconv-foo feels wrong.
8800 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
8801 # defined to work on directories not files (though it really doesn't know
8803 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
8804 # with --with-libiconv-prefix.
8805 # Putting these together is why the option name is --with-iconv-bin.
8808 # Check whether --with-iconv-bin was given.
8809 if test "${with_iconv_bin+set}" = set; then :
8810 withval
=$with_iconv_bin; iconv_bin
="${withval}"
8812 cat >>confdefs.h
<<_ACEOF
8813 #define ICONV_BIN "${iconv_bin}"
8817 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
8818 if test "x$prefix" = xNONE
; then
8819 test_prefix
=/usr
/local
8824 test_prefix
=$exec_prefix
8827 case ${iconv_bin} in
8828 "${test_prefix}"|
"${test_prefix}/"*|\
8829 '${exec_prefix}'|
'${exec_prefix}/'*)
8834 cat >>confdefs.h
<<_ACEOF
8835 #define ICONV_BIN_RELOCATABLE $value
8843 # For the TUI, we need enhanced curses functionality.
8844 if test x
"$enable_tui" != xno
; then
8849 if test x
"$prefer_curses" = xyes
; then
8850 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8851 # curses library because the latter might not provide all the
8852 # functionality we need. However, this leads to problems on systems
8853 # where the linker searches /usr/local/lib, but the compiler doesn't
8854 # search /usr/local/include, if ncurses is installed in /usr/local. A
8855 # default installation of ncurses on alpha*-dec-osf* will lead to such
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
8858 $as_echo_n "checking for library containing waddstr... " >&6; }
8859 if ${ac_cv_search_waddstr+:} false
; then :
8860 $as_echo_n "(cached) " >&6
8862 ac_func_search_save_LIBS
=$LIBS
8863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8864 /* end confdefs.h. */
8866 /* Override any GCC internal prototype to avoid an error.
8867 Use char because int might match the return type of a GCC
8868 builtin and then its argument prototype would still apply. */
8881 for ac_lib
in '' ncursesw ncurses cursesX curses
; do
8882 if test -z "$ac_lib"; then
8883 ac_res
="none required"
8886 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8888 if ac_fn_c_try_link
"$LINENO"; then :
8889 ac_cv_search_waddstr
=$ac_res
8891 rm -f core conftest.err conftest.
$ac_objext \
8893 if ${ac_cv_search_waddstr+:} false
; then :
8897 if ${ac_cv_search_waddstr+:} false
; then :
8900 ac_cv_search_waddstr
=no
8903 LIBS
=$ac_func_search_save_LIBS
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
8906 $as_echo "$ac_cv_search_waddstr" >&6; }
8907 ac_res
=$ac_cv_search_waddstr
8908 if test "$ac_res" != no
; then :
8909 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8914 if test "$ac_cv_search_waddstr" != no
; then
8919 # Check whether we should enable the TUI, but only do so if we really
8921 if test x
"$enable_tui" != xno
; then
8922 if test -d $srcdir/tui
; then
8923 if test "$curses_found" != no
; then
8924 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
8925 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
8926 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
8927 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
8929 if test x
"$enable_tui" = xyes
; then
8930 as_fn_error $?
"no enhanced curses library found; disable TUI" "$LINENO" 5
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
8933 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
8939 # Since GDB uses Readline, we need termcap functionality. In many
8940 # cases this will be provided by the curses library, but some systems
8941 # have a separate termcap library, or no curses library at all.
8945 if test -d $srcdir/libtermcap
; then
8946 LIBS
="../libtermcap/libtermcap.a $LIBS"
8947 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
8950 ac_cv_search_tgetent
="none required"
8954 # These are the libraries checked by Readline.
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
8956 $as_echo_n "checking for library containing tgetent... " >&6; }
8957 if ${ac_cv_search_tgetent+:} false
; then :
8958 $as_echo_n "(cached) " >&6
8960 ac_func_search_save_LIBS
=$LIBS
8961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8962 /* end confdefs.h. */
8964 /* Override any GCC internal prototype to avoid an error.
8965 Use char because int might match the return type of a GCC
8966 builtin and then its argument prototype would still apply. */
8979 for ac_lib
in '' termcap tinfo curses ncursesw ncurses
; do
8980 if test -z "$ac_lib"; then
8981 ac_res
="none required"
8984 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8986 if ac_fn_c_try_link
"$LINENO"; then :
8987 ac_cv_search_tgetent
=$ac_res
8989 rm -f core conftest.err conftest.
$ac_objext \
8991 if ${ac_cv_search_tgetent+:} false
; then :
8995 if ${ac_cv_search_tgetent+:} false
; then :
8998 ac_cv_search_tgetent
=no
9001 LIBS
=$ac_func_search_save_LIBS
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9004 $as_echo "$ac_cv_search_tgetent" >&6; }
9005 ac_res
=$ac_cv_search_tgetent
9006 if test "$ac_res" != no
; then :
9007 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9012 if test "$ac_cv_search_tgetent" = no
; then
9013 CONFIG_OBS
="$CONFIG_OBS stub-termcap.o"
9017 # Check whether --with-system-readline was given.
9018 if test "${with_system_readline+set}" = set; then :
9019 withval
=$with_system_readline;
9023 if test "$with_system_readline" = yes; then
9027 READLINE_TEXI_INCFLAG
=
9029 READLINE
='$(READLINE_DIR)/libreadline.a'
9030 READLINE_DEPS
='$(READLINE)'
9031 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
9032 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
9039 # Generate jit-reader.h
9041 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
9044 # The cast to long int works around a bug in the HP C Compiler
9045 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9046 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9047 # This bug is HP SR number 8606223364.
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
9049 $as_echo_n "checking size of unsigned long long... " >&6; }
9050 if ${ac_cv_sizeof_unsigned_long_long+:} false
; then :
9051 $as_echo_n "(cached) " >&6
9053 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
9056 if test "$ac_cv_type_unsigned_long_long" = yes; then
9057 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9058 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9059 as_fn_error
77 "cannot compute sizeof (unsigned long long)
9060 See \`config.log' for more details" "$LINENO" 5; }
9062 ac_cv_sizeof_unsigned_long_long
=0
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
9068 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
9072 cat >>confdefs.h
<<_ACEOF
9073 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
9077 # The cast to long int works around a bug in the HP C Compiler
9078 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9079 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9080 # This bug is HP SR number 8606223364.
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
9082 $as_echo_n "checking size of unsigned long... " >&6; }
9083 if ${ac_cv_sizeof_unsigned_long+:} false
; then :
9084 $as_echo_n "(cached) " >&6
9086 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
9089 if test "$ac_cv_type_unsigned_long" = yes; then
9090 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9091 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9092 as_fn_error
77 "cannot compute sizeof (unsigned long)
9093 See \`config.log' for more details" "$LINENO" 5; }
9095 ac_cv_sizeof_unsigned_long
=0
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
9101 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
9105 cat >>confdefs.h
<<_ACEOF
9106 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9110 # The cast to long int works around a bug in the HP C Compiler
9111 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9112 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9113 # This bug is HP SR number 8606223364.
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
9115 $as_echo_n "checking size of unsigned __int128... " >&6; }
9116 if ${ac_cv_sizeof_unsigned___int128+:} false
; then :
9117 $as_echo_n "(cached) " >&6
9119 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
9122 if test "$ac_cv_type_unsigned___int128" = yes; then
9123 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9125 as_fn_error
77 "cannot compute sizeof (unsigned __int128)
9126 See \`config.log' for more details" "$LINENO" 5; }
9128 ac_cv_sizeof_unsigned___int128
=0
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
9134 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
9138 cat >>confdefs.h
<<_ACEOF
9139 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
9144 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9145 TARGET_PTR
="unsigned long"
9146 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9147 TARGET_PTR
="unsigned long long"
9148 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
9149 TARGET_PTR
="unsigned __int128"
9151 TARGET_PTR
="unsigned long"
9155 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9159 $as_echo_n "checking for library containing dlopen... " >&6; }
9160 if ${ac_cv_search_dlopen+:} false
; then :
9161 $as_echo_n "(cached) " >&6
9163 ac_func_search_save_LIBS
=$LIBS
9164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9165 /* end confdefs.h. */
9167 /* Override any GCC internal prototype to avoid an error.
9168 Use char because int might match the return type of a GCC
9169 builtin and then its argument prototype would still apply. */
9182 for ac_lib
in '' dl
; do
9183 if test -z "$ac_lib"; then
9184 ac_res
="none required"
9187 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9189 if ac_fn_c_try_link
"$LINENO"; then :
9190 ac_cv_search_dlopen
=$ac_res
9192 rm -f core conftest.err conftest.
$ac_objext \
9194 if ${ac_cv_search_dlopen+:} false
; then :
9198 if ${ac_cv_search_dlopen+:} false
; then :
9201 ac_cv_search_dlopen
=no
9204 LIBS
=$ac_func_search_save_LIBS
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9207 $as_echo "$ac_cv_search_dlopen" >&6; }
9208 ac_res
=$ac_cv_search_dlopen
9209 if test "$ac_res" != no
; then :
9210 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9217 # Check whether --with-jit-reader-dir was given.
9218 if test "${with_jit_reader_dir+set}" = set; then :
9219 withval
=$with_jit_reader_dir;
9220 JIT_READER_DIR
=$withval
9222 JIT_READER_DIR
=${libdir}/gdb
9226 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9227 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9228 ac_define_dir
=`eval echo $JIT_READER_DIR`
9229 ac_define_dir
=`eval echo $ac_define_dir`
9231 cat >>confdefs.h
<<_ACEOF
9232 #define JIT_READER_DIR "$ac_define_dir"
9238 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9239 if test "x$prefix" = xNONE
; then
9240 test_prefix
=/usr
/local
9245 test_prefix
=$exec_prefix
9248 case ${ac_define_dir} in
9249 "${test_prefix}"|
"${test_prefix}/"*|\
9250 '${exec_prefix}'|
'${exec_prefix}/'*)
9255 cat >>confdefs.h
<<_ACEOF
9256 #define JIT_READER_DIR_RELOCATABLE $value
9263 # Check whether --with-expat was given.
9264 if test "${with_expat+set}" = set; then :
9265 withval
=$with_expat;
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9271 $as_echo_n "checking whether to use expat... " >&6; }
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9273 $as_echo "$with_expat" >&6; }
9275 if test "${with_expat}" = no
; then
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9277 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9290 acl_save_prefix
="$prefix"
9291 prefix
="$acl_final_prefix"
9292 acl_save_exec_prefix
="$exec_prefix"
9293 exec_prefix
="$acl_final_exec_prefix"
9295 eval additional_includedir
=\"$includedir\"
9296 eval additional_libdir
=\"$libdir\"
9298 exec_prefix
="$acl_save_exec_prefix"
9299 prefix
="$acl_save_prefix"
9302 # Check whether --with-libexpat-prefix was given.
9303 if test "${with_libexpat_prefix+set}" = set; then :
9304 withval
=$with_libexpat_prefix;
9305 if test "X$withval" = "Xno"; then
9308 if test "X$withval" = "X"; then
9310 acl_save_prefix
="$prefix"
9311 prefix
="$acl_final_prefix"
9312 acl_save_exec_prefix
="$exec_prefix"
9313 exec_prefix
="$acl_final_exec_prefix"
9315 eval additional_includedir
=\"$includedir\"
9316 eval additional_libdir
=\"$libdir\"
9318 exec_prefix
="$acl_save_exec_prefix"
9319 prefix
="$acl_save_prefix"
9322 additional_includedir
="$withval/include"
9323 additional_libdir
="$withval/lib"
9334 names_already_handled
=
9335 names_next_round
='expat '
9336 while test -n "$names_next_round"; do
9337 names_this_round
="$names_next_round"
9339 for name
in $names_this_round; do
9341 for n
in $names_already_handled; do
9342 if test "$n" = "$name"; then
9347 if test -z "$already_handled"; then
9348 names_already_handled
="$names_already_handled $name"
9349 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9350 eval value
=\"\
$HAVE_LIB$uppername\"
9351 if test -n "$value"; then
9352 if test "$value" = yes; then
9353 eval value
=\"\
$LIB$uppername\"
9354 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
9355 eval value
=\"\
$LTLIB$uppername\"
9356 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
9365 if test $use_additional = yes; then
9366 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9367 found_dir
="$additional_libdir"
9368 found_so
="$additional_libdir/lib$name.$shlibext"
9369 if test -f "$additional_libdir/lib$name.la"; then
9370 found_la
="$additional_libdir/lib$name.la"
9373 if test -f "$additional_libdir/lib$name.$libext"; then
9374 found_dir
="$additional_libdir"
9375 found_a
="$additional_libdir/lib$name.$libext"
9376 if test -f "$additional_libdir/lib$name.la"; then
9377 found_la
="$additional_libdir/lib$name.la"
9382 if test "X$found_dir" = "X"; then
9383 for x
in $LDFLAGS $LTLIBEXPAT; do
9385 acl_save_prefix
="$prefix"
9386 prefix
="$acl_final_prefix"
9387 acl_save_exec_prefix
="$exec_prefix"
9388 exec_prefix
="$acl_final_exec_prefix"
9390 exec_prefix
="$acl_save_exec_prefix"
9391 prefix
="$acl_save_prefix"
9395 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9396 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9398 found_so
="$dir/lib$name.$shlibext"
9399 if test -f "$dir/lib$name.la"; then
9400 found_la
="$dir/lib$name.la"
9403 if test -f "$dir/lib$name.$libext"; then
9405 found_a
="$dir/lib$name.$libext"
9406 if test -f "$dir/lib$name.la"; then
9407 found_la
="$dir/lib$name.la"
9413 if test "X$found_dir" != "X"; then
9418 if test "X$found_dir" != "X"; then
9419 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
9420 if test "X$found_so" != "X"; then
9421 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9422 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9425 for x
in $ltrpathdirs; do
9426 if test "X$x" = "X$found_dir"; then
9431 if test -z "$haveit"; then
9432 ltrpathdirs
="$ltrpathdirs $found_dir"
9434 if test "$hardcode_direct" = yes; then
9435 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9437 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9438 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9440 for x
in $rpathdirs; do
9441 if test "X$x" = "X$found_dir"; then
9446 if test -z "$haveit"; then
9447 rpathdirs
="$rpathdirs $found_dir"
9451 for x
in $LDFLAGS $LIBEXPAT; do
9453 acl_save_prefix
="$prefix"
9454 prefix
="$acl_final_prefix"
9455 acl_save_exec_prefix
="$exec_prefix"
9456 exec_prefix
="$acl_final_exec_prefix"
9458 exec_prefix
="$acl_save_exec_prefix"
9459 prefix
="$acl_save_prefix"
9461 if test "X$x" = "X-L$found_dir"; then
9466 if test -z "$haveit"; then
9467 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
9469 if test "$hardcode_minus_L" != no
; then
9470 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9472 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9478 if test "X$found_a" != "X"; then
9479 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
9481 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
9484 additional_includedir
=
9485 case "$found_dir" in
9487 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9488 additional_includedir
="$basedir/include"
9491 if test "X$additional_includedir" != "X"; then
9492 if test "X$additional_includedir" != "X/usr/include"; then
9494 if test "X$additional_includedir" = "X/usr/local/include"; then
9495 if test -n "$GCC"; then
9497 linux
*) haveit
=yes;;
9501 if test -z "$haveit"; then
9502 for x
in $CPPFLAGS $INCEXPAT; do
9504 acl_save_prefix
="$prefix"
9505 prefix
="$acl_final_prefix"
9506 acl_save_exec_prefix
="$exec_prefix"
9507 exec_prefix
="$acl_final_exec_prefix"
9509 exec_prefix
="$acl_save_exec_prefix"
9510 prefix
="$acl_save_prefix"
9512 if test "X$x" = "X-I$additional_includedir"; then
9517 if test -z "$haveit"; then
9518 if test -d "$additional_includedir"; then
9519 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
9525 if test -n "$found_la"; then
9526 save_libdir
="$libdir"
9528 */* |
*\\*) .
"$found_la" ;;
9529 *) .
"./$found_la" ;;
9531 libdir
="$save_libdir"
9532 for dep
in $dependency_libs; do
9535 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9536 if test "X$additional_libdir" != "X/usr/lib"; then
9538 if test "X$additional_libdir" = "X/usr/local/lib"; then
9539 if test -n "$GCC"; then
9541 linux
*) haveit
=yes;;
9545 if test -z "$haveit"; then
9547 for x
in $LDFLAGS $LIBEXPAT; do
9549 acl_save_prefix
="$prefix"
9550 prefix
="$acl_final_prefix"
9551 acl_save_exec_prefix
="$exec_prefix"
9552 exec_prefix
="$acl_final_exec_prefix"
9554 exec_prefix
="$acl_save_exec_prefix"
9555 prefix
="$acl_save_prefix"
9557 if test "X$x" = "X-L$additional_libdir"; then
9562 if test -z "$haveit"; then
9563 if test -d "$additional_libdir"; then
9564 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
9568 for x
in $LDFLAGS $LTLIBEXPAT; do
9570 acl_save_prefix
="$prefix"
9571 prefix
="$acl_final_prefix"
9572 acl_save_exec_prefix
="$exec_prefix"
9573 exec_prefix
="$acl_final_exec_prefix"
9575 exec_prefix
="$acl_save_exec_prefix"
9576 prefix
="$acl_save_prefix"
9578 if test "X$x" = "X-L$additional_libdir"; then
9583 if test -z "$haveit"; then
9584 if test -d "$additional_libdir"; then
9585 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
9592 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9593 if test "$enable_rpath" != no
; then
9595 for x
in $rpathdirs; do
9596 if test "X$x" = "X$dir"; then
9601 if test -z "$haveit"; then
9602 rpathdirs
="$rpathdirs $dir"
9605 for x
in $ltrpathdirs; do
9606 if test "X$x" = "X$dir"; then
9611 if test -z "$haveit"; then
9612 ltrpathdirs
="$ltrpathdirs $dir"
9617 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9620 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9623 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
9624 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
9630 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9631 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
9637 if test "X$rpathdirs" != "X"; then
9638 if test -n "$hardcode_libdir_separator"; then
9640 for found_dir
in $rpathdirs; do
9641 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9643 acl_save_libdir
="$libdir"
9645 eval flag
=\"$hardcode_libdir_flag_spec\"
9646 libdir
="$acl_save_libdir"
9647 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9649 for found_dir
in $rpathdirs; do
9650 acl_save_libdir
="$libdir"
9652 eval flag
=\"$hardcode_libdir_flag_spec\"
9653 libdir
="$acl_save_libdir"
9654 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9658 if test "X$ltrpathdirs" != "X"; then
9659 for found_dir
in $ltrpathdirs; do
9660 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9665 ac_save_CPPFLAGS
="$CPPFLAGS"
9667 for element
in $INCEXPAT; do
9669 for x
in $CPPFLAGS; do
9671 acl_save_prefix
="$prefix"
9672 prefix
="$acl_final_prefix"
9673 acl_save_exec_prefix
="$exec_prefix"
9674 exec_prefix
="$acl_final_exec_prefix"
9676 exec_prefix
="$acl_save_exec_prefix"
9677 prefix
="$acl_save_prefix"
9679 if test "X$x" = "X$element"; then
9684 if test -z "$haveit"; then
9685 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9691 $as_echo_n "checking for libexpat... " >&6; }
9692 if ${ac_cv_libexpat+:} false
; then :
9693 $as_echo_n "(cached) " >&6
9696 ac_save_LIBS
="$LIBS"
9697 LIBS
="$LIBS $LIBEXPAT"
9698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9699 /* end confdefs.h. */
9704 XML_Parser p = XML_ParserCreate (0);
9709 if ac_fn_c_try_link
"$LINENO"; then :
9714 rm -f core conftest.err conftest.
$ac_objext \
9715 conftest
$ac_exeext conftest.
$ac_ext
9716 LIBS
="$ac_save_LIBS"
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
9720 $as_echo "$ac_cv_libexpat" >&6; }
9721 if test "$ac_cv_libexpat" = yes; then
9724 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
9727 $as_echo_n "checking how to link with libexpat... " >&6; }
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
9729 $as_echo "$LIBEXPAT" >&6; }
9732 CPPFLAGS
="$ac_save_CPPFLAGS"
9742 if test "$HAVE_LIBEXPAT" != yes; then
9743 if test "$with_expat" = yes; then
9744 as_fn_error $?
"expat is missing or unusable" "$LINENO" 5
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
9747 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
9751 LIBS
="$LIBS $LIBEXPAT"
9752 for ac_func
in XML_StopParser
9754 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
9755 if test "x$ac_cv_func_XML_StopParser" = xyes
; then :
9756 cat >>confdefs.h
<<_ACEOF
9757 #define HAVE_XML_STOPPARSER 1
9768 # Check whether --with-mpfr was given.
9769 if test "${with_mpfr+set}" = set; then :
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5
9776 $as_echo_n "checking whether to use MPFR... " >&6; }
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5
9778 $as_echo "$with_mpfr" >&6; }
9780 if test "${with_mpfr}" = no
; then
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5
9782 $as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;}
9795 acl_save_prefix
="$prefix"
9796 prefix
="$acl_final_prefix"
9797 acl_save_exec_prefix
="$exec_prefix"
9798 exec_prefix
="$acl_final_exec_prefix"
9800 eval additional_includedir
=\"$includedir\"
9801 eval additional_libdir
=\"$libdir\"
9803 exec_prefix
="$acl_save_exec_prefix"
9804 prefix
="$acl_save_prefix"
9807 # Check whether --with-libmpfr-prefix was given.
9808 if test "${with_libmpfr_prefix+set}" = set; then :
9809 withval
=$with_libmpfr_prefix;
9810 if test "X$withval" = "Xno"; then
9813 if test "X$withval" = "X"; then
9815 acl_save_prefix
="$prefix"
9816 prefix
="$acl_final_prefix"
9817 acl_save_exec_prefix
="$exec_prefix"
9818 exec_prefix
="$acl_final_exec_prefix"
9820 eval additional_includedir
=\"$includedir\"
9821 eval additional_libdir
=\"$libdir\"
9823 exec_prefix
="$acl_save_exec_prefix"
9824 prefix
="$acl_save_prefix"
9827 additional_includedir
="$withval/include"
9828 additional_libdir
="$withval/lib"
9839 names_already_handled
=
9840 names_next_round
='mpfr gmp'
9841 while test -n "$names_next_round"; do
9842 names_this_round
="$names_next_round"
9844 for name
in $names_this_round; do
9846 for n
in $names_already_handled; do
9847 if test "$n" = "$name"; then
9852 if test -z "$already_handled"; then
9853 names_already_handled
="$names_already_handled $name"
9854 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9855 eval value
=\"\
$HAVE_LIB$uppername\"
9856 if test -n "$value"; then
9857 if test "$value" = yes; then
9858 eval value
=\"\
$LIB$uppername\"
9859 test -z "$value" || LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$value"
9860 eval value
=\"\
$LTLIB$uppername\"
9861 test -z "$value" || LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$value"
9870 if test $use_additional = yes; then
9871 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9872 found_dir
="$additional_libdir"
9873 found_so
="$additional_libdir/lib$name.$shlibext"
9874 if test -f "$additional_libdir/lib$name.la"; then
9875 found_la
="$additional_libdir/lib$name.la"
9878 if test -f "$additional_libdir/lib$name.$libext"; then
9879 found_dir
="$additional_libdir"
9880 found_a
="$additional_libdir/lib$name.$libext"
9881 if test -f "$additional_libdir/lib$name.la"; then
9882 found_la
="$additional_libdir/lib$name.la"
9887 if test "X$found_dir" = "X"; then
9888 for x
in $LDFLAGS $LTLIBMPFR; do
9890 acl_save_prefix
="$prefix"
9891 prefix
="$acl_final_prefix"
9892 acl_save_exec_prefix
="$exec_prefix"
9893 exec_prefix
="$acl_final_exec_prefix"
9895 exec_prefix
="$acl_save_exec_prefix"
9896 prefix
="$acl_save_prefix"
9900 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9901 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9903 found_so
="$dir/lib$name.$shlibext"
9904 if test -f "$dir/lib$name.la"; then
9905 found_la
="$dir/lib$name.la"
9908 if test -f "$dir/lib$name.$libext"; then
9910 found_a
="$dir/lib$name.$libext"
9911 if test -f "$dir/lib$name.la"; then
9912 found_la
="$dir/lib$name.la"
9918 if test "X$found_dir" != "X"; then
9923 if test "X$found_dir" != "X"; then
9924 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$found_dir -l$name"
9925 if test "X$found_so" != "X"; then
9926 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9927 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
9930 for x
in $ltrpathdirs; do
9931 if test "X$x" = "X$found_dir"; then
9936 if test -z "$haveit"; then
9937 ltrpathdirs
="$ltrpathdirs $found_dir"
9939 if test "$hardcode_direct" = yes; then
9940 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
9942 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9943 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
9945 for x
in $rpathdirs; do
9946 if test "X$x" = "X$found_dir"; then
9951 if test -z "$haveit"; then
9952 rpathdirs
="$rpathdirs $found_dir"
9956 for x
in $LDFLAGS $LIBMPFR; do
9958 acl_save_prefix
="$prefix"
9959 prefix
="$acl_final_prefix"
9960 acl_save_exec_prefix
="$exec_prefix"
9961 exec_prefix
="$acl_final_exec_prefix"
9963 exec_prefix
="$acl_save_exec_prefix"
9964 prefix
="$acl_save_prefix"
9966 if test "X$x" = "X-L$found_dir"; then
9971 if test -z "$haveit"; then
9972 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir"
9974 if test "$hardcode_minus_L" != no
; then
9975 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
9977 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
9983 if test "X$found_a" != "X"; then
9984 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_a"
9986 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir -l$name"
9989 additional_includedir
=
9990 case "$found_dir" in
9992 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9993 additional_includedir
="$basedir/include"
9996 if test "X$additional_includedir" != "X"; then
9997 if test "X$additional_includedir" != "X/usr/include"; then
9999 if test "X$additional_includedir" = "X/usr/local/include"; then
10000 if test -n "$GCC"; then
10002 linux
*) haveit
=yes;;
10006 if test -z "$haveit"; then
10007 for x
in $CPPFLAGS $INCMPFR; do
10009 acl_save_prefix
="$prefix"
10010 prefix
="$acl_final_prefix"
10011 acl_save_exec_prefix
="$exec_prefix"
10012 exec_prefix
="$acl_final_exec_prefix"
10014 exec_prefix
="$acl_save_exec_prefix"
10015 prefix
="$acl_save_prefix"
10017 if test "X$x" = "X-I$additional_includedir"; then
10022 if test -z "$haveit"; then
10023 if test -d "$additional_includedir"; then
10024 INCMPFR
="${INCMPFR}${INCMPFR:+ }-I$additional_includedir"
10030 if test -n "$found_la"; then
10031 save_libdir
="$libdir"
10032 case "$found_la" in
10033 */* |
*\\*) .
"$found_la" ;;
10034 *) .
"./$found_la" ;;
10036 libdir
="$save_libdir"
10037 for dep
in $dependency_libs; do
10040 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10041 if test "X$additional_libdir" != "X/usr/lib"; then
10043 if test "X$additional_libdir" = "X/usr/local/lib"; then
10044 if test -n "$GCC"; then
10046 linux
*) haveit
=yes;;
10050 if test -z "$haveit"; then
10052 for x
in $LDFLAGS $LIBMPFR; do
10054 acl_save_prefix
="$prefix"
10055 prefix
="$acl_final_prefix"
10056 acl_save_exec_prefix
="$exec_prefix"
10057 exec_prefix
="$acl_final_exec_prefix"
10059 exec_prefix
="$acl_save_exec_prefix"
10060 prefix
="$acl_save_prefix"
10062 if test "X$x" = "X-L$additional_libdir"; then
10067 if test -z "$haveit"; then
10068 if test -d "$additional_libdir"; then
10069 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$additional_libdir"
10073 for x
in $LDFLAGS $LTLIBMPFR; do
10075 acl_save_prefix
="$prefix"
10076 prefix
="$acl_final_prefix"
10077 acl_save_exec_prefix
="$exec_prefix"
10078 exec_prefix
="$acl_final_exec_prefix"
10080 exec_prefix
="$acl_save_exec_prefix"
10081 prefix
="$acl_save_prefix"
10083 if test "X$x" = "X-L$additional_libdir"; then
10088 if test -z "$haveit"; then
10089 if test -d "$additional_libdir"; then
10090 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$additional_libdir"
10097 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10098 if test "$enable_rpath" != no
; then
10100 for x
in $rpathdirs; do
10101 if test "X$x" = "X$dir"; then
10106 if test -z "$haveit"; then
10107 rpathdirs
="$rpathdirs $dir"
10110 for x
in $ltrpathdirs; do
10111 if test "X$x" = "X$dir"; then
10116 if test -z "$haveit"; then
10117 ltrpathdirs
="$ltrpathdirs $dir"
10122 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10125 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10128 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$dep"
10129 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$dep"
10135 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10136 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l$name"
10142 if test "X$rpathdirs" != "X"; then
10143 if test -n "$hardcode_libdir_separator"; then
10145 for found_dir
in $rpathdirs; do
10146 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10148 acl_save_libdir
="$libdir"
10150 eval flag
=\"$hardcode_libdir_flag_spec\"
10151 libdir
="$acl_save_libdir"
10152 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10154 for found_dir
in $rpathdirs; do
10155 acl_save_libdir
="$libdir"
10156 libdir
="$found_dir"
10157 eval flag
=\"$hardcode_libdir_flag_spec\"
10158 libdir
="$acl_save_libdir"
10159 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10163 if test "X$ltrpathdirs" != "X"; then
10164 for found_dir
in $ltrpathdirs; do
10165 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-R$found_dir"
10170 ac_save_CPPFLAGS
="$CPPFLAGS"
10172 for element
in $INCMPFR; do
10174 for x
in $CPPFLAGS; do
10176 acl_save_prefix
="$prefix"
10177 prefix
="$acl_final_prefix"
10178 acl_save_exec_prefix
="$exec_prefix"
10179 exec_prefix
="$acl_final_exec_prefix"
10181 exec_prefix
="$acl_save_exec_prefix"
10182 prefix
="$acl_save_prefix"
10184 if test "X$x" = "X$element"; then
10189 if test -z "$haveit"; then
10190 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpfr" >&5
10196 $as_echo_n "checking for libmpfr... " >&6; }
10197 if ${ac_cv_libmpfr+:} false
; then :
10198 $as_echo_n "(cached) " >&6
10201 ac_save_LIBS
="$LIBS"
10202 LIBS
="$LIBS $LIBMPFR"
10203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10204 /* end confdefs.h. */
10209 mpfr_exp_t exp; mpfr_t x;
10210 mpfr_frexp (&exp, x, x, MPFR_RNDN);
10215 if ac_fn_c_try_link
"$LINENO"; then :
10220 rm -f core conftest.err conftest.
$ac_objext \
10221 conftest
$ac_exeext conftest.
$ac_ext
10222 LIBS
="$ac_save_LIBS"
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmpfr" >&5
10226 $as_echo "$ac_cv_libmpfr" >&6; }
10227 if test "$ac_cv_libmpfr" = yes; then
10230 $as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libmpfr" >&5
10233 $as_echo_n "checking how to link with libmpfr... " >&6; }
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPFR" >&5
10235 $as_echo "$LIBMPFR" >&6; }
10238 CPPFLAGS
="$ac_save_CPPFLAGS"
10248 if test "$HAVE_LIBMPFR" != yes; then
10249 if test "$with_mpfr" = yes; then
10250 as_fn_error $?
"MPFR is missing or unusable" "$LINENO" 5
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR is missing or unusable; some features may be unavailable." >&5
10253 $as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;}
10258 # --------------------- #
10259 # Check for libpython. #
10260 # --------------------- #
10267 # Check whether --with-python was given.
10268 if test "${with_python+set}" = set; then :
10269 withval
=$with_python;
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10275 $as_echo_n "checking whether to use python... " >&6; }
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10277 $as_echo "$with_python" >&6; }
10279 if test "${with_python}" = no
; then
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10281 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10284 case "${with_python}" in
10286 if test -d ${with_python}; then
10287 # Assume the python binary is ${with_python}/bin/python.
10288 python_prog
="${with_python}/bin/python"
10290 # If python does not exit ${with_python}/bin, then try in
10291 # ${with_python}. On Windows/MinGW, this is where the Python
10293 if test ! -x "${python_prog}"; then
10294 python_prog
="${with_python}/python"
10297 if test ! -x "${python_prog}"; then
10298 # Fall back to gdb 7.0/7.1 behaviour.
10299 python_prog
=missing
10300 python_prefix
=${with_python}
10302 elif test -x "${with_python}"; then
10303 # While we can't run python compiled for $host (unless host == build),
10304 # the user could write a script that provides the needed information,
10305 # so we support that.
10306 python_prog
=${with_python}
10309 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
10313 # Disallow --with-python=foo/bar.
10314 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
10317 # The user has either specified auto, yes, or the name of the python
10318 # program assumed to be in $PATH.
10320 case "${with_python}" in
10322 if test ${build} = ${host}; then
10323 # Extract the first word of "python", so it can be a program name with args.
10324 set dummy python
; ac_word
=$2
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10326 $as_echo_n "checking for $ac_word... " >&6; }
10327 if ${ac_cv_path_python_prog_path+:} false
; then :
10328 $as_echo_n "(cached) " >&6
10330 case $python_prog_path in
10332 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10335 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10336 for as_dir
in $PATH
10339 test -z "$as_dir" && as_dir
=.
10340 for ac_exec_ext
in '' $ac_executable_extensions; do
10341 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10342 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10350 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10354 python_prog_path
=$ac_cv_path_python_prog_path
10355 if test -n "$python_prog_path"; then
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10357 $as_echo "$python_prog_path" >&6; }
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10360 $as_echo "no" >&6; }
10364 if test "${python_prog_path}" = missing
; then
10365 python_prog
=missing
10367 python_prog
=${python_prog_path}
10370 # Not much we can do except assume the cross-compiler will find the
10372 python_prog
=missing
10376 # While we can't run python compiled for $host (unless host == build),
10377 # the user could write a script that provides the needed information,
10378 # so we support that.
10379 python_prog
="${with_python}"
10380 # Extract the first word of "${python_prog}", so it can be a program name with args.
10381 set dummy
${python_prog}; ac_word
=$2
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10383 $as_echo_n "checking for $ac_word... " >&6; }
10384 if ${ac_cv_path_python_prog_path+:} false
; then :
10385 $as_echo_n "(cached) " >&6
10387 case $python_prog_path in
10389 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10392 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10393 for as_dir
in $PATH
10396 test -z "$as_dir" && as_dir
=.
10397 for ac_exec_ext
in '' $ac_executable_extensions; do
10398 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10399 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10407 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10411 python_prog_path
=$ac_cv_path_python_prog_path
10412 if test -n "$python_prog_path"; then
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10414 $as_echo "$python_prog_path" >&6; }
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10417 $as_echo "no" >&6; }
10421 if test "${python_prog_path}" = missing
; then
10422 as_fn_error $?
"unable to find python program ${python_prog}" "$LINENO" 5
10428 if test "${python_prog}" != missing
; then
10429 # We have a python program to use, but it may be too old.
10430 # Don't flag an error for --with-python=auto (the default).
10431 have_python_config
=yes
10432 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
10433 if test $?
!= 0; then
10434 have_python_config
=failed
10435 if test "${with_python}" != auto
; then
10436 as_fn_error $?
"failure running python-config --includes" "$LINENO" 5
10439 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10440 if test $?
!= 0; then
10441 have_python_config
=failed
10442 if test "${with_python}" != auto
; then
10443 as_fn_error $?
"failure running python-config --ldflags" "$LINENO" 5
10446 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10447 if test $?
!= 0; then
10448 have_python_config
=failed
10449 if test "${with_python}" != auto
; then
10450 as_fn_error $?
"failure running python-config --exec-prefix" "$LINENO" 5
10454 # We do not have a python executable we can use to determine where
10455 # to find the Python headers and libs. We cannot guess the include
10456 # path from the python_prefix either, because that include path
10457 # depends on the Python version. So, there is nothing much we can
10458 # do except assume that the compiler will be able to find those files.
10461 have_python_config
=no
10464 # If we have python-config, only try the configuration it provides.
10465 # Otherwise fallback on the old way of trying different versions of
10469 if test "${have_python_config}" = yes; then
10470 # Determine the Python version by extracting "-lpython<version>"
10471 # part of the python_libs. <version> is usually X.Y with X and Y
10472 # being decimal numbers, but can also be XY (seen on Windows).
10474 # The extraction is performed using sed with a regular expression.
10475 # Initially, the regexp used was using the '?' quantifier to make
10476 # the dot in the version number optional. Unfortunately, this
10477 # does not work with non-GNU versions of sed because, because of
10478 # what looks like a limitation (the '?' quantifier does not work
10479 # with back-references). We work around this limitation by using
10480 # the '*' quantifier instead. It means that, in theory, we might
10481 # match unexpected version strings such as "-lpython2..7", but
10482 # this seems unlikely in practice. And even if that happens,
10483 # an error will be triggered later on, when checking that version
10485 python_version
=`echo " ${python_libs} " \
10486 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
10487 case "${python_version}" in
10490 version
=${python_version}
10492 new_CPPFLAGS
=${python_includes}
10493 new_LIBS
=${python_libs}
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10495 $as_echo_n "checking for ${version}... " >&6; }
10496 save_CPPFLAGS
=$CPPFLAGS
10498 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10499 LIBS
="$new_LIBS $LIBS"
10500 found_usable_python
=no
10501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10502 /* end confdefs.h. */
10503 #include "Python.h"
10512 if ac_fn_c_try_link
"$LINENO"; then :
10513 have_libpython
=${version}
10514 found_usable_python
=yes
10515 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10516 PYTHON_LIBS
=$new_LIBS
10518 rm -f core conftest.err conftest.
$ac_objext \
10519 conftest
$ac_exeext conftest.
$ac_ext
10520 CPPFLAGS
=$save_CPPFLAGS
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10523 $as_echo "${found_usable_python}" >&6; }
10527 as_fn_error $?
"unable to determine python version from ${python_libs}" "$LINENO" 5
10530 elif test "${have_python_config}" != failed
; then
10531 if test "${have_libpython}" = no
; then
10535 new_CPPFLAGS
=${python_includes}
10536 new_LIBS
="-lpython2.7 ${python_libs}"
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10538 $as_echo_n "checking for ${version}... " >&6; }
10539 save_CPPFLAGS
=$CPPFLAGS
10541 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10542 LIBS
="$new_LIBS $LIBS"
10543 found_usable_python
=no
10544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10545 /* end confdefs.h. */
10546 #include "Python.h"
10555 if ac_fn_c_try_link
"$LINENO"; then :
10556 have_libpython
=${version}
10557 found_usable_python
=yes
10558 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10559 PYTHON_LIBS
=$new_LIBS
10561 rm -f core conftest.err conftest.
$ac_objext \
10562 conftest
$ac_exeext conftest.
$ac_ext
10563 CPPFLAGS
=$save_CPPFLAGS
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10566 $as_echo "${found_usable_python}" >&6; }
10569 if test "${have_libpython}" = no
; then
10573 new_CPPFLAGS
=${python_includes}
10574 new_LIBS
="-lpython2.6 ${python_libs}"
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10576 $as_echo_n "checking for ${version}... " >&6; }
10577 save_CPPFLAGS
=$CPPFLAGS
10579 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10580 LIBS
="$new_LIBS $LIBS"
10581 found_usable_python
=no
10582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10583 /* end confdefs.h. */
10584 #include "Python.h"
10593 if ac_fn_c_try_link
"$LINENO"; then :
10594 have_libpython
=${version}
10595 found_usable_python
=yes
10596 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10597 PYTHON_LIBS
=$new_LIBS
10599 rm -f core conftest.err conftest.
$ac_objext \
10600 conftest
$ac_exeext conftest.
$ac_ext
10601 CPPFLAGS
=$save_CPPFLAGS
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10604 $as_echo "${found_usable_python}" >&6; }
10607 if test ${have_libpython} = no
; then
10611 new_CPPFLAGS
=${python_includes}
10612 new_LIBS
="-lpython2.5 ${python_libs}"
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10614 $as_echo_n "checking for ${version}... " >&6; }
10615 save_CPPFLAGS
=$CPPFLAGS
10617 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10618 LIBS
="$new_LIBS $LIBS"
10619 found_usable_python
=no
10620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10621 /* end confdefs.h. */
10622 #include "Python.h"
10631 if ac_fn_c_try_link
"$LINENO"; then :
10632 have_libpython
=${version}
10633 found_usable_python
=yes
10634 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10635 PYTHON_LIBS
=$new_LIBS
10637 rm -f core conftest.err conftest.
$ac_objext \
10638 conftest
$ac_exeext conftest.
$ac_ext
10639 CPPFLAGS
=$save_CPPFLAGS
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10642 $as_echo "${found_usable_python}" >&6; }
10645 if test ${have_libpython} = no
; then
10649 new_CPPFLAGS
=${python_includes}
10650 new_LIBS
="-lpython2.4 ${python_libs}"
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10652 $as_echo_n "checking for ${version}... " >&6; }
10653 save_CPPFLAGS
=$CPPFLAGS
10655 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10656 LIBS
="$new_LIBS $LIBS"
10657 found_usable_python
=no
10658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10659 /* end confdefs.h. */
10660 #include "Python.h"
10669 if ac_fn_c_try_link
"$LINENO"; then :
10670 have_libpython
=${version}
10671 found_usable_python
=yes
10672 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10673 PYTHON_LIBS
=$new_LIBS
10675 rm -f core conftest.err conftest.
$ac_objext \
10676 conftest
$ac_exeext conftest.
$ac_ext
10677 CPPFLAGS
=$save_CPPFLAGS
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10680 $as_echo "${found_usable_python}" >&6; }
10684 if test "${have_libpython}" = python2.7
-o "${have_libpython}" = python27
; then
10686 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
10688 elif test "${have_libpython}" = python2.6
-o "${have_libpython}" = python26
; then
10690 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
10692 elif test "${have_libpython}" = python2.5
-o "${have_libpython}" = python25
; then
10694 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
10696 elif test "${have_libpython}" = python2.4
-o "${have_libpython}" = python24
; then
10698 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
10702 if test "${have_libpython}" = no
; then
10703 case "${with_python}" in
10705 as_fn_error $?
"python is missing or unusable" "$LINENO" 5
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10709 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10712 as_fn_error $?
"no usable python found at ${with_python}" "$LINENO" 5
10716 if test -n "${python_prefix}"; then
10718 cat >>confdefs.h
<<_ACEOF
10719 #define WITH_PYTHON_PATH "${python_prefix}"
10723 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
10724 if test "x$prefix" = xNONE
; then
10725 test_prefix
=/usr
/local
10727 test_prefix
=$prefix
10730 test_prefix
=$exec_prefix
10733 case ${python_prefix} in
10734 "${test_prefix}"|
"${test_prefix}/"*|\
10735 '${exec_prefix}'|
'${exec_prefix}/'*)
10740 cat >>confdefs.h
<<_ACEOF
10741 #define PYTHON_PATH_RELOCATABLE $value
10749 if test "${have_libpython}" != no
; then
10751 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10753 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10754 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10755 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
10756 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
10757 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
10759 # Flags needed to compile Python code (taken from python-config --cflags).
10760 # We cannot call python-config directly because it will output whatever was
10761 # used when compiling the Python interpreter itself, including flags which
10762 # would make the python-related objects be compiled differently from the
10763 # rest of GDB (e.g., -O2 and -fPIC).
10764 if test "${GCC}" = yes; then
10765 tentative_python_cflags
="-fno-strict-aliasing -fwrapv"
10766 # Python headers recommend -DNDEBUG, but it's unclear if that just
10767 # refers to building Python itself. In release mode, though, it
10768 # doesn't hurt for the Python code in gdb to follow.
10769 $development || tentative_python_cflags
="$tentative_python_cflags -DNDEBUG"
10772 if test "x${tentative_python_cflags}" != x
; then
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10774 $as_echo_n "checking compiler flags for python code... " >&6; }
10775 for flag
in ${tentative_python_cflags}; do
10776 # Check that the compiler accepts it
10777 saved_CFLAGS
="$CFLAGS"
10778 CFLAGS
="$CFLAGS $flag"
10779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10780 /* end confdefs.h. */
10790 if ac_fn_c_try_compile
"$LINENO"; then :
10791 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
10793 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10794 CFLAGS
="$saved_CFLAGS"
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
10797 $as_echo "${PYTHON_CFLAGS}" >&6; }
10800 # On x64 Windows, Python's include headers, and pyconfig.h in
10801 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
10802 # version of Windows. Unfortunately, MS_WIN64 is only defined if
10803 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
10804 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
10805 # The issue was reported to the Python community, but still isn't
10806 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
10808 case "$gdb_host" in
10810 if test "${GCC}" = yes; then
10811 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
10816 # Note that "python -m threading" cannot be used to check for
10817 # threading support due to a bug in Python 2.7.3
10818 # (http://bugs.python.org/issue15567).
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
10820 $as_echo_n "checking whether python supports threads... " >&6; }
10821 saved_CPPFLAGS
="${CPPFLAGS}"
10822 CPPFLAGS
="${PYTHON_CPPFLAGS}"
10823 # Note that the test is reversed so that python_has_threads=yes on
10824 # unexpected failures.
10825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10826 /* end confdefs.h. */
10828 #include <Python.h>
10834 if ac_fn_c_try_cpp
"$LINENO"; then :
10835 python_has_threads
=no
10837 python_has_threads
=yes
10839 rm -f conftest.err conftest.i conftest.
$ac_ext
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
10841 $as_echo "${python_has_threads}" >&6; }
10842 CPPFLAGS
="${saved_CPPFLAGS}"
10844 # Even if Python support is not compiled in, we need to have this file
10845 # included so that the "python" command, et.al., still exists.
10846 CONFIG_OBS
="$CONFIG_OBS python/python.o"
10847 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
10850 # Work around Python http://bugs.python.org/issue10112. See also
10851 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
10852 # no effect. Note that the only test after this that uses Python is
10853 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
10854 # run without -export-dynamic too.
10855 PYTHON_LIBS
=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
10860 if test "${have_libpython}" != no
; then
10862 HAVE_PYTHON_FALSE
='#'
10864 HAVE_PYTHON_TRUE
='#'
10869 # -------------------- #
10870 # Check for libguile. #
10871 # -------------------- #
10878 # Check whether --with-guile was given.
10879 if test "${with_guile+set}" = set; then :
10880 withval
=$with_guile;
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
10886 $as_echo_n "checking whether to use guile... " >&6; }
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
10888 $as_echo "$with_guile" >&6; }
10890 # Extract the first word of "pkg-config", so it can be a program name with args.
10891 set dummy pkg-config
; ac_word
=$2
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10893 $as_echo_n "checking for $ac_word... " >&6; }
10894 if ${ac_cv_path_pkg_config_prog_path+:} false
; then :
10895 $as_echo_n "(cached) " >&6
10897 case $pkg_config_prog_path in
10899 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
10902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10903 for as_dir
in $PATH
10906 test -z "$as_dir" && as_dir
=.
10907 for ac_exec_ext
in '' $ac_executable_extensions; do
10908 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10909 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10917 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
10921 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
10922 if test -n "$pkg_config_prog_path"; then
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
10924 $as_echo "$pkg_config_prog_path" >&6; }
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10927 $as_echo "no" >&6; }
10932 try_guile_versions
="guile-2.0"
10934 case "${with_guile}" in
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
10937 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
10940 if test "${pkg_config_prog_path}" = "missing"; then
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
10942 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
10945 pkg_config
=${pkg_config_prog_path}
10946 guile_version_list
=${try_guile_versions}
10949 found_usable_guile
=checking
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
10951 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
10952 for guile_version
in ${guile_version_list}; do
10953 ${pkg_config} --exists ${guile_version} 2>/dev
/null
10954 if test $?
!= 0; then
10957 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
10958 if test $?
!= 0; then
10959 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
10961 new_LIBS
=`${pkg_config} --libs ${guile_version}`
10962 if test $?
!= 0; then
10963 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
10965 found_usable_guile
=${guile_version}
10968 if test "${found_usable_guile}" = "checking"; then
10969 if test "${flag_errors}" = "yes"; then
10970 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
10972 found_usable_guile
=no
10975 if test "${found_usable_guile}" != no
; then
10976 save_CPPFLAGS
=$CPPFLAGS
10978 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10979 LIBS
="$LIBS $new_LIBS"
10980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10981 /* end confdefs.h. */
10982 #include "libguile.h"
10991 if ac_fn_c_try_link
"$LINENO"; then :
10993 GUILE_CPPFLAGS
=$new_CPPFLAGS
10994 GUILE_LIBS
=$new_LIBS
10996 found_usable_guile
=no
10998 rm -f core conftest.err conftest.
$ac_objext \
10999 conftest
$ac_exeext conftest.
$ac_ext
11000 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11001 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11003 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11008 CPPFLAGS
=$save_CPPFLAGS
11010 if test "${found_usable_guile}" = no
; then
11011 if test "${flag_errors}" = yes; then
11012 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11014 as_fn_error $?
"linking guile version ${guile_version} test program failed
11015 See \`config.log' for more details" "$LINENO" 5; }
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11020 $as_echo "${found_usable_guile}" >&6; }
11025 if test "${pkg_config_prog_path}" = "missing"; then
11026 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11029 pkg_config
=${pkg_config_prog_path}
11030 guile_version_list
=${try_guile_versions}
11033 found_usable_guile
=checking
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11035 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11036 for guile_version
in ${guile_version_list}; do
11037 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11038 if test $?
!= 0; then
11041 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11042 if test $?
!= 0; then
11043 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11045 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11046 if test $?
!= 0; then
11047 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11049 found_usable_guile
=${guile_version}
11052 if test "${found_usable_guile}" = "checking"; then
11053 if test "${flag_errors}" = "yes"; then
11054 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11056 found_usable_guile
=no
11059 if test "${found_usable_guile}" != no
; then
11060 save_CPPFLAGS
=$CPPFLAGS
11062 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11063 LIBS
="$LIBS $new_LIBS"
11064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11065 /* end confdefs.h. */
11066 #include "libguile.h"
11075 if ac_fn_c_try_link
"$LINENO"; then :
11077 GUILE_CPPFLAGS
=$new_CPPFLAGS
11078 GUILE_LIBS
=$new_LIBS
11080 found_usable_guile
=no
11082 rm -f core conftest.err conftest.
$ac_objext \
11083 conftest
$ac_exeext conftest.
$ac_ext
11084 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11085 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11087 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11092 CPPFLAGS
=$save_CPPFLAGS
11094 if test "${found_usable_guile}" = no
; then
11095 if test "${flag_errors}" = yes; then
11096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11098 as_fn_error $?
"linking guile version ${guile_version} test program failed
11099 See \`config.log' for more details" "$LINENO" 5; }
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11104 $as_echo "${found_usable_guile}" >&6; }
11108 if test -x "${with_guile}"; then
11110 pkg_config
=${with_guile}
11111 guile_version_list
=${try_guile_versions}
11114 found_usable_guile
=checking
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11116 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11117 for guile_version
in ${guile_version_list}; do
11118 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11119 if test $?
!= 0; then
11122 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11123 if test $?
!= 0; then
11124 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11126 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11127 if test $?
!= 0; then
11128 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11130 found_usable_guile
=${guile_version}
11133 if test "${found_usable_guile}" = "checking"; then
11134 if test "${flag_errors}" = "yes"; then
11135 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11137 found_usable_guile
=no
11140 if test "${found_usable_guile}" != no
; then
11141 save_CPPFLAGS
=$CPPFLAGS
11143 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11144 LIBS
="$LIBS $new_LIBS"
11145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11146 /* end confdefs.h. */
11147 #include "libguile.h"
11156 if ac_fn_c_try_link
"$LINENO"; then :
11158 GUILE_CPPFLAGS
=$new_CPPFLAGS
11159 GUILE_LIBS
=$new_LIBS
11161 found_usable_guile
=no
11163 rm -f core conftest.err conftest.
$ac_objext \
11164 conftest
$ac_exeext conftest.
$ac_ext
11165 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11166 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11168 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11173 CPPFLAGS
=$save_CPPFLAGS
11175 if test "${found_usable_guile}" = no
; then
11176 if test "${flag_errors}" = yes; then
11177 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11179 as_fn_error $?
"linking guile version ${guile_version} test program failed
11180 See \`config.log' for more details" "$LINENO" 5; }
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11185 $as_echo "${found_usable_guile}" >&6; }
11188 as_fn_error $?
"Guile config program not executable: ${with_guile}" "$LINENO" 5
11192 # Disallow --with=guile="" and --with-guile=foo/bar.
11193 as_fn_error $?
"invalid value for --with-guile" "$LINENO" 5
11196 # A space separate list of guile versions to try, in order.
11197 if test "${pkg_config_prog_path}" = "missing"; then
11198 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11201 pkg_config
=${pkg_config_prog_path}
11202 guile_version_list
=${with_guile}
11205 found_usable_guile
=checking
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11207 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11208 for guile_version
in ${guile_version_list}; do
11209 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11210 if test $?
!= 0; then
11213 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11214 if test $?
!= 0; then
11215 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11217 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11218 if test $?
!= 0; then
11219 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11221 found_usable_guile
=${guile_version}
11224 if test "${found_usable_guile}" = "checking"; then
11225 if test "${flag_errors}" = "yes"; then
11226 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11228 found_usable_guile
=no
11231 if test "${found_usable_guile}" != no
; then
11232 save_CPPFLAGS
=$CPPFLAGS
11234 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11235 LIBS
="$LIBS $new_LIBS"
11236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11237 /* end confdefs.h. */
11238 #include "libguile.h"
11247 if ac_fn_c_try_link
"$LINENO"; then :
11249 GUILE_CPPFLAGS
=$new_CPPFLAGS
11250 GUILE_LIBS
=$new_LIBS
11252 found_usable_guile
=no
11254 rm -f core conftest.err conftest.
$ac_objext \
11255 conftest
$ac_exeext conftest.
$ac_ext
11256 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11257 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11259 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11264 CPPFLAGS
=$save_CPPFLAGS
11266 if test "${found_usable_guile}" = no
; then
11267 if test "${flag_errors}" = yes; then
11268 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11270 as_fn_error $?
"linking guile version ${guile_version} test program failed
11271 See \`config.log' for more details" "$LINENO" 5; }
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11276 $as_echo "${found_usable_guile}" >&6; }
11281 if test "${have_libguile}" != no
; then
11282 case "${with_guile}" in
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11286 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11287 if ${ac_cv_guild_program_name+:} false
; then :
11288 $as_echo_n "(cached) " >&6
11290 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
11292 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11293 # the 'guild' and 'bindir' variables. In that case, try to guess
11294 # what the program name is, at the risk of getting it wrong if
11295 # Guile was configured with '--program-suffix' or similar.
11296 if test "x$ac_cv_guild_program_name" = "x"; then
11297 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
11298 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11303 $as_echo "$ac_cv_guild_program_name" >&6; }
11305 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11306 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11309 GUILD
="$ac_cv_guild_program_name"
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11316 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11317 if ${ac_cv_guild_program_name+:} false
; then :
11318 $as_echo_n "(cached) " >&6
11320 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
11322 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11323 # the 'guild' and 'bindir' variables. In that case, try to guess
11324 # what the program name is, at the risk of getting it wrong if
11325 # Guile was configured with '--program-suffix' or similar.
11326 if test "x$ac_cv_guild_program_name" = "x"; then
11327 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
11328 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11333 $as_echo "$ac_cv_guild_program_name" >&6; }
11335 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11336 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11339 GUILD
="$ac_cv_guild_program_name"
11346 if test "$cross_compiling" = no
; then
11349 GUILD_TARGET_FLAG
="--target=$host"
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
11356 $as_echo_n "checking whether guild supports this host... " >&6; }
11357 if ${ac_cv_guild_ok+:} false
; then :
11358 $as_echo_n "(cached) " >&6
11360 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
11361 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
11368 $as_echo "$ac_cv_guild_ok" >&6; }
11370 if test "$ac_cv_guild_ok" = no
; then
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
11373 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
11377 if test "${have_libguile}" != no
; then
11379 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
11381 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
11382 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
11383 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
11384 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
11385 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
11388 save_CPPFLAGS
="$CPPFLAGS"
11390 CPPFLAGS
="$GUILE_CPPFLAGS"
11391 for ac_func
in scm_new_smob
11393 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
11394 if test "x$ac_cv_func_scm_new_smob" = xyes
; then :
11395 cat >>confdefs.h
<<_ACEOF
11396 #define HAVE_SCM_NEW_SMOB 1
11403 CPPFLAGS
="$save_CPPFLAGS"
11405 # Even if Guile support is not compiled in, we need to have these files
11407 CONFIG_OBS
="$CONFIG_OBS guile/guile.o"
11408 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
11412 if test "${have_libguile}" != no
; then
11414 HAVE_GUILE_FALSE
='#'
11416 HAVE_GUILE_TRUE
='#'
11421 # --------------------- #
11422 # Check for libmcheck. #
11423 # --------------------- #
11425 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
11426 # but turn it off if Python is enabled with threads, since -lmcheck is
11427 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
11428 # and for releases.
11429 if test \
( "${have_libpython}" = "no" -o "${python_has_threads}" = "no" \
) \
11430 && $development; then
11431 libmcheck_default
=yes
11433 libmcheck_default
=no
11436 # Check whether --enable-libmcheck was given.
11437 if test "${enable_libmcheck+set}" = set; then :
11438 enableval
=$enable_libmcheck; case "${enableval}" in
11439 yes | y
) ENABLE_LIBMCHECK
="yes" ;;
11440 no | n
) ENABLE_LIBMCHECK
="no" ;;
11441 *) as_fn_error $?
"bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
11446 if test -z "${ENABLE_LIBMCHECK}"; then
11447 ENABLE_LIBMCHECK
=${libmcheck_default}
11450 if test "$ENABLE_LIBMCHECK" = "yes" ; then
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
11452 $as_echo_n "checking for main in -lmcheck... " >&6; }
11453 if ${ac_cv_lib_mcheck_main+:} false
; then :
11454 $as_echo_n "(cached) " >&6
11456 ac_check_lib_save_LIBS
=$LIBS
11457 LIBS
="-lmcheck $LIBS"
11458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11459 /* end confdefs.h. */
11470 if ac_fn_c_try_link
"$LINENO"; then :
11471 ac_cv_lib_mcheck_main
=yes
11473 ac_cv_lib_mcheck_main
=no
11475 rm -f core conftest.err conftest.
$ac_objext \
11476 conftest
$ac_exeext conftest.
$ac_ext
11477 LIBS
=$ac_check_lib_save_LIBS
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
11480 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
11481 if test "x$ac_cv_lib_mcheck_main" = xyes
; then :
11482 cat >>confdefs.h
<<_ACEOF
11483 #define HAVE_LIBMCHECK 1
11486 LIBS
="-lmcheck $LIBS"
11493 if test "$ENABLE_LIBMCHECK" = "yes" \
11494 -a "${have_libpython}" != "no" \
11495 -a "${python_has_threads}" = "yes" ; then
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
11497 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
11501 # Check whether --with-intel_pt was given.
11502 if test "${with_intel_pt+set}" = set; then :
11503 withval
=$with_intel_pt;
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
11509 $as_echo_n "checking whether to use intel pt... " >&6; }
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
11511 $as_echo "$with_intel_pt" >&6; }
11513 if test "${with_intel_pt}" = no
; then
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
11515 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
11518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11519 /* end confdefs.h. */
11521 #include <linux/perf_event.h>
11522 #ifndef PERF_ATTR_SIZE_VER5
11527 if ac_fn_c_try_cpp
"$LINENO"; then :
11532 rm -f conftest.err conftest.i conftest.
$ac_ext
11533 if test "$perf_event" != yes; then
11534 if test "$with_intel_pt" = yes; then
11535 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
11538 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
11552 acl_save_prefix
="$prefix"
11553 prefix
="$acl_final_prefix"
11554 acl_save_exec_prefix
="$exec_prefix"
11555 exec_prefix
="$acl_final_exec_prefix"
11557 eval additional_includedir
=\"$includedir\"
11558 eval additional_libdir
=\"$libdir\"
11560 exec_prefix
="$acl_save_exec_prefix"
11561 prefix
="$acl_save_prefix"
11564 # Check whether --with-libipt-prefix was given.
11565 if test "${with_libipt_prefix+set}" = set; then :
11566 withval
=$with_libipt_prefix;
11567 if test "X$withval" = "Xno"; then
11570 if test "X$withval" = "X"; then
11572 acl_save_prefix
="$prefix"
11573 prefix
="$acl_final_prefix"
11574 acl_save_exec_prefix
="$exec_prefix"
11575 exec_prefix
="$acl_final_exec_prefix"
11577 eval additional_includedir
=\"$includedir\"
11578 eval additional_libdir
=\"$libdir\"
11580 exec_prefix
="$acl_save_exec_prefix"
11581 prefix
="$acl_save_prefix"
11584 additional_includedir
="$withval/include"
11585 additional_libdir
="$withval/lib"
11596 names_already_handled
=
11597 names_next_round
='ipt '
11598 while test -n "$names_next_round"; do
11599 names_this_round
="$names_next_round"
11601 for name
in $names_this_round; do
11603 for n
in $names_already_handled; do
11604 if test "$n" = "$name"; then
11605 already_handled
=yes
11609 if test -z "$already_handled"; then
11610 names_already_handled
="$names_already_handled $name"
11611 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11612 eval value
=\"\
$HAVE_LIB$uppername\"
11613 if test -n "$value"; then
11614 if test "$value" = yes; then
11615 eval value
=\"\
$LIB$uppername\"
11616 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
11617 eval value
=\"\
$LTLIB$uppername\"
11618 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
11627 if test $use_additional = yes; then
11628 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11629 found_dir
="$additional_libdir"
11630 found_so
="$additional_libdir/lib$name.$shlibext"
11631 if test -f "$additional_libdir/lib$name.la"; then
11632 found_la
="$additional_libdir/lib$name.la"
11635 if test -f "$additional_libdir/lib$name.$libext"; then
11636 found_dir
="$additional_libdir"
11637 found_a
="$additional_libdir/lib$name.$libext"
11638 if test -f "$additional_libdir/lib$name.la"; then
11639 found_la
="$additional_libdir/lib$name.la"
11644 if test "X$found_dir" = "X"; then
11645 for x
in $LDFLAGS $LTLIBIPT; do
11647 acl_save_prefix
="$prefix"
11648 prefix
="$acl_final_prefix"
11649 acl_save_exec_prefix
="$exec_prefix"
11650 exec_prefix
="$acl_final_exec_prefix"
11652 exec_prefix
="$acl_save_exec_prefix"
11653 prefix
="$acl_save_prefix"
11657 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11658 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11660 found_so
="$dir/lib$name.$shlibext"
11661 if test -f "$dir/lib$name.la"; then
11662 found_la
="$dir/lib$name.la"
11665 if test -f "$dir/lib$name.$libext"; then
11667 found_a
="$dir/lib$name.$libext"
11668 if test -f "$dir/lib$name.la"; then
11669 found_la
="$dir/lib$name.la"
11675 if test "X$found_dir" != "X"; then
11680 if test "X$found_dir" != "X"; then
11681 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
11682 if test "X$found_so" != "X"; then
11683 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11684 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11687 for x
in $ltrpathdirs; do
11688 if test "X$x" = "X$found_dir"; then
11693 if test -z "$haveit"; then
11694 ltrpathdirs
="$ltrpathdirs $found_dir"
11696 if test "$hardcode_direct" = yes; then
11697 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11699 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11700 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11702 for x
in $rpathdirs; do
11703 if test "X$x" = "X$found_dir"; then
11708 if test -z "$haveit"; then
11709 rpathdirs
="$rpathdirs $found_dir"
11713 for x
in $LDFLAGS $LIBIPT; do
11715 acl_save_prefix
="$prefix"
11716 prefix
="$acl_final_prefix"
11717 acl_save_exec_prefix
="$exec_prefix"
11718 exec_prefix
="$acl_final_exec_prefix"
11720 exec_prefix
="$acl_save_exec_prefix"
11721 prefix
="$acl_save_prefix"
11723 if test "X$x" = "X-L$found_dir"; then
11728 if test -z "$haveit"; then
11729 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
11731 if test "$hardcode_minus_L" != no
; then
11732 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11734 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
11740 if test "X$found_a" != "X"; then
11741 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
11743 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
11746 additional_includedir
=
11747 case "$found_dir" in
11749 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11750 additional_includedir
="$basedir/include"
11753 if test "X$additional_includedir" != "X"; then
11754 if test "X$additional_includedir" != "X/usr/include"; then
11756 if test "X$additional_includedir" = "X/usr/local/include"; then
11757 if test -n "$GCC"; then
11759 linux
*) haveit
=yes;;
11763 if test -z "$haveit"; then
11764 for x
in $CPPFLAGS $INCIPT; do
11766 acl_save_prefix
="$prefix"
11767 prefix
="$acl_final_prefix"
11768 acl_save_exec_prefix
="$exec_prefix"
11769 exec_prefix
="$acl_final_exec_prefix"
11771 exec_prefix
="$acl_save_exec_prefix"
11772 prefix
="$acl_save_prefix"
11774 if test "X$x" = "X-I$additional_includedir"; then
11779 if test -z "$haveit"; then
11780 if test -d "$additional_includedir"; then
11781 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
11787 if test -n "$found_la"; then
11788 save_libdir
="$libdir"
11789 case "$found_la" in
11790 */* |
*\\*) .
"$found_la" ;;
11791 *) .
"./$found_la" ;;
11793 libdir
="$save_libdir"
11794 for dep
in $dependency_libs; do
11797 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11798 if test "X$additional_libdir" != "X/usr/lib"; then
11800 if test "X$additional_libdir" = "X/usr/local/lib"; then
11801 if test -n "$GCC"; then
11803 linux
*) haveit
=yes;;
11807 if test -z "$haveit"; then
11809 for x
in $LDFLAGS $LIBIPT; do
11811 acl_save_prefix
="$prefix"
11812 prefix
="$acl_final_prefix"
11813 acl_save_exec_prefix
="$exec_prefix"
11814 exec_prefix
="$acl_final_exec_prefix"
11816 exec_prefix
="$acl_save_exec_prefix"
11817 prefix
="$acl_save_prefix"
11819 if test "X$x" = "X-L$additional_libdir"; then
11824 if test -z "$haveit"; then
11825 if test -d "$additional_libdir"; then
11826 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
11830 for x
in $LDFLAGS $LTLIBIPT; do
11832 acl_save_prefix
="$prefix"
11833 prefix
="$acl_final_prefix"
11834 acl_save_exec_prefix
="$exec_prefix"
11835 exec_prefix
="$acl_final_exec_prefix"
11837 exec_prefix
="$acl_save_exec_prefix"
11838 prefix
="$acl_save_prefix"
11840 if test "X$x" = "X-L$additional_libdir"; then
11845 if test -z "$haveit"; then
11846 if test -d "$additional_libdir"; then
11847 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
11854 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11855 if test "$enable_rpath" != no
; then
11857 for x
in $rpathdirs; do
11858 if test "X$x" = "X$dir"; then
11863 if test -z "$haveit"; then
11864 rpathdirs
="$rpathdirs $dir"
11867 for x
in $ltrpathdirs; do
11868 if test "X$x" = "X$dir"; then
11873 if test -z "$haveit"; then
11874 ltrpathdirs
="$ltrpathdirs $dir"
11879 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11882 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11885 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
11886 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
11892 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
11893 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
11899 if test "X$rpathdirs" != "X"; then
11900 if test -n "$hardcode_libdir_separator"; then
11902 for found_dir
in $rpathdirs; do
11903 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11905 acl_save_libdir
="$libdir"
11907 eval flag
=\"$hardcode_libdir_flag_spec\"
11908 libdir
="$acl_save_libdir"
11909 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
11911 for found_dir
in $rpathdirs; do
11912 acl_save_libdir
="$libdir"
11913 libdir
="$found_dir"
11914 eval flag
=\"$hardcode_libdir_flag_spec\"
11915 libdir
="$acl_save_libdir"
11916 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
11920 if test "X$ltrpathdirs" != "X"; then
11921 for found_dir
in $ltrpathdirs; do
11922 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
11927 ac_save_CPPFLAGS
="$CPPFLAGS"
11929 for element
in $INCIPT; do
11931 for x
in $CPPFLAGS; do
11933 acl_save_prefix
="$prefix"
11934 prefix
="$acl_final_prefix"
11935 acl_save_exec_prefix
="$exec_prefix"
11936 exec_prefix
="$acl_final_exec_prefix"
11938 exec_prefix
="$acl_save_exec_prefix"
11939 prefix
="$acl_save_prefix"
11941 if test "X$x" = "X$element"; then
11946 if test -z "$haveit"; then
11947 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
11953 $as_echo_n "checking for libipt... " >&6; }
11954 if ${ac_cv_libipt+:} false
; then :
11955 $as_echo_n "(cached) " >&6
11958 ac_save_LIBS
="$LIBS"
11959 LIBS
="$LIBS $LIBIPT"
11960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11961 /* end confdefs.h. */
11962 #include "intel-pt.h"
11966 pt_insn_alloc_decoder (0);
11971 if ac_fn_c_try_link
"$LINENO"; then :
11976 rm -f core conftest.err conftest.
$ac_objext \
11977 conftest
$ac_exeext conftest.
$ac_ext
11978 LIBS
="$ac_save_LIBS"
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
11982 $as_echo "$ac_cv_libipt" >&6; }
11983 if test "$ac_cv_libipt" = yes; then
11986 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
11989 $as_echo_n "checking how to link with libipt... " >&6; }
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
11991 $as_echo "$LIBIPT" >&6; }
11994 CPPFLAGS
="$ac_save_CPPFLAGS"
12004 if test "$HAVE_LIBIPT" != yes; then
12005 if test "$with_intel_pt" = yes; then
12006 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
12009 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
12013 LIBS
="$LIBS $LIBIPT"
12014 for ac_func
in pt_insn_event
12016 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
12017 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
12018 cat >>confdefs.h
<<_ACEOF
12019 #define HAVE_PT_INSN_EVENT 1
12025 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
12027 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
12029 cat >>confdefs.h
<<_ACEOF
12030 #define HAVE_STRUCT_PT_INSN_ENABLED 1
12035 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
12037 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
12039 cat >>confdefs.h
<<_ACEOF
12040 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
12050 # ------------------------- #
12051 # Checks for header files. #
12052 # ------------------------- #
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12055 $as_echo_n "checking for ANSI C header files... " >&6; }
12056 if ${ac_cv_header_stdc+:} false
; then :
12057 $as_echo_n "(cached) " >&6
12059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12060 /* end confdefs.h. */
12061 #include <stdlib.h>
12062 #include <stdarg.h>
12063 #include <string.h>
12074 if ac_fn_c_try_compile
"$LINENO"; then :
12075 ac_cv_header_stdc
=yes
12077 ac_cv_header_stdc
=no
12079 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12081 if test $ac_cv_header_stdc = yes; then
12082 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12084 /* end confdefs.h. */
12085 #include <string.h>
12088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12089 $EGREP "memchr" >/dev
/null
2>&1; then :
12092 ac_cv_header_stdc
=no
12098 if test $ac_cv_header_stdc = yes; then
12099 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12101 /* end confdefs.h. */
12102 #include <stdlib.h>
12105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12106 $EGREP "free" >/dev
/null
2>&1; then :
12109 ac_cv_header_stdc
=no
12115 if test $ac_cv_header_stdc = yes; then
12116 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12117 if test "$cross_compiling" = yes; then :
12120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12121 /* end confdefs.h. */
12123 #include <stdlib.h>
12124 #if ((' ' & 0x0FF) == 0x020)
12125 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12126 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12128 # define ISLOWER(c) \
12129 (('a' <= (c) && (c) <= 'i') \
12130 || ('j' <= (c) && (c) <= 'r') \
12131 || ('s' <= (c) && (c) <= 'z'))
12132 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12135 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12140 for (i = 0; i < 256; i++)
12141 if (XOR (islower (i), ISLOWER (i))
12142 || toupper (i) != TOUPPER (i))
12147 if ac_fn_c_try_run
"$LINENO"; then :
12150 ac_cv_header_stdc
=no
12152 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12153 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12159 $as_echo "$ac_cv_header_stdc" >&6; }
12160 if test $ac_cv_header_stdc = yes; then
12162 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12166 # elf_hp.h is for HP/UX 64-bit shared library support.
12167 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
12169 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
12170 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
12171 sys
/reg.h sys
/debugreg.h sys
/select.h \
12172 termios.h elf_hp.h \
12175 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12176 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12177 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12178 cat >>confdefs.h
<<_ACEOF
12179 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12186 for ac_header
in sys
/user.h
12188 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
12189 # include <sys/param.h>
12193 if test "x$ac_cv_header_sys_user_h" = xyes
; then :
12194 cat >>confdefs.h
<<_ACEOF
12195 #define HAVE_SYS_USER_H 1
12203 for ac_header
in curses.h cursesX.h ncurses.h ncursesw
/ncurses.h ncurses
/ncurses.h ncurses
/term.h
12205 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12206 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12207 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12208 cat >>confdefs.h
<<_ACEOF
12209 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12216 for ac_header
in term.h
12218 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
12219 # include <curses.h>
12223 if test "x$ac_cv_header_term_h" = xyes
; then :
12224 cat >>confdefs.h
<<_ACEOF
12225 #define HAVE_TERM_H 1
12233 # ------------------------- #
12234 # Checks for declarations. #
12235 # ------------------------- #
12238 # Check for presence and size of long long.
12239 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12240 if test "x$ac_cv_type_long_long" = xyes
; then :
12242 cat >>confdefs.h
<<_ACEOF
12243 #define HAVE_LONG_LONG 1
12246 # The cast to long int works around a bug in the HP C Compiler
12247 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12248 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12249 # This bug is HP SR number 8606223364.
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12251 $as_echo_n "checking size of long long... " >&6; }
12252 if ${ac_cv_sizeof_long_long+:} false
; then :
12253 $as_echo_n "(cached) " >&6
12255 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12258 if test "$ac_cv_type_long_long" = yes; then
12259 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12261 as_fn_error
77 "cannot compute sizeof (long long)
12262 See \`config.log' for more details" "$LINENO" 5; }
12264 ac_cv_sizeof_long_long
=0
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12270 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12274 cat >>confdefs.h
<<_ACEOF
12275 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12282 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
12283 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
12284 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
12290 cat >>confdefs.h
<<_ACEOF
12291 #define HAVE_DECL_BASENAME $ac_have_decl
12293 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
12294 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
12300 cat >>confdefs.h
<<_ACEOF
12301 #define HAVE_DECL_FFS $ac_have_decl
12303 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12304 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
12310 cat >>confdefs.h
<<_ACEOF
12311 #define HAVE_DECL_ASPRINTF $ac_have_decl
12313 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12314 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
12320 cat >>confdefs.h
<<_ACEOF
12321 #define HAVE_DECL_VASPRINTF $ac_have_decl
12323 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12324 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12330 cat >>confdefs.h
<<_ACEOF
12331 #define HAVE_DECL_SNPRINTF $ac_have_decl
12333 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12334 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
12340 cat >>confdefs.h
<<_ACEOF
12341 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12344 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
12345 if test "x$ac_cv_have_decl_strtol" = xyes
; then :
12351 cat >>confdefs.h
<<_ACEOF
12352 #define HAVE_DECL_STRTOL $ac_have_decl
12354 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
12355 if test "x$ac_cv_have_decl_strtoul" = xyes
; then :
12361 cat >>confdefs.h
<<_ACEOF
12362 #define HAVE_DECL_STRTOUL $ac_have_decl
12364 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
12365 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
12371 cat >>confdefs.h
<<_ACEOF
12372 #define HAVE_DECL_STRTOLL $ac_have_decl
12374 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
12375 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
12381 cat >>confdefs.h
<<_ACEOF
12382 #define HAVE_DECL_STRTOULL $ac_have_decl
12385 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12386 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
12392 cat >>confdefs.h
<<_ACEOF
12393 #define HAVE_DECL_STRVERSCMP $ac_have_decl
12398 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12399 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12405 cat >>confdefs.h
<<_ACEOF
12406 #define HAVE_DECL_SNPRINTF $ac_have_decl
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12411 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12412 if ${am_cv_val_LC_MESSAGES+:} false
; then :
12413 $as_echo_n "(cached) " >&6
12415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12416 /* end confdefs.h. */
12417 #include <locale.h>
12426 if ac_fn_c_try_link
"$LINENO"; then :
12427 am_cv_val_LC_MESSAGES
=yes
12429 am_cv_val_LC_MESSAGES
=no
12431 rm -f core conftest.err conftest.
$ac_objext \
12432 conftest
$ac_exeext conftest.
$ac_ext
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12435 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12436 if test $am_cv_val_LC_MESSAGES = yes; then
12438 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12443 # ----------------------- #
12444 # Checks for structures. #
12445 # ----------------------- #
12447 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
12448 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
12450 cat >>confdefs.h
<<_ACEOF
12451 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12456 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
12457 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
12459 cat >>confdefs.h
<<_ACEOF
12460 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12467 # ------------------ #
12468 # Checks for types. #
12469 # ------------------ #
12471 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12472 #include <sys/socket.h>
12475 if test "x$ac_cv_type_socklen_t" = xyes
; then :
12477 cat >>confdefs.h
<<_ACEOF
12478 #define HAVE_SOCKLEN_T 1
12485 # ------------------------------------- #
12486 # Checks for compiler characteristics. #
12487 # ------------------------------------- #
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12490 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12491 if ${ac_cv_c_const+:} false
; then :
12492 $as_echo_n "(cached) " >&6
12494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12495 /* end confdefs.h. */
12501 #ifndef __cplusplus
12502 /* Ultrix mips cc rejects this sort of thing. */
12503 typedef int charset[2];
12504 const charset cs = { 0, 0 };
12505 /* SunOS 4.1.1 cc rejects this. */
12506 char const *const *pcpcc;
12508 /* NEC SVR4.0.2 mips cc rejects this. */
12509 struct point {int x, y;};
12510 static struct point const zero = {0,0};
12511 /* AIX XL C 1.02.0.0 rejects this.
12512 It does not let you subtract one const X* pointer from another in
12513 an arm of an if-expression whose if-part is not a constant
12515 const char *g = "string";
12516 pcpcc = &g + (g ? g-g : 0);
12517 /* HPUX 7.0 cc rejects these. */
12519 ppc = (char**) pcpcc;
12520 pcpcc = (char const *const *) ppc;
12521 { /* SCO 3.2v4 cc rejects this sort of thing. */
12524 char const *s = 0 ? (char *) 0 : (char const *) 0;
12529 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12530 int x[] = {25, 17};
12531 const int *foo = &x[0];
12534 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12535 typedef const int *iptr;
12539 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12540 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12541 struct s { int j; const int *ap[3]; } bx;
12542 struct s *b = &bx; b->j = 5;
12544 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12545 const int foo = 10;
12546 if (!foo) return 0;
12548 return !cs[0] && !zero.x;
12555 if ac_fn_c_try_compile
"$LINENO"; then :
12560 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12563 $as_echo "$ac_cv_c_const" >&6; }
12564 if test $ac_cv_c_const = no
; then
12566 $as_echo "#define const /**/" >>confdefs.h
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12571 $as_echo_n "checking for inline... " >&6; }
12572 if ${ac_cv_c_inline+:} false
; then :
12573 $as_echo_n "(cached) " >&6
12576 for ac_kw
in inline __inline__ __inline
; do
12577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12578 /* end confdefs.h. */
12579 #ifndef __cplusplus
12581 static $ac_kw foo_t static_foo () {return 0; }
12582 $ac_kw foo_t foo () {return 0; }
12586 if ac_fn_c_try_compile
"$LINENO"; then :
12587 ac_cv_c_inline
=$ac_kw
12589 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12590 test "$ac_cv_c_inline" != no
&& break
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12595 $as_echo "$ac_cv_c_inline" >&6; }
12597 case $ac_cv_c_inline in
12600 case $ac_cv_c_inline in
12602 *) ac_val
=$ac_cv_c_inline;;
12604 cat >>confdefs.h
<<_ACEOF
12605 #ifndef __cplusplus
12606 #define inline $ac_val
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12613 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12614 if ${ac_cv_c_bigendian+:} false
; then :
12615 $as_echo_n "(cached) " >&6
12617 ac_cv_c_bigendian
=unknown
12618 # See if we're dealing with a universal compiler.
12619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12620 /* end confdefs.h. */
12621 #ifndef __APPLE_CC__
12622 not a universal capable compiler
12627 if ac_fn_c_try_compile
"$LINENO"; then :
12629 # Check for potential -arch flags. It is not universal unless
12630 # there are at least two -arch flags with different values.
12633 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12634 if test -n "$ac_prev"; then
12636 i?
86 | x86_64 | ppc | ppc64
)
12637 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12640 ac_cv_c_bigendian
=universal
12646 elif test "x$ac_word" = "x-arch"; then
12651 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12652 if test $ac_cv_c_bigendian = unknown
; then
12653 # See if sys/param.h defines the BYTE_ORDER macro.
12654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12655 /* end confdefs.h. */
12656 #include <sys/types.h>
12657 #include <sys/param.h>
12662 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12663 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12665 bogus endian macros
12672 if ac_fn_c_try_compile
"$LINENO"; then :
12673 # It does; now see whether it defined to BIG_ENDIAN or not.
12674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12675 /* end confdefs.h. */
12676 #include <sys/types.h>
12677 #include <sys/param.h>
12682 #if BYTE_ORDER != BIG_ENDIAN
12690 if ac_fn_c_try_compile
"$LINENO"; then :
12691 ac_cv_c_bigendian
=yes
12693 ac_cv_c_bigendian
=no
12695 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12697 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12699 if test $ac_cv_c_bigendian = unknown
; then
12700 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12702 /* end confdefs.h. */
12703 #include <limits.h>
12708 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12709 bogus endian macros
12716 if ac_fn_c_try_compile
"$LINENO"; then :
12717 # It does; now see whether it defined to _BIG_ENDIAN or not.
12718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12719 /* end confdefs.h. */
12720 #include <limits.h>
12725 #ifndef _BIG_ENDIAN
12733 if ac_fn_c_try_compile
"$LINENO"; then :
12734 ac_cv_c_bigendian
=yes
12736 ac_cv_c_bigendian
=no
12738 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12740 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12742 if test $ac_cv_c_bigendian = unknown
; then
12743 # Compile a test program.
12744 if test "$cross_compiling" = yes; then :
12745 # Try to guess by grepping values from an object file.
12746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12747 /* end confdefs.h. */
12748 short int ascii_mm[] =
12749 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12750 short int ascii_ii[] =
12751 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12752 int use_ascii (int i) {
12753 return ascii_mm[i] + ascii_ii[i];
12755 short int ebcdic_ii[] =
12756 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12757 short int ebcdic_mm[] =
12758 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12759 int use_ebcdic (int i) {
12760 return ebcdic_mm[i] + ebcdic_ii[i];
12767 return use_ascii (foo) == use_ebcdic (foo);
12772 if ac_fn_c_try_compile
"$LINENO"; then :
12773 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12774 ac_cv_c_bigendian
=yes
12776 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12777 if test "$ac_cv_c_bigendian" = unknown
; then
12778 ac_cv_c_bigendian
=no
12780 # finding both strings is unlikely to happen, but who knows?
12781 ac_cv_c_bigendian
=unknown
12785 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12788 /* end confdefs.h. */
12789 $ac_includes_default
12794 /* Are we little or big endian? From Harbison&Steele. */
12798 char c[sizeof (long int)];
12801 return u.c[sizeof (long int) - 1] == 1;
12807 if ac_fn_c_try_run
"$LINENO"; then :
12808 ac_cv_c_bigendian
=no
12810 ac_cv_c_bigendian
=yes
12812 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12813 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12819 $as_echo "$ac_cv_c_bigendian" >&6; }
12820 case $ac_cv_c_bigendian in #(
12822 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12828 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12832 as_fn_error $?
"unknown endianness
12833 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12837 # ------------------------------ #
12838 # Checks for library functions. #
12839 # ------------------------------ #
12844 for ac_header
in $ac_header_list
12846 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12847 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12849 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12850 cat >>confdefs.h
<<_ACEOF
12851 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12865 for ac_func
in getpagesize
12867 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12868 if test "x$ac_cv_func_getpagesize" = xyes
; then :
12869 cat >>confdefs.h
<<_ACEOF
12870 #define HAVE_GETPAGESIZE 1
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12877 $as_echo_n "checking for working mmap... " >&6; }
12878 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
12879 $as_echo_n "(cached) " >&6
12881 if test "$cross_compiling" = yes; then :
12882 ac_cv_func_mmap_fixed_mapped
=no
12884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12885 /* end confdefs.h. */
12886 $ac_includes_default
12887 /* malloc might have been renamed as rpl_malloc. */
12890 /* Thanks to Mike Haertel and Jim Avera for this test.
12891 Here is a matrix of mmap possibilities:
12892 mmap private not fixed
12893 mmap private fixed at somewhere currently unmapped
12894 mmap private fixed at somewhere already mapped
12895 mmap shared not fixed
12896 mmap shared fixed at somewhere currently unmapped
12897 mmap shared fixed at somewhere already mapped
12898 For private mappings, we should verify that changes cannot be read()
12899 back from the file, nor mmap's back from the file at a different
12900 address. (There have been systems where private was not correctly
12901 implemented like the infamous i386 svr4.0, and systems where the
12902 VM page cache was not coherent with the file system buffer cache
12903 like early versions of FreeBSD and possibly contemporary NetBSD.)
12904 For shared mappings, we should conversely verify that changes get
12905 propagated back to all the places they're supposed to be.
12907 Grep wants private fixed already mapped.
12908 The main things grep needs to know about mmap are:
12909 * does it exist and is it safe to write into the mmap'd area
12910 * how to use it (BSD variants) */
12913 #include <sys/mman.h>
12915 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12919 /* This mess was copied from the GNU getpagesize.h. */
12920 #ifndef HAVE_GETPAGESIZE
12921 # ifdef _SC_PAGESIZE
12922 # define getpagesize() sysconf(_SC_PAGESIZE)
12923 # else /* no _SC_PAGESIZE */
12924 # ifdef HAVE_SYS_PARAM_H
12925 # include <sys/param.h>
12926 # ifdef EXEC_PAGESIZE
12927 # define getpagesize() EXEC_PAGESIZE
12928 # else /* no EXEC_PAGESIZE */
12930 # define getpagesize() NBPG * CLSIZE
12933 # endif /* no CLSIZE */
12934 # else /* no NBPG */
12936 # define getpagesize() NBPC
12937 # else /* no NBPC */
12939 # define getpagesize() PAGESIZE
12940 # endif /* PAGESIZE */
12941 # endif /* no NBPC */
12942 # endif /* no NBPG */
12943 # endif /* no EXEC_PAGESIZE */
12944 # else /* no HAVE_SYS_PARAM_H */
12945 # define getpagesize() 8192 /* punt totally */
12946 # endif /* no HAVE_SYS_PARAM_H */
12947 # endif /* no _SC_PAGESIZE */
12949 #endif /* no HAVE_GETPAGESIZE */
12954 char *data, *data2, *data3;
12955 const char *cdata2;
12959 pagesize = getpagesize ();
12961 /* First, make a file with some known garbage in it. */
12962 data = (char *) malloc (pagesize);
12965 for (i = 0; i < pagesize; ++i)
12966 *(data + i) = rand ();
12968 fd = creat ("conftest.mmap", 0600);
12971 if (write (fd, data, pagesize) != pagesize)
12975 /* Next, check that the tail of a page is zero-filled. File must have
12976 non-zero length, otherwise we risk SIGBUS for entire page. */
12977 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12981 if (write (fd2, cdata2, 1) != 1)
12983 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12984 if (data2 == MAP_FAILED)
12986 for (i = 0; i < pagesize; ++i)
12990 if (munmap (data2, pagesize))
12993 /* Next, try to mmap the file at a fixed address which already has
12994 something else allocated at it. If we can, also make sure that
12995 we see the same garbage. */
12996 fd = open ("conftest.mmap", O_RDWR);
12999 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13000 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13002 for (i = 0; i < pagesize; ++i)
13003 if (*(data + i) != *(data2 + i))
13006 /* Finally, make sure that changes to the mapped area do not
13007 percolate back to the file as seen by read(). (This is a bug on
13008 some variants of i386 svr4.0.) */
13009 for (i = 0; i < pagesize; ++i)
13010 *(data2 + i) = *(data2 + i) + 1;
13011 data3 = (char *) malloc (pagesize);
13014 if (read (fd, data3, pagesize) != pagesize)
13016 for (i = 0; i < pagesize; ++i)
13017 if (*(data + i) != *(data3 + i))
13023 if ac_fn_c_try_run
"$LINENO"; then :
13024 ac_cv_func_mmap_fixed_mapped
=yes
13026 ac_cv_func_mmap_fixed_mapped
=no
13028 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13029 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13034 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13035 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13037 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13040 rm -f conftest.mmap conftest.txt
13042 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13043 if test "x$ac_cv_type_pid_t" = xyes
; then :
13047 cat >>confdefs.h
<<_ACEOF
13053 for ac_header
in vfork.h
13055 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13056 if test "x$ac_cv_header_vfork_h" = xyes
; then :
13057 cat >>confdefs.h
<<_ACEOF
13058 #define HAVE_VFORK_H 1
13065 for ac_func
in fork vfork
13067 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13068 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13069 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13070 cat >>confdefs.h
<<_ACEOF
13071 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13077 if test "x$ac_cv_func_fork" = xyes
; then
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13079 $as_echo_n "checking for working fork... " >&6; }
13080 if ${ac_cv_func_fork_works+:} false
; then :
13081 $as_echo_n "(cached) " >&6
13083 if test "$cross_compiling" = yes; then :
13084 ac_cv_func_fork_works
=cross
13086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13087 /* end confdefs.h. */
13088 $ac_includes_default
13093 /* By Ruediger Kuhlmann. */
13094 return fork () < 0;
13100 if ac_fn_c_try_run
"$LINENO"; then :
13101 ac_cv_func_fork_works
=yes
13103 ac_cv_func_fork_works
=no
13105 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13106 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13111 $as_echo "$ac_cv_func_fork_works" >&6; }
13114 ac_cv_func_fork_works
=$ac_cv_func_fork
13116 if test "x$ac_cv_func_fork_works" = xcross
; then
13118 *-*-amigaos* |
*-*-msdosdjgpp*)
13119 # Override, as these systems have only a dummy fork() stub
13120 ac_cv_func_fork_works
=no
13123 ac_cv_func_fork_works
=yes
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13127 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13129 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13130 if test "x$ac_cv_func_vfork" = xyes
; then
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13132 $as_echo_n "checking for working vfork... " >&6; }
13133 if ${ac_cv_func_vfork_works+:} false
; then :
13134 $as_echo_n "(cached) " >&6
13136 if test "$cross_compiling" = yes; then :
13137 ac_cv_func_vfork_works
=cross
13139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13140 /* end confdefs.h. */
13141 /* Thanks to Paul Eggert for this test. */
13142 $ac_includes_default
13143 #include <sys/wait.h>
13144 #ifdef HAVE_VFORK_H
13145 # include <vfork.h>
13147 /* On some sparc systems, changes by the child to local and incoming
13148 argument registers are propagated back to the parent. The compiler
13149 is told about this with #include <vfork.h>, but some compilers
13150 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13151 static variable whose address is put into a register that is
13152 clobbered by the vfork. */
13155 sparc_address_test (int arg)
13157 sparc_address_test (arg) int arg;
13160 static pid_t child;
13178 pid_t parent = getpid ();
13181 sparc_address_test (0);
13186 /* Here is another test for sparc vfork register problems. This
13187 test uses lots of local variables, at least as many local
13188 variables as main has allocated so far including compiler
13189 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13190 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13191 reuse the register of parent for one of the local variables,
13192 since it will think that parent can't possibly be used any more
13193 in this routine. Assigning to the local variable will thus
13194 munge parent in the parent process. */
13196 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13197 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13198 /* Convince the compiler that p..p7 are live; otherwise, it might
13199 use the same hardware register for all 8 local variables. */
13200 if (p != p1 || p != p2 || p != p3 || p != p4
13201 || p != p5 || p != p6 || p != p7)
13204 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13205 from child file descriptors. If the child closes a descriptor
13206 before it execs or exits, this munges the parent's descriptor
13207 as well. Test for this by closing stdout in the child. */
13208 _exit(close(fileno(stdout)) != 0);
13213 while (wait(&status) != child)
13216 /* Was there some problem with vforking? */
13219 /* Did the child fail? (This shouldn't happen.) */
13222 /* Did the vfork/compiler bug occur? */
13223 || parent != getpid()
13225 /* Did the file descriptor bug occur? */
13226 || fstat(fileno(stdout), &st) != 0
13231 if ac_fn_c_try_run
"$LINENO"; then :
13232 ac_cv_func_vfork_works
=yes
13234 ac_cv_func_vfork_works
=no
13236 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13237 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13242 $as_echo "$ac_cv_func_vfork_works" >&6; }
13245 if test "x$ac_cv_func_fork_works" = xcross
; then
13246 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13248 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13251 if test "x$ac_cv_func_vfork_works" = xyes
; then
13253 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13257 $as_echo "#define vfork fork" >>confdefs.h
13260 if test "x$ac_cv_func_fork_works" = xyes
; then
13262 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13266 for ac_func
in getauxval getrusage getuid getgid \
13267 pipe poll pread pread64 pwrite resize_term \
13268 sbrk getpgid setpgid setpgrp setsid \
13269 sigaction sigprocmask sigsetmask socketpair \
13270 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
13271 setrlimit getrlimit posix_madvise waitpid \
13272 ptrace64 sigaltstack mkdtemp setns
13274 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13275 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13276 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13277 cat >>confdefs.h
<<_ACEOF
13278 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13286 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13287 if ${am_cv_langinfo_codeset+:} false
; then :
13288 $as_echo_n "(cached) " >&6
13290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13291 /* end confdefs.h. */
13292 #include <langinfo.h>
13296 char* cs = nl_langinfo(CODESET);
13301 if ac_fn_c_try_link
"$LINENO"; then :
13302 am_cv_langinfo_codeset
=yes
13304 am_cv_langinfo_codeset
=no
13306 rm -f core conftest.err conftest.
$ac_objext \
13307 conftest
$ac_exeext conftest.
$ac_ext
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13311 $as_echo "$am_cv_langinfo_codeset" >&6; }
13312 if test $am_cv_langinfo_codeset = yes; then
13314 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13318 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13319 if test "x$ac_cv_type_size_t" = xyes
; then :
13323 cat >>confdefs.h
<<_ACEOF
13324 #define size_t unsigned int
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13331 $as_echo_n "checking for ANSI C header files... " >&6; }
13332 if ${ac_cv_header_stdc+:} false
; then :
13333 $as_echo_n "(cached) " >&6
13335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13336 /* end confdefs.h. */
13337 #include <stdlib.h>
13338 #include <stdarg.h>
13339 #include <string.h>
13350 if ac_fn_c_try_compile
"$LINENO"; then :
13351 ac_cv_header_stdc
=yes
13353 ac_cv_header_stdc
=no
13355 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13357 if test $ac_cv_header_stdc = yes; then
13358 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13360 /* end confdefs.h. */
13361 #include <string.h>
13364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13365 $EGREP "memchr" >/dev
/null
2>&1; then :
13368 ac_cv_header_stdc
=no
13374 if test $ac_cv_header_stdc = yes; then
13375 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13377 /* end confdefs.h. */
13378 #include <stdlib.h>
13381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13382 $EGREP "free" >/dev
/null
2>&1; then :
13385 ac_cv_header_stdc
=no
13391 if test $ac_cv_header_stdc = yes; then
13392 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13393 if test "$cross_compiling" = yes; then :
13396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13397 /* end confdefs.h. */
13399 #include <stdlib.h>
13400 #if ((' ' & 0x0FF) == 0x020)
13401 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13402 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13404 # define ISLOWER(c) \
13405 (('a' <= (c) && (c) <= 'i') \
13406 || ('j' <= (c) && (c) <= 'r') \
13407 || ('s' <= (c) && (c) <= 'z'))
13408 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13411 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13416 for (i = 0; i < 256; i++)
13417 if (XOR (islower (i), ISLOWER (i))
13418 || toupper (i) != TOUPPER (i))
13423 if ac_fn_c_try_run
"$LINENO"; then :
13426 ac_cv_header_stdc
=no
13428 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13429 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13435 $as_echo "$ac_cv_header_stdc" >&6; }
13436 if test $ac_cv_header_stdc = yes; then
13438 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13442 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13443 # for constant arguments. Useless!
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13445 $as_echo_n "checking for working alloca.h... " >&6; }
13446 if ${ac_cv_working_alloca_h+:} false
; then :
13447 $as_echo_n "(cached) " >&6
13449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13450 /* end confdefs.h. */
13451 #include <alloca.h>
13455 char *p = (char *) alloca (2 * sizeof (int));
13461 if ac_fn_c_try_link
"$LINENO"; then :
13462 ac_cv_working_alloca_h
=yes
13464 ac_cv_working_alloca_h
=no
13466 rm -f core conftest.err conftest.
$ac_objext \
13467 conftest
$ac_exeext conftest.
$ac_ext
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13470 $as_echo "$ac_cv_working_alloca_h" >&6; }
13471 if test $ac_cv_working_alloca_h = yes; then
13473 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13478 $as_echo_n "checking for alloca... " >&6; }
13479 if ${ac_cv_func_alloca_works+:} false
; then :
13480 $as_echo_n "(cached) " >&6
13482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13483 /* end confdefs.h. */
13485 # define alloca __builtin_alloca
13488 # include <malloc.h>
13489 # define alloca _alloca
13491 # ifdef HAVE_ALLOCA_H
13492 # include <alloca.h>
13497 # ifndef alloca /* predefined by HP cc +Olibcalls */
13498 void *alloca (size_t);
13508 char *p = (char *) alloca (1);
13514 if ac_fn_c_try_link
"$LINENO"; then :
13515 ac_cv_func_alloca_works
=yes
13517 ac_cv_func_alloca_works
=no
13519 rm -f core conftest.err conftest.
$ac_objext \
13520 conftest
$ac_exeext conftest.
$ac_ext
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13523 $as_echo "$ac_cv_func_alloca_works" >&6; }
13525 if test $ac_cv_func_alloca_works = yes; then
13527 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13530 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13531 # that cause trouble. Some versions do not even contain alloca or
13532 # contain a buggy version. If you still want to use their alloca,
13533 # use ar to extract alloca.o from them instead of compiling alloca.c.
13535 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
13537 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13541 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13542 if ${ac_cv_os_cray+:} false
; then :
13543 $as_echo_n "(cached) " >&6
13545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13546 /* end confdefs.h. */
13547 #if defined CRAY && ! defined CRAY2
13554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13555 $EGREP "webecray" >/dev
/null
2>&1; then :
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13564 $as_echo "$ac_cv_os_cray" >&6; }
13565 if test $ac_cv_os_cray = yes; then
13566 for ac_func
in _getb67 GETB67 getb67
; do
13567 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13568 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13569 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13571 cat >>confdefs.h
<<_ACEOF
13572 #define CRAY_STACKSEG_END $ac_func
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13582 $as_echo_n "checking stack direction for C alloca... " >&6; }
13583 if ${ac_cv_c_stack_direction+:} false
; then :
13584 $as_echo_n "(cached) " >&6
13586 if test "$cross_compiling" = yes; then :
13587 ac_cv_c_stack_direction
=0
13589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13590 /* end confdefs.h. */
13591 $ac_includes_default
13593 find_stack_direction (int *addr, int depth)
13595 int dir, dummy = 0;
13598 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13599 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13600 return dir + dummy;
13604 main (int argc, char **argv)
13606 return find_stack_direction (0, argc + !argv + 20) < 0;
13609 if ac_fn_c_try_run
"$LINENO"; then :
13610 ac_cv_c_stack_direction
=1
13612 ac_cv_c_stack_direction
=-1
13614 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13615 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13620 $as_echo "$ac_cv_c_stack_direction" >&6; }
13621 cat >>confdefs.h
<<_ACEOF
13622 #define STACK_DIRECTION $ac_cv_c_stack_direction
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13631 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13632 if ${am_cv_langinfo_codeset+:} false
; then :
13633 $as_echo_n "(cached) " >&6
13635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13636 /* end confdefs.h. */
13637 #include <langinfo.h>
13641 char* cs = nl_langinfo(CODESET);
13646 if ac_fn_c_try_link
"$LINENO"; then :
13647 am_cv_langinfo_codeset
=yes
13649 am_cv_langinfo_codeset
=no
13651 rm -f core conftest.err conftest.
$ac_objext \
13652 conftest
$ac_exeext conftest.
$ac_ext
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13656 $as_echo "$am_cv_langinfo_codeset" >&6; }
13657 if test $am_cv_langinfo_codeset = yes; then
13659 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13664 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
13666 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13667 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13668 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13669 cat >>confdefs.h
<<_ACEOF
13670 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13678 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair sigaction
13680 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13681 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13682 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13683 cat >>confdefs.h
<<_ACEOF
13684 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13691 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
13692 if test "x$ac_cv_have_decl_strerror" = xyes
; then :
13698 cat >>confdefs.h
<<_ACEOF
13699 #define HAVE_DECL_STRERROR $ac_have_decl
13701 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13702 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
13708 cat >>confdefs.h
<<_ACEOF
13709 #define HAVE_DECL_STRSTR $ac_have_decl
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
13714 $as_echo_n "checking for sigsetjmp... " >&6; }
13715 if ${gdb_cv_func_sigsetjmp+:} false
; then :
13716 $as_echo_n "(cached) " >&6
13718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13719 /* end confdefs.h. */
13721 #include <setjmp.h>
13726 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
13731 if ac_fn_c_try_compile
"$LINENO"; then :
13732 gdb_cv_func_sigsetjmp
=yes
13734 gdb_cv_func_sigsetjmp
=no
13736 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
13739 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
13740 if test $gdb_cv_func_sigsetjmp = yes; then
13742 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
13747 # Check the return and argument types of ptrace.
13750 for ac_header
in sys
/ptrace.h ptrace.h
13752 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13753 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13754 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13755 cat >>confdefs.h
<<_ACEOF
13756 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13764 gdb_ptrace_headers
='
13765 #include <sys/types.h>
13766 #if HAVE_SYS_PTRACE_H
13767 # include <sys/ptrace.h>
13770 # include <unistd.h>
13773 # There is no point in checking if we don't have a prototype.
13774 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
13776 if test "x$ac_cv_have_decl_ptrace" = xyes
; then :
13782 cat >>confdefs.h
<<_ACEOF
13783 #define HAVE_DECL_PTRACE $ac_have_decl
13785 if test $ac_have_decl = 1; then :
13789 : ${gdb_cv_func_ptrace_ret='int'}
13790 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13794 # Check return type. Varargs (used on GNU/Linux) conflict with the
13795 # empty argument list, so check for that explicitly.
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
13797 $as_echo_n "checking return type of ptrace... " >&6; }
13798 if ${gdb_cv_func_ptrace_ret+:} false
; then :
13799 $as_echo_n "(cached) " >&6
13801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13802 /* end confdefs.h. */
13803 $gdb_ptrace_headers
13807 extern long ptrace (enum __ptrace_request, ...);
13812 if ac_fn_c_try_compile
"$LINENO"; then :
13813 gdb_cv_func_ptrace_ret
='long'
13815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13816 /* end confdefs.h. */
13817 $gdb_ptrace_headers
13821 extern int ptrace ();
13826 if ac_fn_c_try_compile
"$LINENO"; then :
13827 gdb_cv_func_ptrace_ret
='int'
13829 gdb_cv_func_ptrace_ret
='long'
13831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13833 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
13836 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
13838 cat >>confdefs.h
<<_ACEOF
13839 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
13842 # Check argument types.
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
13844 $as_echo_n "checking types of arguments for ptrace... " >&6; }
13845 if ${gdb_cv_func_ptrace_args+:} false
; then :
13846 $as_echo_n "(cached) " >&6
13849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13850 /* end confdefs.h. */
13851 $gdb_ptrace_headers
13855 extern long ptrace (enum __ptrace_request, ...);
13860 if ac_fn_c_try_compile
"$LINENO"; then :
13861 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
13864 for gdb_arg1
in 'int' 'long'; do
13865 for gdb_arg2
in 'pid_t' 'int' 'long'; do
13866 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
13867 for gdb_arg4
in 'int' 'long' 'void *'; do
13868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13869 /* end confdefs.h. */
13870 $gdb_ptrace_headers
13875 extern $gdb_cv_func_ptrace_ret
13876 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
13882 if ac_fn_c_try_compile
"$LINENO"; then :
13883 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
13886 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13887 for gdb_arg5
in 'int *' 'int' 'long'; do
13888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13889 /* end confdefs.h. */
13890 $gdb_ptrace_headers
13895 extern $gdb_cv_func_ptrace_ret
13896 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
13902 if ac_fn_c_try_compile
"$LINENO"; then :
13904 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
13907 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13913 # Provide a safe default value.
13914 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13917 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
13920 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
13921 ac_save_IFS
=$IFS; IFS
=','
13922 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
13926 cat >>confdefs.h
<<_ACEOF
13927 #define PTRACE_TYPE_ARG1 $1
13931 cat >>confdefs.h
<<_ACEOF
13932 #define PTRACE_TYPE_ARG3 $3
13936 cat >>confdefs.h
<<_ACEOF
13937 #define PTRACE_TYPE_ARG4 $4
13940 if test -n "$5"; then
13942 cat >>confdefs.h
<<_ACEOF
13943 #define PTRACE_TYPE_ARG5 $5
13949 if test "$cross_compiling" = no
; then
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
13951 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
13952 if ${ac_cv_func_setpgrp_void+:} false
; then :
13953 $as_echo_n "(cached) " >&6
13955 if test "$cross_compiling" = yes; then :
13956 as_fn_error $?
"cannot check setpgrp when cross compiling" "$LINENO" 5
13958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13959 /* end confdefs.h. */
13960 $ac_includes_default
13964 /* If this system has a BSD-style setpgrp which takes arguments,
13965 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
13966 exit successfully. */
13967 return setpgrp (1,1) != -1;
13972 if ac_fn_c_try_run
"$LINENO"; then :
13973 ac_cv_func_setpgrp_void
=no
13975 ac_cv_func_setpgrp_void
=yes
13977 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13978 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
13983 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
13984 if test $ac_cv_func_setpgrp_void = yes; then
13986 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
13992 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
13993 if ${ac_cv_func_setpgrp_void+:} false
; then :
13994 $as_echo_n "(cached) " >&6
13996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13997 /* end confdefs.h. */
13999 #include <unistd.h>
14005 if (setpgrp(1,1) == -1)
14014 if ac_fn_c_try_compile
"$LINENO"; then :
14015 ac_cv_func_setpgrp_void
=no
14017 ac_cv_func_setpgrp_void
=yes
14019 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
14022 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
14023 if test $ac_cv_func_setpgrp_void = yes; then
14024 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
14029 # Assume we'll default to using the included libiberty regex.
14030 gdb_use_included_regex
=yes
14032 # However, if the system regex is GNU regex, then default to *not*
14033 # using the included regex.
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
14035 $as_echo_n "checking for GNU regex... " >&6; }
14036 if ${gdb_cv_have_gnu_regex+:} false
; then :
14037 $as_echo_n "(cached) " >&6
14039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14040 /* end confdefs.h. */
14041 #include <gnu-versions.h>
14045 #define REGEX_INTERFACE_VERSION 1
14046 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
14047 # error "Version mismatch"
14053 if ac_fn_c_try_compile
"$LINENO"; then :
14054 gdb_cv_have_gnu_regex
=yes
14056 gdb_cv_have_gnu_regex
=no
14058 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
14061 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
14062 if test $gdb_cv_have_gnu_regex = yes; then
14063 gdb_use_included_regex
=no
14067 # Check whether --with-included-regex was given.
14068 if test "${with_included_regex+set}" = set; then :
14069 withval
=$with_included_regex; gdb_with_regex
=$withval
14071 gdb_with_regex
=$gdb_use_included_regex
14074 if test "$gdb_with_regex" = yes; then
14076 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
14080 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
14081 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
14082 #include <sys/proc.h>
14085 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes
; then :
14087 cat >>confdefs.h
<<_ACEOF
14088 #define HAVE_STRUCT_THREAD_TD_PCB 1
14095 # See if <sys/lwp.h> defines `struct lwp`.
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
14097 $as_echo_n "checking for struct lwp... " >&6; }
14098 if ${gdb_cv_struct_lwp+:} false
; then :
14099 $as_echo_n "(cached) " >&6
14101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14102 /* end confdefs.h. */
14103 #include <sys/param.h>
14105 #include <sys/lwp.h>
14114 if ac_fn_c_try_compile
"$LINENO"; then :
14115 gdb_cv_struct_lwp
=yes
14117 gdb_cv_struct_lwp
=no
14119 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
14122 $as_echo "$gdb_cv_struct_lwp" >&6; }
14123 if test $gdb_cv_struct_lwp = yes; then
14125 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
14129 # See if <machine/reg.h> degines `struct reg'.
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
14131 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
14132 if ${gdb_cv_struct_reg+:} false
; then :
14133 $as_echo_n "(cached) " >&6
14135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14136 /* end confdefs.h. */
14137 #include <sys/types.h>
14138 #include <machine/reg.h>
14147 if ac_fn_c_try_compile
"$LINENO"; then :
14148 gdb_cv_struct_reg
=yes
14150 gdb_cv_struct_reg
=no
14152 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
14155 $as_echo "$gdb_cv_struct_reg" >&6; }
14156 if test $gdb_cv_struct_reg = yes; then
14158 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
14162 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
14163 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
14164 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
14165 #include <machine/reg.h>
14167 if test "x$ac_cv_member_struct_reg_r_fs" = xyes
; then :
14169 cat >>confdefs.h
<<_ACEOF
14170 #define HAVE_STRUCT_REG_R_FS 1
14175 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
14176 #include <machine/reg.h>
14178 if test "x$ac_cv_member_struct_reg_r_gs" = xyes
; then :
14180 cat >>confdefs.h
<<_ACEOF
14181 #define HAVE_STRUCT_REG_R_GS 1
14188 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
14189 # Older amd64 Linux's don't have the fs_base and gs_base members of
14190 # `struct user_regs_struct'.
14191 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>
14192 #include <sys/user.h>
14194 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = xyes
; then :
14196 cat >>confdefs.h
<<_ACEOF
14197 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
14202 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>
14203 #include <sys/user.h>
14205 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = xyes
; then :
14207 cat >>confdefs.h
<<_ACEOF
14208 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
14215 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
14217 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
14218 if ${gdb_cv_have_ptrace_getregs+:} false
; then :
14219 $as_echo_n "(cached) " >&6
14221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14222 /* end confdefs.h. */
14223 #include <sys/ptrace.h>
14232 if ac_fn_c_try_compile
"$LINENO"; then :
14233 gdb_cv_have_ptrace_getregs
=yes
14235 gdb_cv_have_ptrace_getregs
=no
14237 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
14241 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
14242 if test $gdb_cv_have_ptrace_getregs = yes; then
14244 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
14248 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
14250 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
14251 if ${gdb_cv_have_ptrace_getfpxregs+:} false
; then :
14252 $as_echo_n "(cached) " >&6
14254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14255 /* end confdefs.h. */
14256 #include <sys/ptrace.h>
14265 if ac_fn_c_try_compile
"$LINENO"; then :
14266 gdb_cv_have_ptrace_getfpxregs
=yes
14268 gdb_cv_have_ptrace_getfpxregs
=no
14270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
14274 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
14275 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
14277 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
14281 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
14283 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
14284 if ${gdb_cv_have_pt_getdbregs+:} false
; then :
14285 $as_echo_n "(cached) " >&6
14287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14288 /* end confdefs.h. */
14289 #include <sys/types.h>
14290 #include <sys/ptrace.h>
14299 if ac_fn_c_try_compile
"$LINENO"; then :
14300 gdb_cv_have_pt_getdbregs
=yes
14302 gdb_cv_have_pt_getdbregs
=no
14304 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
14308 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
14309 if test $gdb_cv_have_pt_getdbregs = yes; then
14311 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
14315 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
14317 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
14318 if ${gdb_cv_have_pt_getxmmregs+:} false
; then :
14319 $as_echo_n "(cached) " >&6
14321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14322 /* end confdefs.h. */
14323 #include <sys/types.h>
14324 #include <sys/ptrace.h>
14333 if ac_fn_c_try_compile
"$LINENO"; then :
14334 gdb_cv_have_pt_getxmmregs
=yes
14336 gdb_cv_have_pt_getxmmregs
=no
14338 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
14342 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
14343 if test $gdb_cv_have_pt_getxmmregs = yes; then
14345 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
14349 # See if <sys/ptrace.h> supports LWP names on FreeBSD
14350 # Older FreeBSD versions don't have the pl_tdname member of
14351 # `struct ptrace_lwpinfo'.
14352 ac_fn_c_check_member
"$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
14354 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes
; then :
14356 cat >>confdefs.h
<<_ACEOF
14357 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
14364 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
14365 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
14367 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>
14369 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes
; then :
14371 cat >>confdefs.h
<<_ACEOF
14372 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
14379 if test "$ac_cv_header_sys_procfs_h" = yes; then
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
14381 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
14382 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
14383 $as_echo_n "(cached) " >&6
14385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14386 /* end confdefs.h. */
14389 /* Needed for new procfs interface on sparc-solaris. */
14390 #define _STRUCTURED_PROC 1
14391 #include <sys/procfs.h>
14400 if ac_fn_c_try_compile
"$LINENO"; then :
14401 bfd_cv_have_sys_procfs_type_gregset_t
=yes
14403 bfd_cv_have_sys_procfs_type_gregset_t
=no
14406 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14409 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
14411 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
14415 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
14418 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
14419 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
14420 $as_echo_n "(cached) " >&6
14422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14423 /* end confdefs.h. */
14426 /* Needed for new procfs interface on sparc-solaris. */
14427 #define _STRUCTURED_PROC 1
14428 #include <sys/procfs.h>
14437 if ac_fn_c_try_compile
"$LINENO"; then :
14438 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
14440 bfd_cv_have_sys_procfs_type_fpregset_t
=no
14443 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14446 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
14448 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
14452 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
14455 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
14456 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
14457 $as_echo_n "(cached) " >&6
14459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14460 /* end confdefs.h. */
14463 /* Needed for new procfs interface on sparc-solaris. */
14464 #define _STRUCTURED_PROC 1
14465 #include <sys/procfs.h>
14474 if ac_fn_c_try_compile
"$LINENO"; then :
14475 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
14477 bfd_cv_have_sys_procfs_type_prgregset_t
=no
14480 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14483 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
14485 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
14489 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
14492 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
14493 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
14494 $as_echo_n "(cached) " >&6
14496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14497 /* end confdefs.h. */
14500 /* Needed for new procfs interface on sparc-solaris. */
14501 #define _STRUCTURED_PROC 1
14502 #include <sys/procfs.h>
14511 if ac_fn_c_try_compile
"$LINENO"; then :
14512 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
14514 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
14517 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14520 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
14522 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
14526 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
14529 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
14530 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
14531 $as_echo_n "(cached) " >&6
14533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14534 /* end confdefs.h. */
14537 /* Needed for new procfs interface on sparc-solaris. */
14538 #define _STRUCTURED_PROC 1
14539 #include <sys/procfs.h>
14548 if ac_fn_c_try_compile
"$LINENO"; then :
14549 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
14551 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
14554 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14557 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
14559 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
14563 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
14566 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
14567 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
14568 $as_echo_n "(cached) " >&6
14570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14571 /* end confdefs.h. */
14574 /* Needed for new procfs interface on sparc-solaris. */
14575 #define _STRUCTURED_PROC 1
14576 #include <sys/procfs.h>
14585 if ac_fn_c_try_compile
"$LINENO"; then :
14586 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
14588 bfd_cv_have_sys_procfs_type_lwpid_t
=no
14591 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14594 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
14596 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
14600 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
14603 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
14604 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
14605 $as_echo_n "(cached) " >&6
14607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14608 /* end confdefs.h. */
14611 /* Needed for new procfs interface on sparc-solaris. */
14612 #define _STRUCTURED_PROC 1
14613 #include <sys/procfs.h>
14622 if ac_fn_c_try_compile
"$LINENO"; then :
14623 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
14625 bfd_cv_have_sys_procfs_type_psaddr_t
=no
14628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14631 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
14633 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
14637 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
14642 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
14644 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
14645 if ${gdb_cv_prfpregset_t_broken+:} false
; then :
14646 $as_echo_n "(cached) " >&6
14648 if test "$cross_compiling" = yes; then :
14649 gdb_cv_prfpregset_t_broken
=yes
14651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14652 /* end confdefs.h. */
14653 #include <sys/procfs.h>
14656 if (sizeof (prfpregset_t) == sizeof (void *))
14661 if ac_fn_c_try_run
"$LINENO"; then :
14662 gdb_cv_prfpregset_t_broken
=no
14664 gdb_cv_prfpregset_t_broken
=yes
14666 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14667 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
14673 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
14674 if test $gdb_cv_prfpregset_t_broken = yes; then
14676 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
14682 # Check if the compiler supports the `long long' type.
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
14685 $as_echo_n "checking for long long support in compiler... " >&6; }
14686 if ${gdb_cv_c_long_long+:} false
; then :
14687 $as_echo_n "(cached) " >&6
14689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14690 /* end confdefs.h. */
14691 extern long long foo;
14695 switch (foo & 2) { case 0: return 1; }
14700 if ac_fn_c_try_compile
"$LINENO"; then :
14701 gdb_cv_c_long_long
=yes
14703 gdb_cv_c_long_long
=no
14705 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
14708 $as_echo "$gdb_cv_c_long_long" >&6; }
14709 if test $gdb_cv_c_long_long != yes; then
14710 # libdecnumber requires long long.
14711 as_fn_error $?
"Compiler must support long long for GDB." "$LINENO" 5
14714 # Check if the compiler and runtime support printing long longs.
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
14717 $as_echo_n "checking for long long support in printf... " >&6; }
14718 if ${gdb_cv_printf_has_long_long+:} false
; then :
14719 $as_echo_n "(cached) " >&6
14721 if test "$cross_compiling" = yes; then :
14722 gdb_cv_printf_has_long_long
=no
14724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14725 /* end confdefs.h. */
14726 $ac_includes_default
14732 l = (l << 16) + 0x0123;
14733 l = (l << 16) + 0x4567;
14734 l = (l << 16) + 0x89ab;
14735 l = (l << 16) + 0xcdef;
14736 sprintf (buf, "0x%016llx", l);
14737 return (strcmp ("0x0123456789abcdef", buf));
14742 if ac_fn_c_try_run
"$LINENO"; then :
14743 gdb_cv_printf_has_long_long
=yes
14745 gdb_cv_printf_has_long_long
=no
14747 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14748 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
14753 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
14754 if test $gdb_cv_printf_has_long_long = yes; then
14756 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
14760 # Check if the compiler and runtime support printing decfloats.
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
14763 $as_echo_n "checking for decfloat support in printf... " >&6; }
14764 if ${gdb_cv_printf_has_decfloat+:} false
; then :
14765 $as_echo_n "(cached) " >&6
14767 if test "$cross_compiling" = yes; then :
14768 gdb_cv_printf_has_decfloat
=no
14770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14771 /* end confdefs.h. */
14772 $ac_includes_default
14777 _Decimal32 d32 = 1.2345df;
14778 _Decimal64 d64 = 1.2345dd;
14779 _Decimal128 d128 = 1.2345dl;
14780 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
14781 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
14786 if ac_fn_c_try_run
"$LINENO"; then :
14787 gdb_cv_printf_has_decfloat
=yes
14789 gdb_cv_printf_has_decfloat
=no
14791 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14792 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
14797 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
14798 if test $gdb_cv_printf_has_decfloat = yes; then
14800 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
14804 # Check if the compiler supports the `long double' type. We can't use
14805 # AC_C_LONG_DOUBLE because that one does additional checks on the
14806 # constants defined in <float.h> that fail on some systems,
14807 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
14810 $as_echo_n "checking for long double support in compiler... " >&6; }
14811 if ${gdb_cv_c_long_double+:} false
; then :
14812 $as_echo_n "(cached) " >&6
14814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14815 /* end confdefs.h. */
14818 if ac_fn_c_try_compile
"$LINENO"; then :
14819 gdb_cv_c_long_double
=yes
14821 gdb_cv_c_long_double
=no
14823 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
14826 $as_echo "$gdb_cv_c_long_double" >&6; }
14827 if test $gdb_cv_c_long_double = yes; then
14829 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14833 # Check if the compiler and runtime support printing long doubles.
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
14836 $as_echo_n "checking for long double support in printf... " >&6; }
14837 if ${gdb_cv_printf_has_long_double+:} false
; then :
14838 $as_echo_n "(cached) " >&6
14840 if test "$cross_compiling" = yes; then :
14841 gdb_cv_printf_has_long_double
=no
14843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14844 /* end confdefs.h. */
14845 $ac_includes_default
14850 long double f = 3.141592653;
14851 sprintf (buf, "%Lg", f);
14852 return (strncmp ("3.14159", buf, 7));
14857 if ac_fn_c_try_run
"$LINENO"; then :
14858 gdb_cv_printf_has_long_double
=yes
14860 gdb_cv_printf_has_long_double
=no
14862 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14863 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
14868 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
14869 if test $gdb_cv_printf_has_long_double = yes; then
14871 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
14875 # Check if the compiler and runtime support scanning long doubles.
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
14878 $as_echo_n "checking for long double support in scanf... " >&6; }
14879 if ${gdb_cv_scanf_has_long_double+:} false
; then :
14880 $as_echo_n "(cached) " >&6
14882 if test "$cross_compiling" = yes; then :
14883 gdb_cv_scanf_has_long_double
=no
14885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14886 /* end confdefs.h. */
14891 char *buf = "3.141592653";
14893 sscanf (buf, "%Lg", &f);
14894 return !(f > 3.14159 && f < 3.14160);
14899 if ac_fn_c_try_run
"$LINENO"; then :
14900 gdb_cv_scanf_has_long_double
=yes
14902 gdb_cv_scanf_has_long_double
=no
14904 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14905 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
14910 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
14911 if test $gdb_cv_scanf_has_long_double = yes; then
14913 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
14920 $as_echo_n "checking for -bbigtoc option... " >&6; }
14921 if ${gdb_cv_bigtoc+:} false
; then :
14922 $as_echo_n "(cached) " >&6
14925 SAVE_LDFLAGS
=$LDFLAGS
14928 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
14929 *) gdb_cv_bigtoc
=-bbigtoc ;;
14932 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
14933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14934 /* end confdefs.h. */
14944 if ac_fn_c_try_link
"$LINENO"; then :
14949 rm -f core conftest.err conftest.
$ac_objext \
14950 conftest
$ac_exeext conftest.
$ac_ext
14951 LDFLAGS
="${SAVE_LDFLAGS}"
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
14955 $as_echo "$gdb_cv_bigtoc" >&6; }
14956 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
14961 $as_echo_n "checking for the dynamic export flag... " >&6; }
14963 if test "${gdb_native}" = yes; then
14964 # The dynamically loaded libthread_db needs access to symbols in the gdb
14965 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
14966 # may not be supported there.
14967 old_LDFLAGS
="$LDFLAGS"
14968 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
14969 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
14970 LDFLAGS
="$LDFLAGS $RDYNAMIC"
14971 if test "${have_libpython}" = no
; then
14972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14973 /* end confdefs.h. */
14983 if ac_fn_c_try_link
"$LINENO"; then :
14986 rm -f core conftest.err conftest.
$ac_objext \
14987 conftest
$ac_exeext conftest.
$ac_ext
14989 # Workaround http://bugs.python.org/issue4434 where static
14990 # libpythonX.Y.a would get its symbols required for
14991 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
14992 # Problem does not happen for the recommended libpythonX.Y.so linkage.
14994 # Note the workaround for Python
14995 # http://bugs.python.org/issue10112 earlier has removed
14996 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
14997 # here too, as otherwise it'd make this -Wl,--dynamic-list test
14999 old_CFLAGS
="$CFLAGS"
15000 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
15002 LIBS
="$LIBS $PYTHON_LIBS"
15003 old_CPPFLAGS
="$CPPFLAGS"
15004 CPPFLAGS
="$CPPFLAGS $PYTHON_CPPFLAGS"
15005 if test "$cross_compiling" = yes; then :
15008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15009 /* end confdefs.h. */
15010 #include "Python.h"
15016 err = PyRun_SimpleString ("import itertools\n");
15018 return err == 0 ? 0 : 1;
15023 if ac_fn_c_try_run
"$LINENO"; then :
15026 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15027 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15031 CFLAGS
="$old_CFLAGS"
15032 CPPFLAGS
="$old_CPPFLAGS"
15034 LDFLAGS
="$old_LDFLAGS"
15036 if $dynamic_list; then
15037 found
="-Wl,--dynamic-list"
15038 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
15041 RDYNAMIC
="-rdynamic"
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
15045 $as_echo "$found" >&6; }
15048 if test ${build} = ${host} -a ${host} = ${target} ; then
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
15052 $as_echo_n "checking for AiX thread debugging library... " >&6; }
15053 if ${gdb_cv_have_aix_thread_debug+:} false
; then :
15054 $as_echo_n "(cached) " >&6
15056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15057 /* end confdefs.h. */
15058 #include <sys/pthdebug.h>
15062 #ifndef PTHDB_VERSION_3
15069 if ac_fn_c_try_compile
"$LINENO"; then :
15070 gdb_cv_have_aix_thread_debug
=yes
15072 gdb_cv_have_aix_thread_debug
=no
15074 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
15078 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
15079 if test $gdb_cv_have_aix_thread_debug = yes; then
15080 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
15081 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
15082 LIBS
="$LIBS -lpthdebug"
15084 # Older versions of AIX do not provide the declaration for
15085 # the getthrds function (it appears that it was introduced
15087 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
15089 if test "x$ac_cv_have_decl_getthrds" = xyes
; then :
15095 cat >>confdefs.h
<<_ACEOF
15096 #define HAVE_DECL_GETTHRDS $ac_have_decl
15105 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
15107 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
15108 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false
; then :
15109 $as_echo_n "(cached) " >&6
15111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15112 /* end confdefs.h. */
15113 #include <thread_db.h>
15117 int i = TD_NOTALLOC;
15122 if ac_fn_c_try_compile
"$LINENO"; then :
15123 gdb_cv_thread_db_h_has_td_notalloc
=yes
15125 gdb_cv_thread_db_h_has_td_notalloc
=no
15128 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
15132 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
15134 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
15135 if ${gdb_cv_thread_db_h_has_td_version+:} false
; then :
15136 $as_echo_n "(cached) " >&6
15138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15139 /* end confdefs.h. */
15140 #include <thread_db.h>
15144 int i = TD_VERSION;
15149 if ac_fn_c_try_compile
"$LINENO"; then :
15150 gdb_cv_thread_db_h_has_td_version
=yes
15152 gdb_cv_thread_db_h_has_td_version
=no
15155 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
15159 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
15161 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
15162 if ${gdb_cv_thread_db_h_has_td_notls+:} false
; then :
15163 $as_echo_n "(cached) " >&6
15165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15166 /* end confdefs.h. */
15167 #include <thread_db.h>
15176 if ac_fn_c_try_compile
"$LINENO"; then :
15177 gdb_cv_thread_db_h_has_td_notls
=yes
15179 gdb_cv_thread_db_h_has_td_notls
=no
15182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
15186 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
15188 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
15190 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
15193 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
15195 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
15198 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
15200 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
15204 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
15206 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
15212 cat >>confdefs.h
<<_ACEOF
15213 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
15217 if test "$cross_compiling" = yes; then :
15218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15219 /* end confdefs.h. */
15220 #include <sys/personality.h>
15225 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
15226 # define ADDR_NO_RANDOMIZE 0x0040000
15228 /* Test the flag could be set and stays set. */
15229 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
15230 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
15236 if ac_fn_c_try_link
"$LINENO"; then :
15237 have_personality
=true
15239 have_personality
=false
15241 rm -f core conftest.err conftest.
$ac_objext \
15242 conftest
$ac_exeext conftest.
$ac_ext
15244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15245 /* end confdefs.h. */
15246 #include <sys/personality.h>
15251 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
15252 # define ADDR_NO_RANDOMIZE 0x0040000
15254 /* Test the flag could be set and stays set. */
15255 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
15256 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
15262 if ac_fn_c_try_run
"$LINENO"; then :
15263 have_personality
=true
15265 have_personality
=false
15267 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15268 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15271 if $have_personality
15274 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
15287 cat >>confdefs.h
<<_ACEOF
15288 #define GDBINIT "$gdbinit"
15293 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
15294 # except that the argument to --with-sysroot is optional.
15295 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
15296 if test "x$with_sysroot" = xyes
; then
15297 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
15300 # Check whether --with-sysroot was given.
15301 if test "${with_sysroot+set}" = set; then :
15302 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
15304 TARGET_SYSTEM_ROOT
=
15308 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
15309 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15310 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
15311 ac_define_dir
=`eval echo $ac_define_dir`
15313 cat >>confdefs.h
<<_ACEOF
15314 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
15320 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
15321 if test "x$prefix" = xNONE
; then
15322 test_prefix
=/usr
/local
15324 test_prefix
=$prefix
15327 test_prefix
=$exec_prefix
15330 case ${ac_define_dir} in
15331 "${test_prefix}"|
"${test_prefix}/"*|\
15332 '${exec_prefix}'|
'${exec_prefix}/'*)
15337 cat >>confdefs.h
<<_ACEOF
15338 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
15345 # Check whether --with-system-gdbinit was given.
15346 if test "${with_system_gdbinit+set}" = set; then :
15347 withval
=$with_system_gdbinit;
15348 SYSTEM_GDBINIT
=$withval
15354 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
15355 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15356 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
15357 ac_define_dir
=`eval echo $ac_define_dir`
15359 cat >>confdefs.h
<<_ACEOF
15360 #define SYSTEM_GDBINIT "$ac_define_dir"
15366 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
15367 if test "x$prefix" = xNONE
; then
15368 test_prefix
=/usr
/local
15370 test_prefix
=$prefix
15373 test_prefix
=$exec_prefix
15376 case ${ac_define_dir} in
15377 "${test_prefix}"|
"${test_prefix}/"*|\
15378 '${exec_prefix}'|
'${exec_prefix}/'*)
15383 cat >>confdefs.h
<<_ACEOF
15384 #define SYSTEM_GDBINIT_RELOCATABLE $value
15391 # Check whether --enable-werror was given.
15392 if test "${enable_werror+set}" = set; then :
15393 enableval
=$enable_werror; case "${enableval}" in
15394 yes | y
) ERROR_ON_WARNING
="yes" ;;
15395 no | n
) ERROR_ON_WARNING
="no" ;;
15396 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15401 # Enable -Werror by default when using gcc. Turn it off for releases.
15402 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
15403 ERROR_ON_WARNING
=yes
15407 if test "${ERROR_ON_WARNING}" = yes ; then
15408 WERROR_CFLAGS
="-Werror"
15411 # The options we'll try to enable.
15412 build_warnings
="-Wall -Wpointer-arith \
15413 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
15414 -Wno-switch -Wno-char-subscripts \
15415 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
15416 -Wno-sign-compare -Wno-error=maybe-uninitialized \
15417 -Wno-mismatched-tags \
15418 -Wno-error=deprecated-register \
15419 -Wsuggest-override \
15420 -Wimplicit-fallthrough=3 \
15425 # Enable -Wno-format by default when using gcc on mingw since many
15426 # GCC versions complain about %I64.
15427 build_warnings
="$build_warnings -Wno-format" ;;
15429 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
15430 # doesn't understand.
15431 build_warnings
="$build_warnings -Wno-unknown-pragmas"
15432 # Solaris 11 <unistd.h> marks vfork deprecated.
15433 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
15435 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
15436 # but there's a special case for this below.
15437 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
15440 # Check whether --enable-build-warnings was given.
15441 if test "${enable_build_warnings+set}" = set; then :
15442 enableval
=$enable_build_warnings; case "${enableval}" in
15444 no
) build_warnings
="-w";;
15445 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15446 build_warnings
="${build_warnings} ${t}";;
15447 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15448 build_warnings
="${t} ${build_warnings}";;
15449 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15451 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
15452 echo "Setting compiler warning flags = $build_warnings" 6>&1
15455 # Check whether --enable-gdb-build-warnings was given.
15456 if test "${enable_gdb_build_warnings+set}" = set; then :
15457 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
15459 no
) build_warnings
="-w";;
15460 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15461 build_warnings
="${build_warnings} ${t}";;
15462 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15463 build_warnings
="${t} ${build_warnings}";;
15464 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15466 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
15467 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
15471 # The set of warnings supported by a C++ compiler is not the same as
15472 # of the C compiler.
15474 ac_cpp
='$CXXCPP $CPPFLAGS'
15475 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15476 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15477 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
15481 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
15484 $as_echo_n "checking compiler warning flags... " >&6; }
15485 # Separate out the -Werror flag as some files just cannot be
15486 # compiled with it enabled.
15487 for w
in ${build_warnings}; do
15488 # GCC does not complain about -Wno-unknown-warning. Invert
15489 # and test -Wunknown-warning instead.
15492 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
15493 -Wformat-nonliteral)
15494 # gcc requires -Wformat before -Wformat-nonliteral
15495 # will work, so stick them together.
15504 -Werr*) WERROR_CFLAGS
=-Werror ;;
15506 # Check whether GCC accepts it.
15507 saved_CFLAGS
="$CFLAGS"
15508 CFLAGS
="$CFLAGS -Werror $wtest"
15509 saved_CXXFLAGS
="$CXXFLAGS"
15510 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
15511 if test "x$w" = "x-Wunused-variable"; then
15512 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
15513 # fixed in GCC 4.9. This test is derived from the gdb
15514 # source code that triggered this bug in GCC.
15515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15516 /* end confdefs.h. */
15517 struct scoped_restore_base {};
15518 struct scoped_restore_tmpl : public scoped_restore_base {
15519 ~scoped_restore_tmpl() {}
15524 const scoped_restore_base &b = scoped_restore_tmpl();
15529 if ac_fn_cxx_try_compile
"$LINENO"; then :
15530 WARN_CFLAGS
="${WARN_CFLAGS} $w"
15532 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15535 /* end confdefs.h. */
15545 if ac_fn_cxx_try_compile
"$LINENO"; then :
15546 WARN_CFLAGS
="${WARN_CFLAGS} $w"
15548 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15550 CFLAGS
="$saved_CFLAGS"
15551 CXXFLAGS
="$saved_CXXFLAGS"
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
15555 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
15561 ac_cpp='$CPP $CPPFLAGS'
15562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15568 # In the Cygwin environment, we need some additional flags.
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
15570 $as_echo_n "checking
for cygwin...
" >&6; }
15571 if ${gdb_cv_os_cygwin+:} false; then :
15572 $as_echo_n "(cached
) " >&6
15574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15575 /* end confdefs.h. */
15577 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
15581 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15582 $EGREP "^lose$
" >/dev/null 2>&1; then :
15583 gdb_cv_os_cygwin=yes
15585 gdb_cv_os_cygwin=no
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
15591 $as_echo "$gdb_cv_os_cygwin" >&6; }
15594 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
15596 *go32* ) SER_HARDWIRE=ser-go32.o ;;
15597 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
15598 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
15602 # libreadline needs libuser32.a in a cygwin environment
15604 if test x$gdb_cv_os_cygwin = xyes; then
15605 WIN32LIBS="-luser32"
15606 case "${target}" in
15607 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
15612 # The ser-tcp.c module requires sockets.
15616 $as_echo "#define USE_WIN32API 1" >>confdefs.h
15618 WIN32LIBS
="$WIN32LIBS -lws2_32"
15623 # Add ELF support to GDB, but only if BFD includes ELF support.
15626 OLD_LDFLAGS
=$LDFLAGS
15628 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
15629 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
15630 # always want our bfd.
15631 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
15632 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
15633 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
15634 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15635 LIBS
="-lbfd -liberty -lz $intl $LIBS"
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
15637 $as_echo_n "checking for ELF support in BFD... " >&6; }
15638 if ${gdb_cv_var_elf+:} false
; then :
15639 $as_echo_n "(cached) " >&6
15641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15642 /* end confdefs.h. */
15643 #include <stdlib.h>
15645 #include "elf-bfd.h"
15650 return bfd_get_elf_phdr_upper_bound (NULL);
15655 if ac_fn_c_try_link
"$LINENO"; then :
15660 rm -f core conftest.err conftest.
$ac_objext \
15661 conftest
$ac_exeext conftest.
$ac_ext
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
15664 $as_echo "$gdb_cv_var_elf" >&6; }
15666 LDFLAGS
=$OLD_LDFLAGS
15668 if test $gdb_cv_var_elf = yes; then
15669 CONFIG_OBS
="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o"
15671 $as_echo "#define HAVE_ELF 1" >>confdefs.h
15673 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
15674 if test "$plugins" = "yes"; then
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15676 $as_echo_n "checking for library containing dlopen... " >&6; }
15677 if ${ac_cv_search_dlopen+:} false
; then :
15678 $as_echo_n "(cached) " >&6
15680 ac_func_search_save_LIBS
=$LIBS
15681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15682 /* end confdefs.h. */
15684 /* Override any GCC internal prototype to avoid an error.
15685 Use char because int might match the return type of a GCC
15686 builtin and then its argument prototype would still apply. */
15699 for ac_lib
in '' dl
; do
15700 if test -z "$ac_lib"; then
15701 ac_res
="none required"
15704 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15706 if ac_fn_c_try_link
"$LINENO"; then :
15707 ac_cv_search_dlopen
=$ac_res
15709 rm -f core conftest.err conftest.
$ac_objext \
15711 if ${ac_cv_search_dlopen+:} false
; then :
15715 if ${ac_cv_search_dlopen+:} false
; then :
15718 ac_cv_search_dlopen
=no
15720 rm conftest.
$ac_ext
15721 LIBS
=$ac_func_search_save_LIBS
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15724 $as_echo "$ac_cv_search_dlopen" >&6; }
15725 ac_res
=$ac_cv_search_dlopen
15726 if test "$ac_res" != no
; then :
15727 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15734 # Add macho support to GDB, but only if BFD includes it.
15737 OLD_LDFLAGS
=$LDFLAGS
15739 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
15740 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
15741 # always want our bfd.
15742 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
15743 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
15744 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
15745 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15746 LIBS
="-lbfd -liberty -lz $intl $LIBS"
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
15748 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
15749 if ${gdb_cv_var_macho+:} false
; then :
15750 $as_echo_n "(cached) " >&6
15752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15753 /* end confdefs.h. */
15754 #include <stdlib.h>
15756 #include "mach-o.h"
15761 return bfd_mach_o_lookup_command (NULL, 0, NULL);
15766 if ac_fn_c_try_link
"$LINENO"; then :
15767 gdb_cv_var_macho
=yes
15769 gdb_cv_var_macho
=no
15771 rm -f core conftest.err conftest.
$ac_objext \
15772 conftest
$ac_exeext conftest.
$ac_ext
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
15775 $as_echo "$gdb_cv_var_macho" >&6; }
15777 LDFLAGS
=$OLD_LDFLAGS
15779 if test $gdb_cv_var_macho = yes; then
15780 CONFIG_OBS
="$CONFIG_OBS machoread.o"
15783 # Add any host-specific objects to GDB.
15784 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
15786 # If building on ELF, look for lzma support for embedded compressed debug info.
15787 if test $gdb_cv_var_elf = yes; then
15789 # Check whether --with-lzma was given.
15790 if test "${with_lzma+set}" = set; then :
15791 withval
=$with_lzma;
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
15797 $as_echo_n "checking whether to use lzma... " >&6; }
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
15799 $as_echo "$with_lzma" >&6; }
15801 if test "${with_lzma}" != no
; then
15812 acl_save_prefix
="$prefix"
15813 prefix
="$acl_final_prefix"
15814 acl_save_exec_prefix
="$exec_prefix"
15815 exec_prefix
="$acl_final_exec_prefix"
15817 eval additional_includedir
=\"$includedir\"
15818 eval additional_libdir
=\"$libdir\"
15820 exec_prefix
="$acl_save_exec_prefix"
15821 prefix
="$acl_save_prefix"
15824 # Check whether --with-liblzma-prefix was given.
15825 if test "${with_liblzma_prefix+set}" = set; then :
15826 withval
=$with_liblzma_prefix;
15827 if test "X$withval" = "Xno"; then
15830 if test "X$withval" = "X"; then
15832 acl_save_prefix
="$prefix"
15833 prefix
="$acl_final_prefix"
15834 acl_save_exec_prefix
="$exec_prefix"
15835 exec_prefix
="$acl_final_exec_prefix"
15837 eval additional_includedir
=\"$includedir\"
15838 eval additional_libdir
=\"$libdir\"
15840 exec_prefix
="$acl_save_exec_prefix"
15841 prefix
="$acl_save_prefix"
15844 additional_includedir
="$withval/include"
15845 additional_libdir
="$withval/lib"
15856 names_already_handled
=
15857 names_next_round
='lzma '
15858 while test -n "$names_next_round"; do
15859 names_this_round
="$names_next_round"
15861 for name
in $names_this_round; do
15863 for n
in $names_already_handled; do
15864 if test "$n" = "$name"; then
15865 already_handled
=yes
15869 if test -z "$already_handled"; then
15870 names_already_handled
="$names_already_handled $name"
15871 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15872 eval value
=\"\
$HAVE_LIB$uppername\"
15873 if test -n "$value"; then
15874 if test "$value" = yes; then
15875 eval value
=\"\
$LIB$uppername\"
15876 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
15877 eval value
=\"\
$LTLIB$uppername\"
15878 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
15887 if test $use_additional = yes; then
15888 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15889 found_dir
="$additional_libdir"
15890 found_so
="$additional_libdir/lib$name.$shlibext"
15891 if test -f "$additional_libdir/lib$name.la"; then
15892 found_la
="$additional_libdir/lib$name.la"
15895 if test -f "$additional_libdir/lib$name.$libext"; then
15896 found_dir
="$additional_libdir"
15897 found_a
="$additional_libdir/lib$name.$libext"
15898 if test -f "$additional_libdir/lib$name.la"; then
15899 found_la
="$additional_libdir/lib$name.la"
15904 if test "X$found_dir" = "X"; then
15905 for x
in $LDFLAGS $LTLIBLZMA; do
15907 acl_save_prefix
="$prefix"
15908 prefix
="$acl_final_prefix"
15909 acl_save_exec_prefix
="$exec_prefix"
15910 exec_prefix
="$acl_final_exec_prefix"
15912 exec_prefix
="$acl_save_exec_prefix"
15913 prefix
="$acl_save_prefix"
15917 dir
=`echo "X$x" | sed -e 's/^X-L//'`
15918 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15920 found_so
="$dir/lib$name.$shlibext"
15921 if test -f "$dir/lib$name.la"; then
15922 found_la
="$dir/lib$name.la"
15925 if test -f "$dir/lib$name.$libext"; then
15927 found_a
="$dir/lib$name.$libext"
15928 if test -f "$dir/lib$name.la"; then
15929 found_la
="$dir/lib$name.la"
15935 if test "X$found_dir" != "X"; then
15940 if test "X$found_dir" != "X"; then
15941 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
15942 if test "X$found_so" != "X"; then
15943 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
15944 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
15947 for x
in $ltrpathdirs; do
15948 if test "X$x" = "X$found_dir"; then
15953 if test -z "$haveit"; then
15954 ltrpathdirs
="$ltrpathdirs $found_dir"
15956 if test "$hardcode_direct" = yes; then
15957 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
15959 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
15960 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
15962 for x
in $rpathdirs; do
15963 if test "X$x" = "X$found_dir"; then
15968 if test -z "$haveit"; then
15969 rpathdirs
="$rpathdirs $found_dir"
15973 for x
in $LDFLAGS $LIBLZMA; do
15975 acl_save_prefix
="$prefix"
15976 prefix
="$acl_final_prefix"
15977 acl_save_exec_prefix
="$exec_prefix"
15978 exec_prefix
="$acl_final_exec_prefix"
15980 exec_prefix
="$acl_save_exec_prefix"
15981 prefix
="$acl_save_prefix"
15983 if test "X$x" = "X-L$found_dir"; then
15988 if test -z "$haveit"; then
15989 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
15991 if test "$hardcode_minus_L" != no
; then
15992 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
15994 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
16000 if test "X$found_a" != "X"; then
16001 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
16003 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
16006 additional_includedir
=
16007 case "$found_dir" in
16009 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16010 additional_includedir
="$basedir/include"
16013 if test "X$additional_includedir" != "X"; then
16014 if test "X$additional_includedir" != "X/usr/include"; then
16016 if test "X$additional_includedir" = "X/usr/local/include"; then
16017 if test -n "$GCC"; then
16019 linux
*) haveit
=yes;;
16023 if test -z "$haveit"; then
16024 for x
in $CPPFLAGS $INCLZMA; do
16026 acl_save_prefix
="$prefix"
16027 prefix
="$acl_final_prefix"
16028 acl_save_exec_prefix
="$exec_prefix"
16029 exec_prefix
="$acl_final_exec_prefix"
16031 exec_prefix
="$acl_save_exec_prefix"
16032 prefix
="$acl_save_prefix"
16034 if test "X$x" = "X-I$additional_includedir"; then
16039 if test -z "$haveit"; then
16040 if test -d "$additional_includedir"; then
16041 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
16047 if test -n "$found_la"; then
16048 save_libdir
="$libdir"
16049 case "$found_la" in
16050 */* |
*\\*) .
"$found_la" ;;
16051 *) .
"./$found_la" ;;
16053 libdir
="$save_libdir"
16054 for dep
in $dependency_libs; do
16057 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
16058 if test "X$additional_libdir" != "X/usr/lib"; then
16060 if test "X$additional_libdir" = "X/usr/local/lib"; then
16061 if test -n "$GCC"; then
16063 linux
*) haveit
=yes;;
16067 if test -z "$haveit"; then
16069 for x
in $LDFLAGS $LIBLZMA; do
16071 acl_save_prefix
="$prefix"
16072 prefix
="$acl_final_prefix"
16073 acl_save_exec_prefix
="$exec_prefix"
16074 exec_prefix
="$acl_final_exec_prefix"
16076 exec_prefix
="$acl_save_exec_prefix"
16077 prefix
="$acl_save_prefix"
16079 if test "X$x" = "X-L$additional_libdir"; then
16084 if test -z "$haveit"; then
16085 if test -d "$additional_libdir"; then
16086 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
16090 for x
in $LDFLAGS $LTLIBLZMA; do
16092 acl_save_prefix
="$prefix"
16093 prefix
="$acl_final_prefix"
16094 acl_save_exec_prefix
="$exec_prefix"
16095 exec_prefix
="$acl_final_exec_prefix"
16097 exec_prefix
="$acl_save_exec_prefix"
16098 prefix
="$acl_save_prefix"
16100 if test "X$x" = "X-L$additional_libdir"; then
16105 if test -z "$haveit"; then
16106 if test -d "$additional_libdir"; then
16107 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
16114 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
16115 if test "$enable_rpath" != no
; then
16117 for x
in $rpathdirs; do
16118 if test "X$x" = "X$dir"; then
16123 if test -z "$haveit"; then
16124 rpathdirs
="$rpathdirs $dir"
16127 for x
in $ltrpathdirs; do
16128 if test "X$x" = "X$dir"; then
16133 if test -z "$haveit"; then
16134 ltrpathdirs
="$ltrpathdirs $dir"
16139 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16142 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16145 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
16146 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
16152 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
16153 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
16159 if test "X$rpathdirs" != "X"; then
16160 if test -n "$hardcode_libdir_separator"; then
16162 for found_dir
in $rpathdirs; do
16163 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16165 acl_save_libdir
="$libdir"
16167 eval flag
=\"$hardcode_libdir_flag_spec\"
16168 libdir
="$acl_save_libdir"
16169 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
16171 for found_dir
in $rpathdirs; do
16172 acl_save_libdir
="$libdir"
16173 libdir
="$found_dir"
16174 eval flag
=\"$hardcode_libdir_flag_spec\"
16175 libdir
="$acl_save_libdir"
16176 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
16180 if test "X$ltrpathdirs" != "X"; then
16181 for found_dir
in $ltrpathdirs; do
16182 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
16187 ac_save_CPPFLAGS
="$CPPFLAGS"
16189 for element
in $INCLZMA; do
16191 for x
in $CPPFLAGS; do
16193 acl_save_prefix
="$prefix"
16194 prefix
="$acl_final_prefix"
16195 acl_save_exec_prefix
="$exec_prefix"
16196 exec_prefix
="$acl_final_exec_prefix"
16198 exec_prefix
="$acl_save_exec_prefix"
16199 prefix
="$acl_save_prefix"
16201 if test "X$x" = "X$element"; then
16206 if test -z "$haveit"; then
16207 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
16212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
16213 $as_echo_n "checking for liblzma... " >&6; }
16214 if ${ac_cv_liblzma+:} false
; then :
16215 $as_echo_n "(cached) " >&6
16218 ac_save_LIBS
="$LIBS"
16219 LIBS
="$LIBS $LIBLZMA"
16220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16221 /* end confdefs.h. */
16226 lzma_index_iter iter;
16227 lzma_index_iter_init (&iter, 0);
16228 lzma_mf_is_supported (LZMA_MF_HC3);
16233 if ac_fn_c_try_link
"$LINENO"; then :
16238 rm -f core conftest.err conftest.
$ac_objext \
16239 conftest
$ac_exeext conftest.
$ac_ext
16240 LIBS
="$ac_save_LIBS"
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
16244 $as_echo "$ac_cv_liblzma" >&6; }
16245 if test "$ac_cv_liblzma" = yes; then
16248 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
16251 $as_echo_n "checking how to link with liblzma... " >&6; }
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
16253 $as_echo "$LIBLZMA" >&6; }
16256 CPPFLAGS
="$ac_save_CPPFLAGS"
16266 if test "$HAVE_LIBLZMA" != yes; then
16267 if test "$with_lzma" = yes; then
16268 as_fn_error $?
"missing liblzma for --with-lzma" "$LINENO" 5
16274 LIBGUI
="../libgui/src/libgui.a"
16275 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
16284 *-*-cygwin* |
*-*-mingw* )
16293 if test "${enable_gdbtk}" = "yes"; then
16295 # Gdbtk must have an absolute path to srcdir in order to run
16296 # properly when not installed.
16299 GDBTK_SRC_DIR
=`pwd`
16304 # Ok, lets find the tcl configuration
16305 # First, look for one uninstalled.
16306 # the alternative search directory is invoked by --with-tcl
16309 if test x
"${no_tcl}" = x
; then
16310 # we reset no_tcl in case something fails here
16313 # Check whether --with-tcl was given.
16314 if test "${with_tcl+set}" = set; then :
16315 withval
=$with_tcl; with_tclconfig
=${withval}
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
16319 $as_echo_n "checking for Tcl configuration... " >&6; }
16320 if ${ac_cv_c_tclconfig+:} false
; then :
16321 $as_echo_n "(cached) " >&6
16325 # First check to see if --with-tcl was specified.
16327 *-*-cygwin*) platDir
="win" ;;
16328 *) platDir
="unix" ;;
16330 if test x
"${with_tclconfig}" != x
; then
16331 if test -f "${with_tclconfig}/tclConfig.sh" ; then
16332 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
16334 as_fn_error $?
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
16338 # then check for a private Tcl installation
16339 if test x
"${ac_cv_c_tclconfig}" = x
; then
16342 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16343 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
16344 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
16346 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16347 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
16348 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
16350 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16351 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
16352 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
16353 if test -f "$i/$platDir/tclConfig.sh" ; then
16354 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
16360 # on Darwin, check in Framework installation locations
16361 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
16362 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
16363 `ls -d /Library/Frameworks 2>/dev/null` \
16364 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16365 `ls -d /System/Library/Frameworks 2>/dev/null` \
16367 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
16368 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
16374 # check in a few common install locations
16375 if test x
"${ac_cv_c_tclconfig}" = x
; then
16376 for i
in `ls -d ${libdir} 2>/dev/null` \
16377 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16378 `ls -d ${prefix}/lib 2>/dev/null` \
16379 `ls -d /usr/local/lib 2>/dev/null` \
16380 `ls -d /usr/contrib/lib 2>/dev/null` \
16381 `ls -d /usr/lib 2>/dev/null` \
16383 if test -f "$i/tclConfig.sh" ; then
16384 ac_cv_c_tclconfig
=`(cd $i; pwd)`
16390 # check in a few other private locations
16391 if test x
"${ac_cv_c_tclconfig}" = x
; then
16394 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16395 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
16396 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
16397 if test -f "$i/$platDir/tclConfig.sh" ; then
16398 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
16407 if test x
"${ac_cv_c_tclconfig}" = x
; then
16408 TCL_BIN_DIR
="# no Tcl configs found"
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
16410 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
16413 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
16415 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
16420 # If $no_tk is nonempty, then we can't do Tk, and there is no
16421 # point to doing Tcl.
16424 # Ok, lets find the tk configuration
16425 # First, look for one uninstalled.
16426 # the alternative search directory is invoked by --with-tk
16429 if test x
"${no_tk}" = x
; then
16430 # we reset no_tk in case something fails here
16433 # Check whether --with-tk was given.
16434 if test "${with_tk+set}" = set; then :
16435 withval
=$with_tk; with_tkconfig
=${withval}
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
16439 $as_echo_n "checking for Tk configuration... " >&6; }
16440 if ${ac_cv_c_tkconfig+:} false
; then :
16441 $as_echo_n "(cached) " >&6
16445 # First check to see if --with-tkconfig was specified.
16446 if test x
"${with_tkconfig}" != x
; then
16447 if test -f "${with_tkconfig}/tkConfig.sh" ; then
16448 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
16450 as_fn_error $?
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
16454 # then check for a private Tk library
16456 *-*-cygwin*) platDir
="win" ;;
16457 *) platDir
="unix" ;;
16459 if test x
"${ac_cv_c_tkconfig}" = x
; then
16462 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16463 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
16464 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
16466 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16467 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
16468 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
16470 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16471 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
16472 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
16473 if test -f "$i/$platDir/tkConfig.sh" ; then
16474 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
16480 # on Darwin, check in Framework installation locations
16481 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
16482 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
16483 `ls -d /Library/Frameworks 2>/dev/null` \
16484 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16485 `ls -d /System/Library/Frameworks 2>/dev/null` \
16487 if test -f "$i/Tk.framework/tkConfig.sh" ; then
16488 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
16494 # check in a few common install locations
16495 if test x
"${ac_cv_c_tkconfig}" = x
; then
16496 for i
in `ls -d ${libdir} 2>/dev/null` \
16497 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16498 `ls -d ${prefix}/lib 2>/dev/null` \
16499 `ls -d /usr/local/lib 2>/dev/null` \
16500 `ls -d /usr/contrib/lib 2>/dev/null` \
16501 `ls -d /usr/lib 2>/dev/null` \
16503 if test -f "$i/tkConfig.sh" ; then
16504 ac_cv_c_tkconfig
=`(cd $i; pwd)`
16509 # check in a few other private locations
16510 if test x
"${ac_cv_c_tkconfig}" = x
; then
16513 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16514 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
16515 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
16516 if test -f "$i/$platDir/tkConfig.sh" ; then
16517 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
16526 if test x
"${ac_cv_c_tkconfig}" = x
; then
16527 TK_BIN_DIR
="# no Tk configs found"
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
16529 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
16532 TK_BIN_DIR
=${ac_cv_c_tkconfig}
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
16534 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
16539 if test -z "${no_tcl}" -a -z "${no_tk}"; then
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
16542 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
16544 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
16546 $as_echo "loading" >&6; }
16547 .
${TCL_BIN_DIR}/tclConfig.sh
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
16550 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
16553 # eval is required to do the TCL_DBGX substitution
16554 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
16555 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
16557 # If the TCL_BIN_DIR is the build directory (not the install directory),
16558 # then set the common variable name to the value of the build variables.
16559 # For example, the variable TCL_LIB_SPEC will be set to the value
16560 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
16561 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
16562 # installed and uninstalled version of Tcl.
16563 if test -f "${TCL_BIN_DIR}/Makefile" ; then
16564 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
16565 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
16566 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
16567 elif test "`uname -s`" = "Darwin"; then
16568 # If Tcl was built as a framework, attempt to use the libraries
16569 # from the framework at the given location so that linking works
16570 # against Tcl.framework installed in an arbitrary location.
16571 case ${TCL_DEFS} in
16573 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
16574 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
16575 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
16576 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
16577 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
16582 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
16583 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
16584 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
16590 # eval is required to do the TCL_DBGX substitution
16591 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
16592 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
16593 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
16594 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
16610 # Check for in-tree tcl
16617 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
16621 # Find Tcl private headers
16622 if test x
"${intree}" = xno
; then
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
16625 $as_echo_n "checking for Tcl private headers... " >&6; }
16627 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
16628 if test -f ${dir}/tclInt.h
; then
16632 if test x
"${private_dir}" = x
; then
16633 as_fn_error $?
"could not find private Tcl headers" "$LINENO" 5
16635 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
16637 $as_echo "${private_dir}" >&6; }
16640 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
16641 TCL_LIBRARY
="${TCL_LIB_SPEC}"
16644 # If building tcl in the same src tree, private headers
16645 # are not needed, but we need to be sure to use the right
16647 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
16648 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
16649 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
16657 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
16659 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
16661 $as_echo "loading" >&6; }
16662 .
${TK_BIN_DIR}/tkConfig.sh
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
16665 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
16668 # eval is required to do the TK_DBGX substitution
16669 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
16670 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
16672 # If the TK_BIN_DIR is the build directory (not the install directory),
16673 # then set the common variable name to the value of the build variables.
16674 # For example, the variable TK_LIB_SPEC will be set to the value
16675 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
16676 # instead of TK_BUILD_LIB_SPEC since it will work with both an
16677 # installed and uninstalled version of Tcl.
16678 if test -f "${TK_BIN_DIR}/Makefile" ; then
16679 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
16680 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
16681 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
16682 elif test "`uname -s`" = "Darwin"; then
16683 # If Tk was built as a framework, attempt to use the libraries
16684 # from the framework at the given location so that linking works
16685 # against Tk.framework installed in an arbitrary location.
16688 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
16689 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
16690 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
16691 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
16692 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
16697 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
16698 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
16699 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
16705 # eval is required to do the TK_DBGX substitution
16706 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
16707 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
16708 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
16709 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
16724 # Check for in-tree Tk
16726 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
16730 # Find Tk private headers
16731 if test x
"${intree}" = xno
; then
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
16734 $as_echo_n "checking for Tk private headers... " >&6; }
16736 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
16737 if test -f ${dir}/tkInt.h
; then
16741 if test x
"${private_dir}" = x
; then
16742 as_fn_error $?
"could not find Tk private headers" "$LINENO" 5
16744 TK_PRIVATE_INCLUDE
="-I${private_dir}"
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
16746 $as_echo "${private_dir}" >&6; }
16749 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
16750 TK_LIBRARY
=${TK_LIB_SPEC}
16753 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
16754 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
16755 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
16762 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
16764 # Include some libraries that Tcl and Tk want.
16765 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
16766 # Yes, the ordering seems wrong here. But it isn't.
16767 # TK_LIBS is the list of libraries that need to be linked
16768 # after Tcl/Tk. Note that this isn't put into LIBS. If it
16769 # were in LIBS then any link tests after this point would
16770 # try to include things like `$(LIBGUI)', which wouldn't work.
16771 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
16773 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
16774 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
16775 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
16776 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
16777 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
16778 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
16779 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
16781 if test x
$gdb_cv_os_cygwin = xyes
; then
16782 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
16783 WIN32LDAPP
="-Wl,--subsystem,console"
16784 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
16787 subdirs
="$subdirs gdbtk"
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
16800 $as_echo_n "checking for X... " >&6; }
16803 # Check whether --with-x was given.
16804 if test "${with_x+set}" = set; then :
16808 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
16809 if test "x$with_x" = xno
; then
16810 # The user explicitly disabled X.
16813 case $x_includes,$x_libraries in #(
16814 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
16815 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
16816 $as_echo_n "(cached) " >&6
16818 # One or both of the vars are not set, and there is no cached value.
16819 ac_x_includes
=no ac_x_libraries
=no
16820 rm -f -r conftest.dir
16821 if mkdir conftest.dir
; then
16823 cat >Imakefile
<<'_ACEOF'
16825 @echo incroot='${INCROOT}'
16827 @echo usrlibdir='${USRLIBDIR}'
16829 @echo libdir='${LIBDIR}'
16831 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
16832 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16833 for ac_var
in incroot usrlibdir libdir
; do
16834 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
16836 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
16837 for ac_extension
in a so sl dylib la dll
; do
16838 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
16839 test -f "$ac_im_libdir/libX11.$ac_extension"; then
16840 ac_im_usrlibdir
=$ac_im_libdir; break
16843 # Screen out bogus values from the imake configuration. They are
16844 # bogus both because they are the default anyway, and because
16845 # using them would break gcc on systems where it needs fixed includes.
16846 case $ac_im_incroot in
16847 /usr
/include
) ac_x_includes
= ;;
16848 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
16850 case $ac_im_usrlibdir in
16851 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
16852 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
16856 rm -f -r conftest.dir
16859 # Standard set of common directories for X headers.
16860 # Check X11 before X11Rn because it is often a symlink to the current release.
16874 /usr/local/X11/include
16875 /usr/local/X11R7/include
16876 /usr/local/X11R6/include
16877 /usr/local/X11R5/include
16878 /usr/local/X11R4/include
16880 /usr/local/include/X11
16881 /usr/local/include/X11R7
16882 /usr/local/include/X11R6
16883 /usr/local/include/X11R5
16884 /usr/local/include/X11R4
16888 /usr/XFree86/include/X11
16892 /usr/unsupported/include
16893 /usr/athena/include
16894 /usr/local/x11r5/include
16895 /usr/lpp/Xamples/include
16897 /usr/openwin/include
16898 /usr/openwin/share/include'
16900 if test "$ac_x_includes" = no
; then
16901 # Guess where to find include files, by looking for Xlib.h.
16902 # First, try using that file with no special directory specified.
16903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16904 /* end confdefs.h. */
16905 #include <X11/Xlib.h>
16907 if ac_fn_c_try_cpp
"$LINENO"; then :
16908 # We can compile using X headers with no special include directory.
16911 for ac_dir
in $ac_x_header_dirs; do
16912 if test -r "$ac_dir/X11/Xlib.h"; then
16913 ac_x_includes
=$ac_dir
16918 rm -f conftest.err conftest.i conftest.
$ac_ext
16919 fi # $ac_x_includes = no
16921 if test "$ac_x_libraries" = no
; then
16922 # Check for the libraries.
16923 # See if we find them without any special options.
16924 # Don't add to $LIBS permanently.
16927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16928 /* end confdefs.h. */
16929 #include <X11/Xlib.h>
16938 if ac_fn_c_try_link
"$LINENO"; then :
16940 # We can link X programs with no special library path.
16944 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
16946 # Don't even attempt the hair of trying to link an X program!
16947 for ac_extension
in a so sl dylib la dll
; do
16948 if test -r "$ac_dir/libX11.$ac_extension"; then
16949 ac_x_libraries
=$ac_dir
16955 rm -f core conftest.err conftest.
$ac_objext \
16956 conftest
$ac_exeext conftest.
$ac_ext
16957 fi # $ac_x_libraries = no
16959 case $ac_x_includes,$ac_x_libraries in #(
16960 no
,* |
*,no |
*\'*)
16961 # Didn't find X, or a directory has "'" in its name.
16962 ac_cv_have_x
="have_x=no";; #(
16964 # Record where we found X for the cache.
16965 ac_cv_have_x
="have_x=yes\
16966 ac_x_includes='$ac_x_includes'\
16967 ac_x_libraries='$ac_x_libraries'"
16973 eval "$ac_cv_have_x"
16976 if test "$have_x" != yes; then
16977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
16978 $as_echo "$have_x" >&6; }
16981 # If each of the values was on the command line, it overrides each guess.
16982 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
16983 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
16984 # Update the cache value to reflect the command line values.
16985 ac_cv_have_x
="have_x=yes\
16986 ac_x_includes='$x_includes'\
16987 ac_x_libraries='$x_libraries'"
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
16989 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
16993 # Unlike the sim directory, whether a simulator is linked is controlled by
16994 # presence of a gdb_sim definition in the target configure.tgt entry.
16995 # This code just checks for a few cases where we'd like to ignore those
16996 # definitions, even when they're present in the '.mt' file. These cases
16997 # are when --disable-sim is specified, or if the simulator directory is
16998 # not part of the source tree.
17000 # Check whether --enable-sim was given.
17001 if test "${enable_sim+set}" = set; then :
17002 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
17003 echo "enableval = ${enableval}";
17004 case "${enableval}" in
17005 yes) ignore_sim
=false
;;
17006 no
) ignore_sim
=true
;;
17007 *) ignore_sim
=false
;;
17014 if test ! -d "${srcdir}/../sim"; then
17020 if test "${ignore_sim}" = "false"; then
17021 if test x
"${gdb_sim}" != x
; then
17023 SIM_OBS
="remote-sim.o"
17025 $as_echo "#define WITH_SIM 1" >>confdefs.h
17028 # Some tdep code should only be compiled in when the ppc sim is
17029 # built. PR sim/13418.
17033 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
17053 # List of host floatformats.
17055 cat >>confdefs.h
<<_ACEOF
17056 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
17060 cat >>confdefs.h
<<_ACEOF
17061 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
17065 cat >>confdefs.h
<<_ACEOF
17066 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
17070 # target_subdir is used by the testsuite to find the target libraries.
17072 if test "${host}" != "${target}"; then
17073 target_subdir
="${target_alias}/"
17077 # Import nat definitions.
17078 nat_makefile_frag
=/dev
/null
17079 if test "${gdb_native}" = "yes"; then
17080 .
${srcdir}/configure.nat
17081 nativefile
=$NAT_FILE
17094 if test x
"${gdb_osabi}" != x
; then
17096 cat >>confdefs.h
<<_ACEOF
17097 #define GDB_OSABI_DEFAULT $gdb_osabi
17102 # Check whether --enable-gdbserver was given.
17103 if test "${enable_gdbserver+set}" = set; then :
17104 enableval
=$enable_gdbserver; case "${enableval}" in
17106 *) as_fn_error $?
"bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
17109 enable_gdbserver
=auto
17113 # We only build gdbserver automatically in a native configuration, and
17114 # only if the user did not explicitly disable its build.
17115 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
17116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
17117 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
17118 if test "x$build_gdbserver" = xyes
; then
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17120 $as_echo "yes" >&6; }
17121 subdirs
="$subdirs gdbserver"
17123 gdbserver_build_enabled
=yes
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17126 $as_echo "no" >&6; }
17130 # If the user explicitly request the gdbserver to be built, verify that
17131 # we were in fact able to enable it.
17132 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
17133 as_fn_error $?
"Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
17136 # Check for babeltrace and babeltrace-ctf
17138 # Check whether --with-babeltrace was given.
17139 if test "${with_babeltrace+set}" = set; then :
17140 withval
=$with_babeltrace;
17142 with_babeltrace
=auto
17145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
17146 $as_echo_n "checking whether to use babeltrace... " >&6; }
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
17148 $as_echo "$with_babeltrace" >&6; }
17150 if test "x$with_babeltrace" = "xno"; then
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
17152 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
17154 # Append -Werror to CFLAGS so that configure can catch the warning
17155 # "assignment from incompatible pointer type", which is related to
17156 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
17157 # in GDB, while babeltrace 1.0.3 is broken.
17158 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
17159 # safe to save and restore CFLAGS here.
17160 saved_CFLAGS
=$CFLAGS
17161 CFLAGS
="$CFLAGS -Werror"
17172 acl_save_prefix
="$prefix"
17173 prefix
="$acl_final_prefix"
17174 acl_save_exec_prefix
="$exec_prefix"
17175 exec_prefix
="$acl_final_exec_prefix"
17177 eval additional_includedir
=\"$includedir\"
17178 eval additional_libdir
=\"$libdir\"
17180 exec_prefix
="$acl_save_exec_prefix"
17181 prefix
="$acl_save_prefix"
17184 # Check whether --with-libbabeltrace-prefix was given.
17185 if test "${with_libbabeltrace_prefix+set}" = set; then :
17186 withval
=$with_libbabeltrace_prefix;
17187 if test "X$withval" = "Xno"; then
17190 if test "X$withval" = "X"; then
17192 acl_save_prefix
="$prefix"
17193 prefix
="$acl_final_prefix"
17194 acl_save_exec_prefix
="$exec_prefix"
17195 exec_prefix
="$acl_final_exec_prefix"
17197 eval additional_includedir
=\"$includedir\"
17198 eval additional_libdir
=\"$libdir\"
17200 exec_prefix
="$acl_save_exec_prefix"
17201 prefix
="$acl_save_prefix"
17204 additional_includedir
="$withval/include"
17205 additional_libdir
="$withval/lib"
17216 names_already_handled
=
17217 names_next_round
='babeltrace babeltrace-ctf'
17218 while test -n "$names_next_round"; do
17219 names_this_round
="$names_next_round"
17221 for name
in $names_this_round; do
17223 for n
in $names_already_handled; do
17224 if test "$n" = "$name"; then
17225 already_handled
=yes
17229 if test -z "$already_handled"; then
17230 names_already_handled
="$names_already_handled $name"
17231 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17232 eval value
=\"\
$HAVE_LIB$uppername\"
17233 if test -n "$value"; then
17234 if test "$value" = yes; then
17235 eval value
=\"\
$LIB$uppername\"
17236 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
17237 eval value
=\"\
$LTLIB$uppername\"
17238 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
17247 if test $use_additional = yes; then
17248 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17249 found_dir
="$additional_libdir"
17250 found_so
="$additional_libdir/lib$name.$shlibext"
17251 if test -f "$additional_libdir/lib$name.la"; then
17252 found_la
="$additional_libdir/lib$name.la"
17255 if test -f "$additional_libdir/lib$name.$libext"; then
17256 found_dir
="$additional_libdir"
17257 found_a
="$additional_libdir/lib$name.$libext"
17258 if test -f "$additional_libdir/lib$name.la"; then
17259 found_la
="$additional_libdir/lib$name.la"
17264 if test "X$found_dir" = "X"; then
17265 for x
in $LDFLAGS $LTLIBBABELTRACE; do
17267 acl_save_prefix
="$prefix"
17268 prefix
="$acl_final_prefix"
17269 acl_save_exec_prefix
="$exec_prefix"
17270 exec_prefix
="$acl_final_exec_prefix"
17272 exec_prefix
="$acl_save_exec_prefix"
17273 prefix
="$acl_save_prefix"
17277 dir
=`echo "X$x" | sed -e 's/^X-L//'`
17278 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17280 found_so
="$dir/lib$name.$shlibext"
17281 if test -f "$dir/lib$name.la"; then
17282 found_la
="$dir/lib$name.la"
17285 if test -f "$dir/lib$name.$libext"; then
17287 found_a
="$dir/lib$name.$libext"
17288 if test -f "$dir/lib$name.la"; then
17289 found_la
="$dir/lib$name.la"
17295 if test "X$found_dir" != "X"; then
17300 if test "X$found_dir" != "X"; then
17301 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
17302 if test "X$found_so" != "X"; then
17303 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
17304 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17307 for x
in $ltrpathdirs; do
17308 if test "X$x" = "X$found_dir"; then
17313 if test -z "$haveit"; then
17314 ltrpathdirs
="$ltrpathdirs $found_dir"
17316 if test "$hardcode_direct" = yes; then
17317 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17319 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
17320 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17322 for x
in $rpathdirs; do
17323 if test "X$x" = "X$found_dir"; then
17328 if test -z "$haveit"; then
17329 rpathdirs
="$rpathdirs $found_dir"
17333 for x
in $LDFLAGS $LIBBABELTRACE; do
17335 acl_save_prefix
="$prefix"
17336 prefix
="$acl_final_prefix"
17337 acl_save_exec_prefix
="$exec_prefix"
17338 exec_prefix
="$acl_final_exec_prefix"
17340 exec_prefix
="$acl_save_exec_prefix"
17341 prefix
="$acl_save_prefix"
17343 if test "X$x" = "X-L$found_dir"; then
17348 if test -z "$haveit"; then
17349 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
17351 if test "$hardcode_minus_L" != no
; then
17352 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17354 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
17360 if test "X$found_a" != "X"; then
17361 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
17363 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
17366 additional_includedir
=
17367 case "$found_dir" in
17369 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17370 additional_includedir
="$basedir/include"
17373 if test "X$additional_includedir" != "X"; then
17374 if test "X$additional_includedir" != "X/usr/include"; then
17376 if test "X$additional_includedir" = "X/usr/local/include"; then
17377 if test -n "$GCC"; then
17379 linux
*) haveit
=yes;;
17383 if test -z "$haveit"; then
17384 for x
in $CPPFLAGS $INCBABELTRACE; do
17386 acl_save_prefix
="$prefix"
17387 prefix
="$acl_final_prefix"
17388 acl_save_exec_prefix
="$exec_prefix"
17389 exec_prefix
="$acl_final_exec_prefix"
17391 exec_prefix
="$acl_save_exec_prefix"
17392 prefix
="$acl_save_prefix"
17394 if test "X$x" = "X-I$additional_includedir"; then
17399 if test -z "$haveit"; then
17400 if test -d "$additional_includedir"; then
17401 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
17407 if test -n "$found_la"; then
17408 save_libdir
="$libdir"
17409 case "$found_la" in
17410 */* |
*\\*) .
"$found_la" ;;
17411 *) .
"./$found_la" ;;
17413 libdir
="$save_libdir"
17414 for dep
in $dependency_libs; do
17417 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
17418 if test "X$additional_libdir" != "X/usr/lib"; then
17420 if test "X$additional_libdir" = "X/usr/local/lib"; then
17421 if test -n "$GCC"; then
17423 linux
*) haveit
=yes;;
17427 if test -z "$haveit"; then
17429 for x
in $LDFLAGS $LIBBABELTRACE; do
17431 acl_save_prefix
="$prefix"
17432 prefix
="$acl_final_prefix"
17433 acl_save_exec_prefix
="$exec_prefix"
17434 exec_prefix
="$acl_final_exec_prefix"
17436 exec_prefix
="$acl_save_exec_prefix"
17437 prefix
="$acl_save_prefix"
17439 if test "X$x" = "X-L$additional_libdir"; then
17444 if test -z "$haveit"; then
17445 if test -d "$additional_libdir"; then
17446 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
17450 for x
in $LDFLAGS $LTLIBBABELTRACE; do
17452 acl_save_prefix
="$prefix"
17453 prefix
="$acl_final_prefix"
17454 acl_save_exec_prefix
="$exec_prefix"
17455 exec_prefix
="$acl_final_exec_prefix"
17457 exec_prefix
="$acl_save_exec_prefix"
17458 prefix
="$acl_save_prefix"
17460 if test "X$x" = "X-L$additional_libdir"; then
17465 if test -z "$haveit"; then
17466 if test -d "$additional_libdir"; then
17467 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
17474 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
17475 if test "$enable_rpath" != no
; then
17477 for x
in $rpathdirs; do
17478 if test "X$x" = "X$dir"; then
17483 if test -z "$haveit"; then
17484 rpathdirs
="$rpathdirs $dir"
17487 for x
in $ltrpathdirs; do
17488 if test "X$x" = "X$dir"; then
17493 if test -z "$haveit"; then
17494 ltrpathdirs
="$ltrpathdirs $dir"
17499 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17502 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17505 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
17506 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
17512 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
17513 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
17519 if test "X$rpathdirs" != "X"; then
17520 if test -n "$hardcode_libdir_separator"; then
17522 for found_dir
in $rpathdirs; do
17523 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17525 acl_save_libdir
="$libdir"
17527 eval flag
=\"$hardcode_libdir_flag_spec\"
17528 libdir
="$acl_save_libdir"
17529 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
17531 for found_dir
in $rpathdirs; do
17532 acl_save_libdir
="$libdir"
17533 libdir
="$found_dir"
17534 eval flag
=\"$hardcode_libdir_flag_spec\"
17535 libdir
="$acl_save_libdir"
17536 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
17540 if test "X$ltrpathdirs" != "X"; then
17541 for found_dir
in $ltrpathdirs; do
17542 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
17547 ac_save_CPPFLAGS
="$CPPFLAGS"
17549 for element
in $INCBABELTRACE; do
17551 for x
in $CPPFLAGS; do
17553 acl_save_prefix
="$prefix"
17554 prefix
="$acl_final_prefix"
17555 acl_save_exec_prefix
="$exec_prefix"
17556 exec_prefix
="$acl_final_exec_prefix"
17558 exec_prefix
="$acl_save_exec_prefix"
17559 prefix
="$acl_save_prefix"
17561 if test "X$x" = "X$element"; then
17566 if test -z "$haveit"; then
17567 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
17572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
17573 $as_echo_n "checking for libbabeltrace... " >&6; }
17574 if ${ac_cv_libbabeltrace+:} false
; then :
17575 $as_echo_n "(cached) " >&6
17578 ac_save_LIBS
="$LIBS"
17579 LIBS
="$LIBS $LIBBABELTRACE"
17580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17581 /* end confdefs.h. */
17582 #include <babeltrace/babeltrace.h>
17583 #include <babeltrace/ctf/events.h>
17584 #include <babeltrace/ctf/iterator.h>
17588 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
17589 struct bt_ctf_event *event = NULL;
17590 const struct bt_definition *scope;
17592 pos->type = BT_SEEK_BEGIN;
17593 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
17594 scope = bt_ctf_get_top_level_scope (event,
17595 BT_STREAM_EVENT_HEADER);
17596 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
17602 if ac_fn_c_try_link
"$LINENO"; then :
17603 ac_cv_libbabeltrace
=yes
17605 ac_cv_libbabeltrace
=no
17607 rm -f core conftest.err conftest.
$ac_objext \
17608 conftest
$ac_exeext conftest.
$ac_ext
17609 LIBS
="$ac_save_LIBS"
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
17613 $as_echo "$ac_cv_libbabeltrace" >&6; }
17614 if test "$ac_cv_libbabeltrace" = yes; then
17615 HAVE_LIBBABELTRACE
=yes
17617 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
17620 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
17622 $as_echo "$LIBBABELTRACE" >&6; }
17624 HAVE_LIBBABELTRACE
=no
17625 CPPFLAGS
="$ac_save_CPPFLAGS"
17635 CFLAGS
=$saved_CFLAGS
17637 if test "$HAVE_LIBBABELTRACE" != yes; then
17638 if test "$with_babeltrace" = yes; then
17639 as_fn_error $?
"babeltrace is missing or unusable" "$LINENO" 5
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
17642 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
17647 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
17654 if test "${nativefile}" != ""; then
17655 case "${nativefile}" in
17656 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
17657 * ) GDB_NM_FILE
="${nativefile}"
17659 files
="${files} ${GDB_NM_FILE}"
17660 links
="${links} nm.h"
17662 cat >>confdefs.h
<<_ACEOF
17663 #define GDB_NM_FILE "${GDB_NM_FILE}"
17669 for ac_prog
in xsltproc
17671 # Extract the first word of "$ac_prog", so it can be a program name with args.
17672 set dummy
$ac_prog; ac_word
=$2
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17674 $as_echo_n "checking for $ac_word... " >&6; }
17675 if ${ac_cv_path_XSLTPROC+:} false
; then :
17676 $as_echo_n "(cached) " >&6
17680 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
17683 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17684 for as_dir
in $PATH
17687 test -z "$as_dir" && as_dir
=.
17688 for ac_exec_ext
in '' $ac_executable_extensions; do
17689 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
17690 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
17691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17701 XSLTPROC
=$ac_cv_path_XSLTPROC
17702 if test -n "$XSLTPROC"; then
17703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
17704 $as_echo "$XSLTPROC" >&6; }
17706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17707 $as_echo "no" >&6; }
17711 test -n "$XSLTPROC" && break
17713 test -n "$XSLTPROC" || XSLTPROC
="missing"
17715 if test "x$USE_MAINTAINER_MODE" = xyes
; then
17716 if test "${XSLTPROC}" = missing
; then
17717 as_fn_error $?
"unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
17722 ac_sources
="$files"
17724 while test -n "$ac_sources"; do
17725 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
17726 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
17727 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
17729 ac_config_links
="$ac_config_links $ac_config_links_1"
17735 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
17738 if $development; then
17740 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
17742 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_UNITTESTS_OBS) common/selftest.o selftest-arch.o"
17743 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_UNITTESTS_SRCS) common/selftest.c selftest-arch.c"
17747 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
17748 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
17749 if test "x$GDB_TRANSFORM_NAME" = x
; then
17750 GDB_TRANSFORM_NAME
=gdb
17755 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
17756 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
17757 if test "x$GCORE_TRANSFORM_NAME" = x
; then
17758 GCORE_TRANSFORM_NAME
=gcore
17762 ac_config_files
="$ac_config_files gcore"
17764 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
17767 cat >confcache
<<\_ACEOF
17768 # This file is a shell script that caches the results of configure
17769 # tests run on this system so they can be shared between configure
17770 # scripts and configure runs, see configure's option --config-cache.
17771 # It is not useful on other systems. If it contains results you don't
17772 # want to keep, you may remove or edit it.
17774 # config.status only pays attention to the cache file if you give it
17775 # the --recheck option to rerun configure.
17777 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17778 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17779 # following values.
17783 # The following way of writing the cache mishandles newlines in values,
17784 # but we know of no workaround that is simple, portable, and efficient.
17785 # So, we kill variables containing newlines.
17786 # Ultrix sh set writes to stderr and can't be redirected directly,
17787 # and sets the high bit in the cache file unless we assign to the vars.
17789 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17790 eval ac_val
=\$
$ac_var
17794 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17795 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17798 _ | IFS | as_nl
) ;; #(
17799 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
17800 *) { eval $ac_var=; unset $ac_var;} ;;
17806 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17807 *${as_nl}ac_space
=\
*)
17808 # `set' does not quote correctly, so add quotes: double-quote
17809 # substitution turns \\\\ into \\, and sed turns \\ into \.
17812 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17815 # `set' quotes correctly as required by POSIX, so do not add quotes.
17816 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17825 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17827 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17829 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17830 if test -w "$cache_file"; then
17831 if test "x$cache_file" != "x/dev/null"; then
17832 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17833 $as_echo "$as_me: updating cache $cache_file" >&6;}
17834 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
17835 cat confcache
>"$cache_file"
17837 case $cache_file in #(
17839 mv -f confcache
"$cache_file"$$
&&
17840 mv -f "$cache_file"$$
"$cache_file" ;; #(
17842 mv -f confcache
"$cache_file" ;;
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17848 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17853 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17854 # Let make expand exec_prefix.
17855 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17857 DEFS
=-DHAVE_CONFIG_H
17862 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17863 # 1. Remove the extension, and $U if already installed.
17864 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
17865 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
17866 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17867 # will be set to the directory where LIBOBJS objects are built.
17868 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17869 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
17871 LIBOBJS
=$ac_libobjs
17873 LTLIBOBJS
=$ac_ltlibobjs
17876 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17877 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
17878 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17880 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
17881 as_fn_error $?
"conditional \"HAVE_PYTHON\" was never defined.
17882 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17884 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
17885 as_fn_error $?
"conditional \"HAVE_GUILE\" was never defined.
17886 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17890 : "${CONFIG_STATUS=./config.status}"
17892 ac_clean_files_save
=$ac_clean_files
17893 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17894 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17895 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17897 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17899 # Generated by $as_me.
17900 # Run this file to recreate the current configuration.
17901 # Compiler output produced by configure, useful for debugging
17902 # configure, is in config.log if it exists.
17905 ac_cs_recheck=false
17908 SHELL=\${CONFIG_SHELL-$SHELL}
17911 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
17912 ## -------------------- ##
17913 ## M4sh Initialization. ##
17914 ## -------------------- ##
17916 # Be more Bourne compatible
17917 DUALCASE
=1; export DUALCASE
# for MKS sh
17918 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
17921 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17922 # is contrary to our usage. Disable this feature.
17923 alias -g '${1+"$@"}'='"$@"'
17924 setopt NO_GLOB_SUBST
17926 case `(set -o) 2>/dev/null` in #(
17938 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17939 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17940 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17941 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17942 # Prefer a ksh shell builtin over an external printf program on Solaris,
17943 # but without wasting forks for bash or zsh.
17944 if test -z "$BASH_VERSION$ZSH_VERSION" \
17945 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17946 as_echo='print
-r --'
17947 as_echo_n='print
-rn --'
17948 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17949 as_echo='printf %s
\n'
17950 as_echo_n='printf %s
'
17952 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17953 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17954 as_echo_n='/usr
/ucb
/echo -n'
17956 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17957 as_echo_n_body='eval
17961 expr "X$arg" : "X\\(.*\\)$as_nl";
17962 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17964 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17966 export as_echo_n_body
17967 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17969 export as_echo_body
17970 as_echo='sh
-c $as_echo_body as_echo
'
17973 # The user is always right.
17974 if test "${PATH_SEPARATOR+set}" != set; then
17976 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17977 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17984 # We need space, tab and new line, in precisely that order. Quoting is
17985 # there to prevent editors from complaining about space-tab.
17986 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17987 # splitting by setting IFS to empty value.)
17990 # Find who we are. Look in the path if we contain no directory separator.
17993 *[\\/]* ) as_myself=$0 ;;
17994 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17995 for as_dir in $PATH
17998 test -z "$as_dir" && as_dir=.
17999 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18005 # We did not find ourselves, most probably we were run as `sh COMMAND'
18006 # in which case we are not to be found in the path.
18007 if test "x$as_myself" = x
; then
18010 if test ! -f "$as_myself"; then
18011 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18015 # Unset variables that we do not need and which cause bugs (e.g. in
18016 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18017 # suppresses any "Segmentation fault" message there. '((' could
18018 # trigger a bug in pdksh 5.2.14.
18019 for as_var
in BASH_ENV ENV MAIL MAILPATH
18020 do eval test x\
${$as_var+set} = xset \
18021 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
18034 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
18037 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18038 # ----------------------------------------
18039 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18040 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18041 # script with STATUS, using 1 if that was 0.
18044 as_status
=$1; test $as_status -eq 0 && as_status
=1
18046 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
18047 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18049 $as_echo "$as_me: error: $2" >&2
18050 as_fn_exit
$as_status
18054 # as_fn_set_status STATUS
18055 # -----------------------
18056 # Set $? to STATUS, without forking.
18057 as_fn_set_status
()
18060 } # as_fn_set_status
18062 # as_fn_exit STATUS
18063 # -----------------
18064 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18068 as_fn_set_status
$1
18074 # Portably unset VAR.
18077 { eval $1=; unset $1;}
18079 as_unset
=as_fn_unset
18080 # as_fn_append VAR VALUE
18081 # ----------------------
18082 # Append the text in VALUE to the end of the definition contained in VAR. Take
18083 # advantage of any shell optimizations that allow amortized linear growth over
18084 # repeated appends, instead of the typical quadratic growth present in naive
18086 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
18087 eval 'as_fn_append ()
18098 # as_fn_arith ARG...
18099 # ------------------
18100 # Perform arithmetic evaluation on the ARGs, and store the result in the
18101 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18102 # must be portable across $(()) and expr.
18103 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
18104 eval 'as_fn_arith ()
18111 as_val
=`expr "$@" || test $? -eq 1`
18116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
18117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
18123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18124 as_basename
=basename
18129 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
18135 as_me
=`$as_basename -- "$0" ||
18136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18137 X"$0" : 'X\(//\)$' \| \
18138 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18140 sed '/^.*\/\([^/][^/]*\)\/*$/{
18154 # Avoid depending upon Character Ranges.
18155 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18156 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18157 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18158 as_cr_digits
='0123456789'
18159 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18161 ECHO_C
= ECHO_N
= ECHO_T
=
18162 case `echo -n x` in #(((((
18164 case `echo 'xy\c'` in
18165 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
18167 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
18174 rm -f conf$$ conf$$.exe conf$$.
file
18175 if test -d conf$$.dir
; then
18176 rm -f conf$$.dir
/conf$$.
file
18179 mkdir conf$$.dir
2>/dev
/null
18181 if (echo >conf$$.
file) 2>/dev
/null
; then
18182 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18184 # ... but there are two gotchas:
18185 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18186 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18187 # In both cases, we have to default to `cp -pR'.
18188 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
18190 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18198 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
18199 rmdir conf$$.dir
2>/dev
/null
18204 # Create "$as_dir" as a directory, including parents if necessary.
18209 -*) as_dir
=.
/$as_dir;;
18211 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
18215 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18216 *) as_qdir
=$as_dir;;
18218 as_dirs
="'$as_qdir' $as_dirs"
18219 as_dir
=`$as_dirname -- "$as_dir" ||
18220 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18221 X"$as_dir" : 'X\(//\)[^/]' \| \
18222 X"$as_dir" : 'X\(//\)$' \| \
18223 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18224 $as_echo X"$as_dir" |
18225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18229 /^X\(\/\/\)[^/].*/{
18242 test -d "$as_dir" && break
18244 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
18245 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
18249 if mkdir
-p .
2>/dev
/null
; then
18250 as_mkdir_p
='mkdir -p "$as_dir"'
18252 test -d .
/-p && rmdir .
/-p
18257 # as_fn_executable_p FILE
18258 # -----------------------
18259 # Test if FILE is an executable regular file.
18260 as_fn_executable_p
()
18262 test -f "$1" && test -x "$1"
18263 } # as_fn_executable_p
18264 as_test_x
='test -x'
18265 as_executable_p
=as_fn_executable_p
18267 # Sed expression to map a string onto a valid CPP name.
18268 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18270 # Sed expression to map a string onto a valid variable name.
18271 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18275 ## ----------------------------------- ##
18276 ## Main body of $CONFIG_STATUS script. ##
18277 ## ----------------------------------- ##
18279 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
18281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18282 # Save the log message, to keep $0 and so on meaningful, and to
18283 # report actual input values of CONFIG_FILES etc. instead of their
18284 # values after options handling.
18286 This file was extended by $as_me, which was
18287 generated by GNU Autoconf 2.69. Invocation command line was
18289 CONFIG_FILES = $CONFIG_FILES
18290 CONFIG_HEADERS = $CONFIG_HEADERS
18291 CONFIG_LINKS = $CONFIG_LINKS
18292 CONFIG_COMMANDS = $CONFIG_COMMANDS
18295 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18300 case $ac_config_files in *"
18301 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
18304 case $ac_config_headers in *"
18305 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
18309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18310 # Files that config.status was made for.
18311 config_files="$ac_config_files"
18312 config_headers="$ac_config_headers"
18313 config_links="$ac_config_links"
18314 config_commands="$ac_config_commands"
18318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18320 \`$as_me' instantiates files and other configuration actions
18321 from templates according to the current configuration. Unless the files
18322 and actions are specified as TAGs, all are instantiated by default.
18324 Usage: $0 [OPTION]... [TAG]...
18326 -h, --help print this help, then exit
18327 -V, --version print version number and configuration settings, then exit
18328 --config print configuration, then exit
18329 -q, --quiet, --silent
18330 do not print progress messages
18331 -d, --debug don't remove temporary files
18332 --recheck update $as_me by reconfiguring in the same conditions
18333 --file=FILE[:TEMPLATE]
18334 instantiate the configuration file FILE
18335 --header=FILE[:TEMPLATE]
18336 instantiate the configuration header FILE
18338 Configuration files:
18341 Configuration headers:
18344 Configuration links:
18347 Configuration commands:
18350 Report bugs to the package provider."
18353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18354 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18357 configured by $0, generated by GNU Autoconf 2.69,
18358 with options \\"\$ac_cs_config\\"
18360 Copyright (C) 2012 Free Software Foundation, Inc.
18361 This config.status script is free software; the Free Software Foundation
18362 gives unlimited permission to copy, distribute and modify it."
18368 test -n "\$AWK" || AWK=awk
18371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18372 # The default lists apply if the user does not specify any file.
18378 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18379 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
18383 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18395 # Handling of the options.
18396 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18398 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
18399 $as_echo "$ac_cs_version"; exit ;;
18400 --config |
--confi |
--conf |
--con |
--co |
--c )
18401 $as_echo "$ac_cs_config"; exit ;;
18402 --debug |
--debu |
--deb |
--de |
--d |
-d )
18404 --file |
--fil |
--fi |
--f )
18407 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18408 '') as_fn_error $?
"missing file argument" ;;
18410 as_fn_append CONFIG_FILES
" '$ac_optarg'"
18411 ac_need_defaults
=false
;;
18412 --header |
--heade |
--head |
--hea )
18415 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18417 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
18418 ac_need_defaults
=false
;;
18420 # Conflict between --help and --header
18421 as_fn_error $?
"ambiguous option: \`$1'
18422 Try \`$0 --help' for more information.";;
18423 --help |
--hel |
-h )
18424 $as_echo "$ac_cs_usage"; exit ;;
18425 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18426 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18429 # This is an error.
18430 -*) as_fn_error $?
"unrecognized option: \`$1'
18431 Try \`$0 --help' for more information." ;;
18433 *) as_fn_append ac_config_targets
" $1"
18434 ac_need_defaults
=false
;;
18440 ac_configure_extra_args
=
18442 if $ac_cs_silent; then
18444 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18449 if \$ac_cs_recheck; then
18450 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18452 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18453 CONFIG_SHELL='$SHELL'
18454 export CONFIG_SHELL
18459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18463 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18464 ## Running $as_me. ##
18470 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18474 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
18478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18480 # Handling of arguments.
18481 for ac_config_target
in $ac_config_targets
18483 case $ac_config_target in
18484 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
18485 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
18486 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
18487 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
18488 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
18489 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18490 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
18491 "gdb-gdb.py") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.py" ;;
18492 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
18493 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
18495 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18500 # If the user did not use the arguments to specify the items to instantiate,
18501 # then the envvar interface is used. Set only those that are not.
18502 # We use the long form for the default assignment because of an extremely
18503 # bizarre bug on SunOS 4.1.3.
18504 if $ac_need_defaults; then
18505 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18506 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18507 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
18508 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18511 # Have a temporary directory for convenience. Make it in the build tree
18512 # simply because there is no reason against having it here, and in addition,
18513 # creating and moving files from /tmp can sometimes cause problems.
18514 # Hook for its removal unless debugging.
18515 # Note that there is a small window in which the directory will not be cleaned:
18516 # after its creation but before its name has been assigned to `$tmp'.
18520 trap 'exit_status=$?
18521 : "${ac_tmp:=$tmp}"
18522 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18524 trap 'as_fn_exit 1' 1 2 13 15
18526 # Create a (secure) tmp directory for tmp files.
18529 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18533 tmp
=.
/conf$$
-$RANDOM
18534 (umask 077 && mkdir
"$tmp")
18535 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
18538 # Set up the scripts for CONFIG_FILES section.
18539 # No need to generate them if there are no CONFIG_FILES.
18540 # This happens for instance with `./config.status config.h'.
18541 if test -n "$CONFIG_FILES"; then
18543 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
18544 ac_cs_awk_getline
=:
18545 ac_cs_awk_pipe_init
=
18546 ac_cs_awk_read_file
='
18547 while ((getline aline < (F[key])) > 0)
18550 ac_cs_awk_pipe_fini
=
18552 ac_cs_awk_getline
=false
18553 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
18554 ac_cs_awk_read_file
='
18556 print "cat " F[key] " &&"
18557 '$ac_cs_awk_pipe_init
18558 # The final `:' finishes the AND list.
18559 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
18561 ac_cr
=`echo X | tr X '\015'`
18562 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18563 # But we know of no other shell where ac_cr would be empty at this
18564 # point, so we can use a bashism as a fallback.
18565 if test "x$ac_cr" = x
; then
18566 eval ac_cr
=\$
\'\\r
\'
18568 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18569 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18572 ac_cs_awk_cr
=$ac_cr
18575 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18578 # Create commands to substitute file output variables.
18580 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18581 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
18582 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
18585 } >conf$
$files.sh
&&
18586 . .
/conf$
$files.sh ||
18587 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
18588 rm -f conf$
$files.sh
18591 echo "cat >conf$$subs.awk <<_ACEOF" &&
18592 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18594 } >conf$$subs.sh ||
18595 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18596 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18598 for ac_last_try in false false false false false :; do
18599 . ./conf$$subs.sh ||
18600 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18602 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18603 if test $ac_delim_n = $ac_delim_num; then
18605 elif $ac_last_try; then
18606 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18608 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18611 rm -f conf$$subs.sh
18613 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18614 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
18618 s/^/S["/; s
/!.
*/"]=/
18628 s/\(.\{148\}\)..*/\1/
18630 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18635 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18642 s/\(.\{148\}\)..*/\1/
18644 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18648 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18653 ' <conf$$subs.awk | sed '
18658 ' >>$CONFIG_STATUS || ac_write_fail=1
18659 rm -f conf$$subs.awk
18660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18662 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
18663 for (key in S) S_is_set[key] = 1
18665 \$ac_cs_awk_pipe_init
18669 nfields = split(line, field, "@
")
18671 len = length(field[1])
18672 for (i = 2; i < nfields; i++) {
18674 keylen = length(key)
18675 if (S_is_set[key]) {
18677 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18678 len += length(value) + length(field[++i])
18683 if (nfields == 3 && !substed) {
18685 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18686 \$ac_cs_awk_read_file
18692 \$ac_cs_awk_pipe_fini
18695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18696 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18697 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18700 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
18701 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
18704 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18705 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
18706 # trailing colons and then remove the whole line if VPATH becomes empty
18707 # (actually we leave an empty line to preserve line numbers).
18708 if test "x
$srcdir" = x.; then
18709 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18728 fi # test -n "$CONFIG_FILES"
18730 # Set up the scripts for CONFIG_HEADERS section.
18731 # No need to generate them if there are no CONFIG_HEADERS.
18732 # This happens for instance with `./config.status Makefile'.
18733 if test -n "$CONFIG_HEADERS"; then
18734 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
18738 # Transform confdefs.h into an awk script `defines.awk', embedded as
18739 # here-document in config.status, that substitutes the proper values into
18740 # config.h.in to produce config.h.
18742 # Create a delimiter string that does not exist in confdefs.h, to ease
18743 # handling of long lines.
18745 for ac_last_try in false false :; do
18746 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
18747 if test -z "$ac_tt"; then
18749 elif $ac_last_try; then
18750 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
18752 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18756 # For the awk script, D is an array of macro values keyed by name,
18757 # likewise P contains macro parameters if any. Preserve backslash
18758 # newline sequences.
18760 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18762 s/.\{148\}/&'"$ac_delim"'/g
18765 s/^[ ]*#[ ]*define[ ][ ]*/ /
18772 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18774 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18778 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18779 D["\
1"]=" \
3\\\\\\n
"\\/p
18781 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18786 s/.\{148\}/&'"$ac_delim"'/g
18791 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18794 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18796 ' <confdefs.h | sed '
18797 s/'"$ac_delim"'/"\\\
18798 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18800 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18801 for (key in D) D_is_set[key] = 1
18804 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18806 split(line, arg, " ")
18807 if (arg[1] == "#") {
18811 defundef
= substr
(arg
[1], 2)
18814 split(mac1
, mac2
, "(") #)
18816 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18817 if (D_is_set
[macro
]) {
18818 # Preserve the white space surrounding the "#".
18819 print prefix
"define", macro P
[macro
] D
[macro
]
18822 # Replace #undef with comments. This is necessary, for example,
18823 # in the case of _POSIX_SOURCE, which is predefined and required
18824 # on some systems where configure will not decide to define it.
18825 if (defundef
== "undef") {
18826 print
"/*", prefix defundef
, macro
, "*/"
18834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18835 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
18836 fi # test -n "$CONFIG_HEADERS"
18839 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18844 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18846 case $ac_mode$ac_tag in
18848 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
18849 :[FH
]-) ac_tag
=-:-;;
18850 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18867 -) ac_f
="$ac_tmp/stdin";;
18868 *) # Look for the file first in the build tree, then in the source tree
18869 # (if the path is not absolute). The absolute path cannot be DOS-style,
18870 # because $ac_f cannot contain `:'.
18874 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18876 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18878 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18879 as_fn_append ac_file_inputs
" '$ac_f'"
18882 # Let's still pretend it is `configure' which instantiates (i.e., don't
18883 # use $as_me), people would be surprised to read:
18884 # /* config.h. Generated by config.status. */
18885 configure_input
='Generated from '`
18886 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18888 if test x
"$ac_file" != x-
; then
18889 configure_input
="$ac_file. $configure_input"
18890 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18891 $as_echo "$as_me: creating $ac_file" >&6;}
18893 # Neutralize special characters interpreted by sed in replacement strings.
18894 case $configure_input in #(
18895 *\
&* |
*\|
* |
*\\* )
18896 ac_sed_conf_input
=`$as_echo "$configure_input" |
18897 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18898 *) ac_sed_conf_input
=$configure_input;;
18902 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
18903 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
18908 ac_dir
=`$as_dirname -- "$ac_file" ||
18909 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18910 X"$ac_file" : 'X\(//\)[^/]' \| \
18911 X"$ac_file" : 'X\(//\)$' \| \
18912 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18913 $as_echo X"$ac_file" |
18914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18918 /^X\(\/\/\)[^/].*/{
18931 as_dir
="$ac_dir"; as_fn_mkdir_p
18935 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18937 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18938 # A ".." for each directory in $ac_dir_suffix.
18939 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18940 case $ac_top_builddir_sub in
18941 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18942 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18945 ac_abs_top_builddir
=$ac_pwd
18946 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18947 # for backward compatibility:
18948 ac_top_builddir
=$ac_top_build_prefix
18951 .
) # We are building in place.
18953 ac_top_srcdir
=$ac_top_builddir_sub
18954 ac_abs_top_srcdir
=$ac_pwd ;;
18955 [\\/]* | ?
:[\\/]* ) # Absolute name.
18956 ac_srcdir
=$srcdir$ac_dir_suffix;
18957 ac_top_srcdir
=$srcdir
18958 ac_abs_top_srcdir
=$srcdir ;;
18959 *) # Relative name.
18960 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18961 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18962 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18964 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18974 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18975 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
18979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18980 # If the template does not know about datarootdir, expand it.
18981 # FIXME: This hack should be removed a few years after 2.60.
18982 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18993 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18994 *datarootdir
*) ac_datarootdir_seen
=yes;;
18995 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18997 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18999 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19000 ac_datarootdir_hack='
19001 s&@datadir@&$datadir&g
19002 s&@docdir@&$docdir&g
19003 s&@infodir@&$infodir&g
19004 s&@localedir@&$localedir&g
19005 s&@mandir@&$mandir&g
19006 s&\\\${datarootdir}&$datarootdir&g' ;;
19010 # Neutralize VPATH when `$srcdir' = `.'.
19011 # Shell code in configure.ac might set extrasub.
19012 # FIXME: do we really want to maintain this feature?
19013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19014 ac_sed_extra="$ac_vpsub
19017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19019 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19020 s|@configure_input@|
$ac_sed_conf_input|
;t t
19021 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
19022 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
19023 s
&@srcdir@
&$ac_srcdir&;t t
19024 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
19025 s
&@top_srcdir@
&$ac_top_srcdir&;t t
19026 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
19027 s
&@builddir@
&$ac_builddir&;t t
19028 s
&@abs_builddir@
&$ac_abs_builddir&;t t
19029 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
19030 s
&@INSTALL@
&$ac_INSTALL&;t t
19031 $ac_datarootdir_hack
19033 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19034 if $ac_cs_awk_getline; then
19035 $AWK -f "$ac_tmp/subs.
awk"
19037 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
19039 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
19041 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19042 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
19043 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19044 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
19045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
19046 which seems to be undefined. Please make sure it is defined" >&5
19047 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
19048 which seems to be undefined. Please make sure it is defined" >&2;}
19050 rm -f "$ac_tmp/stdin"
19052 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19053 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19055 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19061 if test x"$ac_file" != x-; then
19063 $as_echo "/* $configure_input */" \
19064 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19065 } >"$ac_tmp/config.h" \
19066 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19067 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19068 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19069 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19072 mv "$ac_tmp/config.h" "$ac_file" \
19073 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19076 $as_echo "/* $configure_input */" \
19077 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19078 || as_fn_error $? "could not create -" "$LINENO" 5
19086 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
19089 # Prefer the file from the source tree if names are identical.
19090 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
19091 ac_source=$srcdir/$ac_source
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
19095 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
19097 if test ! -r "$ac_source"; then
19098 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
19102 # Try a relative symlink, then a hard link, then a copy.
19104 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
19105 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
19107 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
19108 ln "$ac_source" "$ac_file" 2>/dev/null ||
19109 cp -p "$ac_source" "$ac_file" ||
19110 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
19113 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19114 $as_echo "$as_me: executing $ac_file commands" >&6;}
19119 case $ac_file$ac_mode in
19120 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
19121 "gcore":F) chmod +x gcore ;;
19123 case x$CONFIG_HEADERS in
19124 xconfig.h:config.in)
19129 case x$CONFIG_HEADERS in
19130 xconfig.h:config.in)
19135 case x$CONFIG_HEADERS in
19136 xconfig.h:config.in)
19141 case x$CONFIG_HEADERS in
19142 xconfig.h:config.in)
19146 "data-directory/Makefile":F)
19147 case x$CONFIG_HEADERS in
19148 xconfig.h:config.in)
19159 ac_clean_files=$ac_clean_files_save
19161 test $ac_write_fail = 0 ||
19162 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19165 # configure is writing to config.log, and then calls config.status.
19166 # config.status does its own redirection, appending to config.log.
19167 # Unfortunately, on DOS this fails, as config.log is still kept open
19168 # by configure, so config.status won't be able to
write to it
; its
19169 # output is simply discarded. So we exec the FD to /dev/null,
19170 # effectively closing config.log, so it can be properly (re)opened and
19171 # appended to by config.status. When coming back to configure, we
19172 # need to make the FD available again.
19173 if test "$no_create" != yes; then
19175 ac_config_status_args
=
19176 test "$silent" = yes &&
19177 ac_config_status_args
="$ac_config_status_args --quiet"
19179 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19181 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19182 # would make configure fail if this is the last instruction.
19183 $ac_cs_success || as_fn_exit
1
19187 # CONFIG_SUBDIRS section.
19189 if test "$no_recursion" != yes; then
19191 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19192 # so they do not pile up.
19193 ac_sub_configure_args
=
19195 eval "set x $ac_configure_args"
19199 if test -n "$ac_prev"; then
19204 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
19205 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
19206 ac_prev
=cache_file
;;
19207 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
19208 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
19211 --config-cache |
-C)
19213 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
19215 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
19217 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
19219 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
19221 --disable-option-checking)
19225 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19227 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
19231 # Always prepend --prefix to ensure using the same prefix
19232 # in subdir configurations.
19233 ac_arg
="--prefix=$prefix"
19235 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19237 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
19240 if test "$silent" = yes; then
19241 ac_sub_configure_args
="--silent $ac_sub_configure_args"
19244 # Always prepend --disable-option-checking to silence warnings, since
19245 # different subdirs can have different --enable and --with options.
19246 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
19249 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
19251 # Do not complain, so a configure script can configure whichever
19252 # parts of a large source tree are present.
19253 test -d "$srcdir/$ac_dir" ||
continue
19255 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19256 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19257 $as_echo "$ac_msg" >&6
19258 as_dir
="$ac_dir"; as_fn_mkdir_p
19262 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19264 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19265 # A ".." for each directory in $ac_dir_suffix.
19266 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19267 case $ac_top_builddir_sub in
19268 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19269 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
19272 ac_abs_top_builddir
=$ac_pwd
19273 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
19274 # for backward compatibility:
19275 ac_top_builddir
=$ac_top_build_prefix
19278 .
) # We are building in place.
19280 ac_top_srcdir
=$ac_top_builddir_sub
19281 ac_abs_top_srcdir
=$ac_pwd ;;
19282 [\\/]* | ?
:[\\/]* ) # Absolute name.
19283 ac_srcdir
=$srcdir$ac_dir_suffix;
19284 ac_top_srcdir
=$srcdir
19285 ac_abs_top_srcdir
=$srcdir ;;
19286 *) # Relative name.
19287 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
19288 ac_top_srcdir
=$ac_top_build_prefix$srcdir
19289 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
19291 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
19296 # Check for guested configure; otherwise get Cygnus style configure.
19297 if test -f "$ac_srcdir/configure.gnu"; then
19298 ac_sub_configure
=$ac_srcdir/configure.gnu
19299 elif test -f "$ac_srcdir/configure"; then
19300 ac_sub_configure
=$ac_srcdir/configure
19301 elif test -f "$ac_srcdir/configure.in"; then
19302 # This should be Cygnus configure.
19303 ac_sub_configure
=$ac_aux_dir/configure
19305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19306 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19310 # The recursion is here.
19311 if test -n "$ac_sub_configure"; then
19312 # Make the cache file name correct relative to the subdirectory.
19313 case $cache_file in
19314 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
19315 *) # Relative name.
19316 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
19319 { $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
19320 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19321 # The eval makes quoting arguments work.
19322 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19323 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19324 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19330 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19332 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}