2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
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.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev
/null
; then :
178 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
183 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir
=.
190 for as_base
in sh bash ksh sh5
; do
191 # Try only shells that exist, to save several forks.
192 as_shell
=$as_dir/$as_base
193 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
195 CONFIG_SHELL
=$as_shell as_have_required
=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
204 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
206 CONFIG_SHELL
=$SHELL as_have_required
=yes
211 if test "x$CONFIG_SHELL" != x
; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x
$as_have_required = xno
; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x
${ZSH_VERSION+set} = xset
; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL
=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE
= GREP_OPTIONS
=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir
=.
/$as_dir;;
283 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
287 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs
="'$as_qdir' $as_dirs"
291 as_dir
=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
317 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
352 as_val
=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status
=$?
; test $as_status -eq 0 && as_status
=1
366 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit
$as_status
373 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
380 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
392 as_me
=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits
='0123456789'
416 as_cr_alnum
=$as_cr_Letters$as_cr_digits
419 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
420 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x
"$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C
= ECHO_N
= ECHO_T
=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
463 rm -f conf$$ conf$$.exe conf$$.
file
464 if test -d conf$$.dir
; then
465 rm -f conf$$.dir
/conf$$.
file
468 mkdir conf$$.dir
2>/dev
/null
470 if (echo >conf$$.
file) 2>/dev
/null
; then
471 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
479 elif ln conf$$.
file conf$$
2>/dev
/null
; then
487 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
488 rmdir conf$$.dir
2>/dev
/null
490 if mkdir
-p .
2>/dev
/null
; then
491 as_mkdir_p
='mkdir -p "$as_dir"'
493 test -d .
/-p && rmdir .
/-p
497 if test -x / >/dev
/null
2>&1; then
500 if ls -dL / >/dev
/null
2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p
=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev
/null
6>&1
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
537 ac_default_prefix
=/usr
/local
539 ac_config_libobj_dir
=.
546 # Identity of this package.
554 ac_unique_file
="main.c"
555 # Factoring default headers for most tests.
556 ac_includes_default
="\
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
568 # ifdef HAVE_STDLIB_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
591 enable_option_checking
=no
592 ac_subst_vars
='LTLIBOBJS
679 READLINE_TEXI_INCFLAG
700 HAVE_NATIVE_GCORE_TARGET
730 INSTALL_STRIP_PROGRAM
759 MAINTAINER_MODE_FALSE
788 program_transform_name
799 ac_subst_files
='host_makefile_frag'
801 enable_option_checking
802 enable_maintainer_mode
805 enable_build_with_cxx
806 with_separate_debug_dir
808 with_relocated_sources
810 with_auto_load_safe_path
838 enable_build_warnings
839 enable_gdb_build_warnings
849 with_libbabeltrace_prefix
851 ac_precious_vars
='build_alias
868 ac_subdirs_all
='testsuite
873 # Initialize some variables set by options.
875 ac_init_version
=false
876 ac_unrecognized_opts
=
878 # The variables have the same names as the options, with
879 # dashes changed to underlines.
887 program_transform_name
=s
,x
,x
,
895 # Installation directory options.
896 # These are left unexpanded so users can "make install exec_prefix=/foo"
897 # and all the variables that are supposed to be based on exec_prefix
898 # by default will actually change.
899 # Use braces instead of parens because sh, perl, etc. also accept them.
900 # (The list follows the same order as the GNU Coding Standards.)
901 bindir
='${exec_prefix}/bin'
902 sbindir
='${exec_prefix}/sbin'
903 libexecdir
='${exec_prefix}/libexec'
904 datarootdir
='${prefix}/share'
905 datadir
='${datarootdir}'
906 sysconfdir
='${prefix}/etc'
907 sharedstatedir
='${prefix}/com'
908 localstatedir
='${prefix}/var'
909 includedir
='${prefix}/include'
910 oldincludedir
='/usr/include'
911 docdir
='${datarootdir}/doc/${PACKAGE}'
912 infodir
='${datarootdir}/info'
917 libdir
='${exec_prefix}/lib'
918 localedir
='${datarootdir}/locale'
919 mandir
='${datarootdir}/man'
925 # If the previous option needs an argument, assign it.
926 if test -n "$ac_prev"; then
927 eval $ac_prev=\
$ac_option
933 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
937 # Accept the important Cygnus configure options, so we can diagnose typos.
939 case $ac_dashdash$ac_option in
943 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
945 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
948 -build |
--build |
--buil |
--bui |
--bu)
949 ac_prev
=build_alias
;;
950 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
951 build_alias
=$ac_optarg ;;
953 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
954 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
955 ac_prev
=cache_file
;;
956 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
957 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
958 cache_file
=$ac_optarg ;;
961 cache_file
=config.cache
;;
963 -datadir |
--datadir |
--datadi |
--datad)
965 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
966 datadir
=$ac_optarg ;;
968 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
969 |
--dataroo |
--dataro |
--datar)
970 ac_prev
=datarootdir
;;
971 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
972 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
973 datarootdir
=$ac_optarg ;;
975 -disable-* |
--disable-*)
976 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
977 # Reject names that are not valid shell variable names.
978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
979 as_fn_error
"invalid feature name: $ac_useropt"
980 ac_useropt_orig
=$ac_useropt
981 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982 case $ac_user_opts in
986 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
987 ac_unrecognized_sep
=', ';;
989 eval enable_
$ac_useropt=no
;;
991 -docdir |
--docdir |
--docdi |
--doc |
--do)
993 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
996 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
998 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1001 -enable-* |
--enable-*)
1002 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1003 # Reject names that are not valid shell variable names.
1004 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1005 as_fn_error
"invalid feature name: $ac_useropt"
1006 ac_useropt_orig
=$ac_useropt
1007 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1008 case $ac_user_opts in
1010 "enable_
$ac_useropt"
1012 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1013 ac_unrecognized_sep
=', ';;
1015 eval enable_
$ac_useropt=\
$ac_optarg ;;
1017 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1018 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1019 |
--exec |
--exe |
--ex)
1020 ac_prev
=exec_prefix
;;
1021 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1022 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1023 |
--exec=* |
--exe=* |
--ex=*)
1024 exec_prefix
=$ac_optarg ;;
1026 -gas |
--gas |
--ga |
--g)
1027 # Obsolete; use --with-gas.
1030 -help |
--help |
--hel |
--he |
-h)
1031 ac_init_help
=long
;;
1032 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1033 ac_init_help
=recursive
;;
1034 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1035 ac_init_help
=short
;;
1037 -host |
--host |
--hos |
--ho)
1038 ac_prev
=host_alias
;;
1039 -host=* |
--host=* |
--hos=* |
--ho=*)
1040 host_alias
=$ac_optarg ;;
1042 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1044 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1046 htmldir
=$ac_optarg ;;
1048 -includedir |
--includedir |
--includedi |
--included |
--include \
1049 |
--includ |
--inclu |
--incl |
--inc)
1050 ac_prev
=includedir
;;
1051 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1052 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1053 includedir
=$ac_optarg ;;
1055 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1057 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1058 infodir
=$ac_optarg ;;
1060 -libdir |
--libdir |
--libdi |
--libd)
1062 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1063 libdir
=$ac_optarg ;;
1065 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1066 |
--libexe |
--libex |
--libe)
1067 ac_prev
=libexecdir
;;
1068 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1069 |
--libexe=* |
--libex=* |
--libe=*)
1070 libexecdir
=$ac_optarg ;;
1072 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1073 ac_prev
=localedir
;;
1074 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1075 localedir
=$ac_optarg ;;
1077 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1078 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1079 ac_prev
=localstatedir
;;
1080 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1081 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1082 localstatedir
=$ac_optarg ;;
1084 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1086 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1087 mandir
=$ac_optarg ;;
1089 -nfp |
--nfp |
--nf)
1090 # Obsolete; use --without-fp.
1093 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1094 |
--no-cr |
--no-c |
-n)
1097 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1098 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1101 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1102 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1103 |
--oldin |
--oldi |
--old |
--ol |
--o)
1104 ac_prev
=oldincludedir
;;
1105 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1106 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1107 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1108 oldincludedir
=$ac_optarg ;;
1110 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1112 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1113 prefix
=$ac_optarg ;;
1115 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1116 |
--program-pre |
--program-pr |
--program-p)
1117 ac_prev
=program_prefix
;;
1118 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1119 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1120 program_prefix
=$ac_optarg ;;
1122 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1123 |
--program-suf |
--program-su |
--program-s)
1124 ac_prev
=program_suffix
;;
1125 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1126 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1127 program_suffix
=$ac_optarg ;;
1129 -program-transform-name |
--program-transform-name \
1130 |
--program-transform-nam |
--program-transform-na \
1131 |
--program-transform-n |
--program-transform- \
1132 |
--program-transform |
--program-transfor \
1133 |
--program-transfo |
--program-transf \
1134 |
--program-trans |
--program-tran \
1135 |
--progr-tra |
--program-tr |
--program-t)
1136 ac_prev
=program_transform_name
;;
1137 -program-transform-name=* |
--program-transform-name=* \
1138 |
--program-transform-nam=* |
--program-transform-na=* \
1139 |
--program-transform-n=* |
--program-transform-=* \
1140 |
--program-transform=* |
--program-transfor=* \
1141 |
--program-transfo=* |
--program-transf=* \
1142 |
--program-trans=* |
--program-tran=* \
1143 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1144 program_transform_name
=$ac_optarg ;;
1146 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1148 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1149 pdfdir
=$ac_optarg ;;
1151 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1153 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1156 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1157 |
-silent |
--silent |
--silen |
--sile |
--sil)
1160 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1162 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1164 sbindir
=$ac_optarg ;;
1166 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1167 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1168 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1170 ac_prev
=sharedstatedir
;;
1171 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1172 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1173 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1175 sharedstatedir
=$ac_optarg ;;
1177 -site |
--site |
--sit)
1179 -site=* |
--site=* |
--sit=*)
1182 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1184 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1185 srcdir
=$ac_optarg ;;
1187 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1188 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1189 ac_prev
=sysconfdir
;;
1190 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1191 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1192 sysconfdir
=$ac_optarg ;;
1194 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1195 ac_prev
=target_alias
;;
1196 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1197 target_alias
=$ac_optarg ;;
1199 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1202 -version |
--version |
--versio |
--versi |
--vers |
-V)
1203 ac_init_version
=: ;;
1206 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1207 # Reject names that are not valid shell variable names.
1208 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1209 as_fn_error
"invalid package name: $ac_useropt"
1210 ac_useropt_orig
=$ac_useropt
1211 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1212 case $ac_user_opts in
1216 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1217 ac_unrecognized_sep
=', ';;
1219 eval with_
$ac_useropt=\
$ac_optarg ;;
1221 -without-* |
--without-*)
1222 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1223 # Reject names that are not valid shell variable names.
1224 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1225 as_fn_error
"invalid package name: $ac_useropt"
1226 ac_useropt_orig
=$ac_useropt
1227 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228 case $ac_user_opts in
1232 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1233 ac_unrecognized_sep
=', ';;
1235 eval with_
$ac_useropt=no
;;
1238 # Obsolete; use --with-x.
1241 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1242 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1243 ac_prev
=x_includes
;;
1244 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1245 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1246 x_includes
=$ac_optarg ;;
1248 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1249 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1250 ac_prev
=x_libraries
;;
1251 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1252 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1253 x_libraries
=$ac_optarg ;;
1255 -*) as_fn_error
"unrecognized option: \`$ac_option'
1256 Try \`$0 --help' for more information."
1260 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1261 # Reject names that are not valid shell variable names.
1262 case $ac_envvar in #(
1263 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1264 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1266 eval $ac_envvar=\
$ac_optarg
1267 export $ac_envvar ;;
1270 # FIXME: should be removed in autoconf 3.0.
1271 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1272 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1273 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1274 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1280 if test -n "$ac_prev"; then
1281 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1282 as_fn_error
"missing argument to $ac_option"
1285 if test -n "$ac_unrecognized_opts"; then
1286 case $enable_option_checking in
1288 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1289 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1293 # Check all directory arguments for consistency.
1294 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1295 datadir sysconfdir sharedstatedir localstatedir includedir \
1296 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1297 libdir localedir mandir
1299 eval ac_val
=\$
$ac_var
1300 # Remove trailing slashes.
1303 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1304 eval $ac_var=\
$ac_val;;
1306 # Be sure to have absolute directory names.
1308 [\\/$
]* | ?
:[\\/]* ) continue;;
1309 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1311 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1314 # There might be people who depend on the old broken behavior: `$host'
1315 # used to hold the argument of --host etc.
1316 # FIXME: To remove some day.
1319 target
=$target_alias
1321 # FIXME: To remove some day.
1322 if test "x$host_alias" != x
; then
1323 if test "x$build_alias" = x
; then
1324 cross_compiling
=maybe
1325 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1326 If a cross compiler is detected then cross compile mode will be used." >&2
1327 elif test "x$build_alias" != "x$host_alias"; then
1333 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1335 test "$silent" = yes && exec 6>/dev
/null
1338 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1339 ac_ls_di
=`ls -di .` &&
1340 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1341 as_fn_error
"working directory cannot be determined"
1342 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343 as_fn_error
"pwd does not report name of working directory"
1346 # Find the source files, if location was not specified.
1347 if test -z "$srcdir"; then
1348 ac_srcdir_defaulted
=yes
1349 # Try the directory containing this script, then the parent directory.
1350 ac_confdir
=`$as_dirname -- "$as_myself" ||
1351 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352 X"$as_myself" : 'X\(//\)[^/]' \| \
1353 X"$as_myself" : 'X\(//\)$' \| \
1354 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1355 $as_echo X"$as_myself" |
1356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1374 if test ! -r "$srcdir/$ac_unique_file"; then
1378 ac_srcdir_defaulted
=no
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1382 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1384 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1386 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1388 # When building in place, set srcdir=.
1389 if test "$ac_abs_confdir" = "$ac_pwd"; then
1392 # Remove unnecessary trailing slashes from srcdir.
1393 # Double slashes in file names in object file debugging info
1394 # mess up M-x gdb in Emacs.
1396 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398 for ac_var
in $ac_precious_vars; do
1399 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1400 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1401 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1402 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1406 # Report the --help message.
1408 if test "$ac_init_help" = "long"; then
1409 # Omit some internal or obsolete options to make the list less imposing.
1410 # This message is too long to be a string in the A/UX 3.1 sh.
1412 \`configure' configures this package to adapt to many kinds of systems.
1414 Usage: $0 [OPTION]... [VAR=VALUE]...
1416 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1417 VAR=VALUE. See below for descriptions of some of the useful variables.
1419 Defaults for the options are specified in brackets.
1422 -h, --help display this help and exit
1423 --help=short display options specific to this package
1424 --help=recursive display the short help of all the included packages
1425 -V, --version display version information and exit
1426 -q, --quiet, --silent do not print \`checking...' messages
1427 --cache-file=FILE cache test results in FILE [disabled]
1428 -C, --config-cache alias for \`--cache-file=config.cache'
1429 -n, --no-create do not create output files
1430 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1432 Installation directories:
1433 --prefix=PREFIX install architecture-independent files in PREFIX
1434 [$ac_default_prefix]
1435 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1438 By default, \`make install' will install all the files in
1439 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1440 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1441 for instance \`--prefix=\$HOME'.
1443 For better control, use the options below.
1445 Fine tuning of the installation directories:
1446 --bindir=DIR user executables [EPREFIX/bin]
1447 --sbindir=DIR system admin executables [EPREFIX/sbin]
1448 --libexecdir=DIR program executables [EPREFIX/libexec]
1449 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1450 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1451 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1452 --libdir=DIR object code libraries [EPREFIX/lib]
1453 --includedir=DIR C header files [PREFIX/include]
1454 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1455 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1456 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1457 --infodir=DIR info documentation [DATAROOTDIR/info]
1458 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1459 --mandir=DIR man documentation [DATAROOTDIR/man]
1460 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1461 --htmldir=DIR html documentation [DOCDIR]
1462 --dvidir=DIR dvi documentation [DOCDIR]
1463 --pdfdir=DIR pdf documentation [DOCDIR]
1464 --psdir=DIR ps documentation [DOCDIR]
1470 --program-prefix=PREFIX prepend PREFIX to installed program names
1471 --program-suffix=SUFFIX append SUFFIX to installed program names
1472 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1475 --x-includes=DIR X include files are
in DIR
1476 --x-libraries=DIR X library files are
in DIR
1479 --build=BUILD configure
for building on BUILD
[guessed
]
1480 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1481 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1485 if test -n "$ac_init_help"; then
1490 --disable-option-checking ignore unrecognized
--enable/--with options
1491 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1492 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1493 --enable-maintainer-mode enable make rules and dependencies not useful
1494 (and sometimes confusing
) to the casual installer
1495 --enable-plugins Enable support
for plugins
1496 --disable-largefile omit support
for large files
1497 --enable-build-with-cxx build with C
++ compiler instead of C compiler
1498 --enable-targets=TARGETS
1499 alternative target configurations
1500 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1501 --disable-gdbcli disable command-line interface
(CLI
)
1502 --disable-gdbmi disable machine-interface
(MI
)
1503 --enable-tui enable full-screen terminal user interface
(TUI
)
1504 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1505 --enable-profiling enable profiling of GDB
1506 --disable-rpath do not hardcode runtime library paths
1507 --enable-libmcheck Try linking with
-lmcheck if available
1508 --enable-werror treat compile warnings as errors
1509 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1510 --enable-gdb-build-warnings
1511 enable GDB specific build-time compiler warnings
if
1513 --enable-sim link gdb with simulator
1514 --enable-multi-ice build the multi-ice-gdb-server
1515 --enable-gdbserver automatically build gdbserver
(yes
/no
/auto
, default
1519 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1520 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1521 --with-separate-debug-dir=PATH
1522 look for global separate debug info
in this path
1524 --with-gdb-datadir=PATH
look for global separate data files
in this path
1526 --with-relocated-sources=PATH
1527 automatically relocate this path
for source files
1528 --with-auto-load-dir=PATH
1529 directories from
which to load auto-loaded scripts
1530 [$debugdir:$datadir/auto-load
]
1531 --with-auto-load-safe-path=PATH
1532 directories safe to hold auto-loaded files
1533 [--with-auto-load-dir]
1534 --without-auto-load-safe-path
1535 do not restrict auto-loaded files locations
1536 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1537 --with-curses use the curses library instead of the termcap
1539 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1540 --with-bugurl=URL Direct users to URL to report a bug
1541 --with-system-zlib use installed libz
1542 --with-libiconv-prefix=DIR
1543 search
for libiconv
in DIR
/include and DIR
/lib
1544 --with-iconv-bin=PATH specify where to
find the
iconv program
1545 --with-system-readline use installed readline library
1546 --with-jit-reader-dir=PATH
1547 directory to load the JIT readers from
1548 --with-expat include expat support
(auto
/yes
/no
)
1549 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1550 --with-libexpat-prefix[=DIR
] search
for libexpat
in DIR
/include and DIR
/lib
1551 --without-libexpat-prefix don
't search for libexpat in includedir and libdir
1552 --with-python[=PYTHON] include python support
1553 (auto/yes/no/<python-program>)
1554 --with-guile[=GUILE] include guile support
1555 (auto/yes/no/<guile-version>/<pkg-config-program>)
1556 --without-included-regex
1557 don't use included regex
; this is the default on
1558 systems with version
2 of the GNU C library
(use
1559 with caution on other system
)
1560 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1561 --with-system-gdbinit=PATH
1562 automatically load a system-wide gdbinit
file
1563 --with-lzma support lzma compression
(auto
/yes
/no
)
1564 --with-liblzma-prefix[=DIR
] search
for liblzma
in DIR
/include and DIR
/lib
1565 --without-liblzma-prefix don
't search for liblzma in includedir and libdir
1566 --with-tcl directory containing tcl configuration (tclConfig.sh)
1567 --with-tk directory containing tk configuration (tkConfig.sh)
1568 --with-x use the X Window System
1569 --with-babeltrace include babeltrace support (auto/yes/no)
1570 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1571 --without-libbabeltrace-prefix don't search
for libbabeltrace
in includedir and libdir
1573 Some influential environment variables
:
1574 CC C compiler
command
1575 CFLAGS C compiler flags
1576 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1577 nonstandard directory
<lib dir
>
1578 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1579 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1580 you have headers
in a nonstandard directory
<include dir
>
1581 CXX C
++ compiler
command
1582 CXXFLAGS C
++ compiler flags
1584 MAKEINFO Parent configure detects
if it is of sufficient version.
1586 Parameters
for MAKEINFO.
1587 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1588 the first program found out of: `bison
-y', `byacc', `yacc'.
1589 YFLAGS The list of arguments that will be passed by default to $YACC.
1590 This script will default YFLAGS to the empty string to avoid a
1591 default value of `-d' given by some make applications.
1592 XMKMF Path to xmkmf, Makefile generator for X Window System
1594 Use these variables to override the choices made by `configure' or to
help
1595 it to
find libraries and programs with nonstandard names
/locations.
1597 Report bugs to the package provider.
1602 if test "$ac_init_help" = "recursive"; then
1603 # If there are subdirs, report their specific --help.
1604 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1605 test -d "$ac_dir" ||
1606 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1611 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1613 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1614 # A ".." for each directory in $ac_dir_suffix.
1615 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1616 case $ac_top_builddir_sub in
1617 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1618 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1621 ac_abs_top_builddir
=$ac_pwd
1622 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1623 # for backward compatibility:
1624 ac_top_builddir
=$ac_top_build_prefix
1627 .
) # We are building in place.
1629 ac_top_srcdir
=$ac_top_builddir_sub
1630 ac_abs_top_srcdir
=$ac_pwd ;;
1631 [\\/]* | ?
:[\\/]* ) # Absolute name.
1632 ac_srcdir
=$srcdir$ac_dir_suffix;
1633 ac_top_srcdir
=$srcdir
1634 ac_abs_top_srcdir
=$srcdir ;;
1636 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1637 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1638 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1640 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1642 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1643 # Check for guested configure.
1644 if test -f "$ac_srcdir/configure.gnu"; then
1646 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1647 elif test -f "$ac_srcdir/configure"; then
1649 $SHELL "$ac_srcdir/configure" --help=recursive
1651 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1653 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1657 test -n "$ac_init_help" && exit $ac_status
1658 if $ac_init_version; then
1661 generated by GNU Autoconf
2.64
1663 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1664 This configure
script is free software
; the Free Software Foundation
1665 gives unlimited permission to copy
, distribute and modify it.
1670 ## ------------------------ ##
1671 ## Autoconf initialization. ##
1672 ## ------------------------ ##
1674 # ac_fn_c_try_compile LINENO
1675 # --------------------------
1676 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1677 ac_fn_c_try_compile
()
1679 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1680 rm -f conftest.
$ac_objext
1681 if { { ac_try
="$ac_compile"
1683 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_compile") 2>conftest.err
1690 if test -s conftest.err; then
1691 grep -v '^ *+' conftest.err >conftest.er1
1692 cat conftest.er1 >&5
1693 mv -f conftest.er1 conftest.err
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } && {
1697 test -z "$ac_c_werror_flag" ||
1698 test ! -s conftest.err
1699 } && test -s conftest.$ac_objext; then :
1702 $as_echo "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1707 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1710 } # ac_fn_c_try_compile
1712 # ac_fn_cxx_try_compile LINENO
1713 # ----------------------------
1714 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1715 ac_fn_cxx_try_compile ()
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 rm -f conftest.$ac_objext
1719 if { { ac_try="$ac_compile"
1721 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1722 *) ac_try_echo
=$ac_try;;
1724 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_compile") 2>conftest.err
1728 if test -s conftest.err
; then
1729 grep -v '^ *+' conftest.err
>conftest.er1
1730 cat conftest.er1
>&5
1731 mv -f conftest.er1 conftest.err
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } && {
1735 test -z "$ac_cxx_werror_flag" ||
1736 test ! -s conftest.err
1737 } && test -s conftest.
$ac_objext; then :
1740 $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.
$ac_ext >&5
1745 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1748 } # ac_fn_cxx_try_compile
1750 # ac_fn_c_try_cpp LINENO
1751 # ----------------------
1752 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1755 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1756 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1758 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1759 *) ac_try_echo=$ac_try;;
1761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762 $as_echo "$ac_try_echo"; } >&5
1763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1765 if test -s conftest.err; then
1766 grep -v '^ *+' conftest.err >conftest.er1
1767 cat conftest.er1 >&5
1768 mv -f conftest.er1 conftest.err
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; } >/dev/null && {
1772 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1773 test ! -s conftest.err
1777 $as_echo "$as_me: failed program was:" >&5
1778 sed 's/^/| /' conftest.$ac_ext >&5
1782 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1787 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1788 # -------------------------------------------------------
1789 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1790 # the include files in INCLUDES and setting the cache variable VAR
1792 ac_fn_c_check_header_mongrel ()
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1797 $as_echo_n "checking for $2... " >&6; }
1798 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1799 $as_echo_n "(cached) " >&6
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803 $as_echo "$ac_res" >&6; }
1805 # Is the header compilable?
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1807 $as_echo_n "checking $2 usability... " >&6; }
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h. */
1813 if ac_fn_c_try_compile "$LINENO"; then :
1814 ac_header_compiler=yes
1816 ac_header_compiler=no
1818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1820 $as_echo "$ac_header_compiler" >&6; }
1822 # Is the header present?
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1824 $as_echo_n "checking $2 presence... " >&6; }
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826 /* end confdefs.h. */
1829 if ac_fn_c_try_cpp "$LINENO"; then :
1830 ac_header_preproc=yes
1832 ac_header_preproc=no
1834 rm -f conftest.err conftest.$ac_ext
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1836 $as_echo "$ac_header_preproc" >&6; }
1838 # So? What about this header?
1839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1842 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1844 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1848 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1850 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1852 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1854 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1856 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1860 $as_echo_n "checking for $2... " >&6; }
1861 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1862 $as_echo_n "(cached) " >&6
1864 eval "$3=\$ac_header_compiler"
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1868 $as_echo "$ac_res" >&6; }
1870 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1872 } # ac_fn_c_check_header_mongrel
1874 # ac_fn_c_try_run LINENO
1875 # ----------------------
1876 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1877 # that executables *can* be run.
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 if { { ac_try="$ac_link"
1883 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1884 *) ac_try_echo
=$ac_try;;
1886 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_link") 2>&5
1890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1891 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1892 { { case "(($ac_try" in
1893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1894 *) ac_try_echo=$ac_try;;
1896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897 $as_echo "$ac_try_echo"; } >&5
1898 (eval "$ac_try") 2>&5
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; }; }; then :
1904 $as_echo "$as_me: program exited with status $ac_status" >&5
1905 $as_echo "$as_me: failed program was:" >&5
1906 sed 's/^/| /' conftest.$ac_ext >&5
1908 ac_retval=$ac_status
1910 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1911 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1916 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1917 # -------------------------------------------------------
1918 # Tests whether HEADER exists and can be compiled using the include files in
1919 # INCLUDES, setting the cache variable VAR accordingly.
1920 ac_fn_c_check_header_compile ()
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1924 $as_echo_n "checking for $2... " >&6; }
1925 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1926 $as_echo_n "(cached) " >&6
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1933 if ac_fn_c_try_compile "$LINENO"; then :
1938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942 $as_echo "$ac_res" >&6; }
1943 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1945 } # ac_fn_c_check_header_compile
1947 # ac_fn_c_try_link LINENO
1948 # -----------------------
1949 # Try to link conftest.$ac_ext, and return whether this succeeded.
1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953 rm -f conftest.$ac_objext conftest$ac_exeext
1954 if { { ac_try="$ac_link"
1956 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1957 *) ac_try_echo
=$ac_try;;
1959 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1960 $as_echo "$ac_try_echo"; } >&5
1961 (eval "$ac_link") 2>conftest.err
1963 if test -s conftest.err
; then
1964 grep -v '^ *+' conftest.err
>conftest.er1
1965 cat conftest.er1
>&5
1966 mv -f conftest.er1 conftest.err
1968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1969 test $ac_status = 0; } && {
1970 test -z "$ac_c_werror_flag" ||
1971 test ! -s conftest.err
1972 } && test -s conftest
$ac_exeext && {
1973 test "$cross_compiling" = yes ||
1974 $as_test_x conftest
$ac_exeext
1978 $as_echo "$as_me: failed program was:" >&5
1979 sed 's/^/| /' conftest.
$ac_ext >&5
1983 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1984 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1985 # interfere with the next link command; also delete a directory that is
1986 # left behind by Apple's compiler. We do this before executing the actions.
1987 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1988 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1991 } # ac_fn_c_try_link
1993 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1994 # --------------------------------------------
1995 # Tries to find the compile-time value of EXPR in a program that includes
1996 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1998 ac_fn_c_compute_int
()
2000 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2001 if test "$cross_compiling" = yes; then
2002 # Depending upon the size, compute the lo and hi bounds.
2003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2009 static int test_array [1 - 2 * !(($2) >= 0)];
2016 if ac_fn_c_try_compile
"$LINENO"; then :
2019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h. */
2025 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2032 if ac_fn_c_try_compile
"$LINENO"; then :
2033 ac_hi
=$ac_mid; break
2035 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2036 if test $ac_lo -le $ac_mid; then
2040 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2042 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h. */
2051 static int test_array [1 - 2 * !(($2) < 0)];
2058 if ac_fn_c_try_compile
"$LINENO"; then :
2061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h. */
2067 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2074 if ac_fn_c_try_compile
"$LINENO"; then :
2075 ac_lo
=$ac_mid; break
2077 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2078 if test $ac_mid -le $ac_hi; then
2082 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2084 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2089 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2091 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2092 # Binary search between lo and hi bounds.
2093 while test "x$ac_lo" != "x$ac_hi"; do
2094 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h. */
2101 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2108 if ac_fn_c_try_compile
"$LINENO"; then :
2111 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2113 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2116 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h. */
2123 static long int longval () { return $2; }
2124 static unsigned long int ulongval () { return $2; }
2131 FILE *f = fopen ("conftest.val", "w");
2136 long int i = longval ();
2139 fprintf (f, "%ld", i);
2143 unsigned long int i = ulongval ();
2146 fprintf (f, "%lu", i);
2148 /* Do not output a trailing newline, as this causes \r\n confusion
2149 on some platforms. */
2150 return ferror (f) || fclose (f) != 0;
2156 if ac_fn_c_try_run
"$LINENO"; then :
2157 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2161 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2162 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2166 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2169 } # ac_fn_c_compute_int
2171 # ac_fn_c_check_func LINENO FUNC VAR
2172 # ----------------------------------
2173 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2174 ac_fn_c_check_func
()
2176 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2178 $as_echo_n "checking for $2... " >&6; }
2179 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2180 $as_echo_n "(cached) " >&6
2182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2184 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2186 #define $2 innocuous_$2
2188 /* System header to define __stub macros and hopefully few prototypes,
2189 which can conflict with char $2 (); below.
2190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2191 <limits.h> exists even on freestanding compilers. */
2194 # include <limits.h>
2196 # include <assert.h>
2201 /* Override any GCC internal prototype to avoid an error.
2202 Use char because int might match the return type of a GCC
2203 builtin and then its argument prototype would still apply. */
2208 /* The GNU C library defines this for functions which it implements
2209 to always fail with ENOSYS. Some functions are actually named
2210 something starting with __ and the normal name is an alias. */
2211 #if defined __stub_$2 || defined __stub___$2
2223 if ac_fn_c_try_link
"$LINENO"; then :
2228 rm -f core conftest.err conftest.
$ac_objext \
2229 conftest
$ac_exeext conftest.
$ac_ext
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2233 $as_echo "$ac_res" >&6; }
2234 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2236 } # ac_fn_c_check_func
2238 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2239 # -------------------------------------------
2240 # Tests whether TYPE exists after having included INCLUDES, setting cache
2241 # variable VAR accordingly.
2242 ac_fn_c_check_type
()
2244 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2246 $as_echo_n "checking for $2... " >&6; }
2247 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2248 $as_echo_n "(cached) " >&6
2251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2263 if ac_fn_c_try_compile
"$LINENO"; then :
2264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h. */
2276 if ac_fn_c_try_compile
"$LINENO"; then :
2281 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2287 $as_echo "$ac_res" >&6; }
2288 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2290 } # ac_fn_c_check_type
2292 # ac_fn_c_check_decl LINENO SYMBOL VAR
2293 # ------------------------------------
2294 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2295 ac_fn_c_check_decl
()
2297 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2298 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2299 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2301 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2302 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2303 $as_echo_n "(cached) " >&6
2305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2306 /* end confdefs.h. */
2311 #ifndef $as_decl_name
2313 (void) $as_decl_use;
2315 (void) $as_decl_name;
2323 if ac_fn_c_try_compile
"$LINENO"; then :
2328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2332 $as_echo "$ac_res" >&6; }
2333 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2335 } # ac_fn_c_check_decl
2337 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2338 # ----------------------------------------------------
2339 # Tries to find if the field MEMBER exists in type AGGR, after including
2340 # INCLUDES, setting cache variable VAR accordingly.
2341 ac_fn_c_check_member
()
2343 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2345 $as_echo_n "checking for $2.$3... " >&6; }
2346 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2347 $as_echo_n "(cached) " >&6
2349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2350 /* end confdefs.h. */
2362 if ac_fn_c_try_compile
"$LINENO"; then :
2365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2366 /* end confdefs.h. */
2372 if (sizeof ac_aggr.$3)
2378 if ac_fn_c_try_compile
"$LINENO"; then :
2383 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2389 $as_echo "$ac_res" >&6; }
2390 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2392 } # ac_fn_c_check_member
2393 cat >config.log
<<_ACEOF
2394 This file contains any messages produced by compilers while
2395 running configure, to aid debugging if configure makes a mistake.
2397 It was created by $as_me, which was
2398 generated by GNU Autoconf 2.64. Invocation command line was
2410 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2411 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2412 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2413 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2414 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2416 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2417 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2419 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2420 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2421 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2422 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2423 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2424 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2425 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2429 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2433 test -z "$as_dir" && as_dir
=.
2434 $as_echo "PATH: $as_dir"
2450 # Keep a trace of the command line.
2451 # Strip out --no-create and --no-recursion so they do not pile up.
2452 # Strip out --silent because we don't want to record it for future runs.
2453 # Also quote any args containing shell meta-characters.
2454 # Make two passes to allow for proper duplicate-argument suppression.
2458 ac_must_keep_next
=false
2464 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2465 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2466 |
-silent |
--silent |
--silen |
--sile |
--sil)
2469 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2472 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2474 as_fn_append ac_configure_args1
" '$ac_arg'"
2475 if test $ac_must_keep_next = true
; then
2476 ac_must_keep_next
=false
# Got value, back to normal.
2479 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2480 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2481 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2482 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2483 case "$ac_configure_args0 " in
2484 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2487 -* ) ac_must_keep_next
=true
;;
2490 as_fn_append ac_configure_args
" '$ac_arg'"
2495 { ac_configure_args0
=; unset ac_configure_args0
;}
2496 { ac_configure_args1
=; unset ac_configure_args1
;}
2498 # When interrupted or exit'd, cleanup temporary files, and complete
2499 # config.log. We remove comments because anyway the quotes in there
2500 # would cause problems or look ugly.
2501 # WARNING: Use '\'' to represent an apostrophe within the trap.
2502 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2503 trap 'exit_status=$?
2504 # Save into config.log some information that might help in debugging.
2509 ## ---------------- ##
2510 ## Cache variables. ##
2511 ## ---------------- ##
2514 # The following way of writing the cache mishandles newlines in values,
2516 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2517 eval ac_val=\$$ac_var
2521 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2522 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2525 _ | IFS | as_nl) ;; #(
2526 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2527 *) { eval $ac_var=; unset $ac_var;} ;;
2532 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2533 *${as_nl}ac_space=\ *)
2535 "s/'\''/'\''\\\\'\'''\''/g;
2536 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2539 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2547 ## ----------------- ##
2548 ## Output variables. ##
2549 ## ----------------- ##
2552 for ac_var in $ac_subst_vars
2554 eval ac_val=\$$ac_var
2556 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2558 $as_echo "$ac_var='\''$ac_val'\''"
2562 if test -n "$ac_subst_files"; then
2564 ## ------------------- ##
2565 ## File substitutions. ##
2566 ## ------------------- ##
2569 for ac_var
in $ac_subst_files
2571 eval ac_val
=\$
$ac_var
2573 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2575 $as_echo "$ac_var='\''$ac_val'\''"
2580 if test -s confdefs.h; then
2590 test "$ac_signal" != 0 &&
2591 $as_echo "$as_me: caught signal $ac_signal"
2592 $as_echo "$as_me: exit $exit_status"
2594 rm -f core *.core core.conftest.* &&
2595 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2598 for ac_signal
in 1 2 13 15; do
2599 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2603 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2604 rm -f -r conftest
* confdefs.h
2606 $as_echo "/* confdefs.h */" > confdefs.h
2608 # Predefined preprocessor variables.
2610 cat >>confdefs.h
<<_ACEOF
2611 #define PACKAGE_NAME "$PACKAGE_NAME"
2614 cat >>confdefs.h
<<_ACEOF
2615 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2618 cat >>confdefs.h
<<_ACEOF
2619 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2622 cat >>confdefs.h
<<_ACEOF
2623 #define PACKAGE_STRING "$PACKAGE_STRING"
2626 cat >>confdefs.h
<<_ACEOF
2627 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2630 cat >>confdefs.h
<<_ACEOF
2631 #define PACKAGE_URL "$PACKAGE_URL"
2635 # Let the site file select an alternate cache file if it wants to.
2636 # Prefer an explicitly selected file to automatically selected ones.
2639 if test -n "$CONFIG_SITE"; then
2640 ac_site_file1
=$CONFIG_SITE
2641 elif test "x$prefix" != xNONE
; then
2642 ac_site_file1
=$prefix/share
/config.site
2643 ac_site_file2
=$prefix/etc
/config.site
2645 ac_site_file1
=$ac_default_prefix/share
/config.site
2646 ac_site_file2
=$ac_default_prefix/etc
/config.site
2648 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2650 test "x$ac_site_file" = xNONE
&& continue
2651 if test -r "$ac_site_file"; then
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2653 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2654 sed 's/^/| /' "$ac_site_file" >&5
2659 if test -r "$cache_file"; then
2660 # Some versions of bash will fail to source /dev/null (special
2661 # files actually), so we avoid doing that.
2662 if test -f "$cache_file"; then
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2664 $as_echo "$as_me: loading cache $cache_file" >&6;}
2666 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2667 *) .
"./$cache_file";;
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2672 $as_echo "$as_me: creating cache $cache_file" >&6;}
2676 # Check that the precious variables saved in the cache have kept the same
2678 ac_cache_corrupted
=false
2679 for ac_var
in $ac_precious_vars; do
2680 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2681 eval ac_new_set
=\
$ac_env_${ac_var}_set
2682 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2683 eval ac_new_val
=\
$ac_env_${ac_var}_value
2684 case $ac_old_set,$ac_new_set in
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2687 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2688 ac_cache_corrupted
=: ;;
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2691 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2692 ac_cache_corrupted
=: ;;
2695 if test "x$ac_old_val" != "x$ac_new_val"; then
2696 # differences in whitespace do not lead to failure.
2697 ac_old_val_w
=`echo x $ac_old_val`
2698 ac_new_val_w
=`echo x $ac_new_val`
2699 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2701 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2702 ac_cache_corrupted
=:
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2705 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2706 eval $ac_var=\
$ac_old_val
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2709 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2711 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2714 # Pass precious variables to config.status.
2715 if test "$ac_new_set" = set; then
2717 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2718 *) ac_arg
=$ac_var=$ac_new_val ;;
2720 case " $ac_configure_args " in
2721 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2722 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2726 if $ac_cache_corrupted; then
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2730 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2731 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2733 ## -------------------- ##
2734 ## Main body of script. ##
2735 ## -------------------- ##
2738 ac_cpp
='$CPP $CPPFLAGS'
2739 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2740 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2741 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2747 ac_config_headers
="$ac_config_headers config.h:config.in"
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2751 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2752 # Check whether --enable-maintainer-mode was given.
2753 if test "${enable_maintainer_mode+set}" = set; then :
2754 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2756 USE_MAINTAINER_MODE
=no
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2760 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2761 if test $USE_MAINTAINER_MODE = yes; then
2762 MAINTAINER_MODE_TRUE
=
2763 MAINTAINER_MODE_FALSE
='#'
2765 MAINTAINER_MODE_TRUE
='#'
2766 MAINTAINER_MODE_FALSE
=
2769 MAINT
=$MAINTAINER_MODE_TRUE
2773 # Set the 'development' global.
2774 .
$srcdir/..
/bfd
/development.sh
2777 ac_cpp
='$CPP $CPPFLAGS'
2778 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2779 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2780 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2781 if test -n "$ac_tool_prefix"; then
2782 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2783 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2785 $as_echo_n "checking for $ac_word... " >&6; }
2786 if test "${ac_cv_prog_CC+set}" = set; then :
2787 $as_echo_n "(cached) " >&6
2789 if test -n "$CC"; then
2790 ac_cv_prog_CC
="$CC" # Let the user override the test.
2792 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2796 test -z "$as_dir" && as_dir
=.
2797 for ac_exec_ext
in '' $ac_executable_extensions; do
2798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2799 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 if test -n "$CC"; then
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2812 $as_echo "$CC" >&6; }
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2815 $as_echo "no" >&6; }
2820 if test -z "$ac_cv_prog_CC"; then
2822 # Extract the first word of "gcc", so it can be a program name with args.
2823 set dummy gcc
; ac_word
=$2
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2825 $as_echo_n "checking for $ac_word... " >&6; }
2826 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2827 $as_echo_n "(cached) " >&6
2829 if test -n "$ac_ct_CC"; then
2830 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2832 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2836 test -z "$as_dir" && as_dir
=.
2837 for ac_exec_ext
in '' $ac_executable_extensions; do
2838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2839 ac_cv_prog_ac_ct_CC
="gcc"
2840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2850 if test -n "$ac_ct_CC"; then
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2852 $as_echo "$ac_ct_CC" >&6; }
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2855 $as_echo "no" >&6; }
2858 if test "x$ac_ct_CC" = x
; then
2861 case $cross_compiling:$ac_tool_warned in
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2865 ac_tool_warned
=yes ;;
2873 if test -z "$CC"; then
2874 if test -n "$ac_tool_prefix"; then
2875 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2876 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878 $as_echo_n "checking for $ac_word... " >&6; }
2879 if test "${ac_cv_prog_CC+set}" = set; then :
2880 $as_echo_n "(cached) " >&6
2882 if test -n "$CC"; then
2883 ac_cv_prog_CC
="$CC" # Let the user override the test.
2885 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2889 test -z "$as_dir" && as_dir
=.
2890 for ac_exec_ext
in '' $ac_executable_extensions; do
2891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2892 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 if test -n "$CC"; then
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2905 $as_echo "$CC" >&6; }
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908 $as_echo "no" >&6; }
2914 if test -z "$CC"; then
2915 # Extract the first word of "cc", so it can be a program name with args.
2916 set dummy cc
; ac_word
=$2
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2918 $as_echo_n "checking for $ac_word... " >&6; }
2919 if test "${ac_cv_prog_CC+set}" = set; then :
2920 $as_echo_n "(cached) " >&6
2922 if test -n "$CC"; then
2923 ac_cv_prog_CC
="$CC" # Let the user override the test.
2926 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2930 test -z "$as_dir" && as_dir
=.
2931 for ac_exec_ext
in '' $ac_executable_extensions; do
2932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2933 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2934 ac_prog_rejected
=yes
2938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2945 if test $ac_prog_rejected = yes; then
2946 # We found a bogon in the path, so make sure we never use it.
2947 set dummy
$ac_cv_prog_CC
2949 if test $# != 0; then
2950 # We chose a different compiler from the bogus one.
2951 # However, it has the same basename, so the bogon will be chosen
2952 # first if we set CC to just the basename; use the full file name.
2954 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2960 if test -n "$CC"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2962 $as_echo "$CC" >&6; }
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 $as_echo "no" >&6; }
2970 if test -z "$CC"; then
2971 if test -n "$ac_tool_prefix"; then
2972 for ac_prog
in cl.exe
2974 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2975 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2977 $as_echo_n "checking for $ac_word... " >&6; }
2978 if test "${ac_cv_prog_CC+set}" = set; then :
2979 $as_echo_n "(cached) " >&6
2981 if test -n "$CC"; then
2982 ac_cv_prog_CC
="$CC" # Let the user override the test.
2984 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2988 test -z "$as_dir" && as_dir
=.
2989 for ac_exec_ext
in '' $ac_executable_extensions; do
2990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2991 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3002 if test -n "$CC"; then
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3004 $as_echo "$CC" >&6; }
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007 $as_echo "no" >&6; }
3011 test -n "$CC" && break
3014 if test -z "$CC"; then
3016 for ac_prog
in cl.exe
3018 # Extract the first word of "$ac_prog", so it can be a program name with args.
3019 set dummy
$ac_prog; ac_word
=$2
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3021 $as_echo_n "checking for $ac_word... " >&6; }
3022 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3023 $as_echo_n "(cached) " >&6
3025 if test -n "$ac_ct_CC"; then
3026 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3028 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3032 test -z "$as_dir" && as_dir
=.
3033 for ac_exec_ext
in '' $ac_executable_extensions; do
3034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3035 ac_cv_prog_ac_ct_CC
="$ac_prog"
3036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3045 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3046 if test -n "$ac_ct_CC"; then
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3048 $as_echo "$ac_ct_CC" >&6; }
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3051 $as_echo "no" >&6; }
3055 test -n "$ac_ct_CC" && break
3058 if test "x$ac_ct_CC" = x
; then
3061 case $cross_compiling:$ac_tool_warned in
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3065 ac_tool_warned
=yes ;;
3074 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3076 as_fn_error
"no acceptable C compiler found in \$PATH
3077 See \`config.log' for more details." "$LINENO" 5; }
3079 # Provide some information about the compiler.
3080 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3083 for ac_option
in --version -v -V -qversion; do
3084 { { ac_try
="$ac_compiler $ac_option >&5"
3086 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3090 $as_echo "$ac_try_echo"; } >&5
3091 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3093 if test -s conftest.err; then
3095 ... rest of stderr output deleted ...
3096 10q' conftest.err >conftest.er1
3097 cat conftest.er1 >&5
3098 rm -f conftest.er1 conftest.err
3100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3101 test $ac_status = 0; }
3104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3105 /* end confdefs.h. */
3115 ac_clean_files_save=$ac_clean_files
3116 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3117 # Try to create an executable without -o first, disregard a.out.
3118 # It will help us diagnose broken compilers, and finding out an intuition
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3121 $as_echo_n "checking for C compiler default output file name... " >&6; }
3122 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3124 # The possible output files:
3125 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3128 for ac_file in $ac_files
3131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3132 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3137 if { { ac_try="$ac_link_default"
3139 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3140 *) ac_try_echo
=$ac_try;;
3142 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3143 $as_echo "$ac_try_echo"; } >&5
3144 (eval "$ac_link_default") 2>&5
3146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3147 test $ac_status = 0; }; then :
3148 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3149 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3150 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3151 # so that the user can short-circuit this test for compilers unknown to
3153 for ac_file
in $ac_files ''
3155 test -f "$ac_file" ||
continue
3157 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3160 # We found the default executable, but exeext='' is most
3164 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3166 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3168 # We set ac_cv_exeext here because the later test for it is not
3169 # safe: cross compilers may not add the suffix if given an `-o'
3170 # argument, so we may need to know it at that point already.
3171 # Even if this section looks crufty: it has the advantage of
3178 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3184 $as_echo "$ac_file" >&6; }
3185 if test -z "$ac_file"; then :
3186 $as_echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.
$ac_ext >&5
3189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3191 { as_fn_set_status
77
3192 as_fn_error
"C compiler cannot create executables
3193 See \`config.log' for more details." "$LINENO" 5; }; }
3195 ac_exeext
=$ac_cv_exeext
3197 # Check that the compiler produces executables we can run. If not, either
3198 # the compiler is broken, or we cross compile.
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3200 $as_echo_n "checking whether the C compiler works... " >&6; }
3201 # If not cross compiling, check that we can run a simple program.
3202 if test "$cross_compiling" != yes; then
3203 if { ac_try
='./$ac_file'
3204 { { case "(($ac_try" in
3205 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3209 $as_echo "$ac_try_echo"; } >&5
3210 (eval "$ac_try") 2>&5
3212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3213 test $ac_status = 0; }; }; then
3216 if test "$cross_compiling" = maybe; then
3219 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3221 as_fn_error "cannot run C compiled programs.
3222 If you meant to cross compile
, use \
`--host'.
3223 See \`config.log
' for more details." "$LINENO" 5; }
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3228 $as_echo "yes" >&6; }
3230 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3231 ac_clean_files=$ac_clean_files_save
3232 # Check that the compiler produces executables we can run. If not, either
3233 # the compiler is broken, or we cross compile.
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3235 $as_echo_n "checking whether we are cross compiling... " >&6; }
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3237 $as_echo "$cross_compiling" >&6; }
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3240 $as_echo_n "checking for suffix of executables... " >&6; }
3241 if { { ac_try="$ac_link"
3243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244 *) ac_try_echo=$ac_try;;
3246 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3247 $as_echo "$ac_try_echo"; } >&5
3248 (eval "$ac_link") 2>&5
3250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3251 test $ac_status = 0; }; then :
3252 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3253 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3254 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3256 for ac_file
in conftest.exe conftest conftest.
*; do
3257 test -f "$ac_file" ||
continue
3259 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3260 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3268 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3269 See \`config.log' for more details." "$LINENO" 5; }
3271 rm -f conftest
$ac_cv_exeext
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3273 $as_echo "$ac_cv_exeext" >&6; }
3275 rm -f conftest.
$ac_ext
3276 EXEEXT
=$ac_cv_exeext
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3279 $as_echo_n "checking for suffix of object files... " >&6; }
3280 if test "${ac_cv_objext+set}" = set; then :
3281 $as_echo_n "(cached) " >&6
3283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3284 /* end confdefs.h. */
3294 rm -f conftest.o conftest.obj
3295 if { { ac_try
="$ac_compile"
3297 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3298 *) ac_try_echo=$ac_try;;
3300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3301 $as_echo "$ac_try_echo"; } >&5
3302 (eval "$ac_compile") 2>&5
3304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3305 test $ac_status = 0; }; then :
3306 for ac_file in conftest.o conftest.obj conftest.*; do
3307 test -f "$ac_file" || continue;
3309 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3310 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3315 $as_echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3320 as_fn_error "cannot compute suffix of object files
: cannot compile
3321 See \
`config.log' for more details." "$LINENO" 5; }
3323 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3326 $as_echo "$ac_cv_objext" >&6; }
3327 OBJEXT=$ac_cv_objext
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3330 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3331 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3332 $as_echo_n "(cached) " >&6
3334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3335 /* end confdefs.h. */
3348 if ac_fn_c_try_compile "$LINENO"; then :
3353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3354 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3358 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3359 if test $ac_compiler_gnu = yes; then
3364 ac_test_CFLAGS=${CFLAGS+set}
3365 ac_save_CFLAGS=$CFLAGS
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3367 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3368 if test "${ac_cv_prog_cc_g+set}" = set; then :
3369 $as_echo_n "(cached) " >&6
3371 ac_save_c_werror_flag=$ac_c_werror_flag
3372 ac_c_werror_flag=yes
3375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3376 /* end confdefs.h. */
3386 if ac_fn_c_try_compile "$LINENO"; then :
3390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3391 /* end confdefs.h. */
3401 if ac_fn_c_try_compile "$LINENO"; then :
3404 ac_c_werror_flag=$ac_save_c_werror_flag
3406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3407 /* end confdefs.h. */
3417 if ac_fn_c_try_compile "$LINENO"; then :
3420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3425 ac_c_werror_flag=$ac_save_c_werror_flag
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3428 $as_echo "$ac_cv_prog_cc_g" >&6; }
3429 if test "$ac_test_CFLAGS" = set; then
3430 CFLAGS=$ac_save_CFLAGS
3431 elif test $ac_cv_prog_cc_g = yes; then
3432 if test "$GCC" = yes; then
3438 if test "$GCC" = yes; then
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3445 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3446 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3447 $as_echo_n "(cached) " >&6
3449 ac_cv_prog_cc_c89=no
3451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3452 /* end confdefs.h. */
3455 #include <sys/types.h>
3456 #include <sys/stat.h>
3457 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3458 struct buf { int x; };
3459 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3460 static char *e (p, i)
3466 static char *f (char * (*g) (char **, int), char **p, ...)
3471 s = g (p, va_arg (v,int));
3476 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3477 function prototypes and stuff, but not '\xHH' hex character constants.
3478 These don't provoke an error unfortunately, instead are silently treated
3479 as 'x'. The following induces an error, until -std is added to get
3480 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3481 array size at least. It's necessary to write '\x00'==0 to get something
3482 that's true only with -std. */
3483 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3485 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3486 inside strings and character constants. */
3488 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3490 int test (int i, double x);
3491 struct s1 {int (*f) (int a);};
3492 struct s2 {int (*f) (double a);};
3493 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3499 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3504 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3505 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3507 CC="$ac_save_CC $ac_arg"
3508 if ac_fn_c_try_compile "$LINENO"; then :
3509 ac_cv_prog_cc_c89=$ac_arg
3511 rm -f core conftest.err conftest.$ac_objext
3512 test "x$ac_cv_prog_cc_c89" != "xno" && break
3514 rm -f conftest.$ac_ext
3519 case "x$ac_cv_prog_cc_c89" in
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3522 $as_echo "none needed" >&6; } ;;
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3525 $as_echo "unsupported" >&6; } ;;
3527 CC="$CC $ac_cv_prog_cc_c89"
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3529 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3531 if test "x$ac_cv_prog_cc_c89" != xno; then :
3536 ac_cpp='$CPP $CPPFLAGS'
3537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3542 ac_cpp='$CXXCPP $CPPFLAGS'
3543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3546 if test -z "$CXX"; then
3547 if test -n "$CCC"; then
3550 if test -n "$ac_tool_prefix"; then
3551 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3553 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3554 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3556 $as_echo_n "checking for $ac_word... " >&6; }
3557 if test "${ac_cv_prog_CXX+set}" = set; then :
3558 $as_echo_n "(cached) " >&6
3560 if test -n "$CXX"; then
3561 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3567 test -z "$as_dir" && as_dir=.
3568 for ac_exec_ext in '' $ac_executable_extensions; do
3569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3570 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3581 if test -n "$CXX"; then
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3583 $as_echo "$CXX" >&6; }
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3586 $as_echo "no" >&6; }
3590 test -n "$CXX" && break
3593 if test -z "$CXX"; then
3595 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3597 # Extract the first word of "$ac_prog", so it can be a program name with args.
3598 set dummy $ac_prog; ac_word=$2
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3600 $as_echo_n "checking for $ac_word... " >&6; }
3601 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3602 $as_echo_n "(cached) " >&6
3604 if test -n "$ac_ct_CXX"; then
3605 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3611 test -z "$as_dir" && as_dir=.
3612 for ac_exec_ext in '' $ac_executable_extensions; do
3613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3614 ac_cv_prog_ac_ct_CXX="$ac_prog"
3615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3624 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3625 if test -n "$ac_ct_CXX"; then
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3627 $as_echo "$ac_ct_CXX" >&6; }
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3630 $as_echo "no" >&6; }
3634 test -n "$ac_ct_CXX" && break
3637 if test "x$ac_ct_CXX" = x; then
3640 case $cross_compiling:$ac_tool_warned in
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3644 ac_tool_warned=yes ;;
3652 # Provide some information about the compiler.
3653 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3656 for ac_option in --version -v -V -qversion; do
3657 { { ac_try="$ac_compiler $ac_option >&5"
3659 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3660 *) ac_try_echo
=$ac_try;;
3662 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3663 $as_echo "$ac_try_echo"; } >&5
3664 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3666 if test -s conftest.err
; then
3668 ... rest of stderr output deleted ...
3669 10q' conftest.err
>conftest.er1
3670 cat conftest.er1
>&5
3671 rm -f conftest.er1 conftest.err
3673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3674 test $ac_status = 0; }
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3678 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3679 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3680 $as_echo_n "(cached) " >&6
3682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3683 /* end confdefs.h. */
3696 if ac_fn_cxx_try_compile
"$LINENO"; then :
3701 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3702 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3706 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3707 if test $ac_compiler_gnu = yes; then
3712 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3713 ac_save_CXXFLAGS
=$CXXFLAGS
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3715 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3716 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3717 $as_echo_n "(cached) " >&6
3719 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3720 ac_cxx_werror_flag
=yes
3723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3724 /* end confdefs.h. */
3734 if ac_fn_cxx_try_compile
"$LINENO"; then :
3735 ac_cv_prog_cxx_g
=yes
3738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h. */
3749 if ac_fn_cxx_try_compile
"$LINENO"; then :
3752 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3755 /* end confdefs.h. */
3765 if ac_fn_cxx_try_compile
"$LINENO"; then :
3766 ac_cv_prog_cxx_g
=yes
3768 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3770 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3772 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3773 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3776 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3777 if test "$ac_test_CXXFLAGS" = set; then
3778 CXXFLAGS
=$ac_save_CXXFLAGS
3779 elif test $ac_cv_prog_cxx_g = yes; then
3780 if test "$GXX" = yes; then
3786 if test "$GXX" = yes; then
3793 ac_cpp
='$CPP $CPPFLAGS'
3794 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3795 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3796 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3801 ac_cpp
='$CPP $CPPFLAGS'
3802 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3803 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3804 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3806 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3807 # On Suns, sometimes $CPP names a directory.
3808 if test -n "$CPP" && test -d "$CPP"; then
3811 if test -z "$CPP"; then
3812 if test "${ac_cv_prog_CPP+set}" = set; then :
3813 $as_echo_n "(cached) " >&6
3815 # Double quotes because CPP needs to be expanded
3816 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3819 for ac_c_preproc_warn_flag
in '' yes
3821 # Use a header file that comes with gcc, so configuring glibc
3822 # with a fresh cross-compiler works.
3823 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3824 # <limits.h> exists even on freestanding compilers.
3825 # On the NeXT, cc -E runs the code through the compiler's parser,
3826 # not just through cpp. "Syntax error" is here to catch this case.
3827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3828 /* end confdefs.h. */
3830 # include <limits.h>
3832 # include <assert.h>
3836 if ac_fn_c_try_cpp
"$LINENO"; then :
3839 # Broken: fails on valid input.
3842 rm -f conftest.err conftest.
$ac_ext
3844 # OK, works on sane cases. Now check whether nonexistent headers
3845 # can be detected and how.
3846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h. */
3848 #include <ac_nonexistent.h>
3850 if ac_fn_c_try_cpp
"$LINENO"; then :
3851 # Broken: success on invalid input.
3854 # Passes both tests.
3858 rm -f conftest.err conftest.
$ac_ext
3861 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3862 rm -f conftest.err conftest.
$ac_ext
3863 if $ac_preproc_ok; then :
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3876 $as_echo "$CPP" >&6; }
3878 for ac_c_preproc_warn_flag
in '' yes
3880 # Use a header file that comes with gcc, so configuring glibc
3881 # with a fresh cross-compiler works.
3882 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3883 # <limits.h> exists even on freestanding compilers.
3884 # On the NeXT, cc -E runs the code through the compiler's parser,
3885 # not just through cpp. "Syntax error" is here to catch this case.
3886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h. */
3889 # include <limits.h>
3891 # include <assert.h>
3895 if ac_fn_c_try_cpp
"$LINENO"; then :
3898 # Broken: fails on valid input.
3901 rm -f conftest.err conftest.
$ac_ext
3903 # OK, works on sane cases. Now check whether nonexistent headers
3904 # can be detected and how.
3905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h. */
3907 #include <ac_nonexistent.h>
3909 if ac_fn_c_try_cpp
"$LINENO"; then :
3910 # Broken: success on invalid input.
3913 # Passes both tests.
3917 rm -f conftest.err conftest.
$ac_ext
3920 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3921 rm -f conftest.err conftest.
$ac_ext
3922 if $ac_preproc_ok; then :
3925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3927 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
3928 See \`config.log' for more details." "$LINENO" 5; }
3932 ac_cpp
='$CPP $CPPFLAGS'
3933 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3934 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3935 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3939 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3940 if test "${ac_cv_path_GREP+set}" = set; then :
3941 $as_echo_n "(cached) " >&6
3943 if test -z "$GREP"; then
3944 ac_path_GREP_found
=false
3945 # Loop through the user's path and test for each of PROGNAME-LIST
3946 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3947 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3950 test -z "$as_dir" && as_dir
=.
3951 for ac_prog
in grep ggrep
; do
3952 for ac_exec_ext
in '' $ac_executable_extensions; do
3953 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3954 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3955 # Check for GNU ac_path_GREP and select it if it is found.
3956 # Check for GNU $ac_path_GREP
3957 case `"$ac_path_GREP" --version 2>&1` in
3959 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3962 $as_echo_n 0123456789 >"conftest.in"
3965 cat "conftest.in" "conftest.in" >"conftest.tmp"
3966 mv "conftest.tmp" "conftest.in"
3967 cp "conftest.in" "conftest.nl"
3968 $as_echo 'GREP' >> "conftest.nl"
3969 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3970 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3971 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3972 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3973 # Best one so far, save it but keep looking for a better one
3974 ac_cv_path_GREP
="$ac_path_GREP"
3975 ac_path_GREP_max
=$ac_count
3977 # 10*(2^10) chars as input seems more than enough
3978 test $ac_count -gt 10 && break
3980 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3983 $ac_path_GREP_found && break 3
3988 if test -z "$ac_cv_path_GREP"; then
3989 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3992 ac_cv_path_GREP
=$GREP
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3997 $as_echo "$ac_cv_path_GREP" >&6; }
3998 GREP
="$ac_cv_path_GREP"
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4002 $as_echo_n "checking for egrep... " >&6; }
4003 if test "${ac_cv_path_EGREP+set}" = set; then :
4004 $as_echo_n "(cached) " >&6
4006 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4007 then ac_cv_path_EGREP
="$GREP -E"
4009 if test -z "$EGREP"; then
4010 ac_path_EGREP_found
=false
4011 # Loop through the user's path and test for each of PROGNAME-LIST
4012 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4013 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4016 test -z "$as_dir" && as_dir
=.
4017 for ac_prog
in egrep; do
4018 for ac_exec_ext
in '' $ac_executable_extensions; do
4019 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4020 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4021 # Check for GNU ac_path_EGREP and select it if it is found.
4022 # Check for GNU $ac_path_EGREP
4023 case `"$ac_path_EGREP" --version 2>&1` in
4025 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4028 $as_echo_n 0123456789 >"conftest.in"
4031 cat "conftest.in" "conftest.in" >"conftest.tmp"
4032 mv "conftest.tmp" "conftest.in"
4033 cp "conftest.in" "conftest.nl"
4034 $as_echo 'EGREP' >> "conftest.nl"
4035 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4036 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4037 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4038 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4039 # Best one so far, save it but keep looking for a better one
4040 ac_cv_path_EGREP
="$ac_path_EGREP"
4041 ac_path_EGREP_max
=$ac_count
4043 # 10*(2^10) chars as input seems more than enough
4044 test $ac_count -gt 10 && break
4046 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4049 $ac_path_EGREP_found && break 3
4054 if test -z "$ac_cv_path_EGREP"; then
4055 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4058 ac_cv_path_EGREP
=$EGREP
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4064 $as_echo "$ac_cv_path_EGREP" >&6; }
4065 EGREP
="$ac_cv_path_EGREP"
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4069 $as_echo_n "checking for ANSI C header files... " >&6; }
4070 if test "${ac_cv_header_stdc+set}" = set; then :
4071 $as_echo_n "(cached) " >&6
4073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4074 /* end confdefs.h. */
4088 if ac_fn_c_try_compile
"$LINENO"; then :
4089 ac_cv_header_stdc
=yes
4091 ac_cv_header_stdc
=no
4093 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4095 if test $ac_cv_header_stdc = yes; then
4096 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h. */
4102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4103 $EGREP "memchr" >/dev
/null
2>&1; then :
4106 ac_cv_header_stdc
=no
4112 if test $ac_cv_header_stdc = yes; then
4113 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4120 $EGREP "free" >/dev
/null
2>&1; then :
4123 ac_cv_header_stdc
=no
4129 if test $ac_cv_header_stdc = yes; then
4130 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4131 if test "$cross_compiling" = yes; then :
4134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4135 /* end confdefs.h. */
4138 #if ((' ' & 0x0FF) == 0x020)
4139 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4140 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4142 # define ISLOWER(c) \
4143 (('a' <= (c) && (c) <= 'i') \
4144 || ('j' <= (c) && (c) <= 'r') \
4145 || ('s' <= (c) && (c) <= 'z'))
4146 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4149 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4154 for (i = 0; i < 256; i++)
4155 if (XOR (islower (i), ISLOWER (i))
4156 || toupper (i) != TOUPPER (i))
4161 if ac_fn_c_try_run
"$LINENO"; then :
4164 ac_cv_header_stdc
=no
4166 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4167 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4173 $as_echo "$ac_cv_header_stdc" >&6; }
4174 if test $ac_cv_header_stdc = yes; then
4176 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4180 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4181 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4182 inttypes.h stdint.h unistd.h
4184 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4185 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4187 eval as_val
=\$
$as_ac_Header
4188 if test "x$as_val" = x
""yes; then :
4189 cat >>confdefs.h
<<_ACEOF
4190 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4199 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4200 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4207 if test "$MINIX" = yes; then
4209 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4212 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4215 $as_echo "#define _MINIX 1" >>confdefs.h
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4221 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4222 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4223 $as_echo_n "(cached) " >&6
4225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4226 /* end confdefs.h. */
4228 # define __EXTENSIONS__ 1
4229 $ac_includes_default
4238 if ac_fn_c_try_compile
"$LINENO"; then :
4239 ac_cv_safe_to_define___extensions__
=yes
4241 ac_cv_safe_to_define___extensions__
=no
4243 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4246 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4247 test $ac_cv_safe_to_define___extensions__ = yes &&
4248 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4250 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4252 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4254 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4256 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4260 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4261 for ac_t
in install-sh
install.sh shtool
; do
4262 if test -f "$ac_dir/$ac_t"; then
4264 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4269 if test -z "$ac_aux_dir"; then
4270 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4273 # These three variables are undocumented and unsupported,
4274 # and are intended to be withdrawn in a future Autoconf release.
4275 # They can cause serious problems if a builder's source tree is in a directory
4276 # whose full name contains unusual characters.
4277 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4278 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4279 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4282 # Make sure we can run config.sub.
4283 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4284 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4287 $as_echo_n "checking build system type... " >&6; }
4288 if test "${ac_cv_build+set}" = set; then :
4289 $as_echo_n "(cached) " >&6
4291 ac_build_alias
=$build_alias
4292 test "x$ac_build_alias" = x
&&
4293 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4294 test "x$ac_build_alias" = x
&&
4295 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4296 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4297 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4301 $as_echo "$ac_cv_build" >&6; }
4302 case $ac_cv_build in
4304 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4307 ac_save_IFS
=$IFS; IFS
='-'
4313 # Remember, the first character of IFS is used to create $*,
4314 # except with old shells:
4317 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4321 $as_echo_n "checking host system type... " >&6; }
4322 if test "${ac_cv_host+set}" = set; then :
4323 $as_echo_n "(cached) " >&6
4325 if test "x$host_alias" = x
; then
4326 ac_cv_host
=$ac_cv_build
4328 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4329 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4334 $as_echo "$ac_cv_host" >&6; }
4337 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4340 ac_save_IFS
=$IFS; IFS
='-'
4346 # Remember, the first character of IFS is used to create $*,
4347 # except with old shells:
4350 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4354 $as_echo_n "checking target system type... " >&6; }
4355 if test "${ac_cv_target+set}" = set; then :
4356 $as_echo_n "(cached) " >&6
4358 if test "x$target_alias" = x
; then
4359 ac_cv_target
=$ac_cv_host
4361 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4362 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4367 $as_echo "$ac_cv_target" >&6; }
4368 case $ac_cv_target in
4370 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4372 target
=$ac_cv_target
4373 ac_save_IFS
=$IFS; IFS
='-'
4379 # Remember, the first character of IFS is used to create $*,
4380 # except with old shells:
4383 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4386 # The aliases save the names the user supplied, while $host etc.
4387 # will get canonicalized.
4388 test -n "$target_alias" &&
4389 test "$program_prefix$program_suffix$program_transform_name" = \
4391 program_prefix
=${target_alias}-
4393 # The tests for host and target for $enable_largefile require
4398 # As the $enable_largefile decision depends on --enable-plugins we must set it
4399 # even in directories otherwise not depending on the $plugins option.
4403 for ac_header
in dlfcn.h
4405 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4407 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then :
4408 cat >>confdefs.h
<<_ACEOF
4409 #define HAVE_DLFCN_H 1
4416 for ac_header
in windows.h
4418 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4420 if test "x$ac_cv_header_windows_h" = x
""yes; then :
4421 cat >>confdefs.h
<<_ACEOF
4422 #define HAVE_WINDOWS_H 1
4430 # Check whether --enable-plugins was given.
4431 if test "${enable_plugins+set}" = set; then :
4432 enableval
=$enable_plugins; case "${enableval}" in
4435 if test "$maybe_plugins" != "yes" ; then
4436 as_fn_error
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4440 plugins
=$maybe_plugins
4444 if test "$plugins" = "yes"; then
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
4446 $as_echo_n "checking for library containing dlopen... " >&6; }
4447 if test "${ac_cv_search_dlopen+set}" = set; then :
4448 $as_echo_n "(cached) " >&6
4450 ac_func_search_save_LIBS
=$LIBS
4451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4452 /* end confdefs.h. */
4454 /* Override any GCC internal prototype to avoid an error.
4455 Use char because int might match the return type of a GCC
4456 builtin and then its argument prototype would still apply. */
4469 for ac_lib
in '' dl
; do
4470 if test -z "$ac_lib"; then
4471 ac_res
="none required"
4474 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4476 if ac_fn_c_try_link
"$LINENO"; then :
4477 ac_cv_search_dlopen
=$ac_res
4479 rm -f core conftest.err conftest.
$ac_objext \
4481 if test "${ac_cv_search_dlopen+set}" = set; then :
4485 if test "${ac_cv_search_dlopen+set}" = set; then :
4488 ac_cv_search_dlopen
=no
4491 LIBS
=$ac_func_search_save_LIBS
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
4494 $as_echo "$ac_cv_search_dlopen" >&6; }
4495 ac_res
=$ac_cv_search_dlopen
4496 if test "$ac_res" != no
; then :
4497 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4505 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4506 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4507 # are mutually exclusive; and without procfs support, the bfd/ elf module
4508 # cannot provide certain routines such as elfcore_write_prpsinfo
4509 # or elfcore_write_prstatus. So unless the user explicitly requested
4510 # large-file support through the --enable-largefile switch, disable
4511 # large-file support in favor of procfs support.
4512 test "${target}" = "${host}" -a "x$plugins" = xno \
4513 && : ${enable_largefile="no"}
4517 # Check whether --enable-largefile was given.
4518 if test "${enable_largefile+set}" = set; then :
4519 enableval
=$enable_largefile;
4522 if test "$enable_largefile" != no
; then
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4525 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4526 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4527 $as_echo_n "(cached) " >&6
4529 ac_cv_sys_largefile_CC
=no
4530 if test "$GCC" != yes; then
4533 # IRIX 6.2 and later do not support large files by default,
4534 # so use the C compiler's -n32 option if that helps.
4535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4536 /* end confdefs.h. */
4537 #include <sys/types.h>
4538 /* Check that off_t can represent 2**63 - 1 correctly.
4539 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4540 since some C++ compilers masquerading as C compilers
4541 incorrectly reject 9223372036854775807. */
4542 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4543 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4544 && LARGE_OFF_T % 2147483647 == 1)
4554 if ac_fn_c_try_compile
"$LINENO"; then :
4557 rm -f core conftest.err conftest.
$ac_objext
4559 if ac_fn_c_try_compile
"$LINENO"; then :
4560 ac_cv_sys_largefile_CC
=' -n32'; break
4562 rm -f core conftest.err conftest.
$ac_objext
4566 rm -f conftest.
$ac_ext
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4570 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4571 if test "$ac_cv_sys_largefile_CC" != no
; then
4572 CC
=$CC$ac_cv_sys_largefile_CC
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4576 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4577 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4578 $as_echo_n "(cached) " >&6
4581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h. */
4583 #include <sys/types.h>
4584 /* Check that off_t can represent 2**63 - 1 correctly.
4585 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4586 since some C++ compilers masquerading as C compilers
4587 incorrectly reject 9223372036854775807. */
4588 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4589 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4590 && LARGE_OFF_T % 2147483647 == 1)
4600 if ac_fn_c_try_compile
"$LINENO"; then :
4601 ac_cv_sys_file_offset_bits
=no
; break
4603 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h. */
4606 #define _FILE_OFFSET_BITS 64
4607 #include <sys/types.h>
4608 /* Check that off_t can represent 2**63 - 1 correctly.
4609 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4610 since some C++ compilers masquerading as C compilers
4611 incorrectly reject 9223372036854775807. */
4612 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4613 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4614 && LARGE_OFF_T % 2147483647 == 1)
4624 if ac_fn_c_try_compile
"$LINENO"; then :
4625 ac_cv_sys_file_offset_bits
=64; break
4627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4628 ac_cv_sys_file_offset_bits
=unknown
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4633 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4634 case $ac_cv_sys_file_offset_bits in #(
4637 cat >>confdefs.h
<<_ACEOF
4638 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4643 if test $ac_cv_sys_file_offset_bits = unknown
; then
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4645 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4646 if test "${ac_cv_sys_large_files+set}" = set; then :
4647 $as_echo_n "(cached) " >&6
4650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4651 /* end confdefs.h. */
4652 #include <sys/types.h>
4653 /* Check that off_t can represent 2**63 - 1 correctly.
4654 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4655 since some C++ compilers masquerading as C compilers
4656 incorrectly reject 9223372036854775807. */
4657 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4658 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4659 && LARGE_OFF_T % 2147483647 == 1)
4669 if ac_fn_c_try_compile
"$LINENO"; then :
4670 ac_cv_sys_large_files
=no
; break
4672 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4674 /* end confdefs.h. */
4675 #define _LARGE_FILES 1
4676 #include <sys/types.h>
4677 /* Check that off_t can represent 2**63 - 1 correctly.
4678 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4679 since some C++ compilers masquerading as C compilers
4680 incorrectly reject 9223372036854775807. */
4681 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4682 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4683 && LARGE_OFF_T % 2147483647 == 1)
4693 if ac_fn_c_try_compile
"$LINENO"; then :
4694 ac_cv_sys_large_files
=1; break
4696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4697 ac_cv_sys_large_files
=unknown
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4702 $as_echo "$ac_cv_sys_large_files" >&6; }
4703 case $ac_cv_sys_large_files in #(
4706 cat >>confdefs.h
<<_ACEOF
4707 #define _LARGE_FILES $ac_cv_sys_large_files
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4720 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4721 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4722 $as_echo_n "(cached) " >&6
4724 am_cv_prog_cc_stdc
=no
4726 # Don't try gcc -ansi; that turns off useful extensions and
4727 # breaks some systems' header files.
4728 # AIX -qlanglvl=ansi
4729 # Ultrix and OSF/1 -std1
4730 # HP-UX 10.20 and later -Ae
4731 # HP-UX older versions -Aa -D_HPUX_SOURCE
4732 # SVR4 -Xc -D__EXTENSIONS__
4733 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4735 CC
="$ac_save_CC $ac_arg"
4736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4737 /* end confdefs.h. */
4740 #include <sys/types.h>
4741 #include <sys/stat.h>
4742 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4743 struct buf { int x; };
4744 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4745 static char *e (p, i)
4751 static char *f (char * (*g) (char **, int), char **p, ...)
4756 s = g (p, va_arg (v,int));
4760 int test (int i, double x);
4761 struct s1 {int (*f) (int a);};
4762 struct s2 {int (*f) (double a);};
4763 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4771 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4777 if ac_fn_c_try_compile
"$LINENO"; then :
4778 am_cv_prog_cc_stdc
="$ac_arg"; break
4780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4786 if test -z "$am_cv_prog_cc_stdc"; then
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4788 $as_echo "none needed" >&6; }
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4791 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4793 case "x$am_cv_prog_cc_stdc" in
4795 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4798 # expand $ac_aux_dir to an absolute path
4799 am_aux_dir
=`cd $ac_aux_dir && pwd`
4801 if test x
"${install_sh}" != xset
; then
4804 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
4806 install_sh
="\${SHELL} $am_aux_dir/install-sh"
4810 # Installed binaries are usually stripped using `strip' when the user
4811 # run `make install-strip'. However `strip' might not be the right
4812 # tool to use in cross-compilation environments, therefore Automake
4813 # will honor the `STRIP' environment variable to overrule this program.
4814 if test "$cross_compiling" != no
; then
4815 if test -n "$ac_tool_prefix"; then
4816 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4817 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4819 $as_echo_n "checking for $ac_word... " >&6; }
4820 if test "${ac_cv_prog_STRIP+set}" = set; then :
4821 $as_echo_n "(cached) " >&6
4823 if test -n "$STRIP"; then
4824 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4826 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4830 test -z "$as_dir" && as_dir
=.
4831 for ac_exec_ext
in '' $ac_executable_extensions; do
4832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4833 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4843 STRIP
=$ac_cv_prog_STRIP
4844 if test -n "$STRIP"; then
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4846 $as_echo "$STRIP" >&6; }
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4849 $as_echo "no" >&6; }
4854 if test -z "$ac_cv_prog_STRIP"; then
4856 # Extract the first word of "strip", so it can be a program name with args.
4857 set dummy strip
; ac_word
=$2
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4859 $as_echo_n "checking for $ac_word... " >&6; }
4860 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4861 $as_echo_n "(cached) " >&6
4863 if test -n "$ac_ct_STRIP"; then
4864 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
4866 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4870 test -z "$as_dir" && as_dir
=.
4871 for ac_exec_ext
in '' $ac_executable_extensions; do
4872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4873 ac_cv_prog_ac_ct_STRIP
="strip"
4874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4883 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4884 if test -n "$ac_ct_STRIP"; then
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4886 $as_echo "$ac_ct_STRIP" >&6; }
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4889 $as_echo "no" >&6; }
4892 if test "x$ac_ct_STRIP" = x
; then
4895 case $cross_compiling:$ac_tool_warned in
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4899 ac_tool_warned
=yes ;;
4904 STRIP
="$ac_cv_prog_STRIP"
4908 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
4912 for ac_dir
in ..
"$srcdir"/..
; do
4913 for ac_t
in install-sh
install.sh shtool
; do
4914 if test -f "$ac_dir/$ac_t"; then
4916 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4921 if test -z "$ac_aux_dir"; then
4922 as_fn_error
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4925 # These three variables are undocumented and unsupported,
4926 # and are intended to be withdrawn in a future Autoconf release.
4927 # They can cause serious problems if a builder's source tree is in a directory
4928 # whose full name contains unusual characters.
4929 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4930 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4931 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4935 test "$program_prefix" != NONE
&&
4936 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4937 # Use a double $ so make ignores it.
4938 test "$program_suffix" != NONE
&&
4939 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4940 # Double any \ or $.
4941 # By default was `s,x,x', remove it if useless.
4942 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4943 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4946 # See if we are building with C++, and substitute COMPILER.
4948 # Check whether --enable-build-with-cxx was given.
4949 if test "${enable_build_with_cxx+set}" = set; then :
4950 enableval
=$enable_build_with_cxx; case $enableval in
4954 as_fn_error
"bad value $enableval for --enable-build-with-cxx" "$LINENO" 5 ;;
4957 enable_build_with_cxx
=no
4961 if test "$enable_build_with_cxx" = "yes"; then
4962 # We're using -fpermissive as shortcut for now.
4963 COMPILER
='$(CXX) -fpermissive'
4970 # Dependency checking.
4971 rm -rf .tst
2>/dev
/null
4972 mkdir .tst
2>/dev
/null
4973 if test -d .tst
; then
4978 rmdir .tst
2>/dev
/null
4980 DEPDIR
="${am__leading_dot}deps"
4982 ac_config_commands
="$ac_config_commands depdir"
4985 depcc
="$CC" am_compiler_list
=
4987 am_depcomp
=$ac_aux_dir/depcomp
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4989 $as_echo_n "checking dependency style of $depcc... " >&6; }
4990 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4991 $as_echo_n "(cached) " >&6
4993 if test -f "$am_depcomp"; then
4994 # We make a subdir and do the tests there. Otherwise we can end up
4995 # making bogus files that we don't know about and never remove. For
4996 # instance it was reported that on HP-UX the gcc test will end up
4997 # making a dummy file named `D' -- because `-MD' means `put the output
5000 # Copy depcomp to subdir because otherwise we won't find it if we're
5001 # using a relative directory.
5002 cp "$am_depcomp" conftest.dir
5004 # We will build objects and dependencies in a subdirectory because
5005 # it helps to detect inapplicable dependency modes. For instance
5006 # both Tru64's cc and ICC support -MD to output dependencies as a
5007 # side effect of compilation, but ICC will put the dependencies in
5008 # the current directory while Tru64 will put them in the object
5012 am_cv_CC_dependencies_compiler_type
=none
5013 if test "$am_compiler_list" = ""; then
5014 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5016 for depmode
in $am_compiler_list; do
5017 if test $depmode = none
; then break; fi
5019 $as_echo "$as_me:$LINENO: trying $depmode" >&5
5020 # Setup a source with many dependencies, because some compilers
5021 # like to wrap large dependency lists on column 80 (with \), and
5022 # we should not choose a depcomp mode which is confused by this.
5024 # We need to recreate these files for each test, as the compiler may
5025 # overwrite some of them when testing with obscure command lines.
5026 # This happens at least with the AIX C compiler.
5028 for i
in 1 2 3 4 5 6; do
5029 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5030 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5031 # Solaris 8's {/usr,}/bin/sh.
5032 touch sub
/conftst
$i.h
5034 echo "include sub/conftest.Po" > confmf
5036 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5037 # mode. It turns out that the SunPro C++ compiler does not properly
5038 # handle `-M -o', and we need to detect this.
5039 depcmd
="depmode=$depmode \
5040 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5041 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5042 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
5043 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
5044 if env
$depcmd > conftest.err
2>&1 &&
5045 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
5046 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
5047 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
5048 # icc doesn't choke on unknown options, it will just issue warnings
5049 # or remarks (even with -Werror). So we grep stderr for any message
5050 # that says an option was ignored or not supported.
5051 # When given -MP, icc 7.0 and 7.1 complain thusly:
5052 # icc: Command line warning: ignoring option '-M'; no argument required
5053 # The diagnosis changed in icc 8.0:
5054 # icc: Command line remark: option '-MP' not supported
5055 if (grep 'ignoring option' conftest.err ||
5056 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5057 am_cv_CC_dependencies_compiler_type
=$depmode
5058 $as_echo "$as_me:$LINENO: success" >&5
5062 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
5063 sed -e 's/^/| /' < conftest.err
>&5
5069 am_cv_CC_dependencies_compiler_type
=none
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5074 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5075 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
5076 then as_fn_error
"no usable dependency style found" "$LINENO" 5
5077 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5082 # Check for the 'make' the user wants to use.
5085 # Extract the first word of "$ac_prog", so it can be a program name with args.
5086 set dummy
$ac_prog; ac_word
=$2
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5088 $as_echo_n "checking for $ac_word... " >&6; }
5089 if test "${ac_cv_prog_MAKE+set}" = set; then :
5090 $as_echo_n "(cached) " >&6
5092 if test -n "$MAKE"; then
5093 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
5095 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5099 test -z "$as_dir" && as_dir
=.
5100 for ac_exec_ext
in '' $ac_executable_extensions; do
5101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5102 ac_cv_prog_MAKE
="$ac_prog"
5103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5112 MAKE
=$ac_cv_prog_MAKE
5113 if test -n "$MAKE"; then
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5115 $as_echo "$MAKE" >&6; }
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; }
5122 test -n "$MAKE" && break
5126 case "`$MAKE --version 2>&1 | sed 1q`" in
5131 if test "$MAKE_IS_GNU" = yes; then
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5140 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5142 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5143 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5144 $as_echo_n "(cached) " >&6
5146 cat >conftest.
make <<\_ACEOF
5149 @
echo '@@@%%%=$(MAKE)=@@@%%%'
5151 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5152 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5154 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
5156 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
5160 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5162 $as_echo "yes" >&6; }
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5166 $as_echo "no" >&6; }
5167 SET_MAKE
="MAKE=${MAKE-make}"
5171 gnulib_extra_configure_args
=
5172 # If large-file support is disabled, make sure gnulib does the same.
5173 if test "$enable_largefile" = no
; then
5174 gnulib_extra_configure_args
="$gnulib_extra_configure_args --disable-largefile"
5177 # Configure gnulib. We need to build gnulib under some other
5178 # directory not "gnulib", to avoid the problem of both GDB and
5179 # GDBserver wanting to build it in the same directory, when building
5180 # in the source dir.
5183 in_build
="build-gnulib"
5184 in_extra_args
="$gnulib_extra_configure_args"
5186 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
5187 # so they do not pile up.
5188 ac_sub_configure_args
=
5190 eval "set x $ac_configure_args"
5194 if test -n "$ac_prev"; then
5199 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
5200 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
5201 ac_prev
=cache_file
;;
5202 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
5203 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
5206 --config-cache |
-C)
5208 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
5210 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
5212 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
5214 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
5216 --disable-option-checking)
5220 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5222 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
5226 # Always prepend --prefix to ensure using the same prefix
5227 # in subdir configurations.
5228 ac_arg
="--prefix=$prefix"
5230 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5232 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
5235 if test "$silent" = yes; then
5236 ac_sub_configure_args
="--silent $ac_sub_configure_args"
5239 # Always prepend --disable-option-checking to silence warnings, since
5240 # different subdirs can have different --enable and --with options.
5241 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
5246 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
5247 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
5248 $as_echo "$ac_msg" >&6
5249 as_dir
="$ac_dir"; as_fn_mkdir_p
5253 ac_srcdir
=$srcdir/$in_src ;;
5255 ac_srcdir
=..
/$srcdir/$in_src ;;
5260 ac_sub_configure
=$ac_srcdir/configure
5262 # Make the cache file name correct relative to the subdirectory.
5264 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
5266 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
5269 if test -n "$in_extra_args"; then
5270 # Add the extra args at the end.
5271 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
5274 { $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
5275 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
5276 # The eval makes quoting arguments work.
5277 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
5278 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
5279 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
5295 # If we haven't got the data from the intl directory,
5296 # assume NLS is disabled.
5305 if test -f ..
/intl
/config.intl
; then
5306 . ..
/intl
/config.intl
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5309 $as_echo_n "checking whether NLS is requested... " >&6; }
5310 if test x
"$USE_NLS" != xyes
; then
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5312 $as_echo "no" >&6; }
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5315 $as_echo "yes" >&6; }
5317 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
5321 $as_echo_n "checking for catalogs to be installed... " >&6; }
5322 # Look for .po and .gmo files in the source directory.
5325 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
5326 # If there aren't any .gmo files the shell will give us the
5327 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5329 case "$cat" in *\
**)
5332 # The quadruple backslash is collapsed to a double backslash
5333 # by the backticks, then collapsed again by the double quotes,
5334 # leaving us with one backslash in the sed expression (right
5335 # before the dot that mustn't act as a wildcard).
5336 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5337 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
5338 # The user is allowed to set LINGUAS to a list of languages to
5339 # install catalogs for. If it's empty that means "all of them."
5340 if test "x$LINGUAS" = x
; then
5341 CATALOGS
="$CATALOGS $cat"
5342 XLINGUAS
="$XLINGUAS $lang"
5344 case "$LINGUAS" in *$lang*)
5345 CATALOGS
="$CATALOGS $cat"
5346 XLINGUAS
="$XLINGUAS $lang"
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
5353 $as_echo "$LINGUAS" >&6; }
5366 localedir
='${datadir}/locale'
5369 if test x
"$USE_NLS" = xyes
; then
5370 CONFIG_ALL
="$CONFIG_ALL all-po"
5371 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
5372 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
5373 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
5376 GNULIB
=build-gnulib
/import
5378 # For Makefile dependencies.
5380 if test x
"$STDINT_H" != x
; then
5381 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
5387 cat >>confdefs.h
<<_ACEOF
5388 #define PACKAGE "$PACKAGE"
5393 # We never need to detect it in this sub-configure.
5394 # But preserve it for config.status --recheck.
5398 MAKEINFO_EXTRA_FLAGS
=""
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
5400 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
5401 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
5402 $as_echo_n "(cached) " >&6
5404 echo '@clicksequence{a @click{} b}' >conftest.texinfo
5405 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
5406 gdb_cv_have_makeinfo_click
=yes
5408 gdb_cv_have_makeinfo_click
=no
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
5412 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
5413 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
5414 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
5420 # Check whether --with-separate-debug-dir was given.
5421 if test "${with_separate_debug_dir+set}" = set; then :
5422 withval
=$with_separate_debug_dir;
5425 DEBUGDIR
=${libdir}/debug
5429 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5430 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5431 ac_define_dir
=`eval echo $DEBUGDIR`
5432 ac_define_dir
=`eval echo $ac_define_dir`
5434 cat >>confdefs.h
<<_ACEOF
5435 #define DEBUGDIR "$ac_define_dir"
5441 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
5442 if test "x$prefix" = xNONE
; then
5443 test_prefix
=/usr
/local
5448 test_prefix
=$exec_prefix
5451 case ${ac_define_dir} in
5452 "${test_prefix}"|
"${test_prefix}/"*|\
5453 '${exec_prefix}'|
'${exec_prefix}/'*)
5458 cat >>confdefs.h
<<_ACEOF
5459 #define DEBUGDIR_RELOCATABLE $value
5465 # We can't pass paths as command line arguments.
5466 # Mingw32 tries to be clever and will convert the paths for us.
5467 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
5468 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
5469 # This breaks GDB's relocatable path conversions since paths passed in
5470 # config.h would not get so translated, the path prefixes no longer match.
5472 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5473 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5474 ac_define_dir
=`eval echo $bindir`
5475 ac_define_dir
=`eval echo $ac_define_dir`
5477 cat >>confdefs.h
<<_ACEOF
5478 #define BINDIR "$ac_define_dir"
5483 # GDB's datadir relocation
5487 # Check whether --with-gdb-datadir was given.
5488 if test "${with_gdb_datadir+set}" = set; then :
5489 withval
=$with_gdb_datadir;
5490 GDB_DATADIR
=$withval
5492 GDB_DATADIR
=${datadir}/gdb
5496 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5497 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5498 ac_define_dir
=`eval echo $GDB_DATADIR`
5499 ac_define_dir
=`eval echo $ac_define_dir`
5501 cat >>confdefs.h
<<_ACEOF
5502 #define GDB_DATADIR "$ac_define_dir"
5508 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
5509 if test "x$prefix" = xNONE
; then
5510 test_prefix
=/usr
/local
5515 test_prefix
=$exec_prefix
5518 case ${ac_define_dir} in
5519 "${test_prefix}"|
"${test_prefix}/"*|\
5520 '${exec_prefix}'|
'${exec_prefix}/'*)
5525 cat >>confdefs.h
<<_ACEOF
5526 #define GDB_DATADIR_RELOCATABLE $value
5533 # Check whether --with-relocated-sources was given.
5534 if test "${with_relocated_sources+set}" = set; then :
5535 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
5537 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5538 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5539 ac_define_dir
=`eval echo $reloc_srcdir`
5540 ac_define_dir
=`eval echo $ac_define_dir`
5542 cat >>confdefs.h
<<_ACEOF
5543 #define RELOC_SRCDIR "$ac_define_dir"
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
5552 $as_echo_n "checking for default auto-load directory... " >&6; }
5554 # Check whether --with-auto-load-dir was given.
5555 if test "${with_auto_load_dir+set}" = set; then :
5556 withval
=$with_auto_load_dir;
5558 with_auto_load_dir
='$debugdir:$datadir/auto-load'
5561 escape_dir
=`echo $with_auto_load_dir | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5563 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5564 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5565 ac_define_dir
=`eval echo $escape_dir`
5566 ac_define_dir
=`eval echo $ac_define_dir`
5568 cat >>confdefs.h
<<_ACEOF
5569 #define AUTO_LOAD_DIR "$ac_define_dir"
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
5574 $as_echo "$with_auto_load_dir" >&6; }
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
5577 $as_echo_n "checking for default auto-load safe-path... " >&6; }
5579 # Check whether --with-auto-load-safe-path was given.
5580 if test "${with_auto_load_safe_path+set}" = set; then :
5581 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
5582 with_auto_load_safe_path
="/"
5585 with_auto_load_safe_path
="$with_auto_load_dir"
5588 escape_dir
=`echo $with_auto_load_safe_path | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5590 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5591 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5592 ac_define_dir
=`eval echo $escape_dir`
5593 ac_define_dir
=`eval echo $ac_define_dir`
5595 cat >>confdefs.h
<<_ACEOF
5596 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
5601 $as_echo "$with_auto_load_safe_path" >&6; }
5605 subdirs
="$subdirs testsuite"
5608 # Check whether to support alternative target configurations
5609 # Check whether --enable-targets was given.
5610 if test "${enable_targets+set}" = set; then :
5611 enableval
=$enable_targets; case "${enableval}" in
5612 yes |
"") as_fn_error
"enable-targets option must specify target names or 'all'" "$LINENO" 5
5614 no
) enable_targets
= ;;
5615 *) enable_targets
=$enableval ;;
5620 # Check whether to enable 64-bit support on 32-bit hosts
5621 # Check whether --enable-64-bit-bfd was given.
5622 if test "${enable_64_bit_bfd+set}" = set; then :
5623 enableval
=$enable_64_bit_bfd; case "${enableval}" in
5626 *) as_fn_error
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
5632 # Provide defaults for some variables set by the per-host and per-target
5634 gdb_host_obs
=posix-hdep.o
5636 if test "${target}" = "${host}"; then
5642 .
$srcdir/configure.
host
5644 # Add in the common host objects.
5645 .
$srcdir/common
/common.
host
5646 gdb_host_obs
="$gdb_host_obs $common_host_obs"
5648 # Accumulate some settings from configure.tgt over all enabled targets
5652 HAVE_NATIVE_GCORE_TARGET
=
5654 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5656 if test "$targ_alias" = "all"; then
5659 # Canonicalize the secondary target names.
5660 result
=`$ac_config_sub $targ_alias 2>/dev/null`
5661 if test -n "$result"; then
5667 .
${srcdir}/configure.tgt
5669 if test -z "${gdb_target_obs}"; then :
5670 as_fn_error
"configuration ${targ} is unsupported." "$LINENO" 5
5673 # Target-specific object files
5674 for i
in ${gdb_target_obs}; do
5675 case " $TARGET_OBS " in
5678 TARGET_OBS
="$TARGET_OBS ${i}"
5683 # Check whether this target needs 64-bit CORE_ADDR
5684 if test x
${want64} = xfalse
; then
5685 .
${srcdir}/..
/bfd
/config.bfd
5688 # Check whether this target is native and supports gcore.
5689 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
5690 && $gdb_have_gcore; then
5691 HAVE_NATIVE_GCORE_TARGET
=1
5696 if test x
${all_targets} = xtrue
; then
5698 # We want all 64-bit targets if we either:
5699 # - run on a 64-bit host or
5700 # - already require 64-bit support for some other target or
5701 # - the --enable-64-bit-bfd option was supplied
5702 # Otherwise we only support all 32-bit targets.
5704 # NOTE: This test must be in sync with the corresponding
5707 if test x
${want64} = xfalse
; then
5708 # The cast to long int works around a bug in the HP C Compiler
5709 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5710 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5711 # This bug is HP SR number 8606223364.
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5713 $as_echo_n "checking size of long... " >&6; }
5714 if test "${ac_cv_sizeof_long+set}" = set; then :
5715 $as_echo_n "(cached) " >&6
5717 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5720 if test "$ac_cv_type_long" = yes; then
5721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5723 { as_fn_set_status
77
5724 as_fn_error
"cannot compute sizeof (long)
5725 See \`config.log' for more details." "$LINENO" 5; }; }
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5733 $as_echo "$ac_cv_sizeof_long" >&6; }
5737 cat >>confdefs.h
<<_ACEOF
5738 #define SIZEOF_LONG $ac_cv_sizeof_long
5742 if test "x${ac_cv_sizeof_long}" = "x8"; then
5746 if test x
${want64} = xtrue
; then
5747 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
5749 TARGET_OBS
='$(ALL_TARGET_OBS)'
5756 # For other settings, only the main target counts.
5760 targ
=$target; .
${srcdir}/configure.tgt
5762 # Fetch the default architecture and default target vector from BFD.
5763 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
5765 # We only want the first architecture, so strip off the others if
5766 # there is more than one.
5767 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
5769 if test "x$targ_archs" != x
; then
5771 cat >>confdefs.h
<<_ACEOF
5772 #define DEFAULT_BFD_ARCH $targ_archs
5776 if test "x$targ_defvec" != x
; then
5778 cat >>confdefs.h
<<_ACEOF
5779 #define DEFAULT_BFD_VEC $targ_defvec
5784 # The CLI cannot be disabled yet, but may be in the future.
5787 # Check whether --enable-gdbcli was given.
5788 if test "${enable_gdbcli+set}" = set; then :
5789 enableval
=$enable_gdbcli; case $enableval in
5793 as_fn_error
"the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
5795 as_fn_error
"bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
5801 if test x
"$enable_gdbcli" = xyes
; then
5802 if test -d $srcdir/cli
; then
5803 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
5804 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
5805 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
5806 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
5811 # Check whether --enable-gdbmi was given.
5812 if test "${enable_gdbmi+set}" = set; then :
5813 enableval
=$enable_gdbmi; case $enableval in
5817 as_fn_error
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
5823 if test x
"$enable_gdbmi" = xyes
; then
5824 if test -d $srcdir/mi
; then
5825 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
5826 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
5827 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
5828 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
5833 # Check whether --enable-tui was given.
5834 if test "${enable_tui+set}" = set; then :
5835 enableval
=$enable_tui; case $enableval in
5839 as_fn_error
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
5847 # Check whether --enable-gdbtk was given.
5848 if test "${enable_gdbtk+set}" = set; then :
5849 enableval
=$enable_gdbtk; case $enableval in
5853 as_fn_error
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
5856 if test -d $srcdir/gdbtk
; then
5863 # We unconditionally disable gdbtk tests on selected platforms.
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
5867 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
5871 # Libunwind support for ia64.
5874 # Check whether --with-libunwind-ia64 was given.
5875 if test "${with_libunwind_ia64+set}" = set; then :
5876 withval
=$with_libunwind_ia64;
5878 with_libunwind_ia64
=auto
5882 # Backward compatibility option.
5883 if test "${with_libunwind+set}" = set; then
5884 if test x
"$with_libunwind_ia64" != xauto
; then
5885 as_fn_error
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
5888 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
5889 with_libunwind_ia64
="$with_libunwind"
5892 case "$with_libunwind_ia64" in
5896 for ac_header
in libunwind-ia64.h
5898 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5899 if test "x$ac_cv_header_libunwind_ia64_h" = x
""yes; then :
5900 cat >>confdefs.h
<<_ACEOF
5901 #define HAVE_LIBUNWIND_IA64_H 1
5908 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
5911 as_fn_error
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
5915 if test x
"$with_libunwind_ia64" = xyes
; then
5916 for ac_header
in libunwind-ia64.h
5918 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5919 if test "x$ac_cv_header_libunwind_ia64_h" = x
""yes; then :
5920 cat >>confdefs.h
<<_ACEOF
5921 #define HAVE_LIBUNWIND_IA64_H 1
5928 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
5929 as_fn_error
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
5931 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
5932 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
5933 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
5938 # Check whether --with-curses was given.
5939 if test "${with_curses+set}" = set; then :
5940 withval
=$with_curses; opt_curses
=$withval
5945 if test "$opt_curses" = "yes"; then
5949 # Profiling support.
5950 # Check whether --enable-profiling was given.
5951 if test "${enable_profiling+set}" = set; then :
5952 enableval
=$enable_profiling; case $enableval in
5956 as_fn_error
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
5963 for ac_func
in monstartup _mcleanup
5965 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5966 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5967 eval as_val
=\$
$as_ac_var
5968 if test "x$as_val" = x
""yes; then :
5969 cat >>confdefs.h
<<_ACEOF
5970 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
5977 $as_echo_n "checking for _etext... " >&6; }
5978 if test "${ac_cv_var__etext+set}" = set; then :
5979 $as_echo_n "(cached) " >&6
5981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5982 /* end confdefs.h. */
5994 if ac_fn_c_try_link
"$LINENO"; then :
5995 ac_cv_var__etext
=yes
5999 rm -f core conftest.err conftest.
$ac_objext \
6000 conftest
$ac_exeext conftest.
$ac_ext
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
6003 $as_echo "$ac_cv_var__etext" >&6; }
6004 if test $ac_cv_var__etext = yes; then
6006 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
6010 $as_echo_n "checking for etext... " >&6; }
6011 if test "${ac_cv_var_etext+set}" = set; then :
6012 $as_echo_n "(cached) " >&6
6014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6015 /* end confdefs.h. */
6027 if ac_fn_c_try_link
"$LINENO"; then :
6032 rm -f core conftest.err conftest.
$ac_objext \
6033 conftest
$ac_exeext conftest.
$ac_ext
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
6036 $as_echo "$ac_cv_var_etext" >&6; }
6037 if test $ac_cv_var_etext = yes; then
6039 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
6042 if test "$enable_profiling" = yes ; then
6043 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
6044 as_fn_error
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
6047 OLD_CFLAGS
="$CFLAGS"
6048 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
6051 $as_echo_n "checking whether $CC supports -pg... " >&6; }
6052 if test "${ac_cv_cc_supports_pg+set}" = set; then :
6053 $as_echo_n "(cached) " >&6
6055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6056 /* end confdefs.h. */
6066 if ac_fn_c_try_compile
"$LINENO"; then :
6067 ac_cv_cc_supports_pg
=yes
6069 ac_cv_cc_supports_pg
=no
6071 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
6074 $as_echo "$ac_cv_cc_supports_pg" >&6; }
6076 if test $ac_cv_cc_supports_pg = no
; then
6077 as_fn_error
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
6080 CFLAGS
="$OLD_CFLAGS"
6085 # Check whether --with-pkgversion was given.
6086 if test "${with_pkgversion+set}" = set; then :
6087 withval
=$with_pkgversion; case "$withval" in
6088 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
6090 *) PKGVERSION
="($withval) " ;;
6101 # Check whether --with-bugurl was given.
6102 if test "${with_bugurl+set}" = set; then :
6103 withval
=$with_bugurl; case "$withval" in
6104 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
6107 *) BUGURL
="$withval"
6111 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
6121 REPORT_BUGS_TO
="<$BUGURL>"
6122 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
6129 cat >>confdefs.h
<<_ACEOF
6130 #define PKGVERSION "$PKGVERSION"
6134 cat >>confdefs.h
<<_ACEOF
6135 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
6139 # --------------------- #
6140 # Checks for programs. #
6141 # --------------------- #
6143 for ac_prog
in gawk mawk nawk
awk
6145 # Extract the first word of "$ac_prog", so it can be a program name with args.
6146 set dummy
$ac_prog; ac_word
=$2
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6148 $as_echo_n "checking for $ac_word... " >&6; }
6149 if test "${ac_cv_prog_AWK+set}" = set; then :
6150 $as_echo_n "(cached) " >&6
6152 if test -n "$AWK"; then
6153 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
6155 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6159 test -z "$as_dir" && as_dir
=.
6160 for ac_exec_ext
in '' $ac_executable_extensions; do
6161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6162 ac_cv_prog_AWK
="$ac_prog"
6163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6173 if test -n "$AWK"; then
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6175 $as_echo "$AWK" >&6; }
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6178 $as_echo "no" >&6; }
6182 test -n "$AWK" && break
6185 # Find a good install program. We prefer a C program (faster),
6186 # so one script is as good as another. But avoid the broken or
6187 # incompatible versions:
6188 # SysV /etc/install, /usr/sbin/install
6189 # SunOS /usr/etc/install
6190 # IRIX /sbin/install
6192 # AmigaOS /C/install, which installs bootblocks on floppy discs
6193 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6194 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6195 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6196 # OS/2's system install, which has a completely different semantic
6197 # ./install, which can be erroneously created by make from ./install.sh.
6198 # Reject install programs that cannot install multiple files.
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6200 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6201 if test -z "$INSTALL"; then
6202 if test "${ac_cv_path_install+set}" = set; then :
6203 $as_echo_n "(cached) " >&6
6205 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6209 test -z "$as_dir" && as_dir
=.
6210 # Account for people who put trailing slashes in PATH elements.
6211 case $as_dir/ in #((
6212 .
/ | .
// |
/[cC
]/* | \
6213 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
6214 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
6217 # OSF1 and SCO ODT 3.0 have their own names for install.
6218 # Don't use installbsd from OSF since it installs stuff as root
6220 for ac_prog
in ginstall scoinst
install; do
6221 for ac_exec_ext
in '' $ac_executable_extensions; do
6222 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6223 if test $ac_prog = install &&
6224 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6225 # AIX install. It has an incompatible calling convention.
6227 elif test $ac_prog = install &&
6228 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6229 # program-specific install script used by HP pwplus--don't use.
6232 rm -rf conftest.one conftest.two conftest.dir
6233 echo one
> conftest.one
6234 echo two
> conftest.two
6236 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
6237 test -s conftest.one
&& test -s conftest.two
&&
6238 test -s conftest.dir
/conftest.one
&&
6239 test -s conftest.dir
/conftest.two
6241 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
6254 rm -rf conftest.one conftest.two conftest.dir
6257 if test "${ac_cv_path_install+set}" = set; then
6258 INSTALL
=$ac_cv_path_install
6260 # As a last resort, use the slow shell script. Don't cache a
6261 # value for INSTALL within a source directory, because that will
6262 # break other packages using the cache if that directory is
6263 # removed, or if the value is a relative name.
6264 INSTALL
=$ac_install_sh
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6268 $as_echo "$INSTALL" >&6; }
6270 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6271 # It thinks the first close brace ends the variable substitution.
6272 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
6274 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
6276 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6279 $as_echo_n "checking whether ln -s works... " >&6; }
6281 if test "$LN_S" = "ln -s"; then
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6283 $as_echo "yes" >&6; }
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6286 $as_echo "no, using $LN_S" >&6; }
6289 if test -n "$ac_tool_prefix"; then
6290 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6291 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6293 $as_echo_n "checking for $ac_word... " >&6; }
6294 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6295 $as_echo_n "(cached) " >&6
6297 if test -n "$RANLIB"; then
6298 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6300 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6304 test -z "$as_dir" && as_dir
=.
6305 for ac_exec_ext
in '' $ac_executable_extensions; do
6306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6307 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6317 RANLIB
=$ac_cv_prog_RANLIB
6318 if test -n "$RANLIB"; then
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6320 $as_echo "$RANLIB" >&6; }
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6323 $as_echo "no" >&6; }
6328 if test -z "$ac_cv_prog_RANLIB"; then
6329 ac_ct_RANLIB
=$RANLIB
6330 # Extract the first word of "ranlib", so it can be a program name with args.
6331 set dummy ranlib
; ac_word
=$2
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6333 $as_echo_n "checking for $ac_word... " >&6; }
6334 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6335 $as_echo_n "(cached) " >&6
6337 if test -n "$ac_ct_RANLIB"; then
6338 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6340 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6344 test -z "$as_dir" && as_dir
=.
6345 for ac_exec_ext
in '' $ac_executable_extensions; do
6346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6347 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6357 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6358 if test -n "$ac_ct_RANLIB"; then
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6360 $as_echo "$ac_ct_RANLIB" >&6; }
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6363 $as_echo "no" >&6; }
6366 if test "x$ac_ct_RANLIB" = x
; then
6369 case $cross_compiling:$ac_tool_warned in
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6373 ac_tool_warned
=yes ;;
6375 RANLIB
=$ac_ct_RANLIB
6378 RANLIB
="$ac_cv_prog_RANLIB"
6381 for ac_prog
in 'bison -y' byacc
6383 # Extract the first word of "$ac_prog", so it can be a program name with args.
6384 set dummy
$ac_prog; ac_word
=$2
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6386 $as_echo_n "checking for $ac_word... " >&6; }
6387 if test "${ac_cv_prog_YACC+set}" = set; then :
6388 $as_echo_n "(cached) " >&6
6390 if test -n "$YACC"; then
6391 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
6393 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6397 test -z "$as_dir" && as_dir
=.
6398 for ac_exec_ext
in '' $ac_executable_extensions; do
6399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6400 ac_cv_prog_YACC
="$ac_prog"
6401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6410 YACC
=$ac_cv_prog_YACC
6411 if test -n "$YACC"; then
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6413 $as_echo "$YACC" >&6; }
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6416 $as_echo "no" >&6; }
6420 test -n "$YACC" && break
6422 test -n "$YACC" || YACC
="yacc"
6425 if test -n "$ac_tool_prefix"; then
6426 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6427 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6429 $as_echo_n "checking for $ac_word... " >&6; }
6430 if test "${ac_cv_prog_AR+set}" = set; then :
6431 $as_echo_n "(cached) " >&6
6433 if test -n "$AR"; then
6434 ac_cv_prog_AR
="$AR" # Let the user override the test.
6436 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6440 test -z "$as_dir" && as_dir
=.
6441 for ac_exec_ext
in '' $ac_executable_extensions; do
6442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6443 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6454 if test -n "$AR"; then
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6456 $as_echo "$AR" >&6; }
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6459 $as_echo "no" >&6; }
6464 if test -z "$ac_cv_prog_AR"; then
6466 # Extract the first word of "ar", so it can be a program name with args.
6467 set dummy
ar; ac_word
=$2
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6469 $as_echo_n "checking for $ac_word... " >&6; }
6470 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6471 $as_echo_n "(cached) " >&6
6473 if test -n "$ac_ct_AR"; then
6474 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6476 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6480 test -z "$as_dir" && as_dir
=.
6481 for ac_exec_ext
in '' $ac_executable_extensions; do
6482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6483 ac_cv_prog_ac_ct_AR
="ar"
6484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6493 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6494 if test -n "$ac_ct_AR"; then
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6496 $as_echo "$ac_ct_AR" >&6; }
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6499 $as_echo "no" >&6; }
6502 if test "x$ac_ct_AR" = x
; then
6505 case $cross_compiling:$ac_tool_warned in
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6509 ac_tool_warned
=yes ;;
6517 if test -n "$ac_tool_prefix"; then
6518 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6519 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6521 $as_echo_n "checking for $ac_word... " >&6; }
6522 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6523 $as_echo_n "(cached) " >&6
6525 if test -n "$DLLTOOL"; then
6526 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
6528 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6532 test -z "$as_dir" && as_dir
=.
6533 for ac_exec_ext
in '' $ac_executable_extensions; do
6534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6535 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
6536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6545 DLLTOOL
=$ac_cv_prog_DLLTOOL
6546 if test -n "$DLLTOOL"; then
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6548 $as_echo "$DLLTOOL" >&6; }
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6551 $as_echo "no" >&6; }
6556 if test -z "$ac_cv_prog_DLLTOOL"; then
6557 ac_ct_DLLTOOL
=$DLLTOOL
6558 # Extract the first word of "dlltool", so it can be a program name with args.
6559 set dummy dlltool
; ac_word
=$2
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6561 $as_echo_n "checking for $ac_word... " >&6; }
6562 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6563 $as_echo_n "(cached) " >&6
6565 if test -n "$ac_ct_DLLTOOL"; then
6566 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
6568 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6572 test -z "$as_dir" && as_dir
=.
6573 for ac_exec_ext
in '' $ac_executable_extensions; do
6574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6575 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
6576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6585 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
6586 if test -n "$ac_ct_DLLTOOL"; then
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6588 $as_echo "$ac_ct_DLLTOOL" >&6; }
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6591 $as_echo "no" >&6; }
6594 if test "x$ac_ct_DLLTOOL" = x
; then
6597 case $cross_compiling:$ac_tool_warned in
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6601 ac_tool_warned
=yes ;;
6603 DLLTOOL
=$ac_ct_DLLTOOL
6606 DLLTOOL
="$ac_cv_prog_DLLTOOL"
6609 if test -n "$ac_tool_prefix"; then
6610 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6611 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6613 $as_echo_n "checking for $ac_word... " >&6; }
6614 if test "${ac_cv_prog_WINDRES+set}" = set; then :
6615 $as_echo_n "(cached) " >&6
6617 if test -n "$WINDRES"; then
6618 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
6620 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6624 test -z "$as_dir" && as_dir
=.
6625 for ac_exec_ext
in '' $ac_executable_extensions; do
6626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6627 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
6628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6637 WINDRES
=$ac_cv_prog_WINDRES
6638 if test -n "$WINDRES"; then
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6640 $as_echo "$WINDRES" >&6; }
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6643 $as_echo "no" >&6; }
6648 if test -z "$ac_cv_prog_WINDRES"; then
6649 ac_ct_WINDRES
=$WINDRES
6650 # Extract the first word of "windres", so it can be a program name with args.
6651 set dummy windres
; ac_word
=$2
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6653 $as_echo_n "checking for $ac_word... " >&6; }
6654 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
6655 $as_echo_n "(cached) " >&6
6657 if test -n "$ac_ct_WINDRES"; then
6658 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
6660 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6664 test -z "$as_dir" && as_dir
=.
6665 for ac_exec_ext
in '' $ac_executable_extensions; do
6666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6667 ac_cv_prog_ac_ct_WINDRES
="windres"
6668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6677 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
6678 if test -n "$ac_ct_WINDRES"; then
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6680 $as_echo "$ac_ct_WINDRES" >&6; }
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6683 $as_echo "no" >&6; }
6686 if test "x$ac_ct_WINDRES" = x
; then
6689 case $cross_compiling:$ac_tool_warned in
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6693 ac_tool_warned
=yes ;;
6695 WINDRES
=$ac_ct_WINDRES
6698 WINDRES
="$ac_cv_prog_WINDRES"
6704 # Needed for GNU Hurd hosts.
6705 if test -n "$ac_tool_prefix"; then
6706 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
6707 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6709 $as_echo_n "checking for $ac_word... " >&6; }
6710 if test "${ac_cv_prog_MIG+set}" = set; then :
6711 $as_echo_n "(cached) " >&6
6713 if test -n "$MIG"; then
6714 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
6716 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6720 test -z "$as_dir" && as_dir
=.
6721 for ac_exec_ext
in '' $ac_executable_extensions; do
6722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6723 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
6724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6734 if test -n "$MIG"; then
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
6736 $as_echo "$MIG" >&6; }
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6739 $as_echo "no" >&6; }
6744 if test -z "$ac_cv_prog_MIG"; then
6746 # Extract the first word of "mig", so it can be a program name with args.
6747 set dummy mig
; ac_word
=$2
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6749 $as_echo_n "checking for $ac_word... " >&6; }
6750 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
6751 $as_echo_n "(cached) " >&6
6753 if test -n "$ac_ct_MIG"; then
6754 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
6756 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6760 test -z "$as_dir" && as_dir
=.
6761 for ac_exec_ext
in '' $ac_executable_extensions; do
6762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6763 ac_cv_prog_ac_ct_MIG
="mig"
6764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6773 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
6774 if test -n "$ac_ct_MIG"; then
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
6776 $as_echo "$ac_ct_MIG" >&6; }
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6779 $as_echo "no" >&6; }
6782 if test "x$ac_ct_MIG" = x
; then
6785 case $cross_compiling:$ac_tool_warned in
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6789 ac_tool_warned
=yes ;;
6794 MIG
="$ac_cv_prog_MIG"
6797 if test x
"$MIG" = x
; then
6798 as_fn_error
"MIG not found but required for $host hosts" "$LINENO" 5
6803 # ---------------------- #
6804 # Checks for libraries. #
6805 # ---------------------- #
6807 # We might need to link with -lm; most simulators need it.
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6809 $as_echo_n "checking for main in -lm... " >&6; }
6810 if test "${ac_cv_lib_m_main+set}" = set; then :
6811 $as_echo_n "(cached) " >&6
6813 ac_check_lib_save_LIBS
=$LIBS
6815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6816 /* end confdefs.h. */
6827 if ac_fn_c_try_link
"$LINENO"; then :
6828 ac_cv_lib_m_main
=yes
6832 rm -f core conftest.err conftest.
$ac_objext \
6833 conftest
$ac_exeext conftest.
$ac_ext
6834 LIBS
=$ac_check_lib_save_LIBS
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
6837 $as_echo "$ac_cv_lib_m_main" >&6; }
6838 if test "x$ac_cv_lib_m_main" = x
""yes; then :
6839 cat >>confdefs.h
<<_ACEOF
6848 # We need to link with -lw to get `wctype' on Solaris before Solaris
6849 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
6850 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
6851 # is known to have this problem). Therefore we avoid libw if we can.
6852 ac_fn_c_check_func
"$LINENO" "wctype" "ac_cv_func_wctype"
6853 if test "x$ac_cv_func_wctype" = x
""yes; then :
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
6857 $as_echo_n "checking for wctype in -lw... " >&6; }
6858 if test "${ac_cv_lib_w_wctype+set}" = set; then :
6859 $as_echo_n "(cached) " >&6
6861 ac_check_lib_save_LIBS
=$LIBS
6863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6864 /* end confdefs.h. */
6866 /* Override any GCC internal prototype to avoid an error.
6867 Use char because int might match the return type of a GCC
6868 builtin and then its argument prototype would still apply. */
6881 if ac_fn_c_try_link
"$LINENO"; then :
6882 ac_cv_lib_w_wctype
=yes
6884 ac_cv_lib_w_wctype
=no
6886 rm -f core conftest.err conftest.
$ac_objext \
6887 conftest
$ac_exeext conftest.
$ac_ext
6888 LIBS
=$ac_check_lib_save_LIBS
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
6891 $as_echo "$ac_cv_lib_w_wctype" >&6; }
6892 if test "x$ac_cv_lib_w_wctype" = x
""yes; then :
6893 cat >>confdefs.h
<<_ACEOF
6904 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
6906 $as_echo_n "checking for library containing gethostbyname... " >&6; }
6907 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6908 $as_echo_n "(cached) " >&6
6910 ac_func_search_save_LIBS
=$LIBS
6911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6912 /* end confdefs.h. */
6914 /* Override any GCC internal prototype to avoid an error.
6915 Use char because int might match the return type of a GCC
6916 builtin and then its argument prototype would still apply. */
6920 char gethostbyname ();
6924 return gethostbyname ();
6929 for ac_lib
in '' nsl
; do
6930 if test -z "$ac_lib"; then
6931 ac_res
="none required"
6934 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6936 if ac_fn_c_try_link
"$LINENO"; then :
6937 ac_cv_search_gethostbyname
=$ac_res
6939 rm -f core conftest.err conftest.
$ac_objext \
6941 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6945 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6948 ac_cv_search_gethostbyname
=no
6951 LIBS
=$ac_func_search_save_LIBS
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
6954 $as_echo "$ac_cv_search_gethostbyname" >&6; }
6955 ac_res
=$ac_cv_search_gethostbyname
6956 if test "$ac_res" != no
; then :
6957 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6962 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
6964 $as_echo_n "checking for library containing socketpair... " >&6; }
6965 if test "${ac_cv_search_socketpair+set}" = set; then :
6966 $as_echo_n "(cached) " >&6
6968 ac_func_search_save_LIBS
=$LIBS
6969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h. */
6972 /* Override any GCC internal prototype to avoid an error.
6973 Use char because int might match the return type of a GCC
6974 builtin and then its argument prototype would still apply. */
6982 return socketpair ();
6987 for ac_lib
in '' socket
; do
6988 if test -z "$ac_lib"; then
6989 ac_res
="none required"
6992 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6994 if ac_fn_c_try_link
"$LINENO"; then :
6995 ac_cv_search_socketpair
=$ac_res
6997 rm -f core conftest.err conftest.
$ac_objext \
6999 if test "${ac_cv_search_socketpair+set}" = set; then :
7003 if test "${ac_cv_search_socketpair+set}" = set; then :
7006 ac_cv_search_socketpair
=no
7009 LIBS
=$ac_func_search_save_LIBS
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
7012 $as_echo "$ac_cv_search_socketpair" >&6; }
7013 ac_res
=$ac_cv_search_socketpair
7014 if test "$ac_res" != no
; then :
7015 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7020 # Link in zlib if we can. This allows us to read compressed debug sections.
7022 # Use the system's zlib library.
7023 zlibdir
="-L\$(top_builddir)/../zlib"
7024 zlibinc
="-I\$(top_srcdir)/../zlib"
7026 # Check whether --with-system-zlib was given.
7027 if test "${with_system_zlib+set}" = set; then :
7028 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
7039 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
7041 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
7042 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7043 $as_echo_n "(cached) " >&6
7045 ac_func_search_save_LIBS
=$LIBS
7046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7047 /* end confdefs.h. */
7049 /* Override any GCC internal prototype to avoid an error.
7050 Use char because int might match the return type of a GCC
7051 builtin and then its argument prototype would still apply. */
7055 char kinfo_getvmmap ();
7059 return kinfo_getvmmap ();
7064 for ac_lib
in '' util
; do
7065 if test -z "$ac_lib"; then
7066 ac_res
="none required"
7069 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7071 if ac_fn_c_try_link
"$LINENO"; then :
7072 ac_cv_search_kinfo_getvmmap
=$ac_res
7074 rm -f core conftest.err conftest.
$ac_objext \
7076 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7080 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7083 ac_cv_search_kinfo_getvmmap
=no
7086 LIBS
=$ac_func_search_save_LIBS
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
7089 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
7090 ac_res
=$ac_cv_search_kinfo_getvmmap
7091 if test "$ac_res" != no
; then :
7092 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7094 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
7102 # Check whether --with-libiconv-prefix was given.
7103 if test "${with_libiconv_prefix+set}" = set; then :
7104 withval
=$with_libiconv_prefix;
7105 for dir
in `echo "$withval" | tr : ' '`; do
7106 if test -d $dir/include
; then LIBICONV_INCLUDE
="-I$dir/include"; fi
7107 if test -d $dir/lib
; then LIBICONV_LIBDIR
="-L$dir/lib"; fi
7113 BUILD_LIBICONV_LIBDIRS
="../libiconv/lib/.libs ../libiconv/lib/_libs"
7114 BUILD_LIBICONV_INCLUDE
="-I../libiconv/include"
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7117 $as_echo_n "checking for iconv... " >&6; }
7118 if test "${am_cv_func_iconv+set}" = set; then :
7119 $as_echo_n "(cached) " >&6
7122 am_cv_func_iconv
="no, consider installing GNU libiconv"
7124 am_cv_use_build_libiconv
=no
7125 am_cv_build_libiconv_path
=
7127 # If libiconv is part of the build tree, then try using it over
7129 if test -d ..
/libiconv
; then
7130 for lib_dir
in $BUILD_LIBICONV_LIBDIRS; do
7131 am_save_LIBS
="$LIBS"
7132 am_save_CPPFLAGS
="$CPPFLAGS"
7133 LIBS
="$LIBS $lib_dir/libiconv.a"
7134 CPPFLAGS
="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
7135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7136 /* end confdefs.h. */
7142 iconv_t cd = iconv_open("","");
7143 iconv(cd,NULL,NULL,NULL,NULL);
7149 if ac_fn_c_try_link
"$LINENO"; then :
7150 am_cv_use_build_libiconv
=yes
7151 am_cv_build_libiconv_path
=$lib_dir/libiconv.a
7153 am_cv_func_iconv
=yes
7155 rm -f core conftest.err conftest.
$ac_objext \
7156 conftest
$ac_exeext conftest.
$ac_ext
7157 LIBS
="$am_save_LIBS"
7158 CPPFLAGS
="$am_save_CPPFLAGS"
7159 if test "$am_cv_use_build_libiconv" = "yes"; then
7165 # Next, try to find iconv in libc.
7166 if test "$am_cv_func_iconv" != yes; then
7167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7168 /* end confdefs.h. */
7174 iconv_t cd = iconv_open("","");
7175 iconv(cd,NULL,NULL,NULL,NULL);
7181 if ac_fn_c_try_link
"$LINENO"; then :
7182 am_cv_func_iconv
=yes
7184 rm -f core conftest.err conftest.
$ac_objext \
7185 conftest
$ac_exeext conftest.
$ac_ext
7188 # If iconv was not in libc, try -liconv. In this case, arrange to
7189 # look in the libiconv prefix, if it was specified by the user.
7190 if test "$am_cv_func_iconv" != yes; then
7191 am_save_CPPFLAGS
="$CPPFLAGS"
7192 am_save_LIBS
="$LIBS"
7193 if test -n "$LIBICONV_INCLUDE"; then
7194 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
7195 LIBS
="$LIBS $LIBICONV_LIBDIR"
7197 LIBS
="$LIBS -liconv"
7198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7199 /* end confdefs.h. */
7205 iconv_t cd = iconv_open("","");
7206 iconv(cd,NULL,NULL,NULL,NULL);
7212 if ac_fn_c_try_link
"$LINENO"; then :
7214 am_cv_func_iconv
=yes
7216 rm -f core conftest.err conftest.
$ac_objext \
7217 conftest
$ac_exeext conftest.
$ac_ext
7218 LIBS
="$am_save_LIBS"
7219 CPPFLAGS
="$am_save_CPPFLAGS"
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7224 $as_echo "$am_cv_func_iconv" >&6; }
7226 # Set the various flags based on the cache variables. We can't rely
7227 # on the flags to remain set from the above code, due to caching.
7229 if test "$am_cv_lib_iconv" = yes; then
7235 if test "$am_cv_use_build_libiconv" = yes; then
7236 LIBICONV
="$am_cv_build_libiconv_path"
7238 LIBICONV_INCLUDE
="$BUILD_LIBICONV_INCLUDE"
7240 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
7241 LIBS
="$LIBS $LIBICONV_LIBDIR $LIBICONV"
7243 if test "$am_cv_func_iconv" = yes; then
7245 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7248 $as_echo_n "checking for iconv declaration... " >&6; }
7249 if test "${am_cv_proto_iconv+set}" = set; then :
7250 $as_echo_n "(cached) " >&6
7253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7254 /* end confdefs.h. */
7262 #if defined(__STDC__) || defined(__cplusplus)
7263 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7276 if ac_fn_c_try_compile
"$LINENO"; then :
7277 am_cv_proto_iconv_arg1
=""
7279 am_cv_proto_iconv_arg1
="const"
7281 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7282 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);"
7285 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
7287 }$am_cv_proto_iconv" >&5
7289 }$am_cv_proto_iconv" >&6; }
7291 cat >>confdefs.h
<<_ACEOF
7292 #define ICONV_CONST $am_cv_proto_iconv_arg1
7298 # GDB may fork/exec the iconv program to get the list of supported character
7299 # sets. Allow the user to specify where to find it.
7300 # There are several factors affecting the choice of option name:
7301 # - There is already --with-libiconv-prefix but we can't use it, it specifies
7302 # the build-time location of libiconv files.
7303 # - The program we need to find is iconv, which comes with glibc. The user
7304 # doesn't necessarily have libiconv installed. Therefore naming this
7305 # --with-libiconv-foo feels wrong.
7306 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
7307 # defined to work on directories not files (though it really doesn't know
7309 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
7310 # with --with-libiconv-prefix.
7311 # Putting these together is why the option name is --with-iconv-bin.
7314 # Check whether --with-iconv-bin was given.
7315 if test "${with_iconv_bin+set}" = set; then :
7316 withval
=$with_iconv_bin; iconv_bin
="${withval}"
7318 cat >>confdefs.h
<<_ACEOF
7319 #define ICONV_BIN "${iconv_bin}"
7323 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
7324 if test "x$prefix" = xNONE
; then
7325 test_prefix
=/usr
/local
7330 test_prefix
=$exec_prefix
7333 case ${iconv_bin} in
7334 "${test_prefix}"|
"${test_prefix}/"*|\
7335 '${exec_prefix}'|
'${exec_prefix}/'*)
7340 cat >>confdefs.h
<<_ACEOF
7341 #define ICONV_BIN_RELOCATABLE $value
7349 # For the TUI, we need enhanced curses functionality.
7350 if test x
"$enable_tui" != xno
; then
7355 if test x
"$prefer_curses" = xyes
; then
7356 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
7357 # curses library because the latter might not provide all the
7358 # functionality we need. However, this leads to problems on systems
7359 # where the linker searches /usr/local/lib, but the compiler doesn't
7360 # search /usr/local/include, if ncurses is installed in /usr/local. A
7361 # default installation of ncurses on alpha*-dec-osf* will lead to such
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
7364 $as_echo_n "checking for library containing waddstr... " >&6; }
7365 if test "${ac_cv_search_waddstr+set}" = set; then :
7366 $as_echo_n "(cached) " >&6
7368 ac_func_search_save_LIBS
=$LIBS
7369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7370 /* end confdefs.h. */
7372 /* Override any GCC internal prototype to avoid an error.
7373 Use char because int might match the return type of a GCC
7374 builtin and then its argument prototype would still apply. */
7387 for ac_lib
in '' ncurses cursesX curses
; do
7388 if test -z "$ac_lib"; then
7389 ac_res
="none required"
7392 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7394 if ac_fn_c_try_link
"$LINENO"; then :
7395 ac_cv_search_waddstr
=$ac_res
7397 rm -f core conftest.err conftest.
$ac_objext \
7399 if test "${ac_cv_search_waddstr+set}" = set; then :
7403 if test "${ac_cv_search_waddstr+set}" = set; then :
7406 ac_cv_search_waddstr
=no
7409 LIBS
=$ac_func_search_save_LIBS
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
7412 $as_echo "$ac_cv_search_waddstr" >&6; }
7413 ac_res
=$ac_cv_search_waddstr
7414 if test "$ac_res" != no
; then :
7415 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7420 if test "$ac_cv_search_waddstr" != no
; then
7425 # Check whether we should enable the TUI, but only do so if we really
7427 if test x
"$enable_tui" != xno
; then
7428 if test -d $srcdir/tui
; then
7429 if test "$curses_found" != no
; then
7430 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
7431 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
7432 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
7433 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
7435 if test x
"$enable_tui" = xyes
; then
7436 as_fn_error
"no enhanced curses library found; disable TUI" "$LINENO" 5
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
7439 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
7445 # Since GDB uses Readline, we need termcap functionality. In many
7446 # cases this will be provided by the curses library, but some systems
7447 # have a seperate termcap library, or no curses library at all.
7451 if test -d $srcdir/libtermcap
; then
7452 LIBS
="../libtermcap/libtermcap.a $LIBS"
7453 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
7456 ac_cv_search_tgetent
="none required"
7459 if test x
"$curses_found" != xyes
; then
7460 ac_cv_search_tgetent
="none required"
7461 CONFIG_OBS
="$CONFIG_OBS stub-termcap.o"
7465 # These are the libraries checked by Readline.
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
7467 $as_echo_n "checking for library containing tgetent... " >&6; }
7468 if test "${ac_cv_search_tgetent+set}" = set; then :
7469 $as_echo_n "(cached) " >&6
7471 ac_func_search_save_LIBS
=$LIBS
7472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7473 /* end confdefs.h. */
7475 /* Override any GCC internal prototype to avoid an error.
7476 Use char because int might match the return type of a GCC
7477 builtin and then its argument prototype would still apply. */
7490 for ac_lib
in '' termcap tinfo curses ncurses
; do
7491 if test -z "$ac_lib"; then
7492 ac_res
="none required"
7495 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7497 if ac_fn_c_try_link
"$LINENO"; then :
7498 ac_cv_search_tgetent
=$ac_res
7500 rm -f core conftest.err conftest.
$ac_objext \
7502 if test "${ac_cv_search_tgetent+set}" = set; then :
7506 if test "${ac_cv_search_tgetent+set}" = set; then :
7509 ac_cv_search_tgetent
=no
7512 LIBS
=$ac_func_search_save_LIBS
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
7515 $as_echo "$ac_cv_search_tgetent" >&6; }
7516 ac_res
=$ac_cv_search_tgetent
7517 if test "$ac_res" != no
; then :
7518 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7523 if test "$ac_cv_search_tgetent" = no
; then
7524 as_fn_error
"no termcap library found" "$LINENO" 5
7528 # Check whether --with-system-readline was given.
7529 if test "${with_system_readline+set}" = set; then :
7530 withval
=$with_system_readline;
7534 if test "$with_system_readline" = yes; then
7538 READLINE_TEXI_INCFLAG
=
7540 READLINE
='$(READLINE_DIR)/libreadline.a'
7541 READLINE_DEPS
='$(READLINE)'
7542 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
7543 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
7550 # Generate jit-reader.h
7552 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
7555 # The cast to long int works around a bug in the HP C Compiler
7556 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7557 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7558 # This bug is HP SR number 8606223364.
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
7560 $as_echo_n "checking size of unsigned long long... " >&6; }
7561 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
7562 $as_echo_n "(cached) " >&6
7564 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
7567 if test "$ac_cv_type_unsigned_long_long" = yes; then
7568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7570 { as_fn_set_status
77
7571 as_fn_error
"cannot compute sizeof (unsigned long long)
7572 See \`config.log' for more details." "$LINENO" 5; }; }
7574 ac_cv_sizeof_unsigned_long_long
=0
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
7580 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
7584 cat >>confdefs.h
<<_ACEOF
7585 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
7589 # The cast to long int works around a bug in the HP C Compiler
7590 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7591 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7592 # This bug is HP SR number 8606223364.
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
7594 $as_echo_n "checking size of unsigned long... " >&6; }
7595 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
7596 $as_echo_n "(cached) " >&6
7598 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
7601 if test "$ac_cv_type_unsigned_long" = yes; then
7602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7604 { as_fn_set_status
77
7605 as_fn_error
"cannot compute sizeof (unsigned long)
7606 See \`config.log' for more details." "$LINENO" 5; }; }
7608 ac_cv_sizeof_unsigned_long
=0
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
7614 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
7618 cat >>confdefs.h
<<_ACEOF
7619 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7623 # The cast to long int works around a bug in the HP C Compiler
7624 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7625 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7626 # This bug is HP SR number 8606223364.
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
7628 $as_echo_n "checking size of unsigned __int128... " >&6; }
7629 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
7630 $as_echo_n "(cached) " >&6
7632 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
7635 if test "$ac_cv_type_unsigned___int128" = yes; then
7636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7638 { as_fn_set_status
77
7639 as_fn_error
"cannot compute sizeof (unsigned __int128)
7640 See \`config.log' for more details." "$LINENO" 5; }; }
7642 ac_cv_sizeof_unsigned___int128
=0
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
7648 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
7652 cat >>confdefs.h
<<_ACEOF
7653 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
7658 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
7659 TARGET_PTR
="unsigned long"
7660 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
7661 TARGET_PTR
="unsigned long long"
7662 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
7663 TARGET_PTR
="unsigned __int128"
7665 TARGET_PTR
="unsigned long"
7669 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7673 $as_echo_n "checking for library containing dlopen... " >&6; }
7674 if test "${ac_cv_search_dlopen+set}" = set; then :
7675 $as_echo_n "(cached) " >&6
7677 ac_func_search_save_LIBS
=$LIBS
7678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7679 /* end confdefs.h. */
7681 /* Override any GCC internal prototype to avoid an error.
7682 Use char because int might match the return type of a GCC
7683 builtin and then its argument prototype would still apply. */
7696 for ac_lib
in '' dl
; do
7697 if test -z "$ac_lib"; then
7698 ac_res
="none required"
7701 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7703 if ac_fn_c_try_link
"$LINENO"; then :
7704 ac_cv_search_dlopen
=$ac_res
7706 rm -f core conftest.err conftest.
$ac_objext \
7708 if test "${ac_cv_search_dlopen+set}" = set; then :
7712 if test "${ac_cv_search_dlopen+set}" = set; then :
7715 ac_cv_search_dlopen
=no
7718 LIBS
=$ac_func_search_save_LIBS
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7721 $as_echo "$ac_cv_search_dlopen" >&6; }
7722 ac_res
=$ac_cv_search_dlopen
7723 if test "$ac_res" != no
; then :
7724 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7731 # Check whether --with-jit-reader-dir was given.
7732 if test "${with_jit_reader_dir+set}" = set; then :
7733 withval
=$with_jit_reader_dir;
7734 JIT_READER_DIR
=$withval
7736 JIT_READER_DIR
=${libdir}/gdb
7740 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7741 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7742 ac_define_dir
=`eval echo $JIT_READER_DIR`
7743 ac_define_dir
=`eval echo $ac_define_dir`
7745 cat >>confdefs.h
<<_ACEOF
7746 #define JIT_READER_DIR "$ac_define_dir"
7752 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
7753 if test "x$prefix" = xNONE
; then
7754 test_prefix
=/usr
/local
7759 test_prefix
=$exec_prefix
7762 case ${ac_define_dir} in
7763 "${test_prefix}"|
"${test_prefix}/"*|\
7764 '${exec_prefix}'|
'${exec_prefix}/'*)
7769 cat >>confdefs.h
<<_ACEOF
7770 #define JIT_READER_DIR_RELOCATABLE $value
7777 # Check whether --with-expat was given.
7778 if test "${with_expat+set}" = set; then :
7779 withval
=$with_expat;
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
7785 $as_echo_n "checking whether to use expat... " >&6; }
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
7787 $as_echo "$with_expat" >&6; }
7789 if test "${with_expat}" = no
; then
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
7791 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
7795 if test "X$prefix" = "XNONE"; then
7796 acl_final_prefix
="$ac_default_prefix"
7798 acl_final_prefix
="$prefix"
7800 if test "X$exec_prefix" = "XNONE"; then
7801 acl_final_exec_prefix
='${prefix}'
7803 acl_final_exec_prefix
="$exec_prefix"
7805 acl_save_prefix
="$prefix"
7806 prefix
="$acl_final_prefix"
7807 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
7808 prefix
="$acl_save_prefix"
7811 # Check whether --with-gnu-ld was given.
7812 if test "${with_gnu_ld+set}" = set; then :
7813 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
7818 # Prepare PATH_SEPARATOR.
7819 # The user is always right.
7820 if test "${PATH_SEPARATOR+set}" != set; then
7821 echo "#! /bin/sh" >conf$$.sh
7822 echo "exit 0" >>conf$$.sh
7824 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7832 if test "$GCC" = yes; then
7833 # Check if gcc -print-prog-name=ld gives a path.
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7835 $as_echo_n "checking for ld used by GCC... " >&6; }
7838 # gcc leaves a trailing carriage return which upsets mingw
7839 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7841 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
7844 # Accept absolute paths.
7845 [\\/]* |
[A-Za-z
]:[\\/]*)
7846 re_direlt
='/[^/][^/]*/\.\./'
7847 # Canonicalize the path of ld
7848 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
7849 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
7850 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
7852 test -z "$LD" && LD
="$ac_prog"
7855 # If it fails, then pretend we aren't using GCC.
7859 # If it is relative, then search for the first ld in PATH.
7863 elif test "$with_gnu_ld" = yes; then
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7865 $as_echo_n "checking for GNU ld... " >&6; }
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7868 $as_echo_n "checking for non-GNU ld... " >&6; }
7870 if test "${acl_cv_path_LD+set}" = set; then :
7871 $as_echo_n "(cached) " >&6
7873 if test -z "$LD"; then
7874 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7875 for ac_dir
in $PATH; do
7876 test -z "$ac_dir" && ac_dir
=.
7877 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
7878 acl_cv_path_LD
="$ac_dir/$ac_prog"
7879 # Check to see if the program is GNU ld. I'd rather use --version,
7880 # but apparently some GNU ld's only accept -v.
7881 # Break only if it was the GNU/non-GNU ld that we prefer.
7882 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
7883 test "$with_gnu_ld" != no
&& break
7885 test "$with_gnu_ld" != yes && break
7891 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
7895 LD
="$acl_cv_path_LD"
7896 if test -n "$LD"; then
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7898 $as_echo "$LD" >&6; }
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7901 $as_echo "no" >&6; }
7903 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7905 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7906 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7907 $as_echo_n "(cached) " >&6
7909 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7910 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
7911 acl_cv_prog_gnu_ld
=yes
7913 acl_cv_prog_gnu_ld
=no
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7917 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7918 with_gnu_ld
=$acl_cv_prog_gnu_ld
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7923 $as_echo_n "checking for shared library run path origin... " >&6; }
7924 if test "${acl_cv_rpath+set}" = set; then :
7925 $as_echo_n "(cached) " >&6
7928 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
7929 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7936 $as_echo "$acl_cv_rpath" >&6; }
7938 libext
="$acl_cv_libext"
7939 shlibext
="$acl_cv_shlibext"
7940 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
7941 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
7942 hardcode_direct
="$acl_cv_hardcode_direct"
7943 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
7944 # Check whether --enable-rpath was given.
7945 if test "${enable_rpath+set}" = set; then :
7946 enableval
=$enable_rpath; :
7962 acl_save_prefix
="$prefix"
7963 prefix
="$acl_final_prefix"
7964 acl_save_exec_prefix
="$exec_prefix"
7965 exec_prefix
="$acl_final_exec_prefix"
7967 eval additional_includedir
=\"$includedir\"
7968 eval additional_libdir
=\"$libdir\"
7970 exec_prefix
="$acl_save_exec_prefix"
7971 prefix
="$acl_save_prefix"
7974 # Check whether --with-libexpat-prefix was given.
7975 if test "${with_libexpat_prefix+set}" = set; then :
7976 withval
=$with_libexpat_prefix;
7977 if test "X$withval" = "Xno"; then
7980 if test "X$withval" = "X"; then
7982 acl_save_prefix
="$prefix"
7983 prefix
="$acl_final_prefix"
7984 acl_save_exec_prefix
="$exec_prefix"
7985 exec_prefix
="$acl_final_exec_prefix"
7987 eval additional_includedir
=\"$includedir\"
7988 eval additional_libdir
=\"$libdir\"
7990 exec_prefix
="$acl_save_exec_prefix"
7991 prefix
="$acl_save_prefix"
7994 additional_includedir
="$withval/include"
7995 additional_libdir
="$withval/lib"
8006 names_already_handled
=
8007 names_next_round
='expat '
8008 while test -n "$names_next_round"; do
8009 names_this_round
="$names_next_round"
8011 for name
in $names_this_round; do
8013 for n
in $names_already_handled; do
8014 if test "$n" = "$name"; then
8019 if test -z "$already_handled"; then
8020 names_already_handled
="$names_already_handled $name"
8021 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8022 eval value
=\"\
$HAVE_LIB$uppername\"
8023 if test -n "$value"; then
8024 if test "$value" = yes; then
8025 eval value
=\"\
$LIB$uppername\"
8026 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
8027 eval value
=\"\
$LTLIB$uppername\"
8028 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
8037 if test $use_additional = yes; then
8038 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8039 found_dir
="$additional_libdir"
8040 found_so
="$additional_libdir/lib$name.$shlibext"
8041 if test -f "$additional_libdir/lib$name.la"; then
8042 found_la
="$additional_libdir/lib$name.la"
8045 if test -f "$additional_libdir/lib$name.$libext"; then
8046 found_dir
="$additional_libdir"
8047 found_a
="$additional_libdir/lib$name.$libext"
8048 if test -f "$additional_libdir/lib$name.la"; then
8049 found_la
="$additional_libdir/lib$name.la"
8054 if test "X$found_dir" = "X"; then
8055 for x
in $LDFLAGS $LTLIBEXPAT; do
8057 acl_save_prefix
="$prefix"
8058 prefix
="$acl_final_prefix"
8059 acl_save_exec_prefix
="$exec_prefix"
8060 exec_prefix
="$acl_final_exec_prefix"
8062 exec_prefix
="$acl_save_exec_prefix"
8063 prefix
="$acl_save_prefix"
8067 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8068 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8070 found_so
="$dir/lib$name.$shlibext"
8071 if test -f "$dir/lib$name.la"; then
8072 found_la
="$dir/lib$name.la"
8075 if test -f "$dir/lib$name.$libext"; then
8077 found_a
="$dir/lib$name.$libext"
8078 if test -f "$dir/lib$name.la"; then
8079 found_la
="$dir/lib$name.la"
8085 if test "X$found_dir" != "X"; then
8090 if test "X$found_dir" != "X"; then
8091 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
8092 if test "X$found_so" != "X"; then
8093 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8094 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8097 for x
in $ltrpathdirs; do
8098 if test "X$x" = "X$found_dir"; then
8103 if test -z "$haveit"; then
8104 ltrpathdirs
="$ltrpathdirs $found_dir"
8106 if test "$hardcode_direct" = yes; then
8107 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8109 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8110 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8112 for x
in $rpathdirs; do
8113 if test "X$x" = "X$found_dir"; then
8118 if test -z "$haveit"; then
8119 rpathdirs
="$rpathdirs $found_dir"
8123 for x
in $LDFLAGS $LIBEXPAT; do
8125 acl_save_prefix
="$prefix"
8126 prefix
="$acl_final_prefix"
8127 acl_save_exec_prefix
="$exec_prefix"
8128 exec_prefix
="$acl_final_exec_prefix"
8130 exec_prefix
="$acl_save_exec_prefix"
8131 prefix
="$acl_save_prefix"
8133 if test "X$x" = "X-L$found_dir"; then
8138 if test -z "$haveit"; then
8139 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
8141 if test "$hardcode_minus_L" != no
; then
8142 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8144 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
8150 if test "X$found_a" != "X"; then
8151 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
8153 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
8156 additional_includedir
=
8157 case "$found_dir" in
8159 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8160 additional_includedir
="$basedir/include"
8163 if test "X$additional_includedir" != "X"; then
8164 if test "X$additional_includedir" != "X/usr/include"; then
8166 if test "X$additional_includedir" = "X/usr/local/include"; then
8167 if test -n "$GCC"; then
8169 linux
*) haveit
=yes;;
8173 if test -z "$haveit"; then
8174 for x
in $CPPFLAGS $INCEXPAT; do
8176 acl_save_prefix
="$prefix"
8177 prefix
="$acl_final_prefix"
8178 acl_save_exec_prefix
="$exec_prefix"
8179 exec_prefix
="$acl_final_exec_prefix"
8181 exec_prefix
="$acl_save_exec_prefix"
8182 prefix
="$acl_save_prefix"
8184 if test "X$x" = "X-I$additional_includedir"; then
8189 if test -z "$haveit"; then
8190 if test -d "$additional_includedir"; then
8191 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
8197 if test -n "$found_la"; then
8198 save_libdir
="$libdir"
8200 */* |
*\\*) .
"$found_la" ;;
8201 *) .
"./$found_la" ;;
8203 libdir
="$save_libdir"
8204 for dep
in $dependency_libs; do
8207 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8208 if test "X$additional_libdir" != "X/usr/lib"; then
8210 if test "X$additional_libdir" = "X/usr/local/lib"; then
8211 if test -n "$GCC"; then
8213 linux
*) haveit
=yes;;
8217 if test -z "$haveit"; then
8219 for x
in $LDFLAGS $LIBEXPAT; do
8221 acl_save_prefix
="$prefix"
8222 prefix
="$acl_final_prefix"
8223 acl_save_exec_prefix
="$exec_prefix"
8224 exec_prefix
="$acl_final_exec_prefix"
8226 exec_prefix
="$acl_save_exec_prefix"
8227 prefix
="$acl_save_prefix"
8229 if test "X$x" = "X-L$additional_libdir"; then
8234 if test -z "$haveit"; then
8235 if test -d "$additional_libdir"; then
8236 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
8240 for x
in $LDFLAGS $LTLIBEXPAT; do
8242 acl_save_prefix
="$prefix"
8243 prefix
="$acl_final_prefix"
8244 acl_save_exec_prefix
="$exec_prefix"
8245 exec_prefix
="$acl_final_exec_prefix"
8247 exec_prefix
="$acl_save_exec_prefix"
8248 prefix
="$acl_save_prefix"
8250 if test "X$x" = "X-L$additional_libdir"; then
8255 if test -z "$haveit"; then
8256 if test -d "$additional_libdir"; then
8257 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
8264 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8265 if test "$enable_rpath" != no
; then
8267 for x
in $rpathdirs; do
8268 if test "X$x" = "X$dir"; then
8273 if test -z "$haveit"; then
8274 rpathdirs
="$rpathdirs $dir"
8277 for x
in $ltrpathdirs; do
8278 if test "X$x" = "X$dir"; then
8283 if test -z "$haveit"; then
8284 ltrpathdirs
="$ltrpathdirs $dir"
8289 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8292 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8295 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
8296 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
8302 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
8303 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
8309 if test "X$rpathdirs" != "X"; then
8310 if test -n "$hardcode_libdir_separator"; then
8312 for found_dir
in $rpathdirs; do
8313 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8315 acl_save_libdir
="$libdir"
8317 eval flag
=\"$hardcode_libdir_flag_spec\"
8318 libdir
="$acl_save_libdir"
8319 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
8321 for found_dir
in $rpathdirs; do
8322 acl_save_libdir
="$libdir"
8324 eval flag
=\"$hardcode_libdir_flag_spec\"
8325 libdir
="$acl_save_libdir"
8326 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
8330 if test "X$ltrpathdirs" != "X"; then
8331 for found_dir
in $ltrpathdirs; do
8332 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
8337 ac_save_CPPFLAGS
="$CPPFLAGS"
8339 for element
in $INCEXPAT; do
8341 for x
in $CPPFLAGS; do
8343 acl_save_prefix
="$prefix"
8344 prefix
="$acl_final_prefix"
8345 acl_save_exec_prefix
="$exec_prefix"
8346 exec_prefix
="$acl_final_exec_prefix"
8348 exec_prefix
="$acl_save_exec_prefix"
8349 prefix
="$acl_save_prefix"
8351 if test "X$x" = "X$element"; then
8356 if test -z "$haveit"; then
8357 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
8363 $as_echo_n "checking for libexpat... " >&6; }
8364 if test "${ac_cv_libexpat+set}" = set; then :
8365 $as_echo_n "(cached) " >&6
8368 ac_save_LIBS
="$LIBS"
8369 LIBS
="$LIBS $LIBEXPAT"
8370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8371 /* end confdefs.h. */
8376 XML_Parser p = XML_ParserCreate (0);
8381 if ac_fn_c_try_link
"$LINENO"; then :
8386 rm -f core conftest.err conftest.
$ac_objext \
8387 conftest
$ac_exeext conftest.
$ac_ext
8388 LIBS
="$ac_save_LIBS"
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
8392 $as_echo "$ac_cv_libexpat" >&6; }
8393 if test "$ac_cv_libexpat" = yes; then
8396 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
8399 $as_echo_n "checking how to link with libexpat... " >&6; }
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
8401 $as_echo "$LIBEXPAT" >&6; }
8404 CPPFLAGS
="$ac_save_CPPFLAGS"
8414 if test "$HAVE_LIBEXPAT" != yes; then
8415 if test "$with_expat" = yes; then
8416 as_fn_error
"expat is missing or unusable" "$LINENO" 5
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
8419 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
8423 LIBS
="$LIBS $LIBEXPAT"
8424 for ac_func
in XML_StopParser
8426 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
8427 if test "x$ac_cv_func_XML_StopParser" = x
""yes; then :
8428 cat >>confdefs.h
<<_ACEOF
8429 #define HAVE_XML_STOPPARSER 1
8439 # --------------------- #
8440 # Check for libpython. #
8441 # --------------------- #
8448 # Check whether --with-python was given.
8449 if test "${with_python+set}" = set; then :
8450 withval
=$with_python;
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
8456 $as_echo_n "checking whether to use python... " >&6; }
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
8458 $as_echo "$with_python" >&6; }
8460 if test "${with_python}" = no
; then
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
8462 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
8465 case "${with_python}" in
8467 if test -d ${with_python}; then
8468 # Assume the python binary is ${with_python}/bin/python.
8469 python_prog
="${with_python}/bin/python"
8471 # If python does not exit ${with_python}/bin, then try in
8472 # ${with_python}. On Windows/MinGW, this is where the Python
8474 if test ! -x "${python_prog}"; then
8475 python_prog
="${with_python}/python"
8478 if test ! -x "${python_prog}"; then
8479 # Fall back to gdb 7.0/7.1 behaviour.
8481 python_prefix
=${with_python}
8483 elif test -x "${with_python}"; then
8484 # While we can't run python compiled for $host (unless host == build),
8485 # the user could write a script that provides the needed information,
8486 # so we support that.
8487 python_prog
=${with_python}
8490 as_fn_error
"invalid value for --with-python" "$LINENO" 5
8494 # Disallow --with-python=foo/bar.
8495 as_fn_error
"invalid value for --with-python" "$LINENO" 5
8498 # The user has either specified auto, yes, or the name of the python
8499 # program assumed to be in $PATH.
8501 case "${with_python}" in
8503 if test ${build} = ${host}; then
8504 # Extract the first word of "python", so it can be a program name with args.
8505 set dummy python
; ac_word
=$2
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8507 $as_echo_n "checking for $ac_word... " >&6; }
8508 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8509 $as_echo_n "(cached) " >&6
8511 case $python_prog_path in
8513 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
8516 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8520 test -z "$as_dir" && as_dir
=.
8521 for ac_exec_ext
in '' $ac_executable_extensions; do
8522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8523 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
8524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8531 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
8535 python_prog_path
=$ac_cv_path_python_prog_path
8536 if test -n "$python_prog_path"; then
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8538 $as_echo "$python_prog_path" >&6; }
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8541 $as_echo "no" >&6; }
8545 if test "${python_prog_path}" = missing
; then
8548 python_prog
=${python_prog_path}
8551 # Not much we can do except assume the cross-compiler will find the
8557 # While we can't run python compiled for $host (unless host == build),
8558 # the user could write a script that provides the needed information,
8559 # so we support that.
8560 python_prog
="${with_python}"
8561 # Extract the first word of "${python_prog}", so it can be a program name with args.
8562 set dummy
${python_prog}; ac_word
=$2
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8564 $as_echo_n "checking for $ac_word... " >&6; }
8565 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8566 $as_echo_n "(cached) " >&6
8568 case $python_prog_path in
8570 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
8573 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8577 test -z "$as_dir" && as_dir
=.
8578 for ac_exec_ext
in '' $ac_executable_extensions; do
8579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8580 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
8581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8588 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
8592 python_prog_path
=$ac_cv_path_python_prog_path
8593 if test -n "$python_prog_path"; then
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8595 $as_echo "$python_prog_path" >&6; }
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8598 $as_echo "no" >&6; }
8602 if test "${python_prog_path}" = missing
; then
8603 as_fn_error
"unable to find python program ${python_prog}" "$LINENO" 5
8609 if test "${python_prog}" != missing
; then
8610 # We have a python program to use, but it may be too old.
8611 # Don't flag an error for --with-python=auto (the default).
8612 have_python_config
=yes
8613 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
8614 if test $?
!= 0; then
8615 have_python_config
=failed
8616 if test "${with_python}" != auto
; then
8617 as_fn_error
"failure running python-config --includes" "$LINENO" 5
8620 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
8621 if test $?
!= 0; then
8622 have_python_config
=failed
8623 if test "${with_python}" != auto
; then
8624 as_fn_error
"failure running python-config --ldflags" "$LINENO" 5
8627 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
8628 if test $?
!= 0; then
8629 have_python_config
=failed
8630 if test "${with_python}" != auto
; then
8631 as_fn_error
"failure running python-config --exec-prefix" "$LINENO" 5
8635 # We do not have a python executable we can use to determine where
8636 # to find the Python headers and libs. We cannot guess the include
8637 # path from the python_prefix either, because that include path
8638 # depends on the Python version. So, there is nothing much we can
8639 # do except assume that the compiler will be able to find those files.
8642 have_python_config
=no
8645 # If we have python-config, only try the configuration it provides.
8646 # Otherwise fallback on the old way of trying different versions of
8650 if test "${have_python_config}" = yes; then
8651 # Determine the Python version by extracting "-lpython<version>"
8652 # part of the python_libs. <version> is usually X.Y with X and Y
8653 # being decimal numbers, but can also be XY (seen on Windows).
8655 # The extraction is performed using sed with a regular expression.
8656 # Initially, the regexp used was using the '?' quantifier to make
8657 # the dot in the version number optional. Unfortunately, this
8658 # does not work with non-GNU versions of sed because, because of
8659 # what looks like a limitation (the '?' quantifier does not work
8660 # with back-references). We work around this limitation by using
8661 # the '*' quantifier instead. It means that, in theory, we might
8662 # match unexpected version strings such as "-lpython2..7", but
8663 # this seems unlikely in practice. And even if that happens,
8664 # an error will be triggered later on, when checking that version
8666 python_version
=`echo " ${python_libs} " \
8667 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
8668 case "${python_version}" in
8671 version
=${python_version}
8673 new_CPPFLAGS
=${python_includes}
8674 new_LIBS
=${python_libs}
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8676 $as_echo_n "checking for ${version}... " >&6; }
8677 save_CPPFLAGS
=$CPPFLAGS
8679 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8680 LIBS
="$LIBS $new_LIBS"
8681 found_usable_python
=no
8682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8683 /* end confdefs.h. */
8693 if ac_fn_c_try_link
"$LINENO"; then :
8694 have_libpython
=${version}
8695 found_usable_python
=yes
8696 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8697 PYTHON_LIBS
=$new_LIBS
8699 rm -f core conftest.err conftest.
$ac_objext \
8700 conftest
$ac_exeext conftest.
$ac_ext
8701 CPPFLAGS
=$save_CPPFLAGS
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8704 $as_echo "${found_usable_python}" >&6; }
8708 as_fn_error
"unable to determine python version from ${python_libs}" "$LINENO" 5
8711 elif test "${have_python_config}" != failed
; then
8712 if test "${have_libpython}" = no
; then
8716 new_CPPFLAGS
=${python_includes}
8717 new_LIBS
="${python_libs} -lpython2.7"
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8719 $as_echo_n "checking for ${version}... " >&6; }
8720 save_CPPFLAGS
=$CPPFLAGS
8722 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8723 LIBS
="$LIBS $new_LIBS"
8724 found_usable_python
=no
8725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8726 /* end confdefs.h. */
8736 if ac_fn_c_try_link
"$LINENO"; then :
8737 have_libpython
=${version}
8738 found_usable_python
=yes
8739 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8740 PYTHON_LIBS
=$new_LIBS
8742 rm -f core conftest.err conftest.
$ac_objext \
8743 conftest
$ac_exeext conftest.
$ac_ext
8744 CPPFLAGS
=$save_CPPFLAGS
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8747 $as_echo "${found_usable_python}" >&6; }
8750 if test "${have_libpython}" = no
; then
8754 new_CPPFLAGS
=${python_includes}
8755 new_LIBS
="${python_libs} -lpython2.6"
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8757 $as_echo_n "checking for ${version}... " >&6; }
8758 save_CPPFLAGS
=$CPPFLAGS
8760 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8761 LIBS
="$LIBS $new_LIBS"
8762 found_usable_python
=no
8763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8764 /* end confdefs.h. */
8774 if ac_fn_c_try_link
"$LINENO"; then :
8775 have_libpython
=${version}
8776 found_usable_python
=yes
8777 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8778 PYTHON_LIBS
=$new_LIBS
8780 rm -f core conftest.err conftest.
$ac_objext \
8781 conftest
$ac_exeext conftest.
$ac_ext
8782 CPPFLAGS
=$save_CPPFLAGS
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8785 $as_echo "${found_usable_python}" >&6; }
8788 if test ${have_libpython} = no
; then
8792 new_CPPFLAGS
=${python_includes}
8793 new_LIBS
="${python_libs} -lpython2.5"
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8795 $as_echo_n "checking for ${version}... " >&6; }
8796 save_CPPFLAGS
=$CPPFLAGS
8798 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8799 LIBS
="$LIBS $new_LIBS"
8800 found_usable_python
=no
8801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8802 /* end confdefs.h. */
8812 if ac_fn_c_try_link
"$LINENO"; then :
8813 have_libpython
=${version}
8814 found_usable_python
=yes
8815 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8816 PYTHON_LIBS
=$new_LIBS
8818 rm -f core conftest.err conftest.
$ac_objext \
8819 conftest
$ac_exeext conftest.
$ac_ext
8820 CPPFLAGS
=$save_CPPFLAGS
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8823 $as_echo "${found_usable_python}" >&6; }
8826 if test ${have_libpython} = no
; then
8830 new_CPPFLAGS
=${python_includes}
8831 new_LIBS
="${python_libs} -lpython2.4"
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8833 $as_echo_n "checking for ${version}... " >&6; }
8834 save_CPPFLAGS
=$CPPFLAGS
8836 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8837 LIBS
="$LIBS $new_LIBS"
8838 found_usable_python
=no
8839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8840 /* end confdefs.h. */
8850 if ac_fn_c_try_link
"$LINENO"; then :
8851 have_libpython
=${version}
8852 found_usable_python
=yes
8853 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8854 PYTHON_LIBS
=$new_LIBS
8856 rm -f core conftest.err conftest.
$ac_objext \
8857 conftest
$ac_exeext conftest.
$ac_ext
8858 CPPFLAGS
=$save_CPPFLAGS
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8861 $as_echo "${found_usable_python}" >&6; }
8865 if test "${have_libpython}" = python2.7
-o "${have_libpython}" = python27
; then
8867 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
8869 elif test "${have_libpython}" = python2.6
-o "${have_libpython}" = python26
; then
8871 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
8873 elif test "${have_libpython}" = python2.5
-o "${have_libpython}" = python25
; then
8875 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
8877 elif test "${have_libpython}" = python2.4
-o "${have_libpython}" = python24
; then
8879 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
8883 if test "${have_libpython}" = no
; then
8884 case "${with_python}" in
8886 as_fn_error
"python is missing or unusable" "$LINENO" 5
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
8890 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
8893 as_fn_error
"no usable python found at ${with_python}" "$LINENO" 5
8897 if test -n "${python_prefix}"; then
8899 cat >>confdefs.h
<<_ACEOF
8900 #define WITH_PYTHON_PATH "${python_prefix}"
8904 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
8905 if test "x$prefix" = xNONE
; then
8906 test_prefix
=/usr
/local
8911 test_prefix
=$exec_prefix
8914 case ${python_prefix} in
8915 "${test_prefix}"|
"${test_prefix}/"*|\
8916 '${exec_prefix}'|
'${exec_prefix}/'*)
8921 cat >>confdefs.h
<<_ACEOF
8922 #define PYTHON_PATH_RELOCATABLE $value
8930 if test "${have_libpython}" != no
; then
8932 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
8934 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
8935 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
8936 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
8937 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
8938 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
8940 # Flags needed to compile Python code (taken from python-config --cflags).
8941 # We cannot call python-config directly because it will output whatever was
8942 # used when compiling the Python interpreter itself, including flags which
8943 # would make the python-related objects be compiled differently from the
8944 # rest of GDB (e.g., -O2 and -fPIC).
8945 if test "${GCC}" = yes; then
8946 tentative_python_cflags
="-fno-strict-aliasing -DNDEBUG -fwrapv"
8949 if test "x${tentative_python_cflags}" != x
; then
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
8951 $as_echo_n "checking compiler flags for python code... " >&6; }
8952 for flag
in ${tentative_python_cflags}; do
8953 # Check that the compiler accepts it
8954 saved_CFLAGS
="$CFLAGS"
8955 CFLAGS
="$CFLAGS $flag"
8956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8957 /* end confdefs.h. */
8967 if ac_fn_c_try_compile
"$LINENO"; then :
8968 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
8970 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8971 CFLAGS
="$saved_CFLAGS"
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
8974 $as_echo "${PYTHON_CFLAGS}" >&6; }
8977 # On x64 Windows, Python's include headers, and pyconfig.h in
8978 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
8979 # version of Windows. Unfortunately, MS_WIN64 is only defined if
8980 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
8981 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
8982 # The issue was reported to the Python community, but still isn't
8983 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
8987 if test "${GCC}" = yes; then
8988 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
8993 # Note that "python -m threading" cannot be used to check for
8994 # threading support due to a bug in Python 2.7.3
8995 # (http://bugs.python.org/issue15567).
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
8997 $as_echo_n "checking whether python supports threads... " >&6; }
8998 saved_CPPFLAGS
="${CPPFLAGS}"
8999 CPPFLAGS
="${PYTHON_CPPFLAGS}"
9000 # Note that the test is reversed so that python_has_threads=yes on
9001 # unexpected failures.
9002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9003 /* end confdefs.h. */
9011 if ac_fn_c_try_cpp
"$LINENO"; then :
9012 python_has_threads
=no
9014 python_has_threads
=yes
9016 rm -f conftest.err conftest.
$ac_ext
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
9018 $as_echo "${python_has_threads}" >&6; }
9019 CPPFLAGS
="${saved_CPPFLAGS}"
9021 # Even if Python support is not compiled in, we need to have this file
9022 # included so that the "python" command, et.al., still exists.
9023 CONFIG_OBS
="$CONFIG_OBS python.o"
9024 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
9029 if test "${have_libpython}" != no
; then
9031 HAVE_PYTHON_FALSE
='#'
9033 HAVE_PYTHON_TRUE
='#'
9038 # -------------------- #
9039 # Check for libguile. #
9040 # -------------------- #
9047 # Check whether --with-guile was given.
9048 if test "${with_guile+set}" = set; then :
9049 withval
=$with_guile;
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
9055 $as_echo_n "checking whether to use guile... " >&6; }
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
9057 $as_echo "$with_guile" >&6; }
9059 # Extract the first word of "pkg-config", so it can be a program name with args.
9060 set dummy pkg-config
; ac_word
=$2
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9062 $as_echo_n "checking for $ac_word... " >&6; }
9063 if test "${ac_cv_path_pkg_config_prog_path+set}" = set; then :
9064 $as_echo_n "(cached) " >&6
9066 case $pkg_config_prog_path in
9068 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
9071 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9075 test -z "$as_dir" && as_dir
=.
9076 for ac_exec_ext
in '' $ac_executable_extensions; do
9077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9078 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
9079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9086 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
9090 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
9091 if test -n "$pkg_config_prog_path"; then
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
9093 $as_echo "$pkg_config_prog_path" >&6; }
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9096 $as_echo "no" >&6; }
9101 try_guile_versions
="guile-2.2 guile-2.0"
9103 case "${with_guile}" in
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
9106 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
9109 if test "${pkg_config_prog_path}" = "missing"; then
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
9111 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
9114 pkg_config
=${pkg_config_prog_path}
9115 guile_version_list
=${try_guile_versions}
9118 found_usable_guile
=checking
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9120 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9121 for guile_version
in ${guile_version_list}; do
9122 ${pkg_config} --exists ${guile_version} 2>/dev
/null
9123 if test $?
!= 0; then
9126 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
9127 if test $?
!= 0; then
9128 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9130 new_LIBS
=`${pkg_config} --libs ${guile_version}`
9131 if test $?
!= 0; then
9132 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9134 found_usable_guile
=${guile_version}
9137 if test "${found_usable_guile}" = "checking"; then
9138 if test "${flag_errors}" = "yes"; then
9139 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9141 found_usable_guile
=no
9144 if test "${found_usable_guile}" != no
; then
9145 save_CPPFLAGS
=$CPPFLAGS
9147 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9148 LIBS
="$LIBS $new_LIBS"
9149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9150 /* end confdefs.h. */
9151 #include "libguile.h"
9160 if ac_fn_c_try_link
"$LINENO"; then :
9162 GUILE_CPPFLAGS
=$new_CPPFLAGS
9163 GUILE_LIBS
=$new_LIBS
9165 found_usable_guile
=no
9167 rm -f core conftest.err conftest.
$ac_objext \
9168 conftest
$ac_exeext conftest.
$ac_ext
9169 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9170 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
9172 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9177 CPPFLAGS
=$save_CPPFLAGS
9179 if test "${found_usable_guile}" = no
; then
9180 if test "${flag_errors}" = yes; then
9181 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9183 as_fn_error
"linking guile version ${guile_version} test program failed
9184 See \`config.log' for more details." "$LINENO" 5; }
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9189 $as_echo "${found_usable_guile}" >&6; }
9194 if test "${pkg_config_prog_path}" = "missing"; then
9195 as_fn_error
"pkg-config not found" "$LINENO" 5
9198 pkg_config
=${pkg_config_prog_path}
9199 guile_version_list
=${try_guile_versions}
9202 found_usable_guile
=checking
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9204 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9205 for guile_version
in ${guile_version_list}; do
9206 ${pkg_config} --exists ${guile_version} 2>/dev
/null
9207 if test $?
!= 0; then
9210 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
9211 if test $?
!= 0; then
9212 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9214 new_LIBS
=`${pkg_config} --libs ${guile_version}`
9215 if test $?
!= 0; then
9216 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9218 found_usable_guile
=${guile_version}
9221 if test "${found_usable_guile}" = "checking"; then
9222 if test "${flag_errors}" = "yes"; then
9223 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9225 found_usable_guile
=no
9228 if test "${found_usable_guile}" != no
; then
9229 save_CPPFLAGS
=$CPPFLAGS
9231 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9232 LIBS
="$LIBS $new_LIBS"
9233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9234 /* end confdefs.h. */
9235 #include "libguile.h"
9244 if ac_fn_c_try_link
"$LINENO"; then :
9246 GUILE_CPPFLAGS
=$new_CPPFLAGS
9247 GUILE_LIBS
=$new_LIBS
9249 found_usable_guile
=no
9251 rm -f core conftest.err conftest.
$ac_objext \
9252 conftest
$ac_exeext conftest.
$ac_ext
9253 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9254 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
9256 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9261 CPPFLAGS
=$save_CPPFLAGS
9263 if test "${found_usable_guile}" = no
; then
9264 if test "${flag_errors}" = yes; then
9265 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9267 as_fn_error
"linking guile version ${guile_version} test program failed
9268 See \`config.log' for more details." "$LINENO" 5; }
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9273 $as_echo "${found_usable_guile}" >&6; }
9277 if test -x "${with_guile}"; then
9279 pkg_config
=${with_guile}
9280 guile_version_list
=${try_guile_versions}
9283 found_usable_guile
=checking
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9285 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9286 for guile_version
in ${guile_version_list}; do
9287 ${pkg_config} --exists ${guile_version} 2>/dev
/null
9288 if test $?
!= 0; then
9291 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
9292 if test $?
!= 0; then
9293 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9295 new_LIBS
=`${pkg_config} --libs ${guile_version}`
9296 if test $?
!= 0; then
9297 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9299 found_usable_guile
=${guile_version}
9302 if test "${found_usable_guile}" = "checking"; then
9303 if test "${flag_errors}" = "yes"; then
9304 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9306 found_usable_guile
=no
9309 if test "${found_usable_guile}" != no
; then
9310 save_CPPFLAGS
=$CPPFLAGS
9312 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9313 LIBS
="$LIBS $new_LIBS"
9314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9315 /* end confdefs.h. */
9316 #include "libguile.h"
9325 if ac_fn_c_try_link
"$LINENO"; then :
9327 GUILE_CPPFLAGS
=$new_CPPFLAGS
9328 GUILE_LIBS
=$new_LIBS
9330 found_usable_guile
=no
9332 rm -f core conftest.err conftest.
$ac_objext \
9333 conftest
$ac_exeext conftest.
$ac_ext
9334 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9335 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
9337 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9342 CPPFLAGS
=$save_CPPFLAGS
9344 if test "${found_usable_guile}" = no
; then
9345 if test "${flag_errors}" = yes; then
9346 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9348 as_fn_error
"linking guile version ${guile_version} test program failed
9349 See \`config.log' for more details." "$LINENO" 5; }
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9354 $as_echo "${found_usable_guile}" >&6; }
9357 as_fn_error
"Guile config program not executable: ${with_guile}" "$LINENO" 5
9361 # Disallow --with=guile="" and --with-guile=foo/bar.
9362 as_fn_error
"invalid value for --with-guile" "$LINENO" 5
9365 # A space separate list of guile versions to try, in order.
9366 if test "${pkg_config_prog_path}" = "missing"; then
9367 as_fn_error
"pkg-config not found" "$LINENO" 5
9370 pkg_config
=${pkg_config_prog_path}
9371 guile_version_list
=${with_guile}
9374 found_usable_guile
=checking
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9376 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9377 for guile_version
in ${guile_version_list}; do
9378 ${pkg_config} --exists ${guile_version} 2>/dev
/null
9379 if test $?
!= 0; then
9382 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
9383 if test $?
!= 0; then
9384 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9386 new_LIBS
=`${pkg_config} --libs ${guile_version}`
9387 if test $?
!= 0; then
9388 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9390 found_usable_guile
=${guile_version}
9393 if test "${found_usable_guile}" = "checking"; then
9394 if test "${flag_errors}" = "yes"; then
9395 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9397 found_usable_guile
=no
9400 if test "${found_usable_guile}" != no
; then
9401 save_CPPFLAGS
=$CPPFLAGS
9403 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9404 LIBS
="$LIBS $new_LIBS"
9405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9406 /* end confdefs.h. */
9407 #include "libguile.h"
9416 if ac_fn_c_try_link
"$LINENO"; then :
9418 GUILE_CPPFLAGS
=$new_CPPFLAGS
9419 GUILE_LIBS
=$new_LIBS
9421 found_usable_guile
=no
9423 rm -f core conftest.err conftest.
$ac_objext \
9424 conftest
$ac_exeext conftest.
$ac_ext
9425 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9426 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
9428 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9433 CPPFLAGS
=$save_CPPFLAGS
9435 if test "${found_usable_guile}" = no
; then
9436 if test "${flag_errors}" = yes; then
9437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9439 as_fn_error
"linking guile version ${guile_version} test program failed
9440 See \`config.log' for more details." "$LINENO" 5; }
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9445 $as_echo "${found_usable_guile}" >&6; }
9450 if test "${have_libguile}" != no
; then
9451 case "${with_guile}" in
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
9455 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
9456 if test "${ac_cv_guild_program_name+set}" = set; then :
9457 $as_echo_n "(cached) " >&6
9459 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
9461 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
9462 # the 'guild' and 'bindir' variables. In that case, try to guess
9463 # what the program name is, at the risk of getting it wrong if
9464 # Guile was configured with '--program-suffix' or similar.
9465 if test "x$ac_cv_guild_program_name" = "x"; then
9466 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
9467 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
9472 $as_echo "$ac_cv_guild_program_name" >&6; }
9474 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
9475 as_fn_error
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
9478 GUILD
="$ac_cv_guild_program_name"
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
9485 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
9486 if test "${ac_cv_guild_program_name+set}" = set; then :
9487 $as_echo_n "(cached) " >&6
9489 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
9491 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
9492 # the 'guild' and 'bindir' variables. In that case, try to guess
9493 # what the program name is, at the risk of getting it wrong if
9494 # Guile was configured with '--program-suffix' or similar.
9495 if test "x$ac_cv_guild_program_name" = "x"; then
9496 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
9497 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
9502 $as_echo "$ac_cv_guild_program_name" >&6; }
9504 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
9505 as_fn_error
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
9508 GUILD
="$ac_cv_guild_program_name"
9515 if test "$cross_compiling" = no
; then
9518 GUILD_TARGET_FLAG
="--target=$host"
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
9525 $as_echo_n "checking whether guild supports this host... " >&6; }
9526 if test "${ac_cv_guild_ok+set}" = set; then :
9527 $as_echo_n "(cached) " >&6
9529 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
9530 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
9537 $as_echo "$ac_cv_guild_ok" >&6; }
9539 if test "$ac_cv_guild_ok" = no
; then
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
9542 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
9546 if test "${have_libguile}" != no
; then
9548 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
9550 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
9551 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
9552 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
9553 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
9554 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
9557 save_CPPFLAGS
="$CPPFLAGS"
9559 CPPFLAGS
="$GUILE_CPPFLAGS"
9560 for ac_func
in scm_new_smob
9562 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
9563 if test "x$ac_cv_func_scm_new_smob" = x
""yes; then :
9564 cat >>confdefs.h
<<_ACEOF
9565 #define HAVE_SCM_NEW_SMOB 1
9572 CPPFLAGS
="$save_CPPFLAGS"
9574 # Even if Guile support is not compiled in, we need to have these files
9576 CONFIG_OBS
="$CONFIG_OBS guile.o"
9577 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
9581 if test "${have_libguile}" != no
; then
9583 HAVE_GUILE_FALSE
='#'
9590 # --------------------- #
9591 # Check for libmcheck. #
9592 # --------------------- #
9594 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
9595 # but turn it off if Python is enabled with threads, since -lmcheck is
9596 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
9598 if test \
( "${have_libpython}" = "no" -o "${python_has_threads}" = "no" \
) \
9599 && $development; then
9600 libmcheck_default
=yes
9602 libmcheck_default
=no
9605 # Check whether --enable-libmcheck was given.
9606 if test "${enable_libmcheck+set}" = set; then :
9607 enableval
=$enable_libmcheck; case "${enableval}" in
9608 yes | y
) ENABLE_LIBMCHECK
="yes" ;;
9609 no | n
) ENABLE_LIBMCHECK
="no" ;;
9610 *) as_fn_error
"bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
9615 if test -z "${ENABLE_LIBMCHECK}"; then
9616 ENABLE_LIBMCHECK
=${libmcheck_default}
9619 if test "$ENABLE_LIBMCHECK" = "yes" ; then
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
9621 $as_echo_n "checking for main in -lmcheck... " >&6; }
9622 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
9623 $as_echo_n "(cached) " >&6
9625 ac_check_lib_save_LIBS
=$LIBS
9626 LIBS
="-lmcheck $LIBS"
9627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9628 /* end confdefs.h. */
9639 if ac_fn_c_try_link
"$LINENO"; then :
9640 ac_cv_lib_mcheck_main
=yes
9642 ac_cv_lib_mcheck_main
=no
9644 rm -f core conftest.err conftest.
$ac_objext \
9645 conftest
$ac_exeext conftest.
$ac_ext
9646 LIBS
=$ac_check_lib_save_LIBS
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
9649 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
9650 if test "x$ac_cv_lib_mcheck_main" = x
""yes; then :
9651 cat >>confdefs.h
<<_ACEOF
9652 #define HAVE_LIBMCHECK 1
9655 LIBS
="-lmcheck $LIBS"
9662 if test "$ENABLE_LIBMCHECK" = "yes" \
9663 -a "${have_libpython}" != "no" \
9664 -a "${python_has_threads}" = "yes" ; then
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
9666 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
9669 # ------------------------- #
9670 # Checks for header files. #
9671 # ------------------------- #
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9674 $as_echo_n "checking for ANSI C header files... " >&6; }
9675 if test "${ac_cv_header_stdc+set}" = set; then :
9676 $as_echo_n "(cached) " >&6
9678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9679 /* end confdefs.h. */
9693 if ac_fn_c_try_compile
"$LINENO"; then :
9694 ac_cv_header_stdc
=yes
9696 ac_cv_header_stdc
=no
9698 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9700 if test $ac_cv_header_stdc = yes; then
9701 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9703 /* end confdefs.h. */
9707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9708 $EGREP "memchr" >/dev
/null
2>&1; then :
9711 ac_cv_header_stdc
=no
9717 if test $ac_cv_header_stdc = yes; then
9718 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9720 /* end confdefs.h. */
9724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9725 $EGREP "free" >/dev
/null
2>&1; then :
9728 ac_cv_header_stdc
=no
9734 if test $ac_cv_header_stdc = yes; then
9735 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9736 if test "$cross_compiling" = yes; then :
9739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9740 /* end confdefs.h. */
9743 #if ((' ' & 0x0FF) == 0x020)
9744 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9745 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9747 # define ISLOWER(c) \
9748 (('a' <= (c) && (c) <= 'i') \
9749 || ('j' <= (c) && (c) <= 'r') \
9750 || ('s' <= (c) && (c) <= 'z'))
9751 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9754 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9759 for (i = 0; i < 256; i++)
9760 if (XOR (islower (i), ISLOWER (i))
9761 || toupper (i) != TOUPPER (i))
9766 if ac_fn_c_try_run
"$LINENO"; then :
9769 ac_cv_header_stdc
=no
9771 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9772 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9778 $as_echo "$ac_cv_header_stdc" >&6; }
9779 if test $ac_cv_header_stdc = yes; then
9781 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9785 # elf_hp.h is for HP/UX 64-bit shared library support.
9786 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
9789 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
9790 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
9791 sys
/reg.h sys
/debugreg.h sys
/select.h sys
/syscall.h \
9792 termios.h termio.h \
9796 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9797 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9798 eval as_val
=\$
$as_ac_Header
9799 if test "x$as_val" = x
""yes; then :
9800 cat >>confdefs.h
<<_ACEOF
9801 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9808 for ac_header
in sys
/proc.h
9810 ac_fn_c_check_header_compile
"$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
9811 # include <sys/param.h>
9815 if test "x$ac_cv_header_sys_proc_h" = x
""yes; then :
9816 cat >>confdefs.h
<<_ACEOF
9817 #define HAVE_SYS_PROC_H 1
9824 for ac_header
in sys
/user.h
9826 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
9827 # include <sys/param.h>
9831 if test "x$ac_cv_header_sys_user_h" = x
""yes; then :
9832 cat >>confdefs.h
<<_ACEOF
9833 #define HAVE_SYS_USER_H 1
9841 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
9842 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
9843 # think that we don't have <curses.h> if we're using GCC.
9846 if test "$GCC" = yes; then
9848 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
9852 for ac_header
in curses.h cursesX.h ncurses.h ncurses
/ncurses.h ncurses
/term.h
9854 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9855 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9856 eval as_val
=\$
$as_ac_Header
9857 if test "x$as_val" = x
""yes; then :
9858 cat >>confdefs.h
<<_ACEOF
9859 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9866 for ac_header
in term.h
9868 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
9869 # include <curses.h>
9873 if test "x$ac_cv_header_term_h" = x
""yes; then :
9874 cat >>confdefs.h
<<_ACEOF
9875 #define HAVE_TERM_H 1
9883 # ------------------------- #
9884 # Checks for declarations. #
9885 # ------------------------- #
9888 # Check for presence and size of long long.
9889 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
9890 if test "x$ac_cv_type_long_long" = x
""yes; then :
9892 cat >>confdefs.h
<<_ACEOF
9893 #define HAVE_LONG_LONG 1
9896 # The cast to long int works around a bug in the HP C Compiler
9897 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9898 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9899 # This bug is HP SR number 8606223364.
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
9901 $as_echo_n "checking size of long long... " >&6; }
9902 if test "${ac_cv_sizeof_long_long+set}" = set; then :
9903 $as_echo_n "(cached) " >&6
9905 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
9908 if test "$ac_cv_type_long_long" = yes; then
9909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9911 { as_fn_set_status
77
9912 as_fn_error
"cannot compute sizeof (long long)
9913 See \`config.log' for more details." "$LINENO" 5; }; }
9915 ac_cv_sizeof_long_long
=0
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
9921 $as_echo "$ac_cv_sizeof_long_long" >&6; }
9925 cat >>confdefs.h
<<_ACEOF
9926 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9933 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
9934 if test "x$ac_cv_have_decl_basename_char_p_" = x
""yes; then :
9940 cat >>confdefs.h
<<_ACEOF
9941 #define HAVE_DECL_BASENAME $ac_have_decl
9943 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
9944 if test "x$ac_cv_have_decl_ffs" = x
""yes; then :
9950 cat >>confdefs.h
<<_ACEOF
9951 #define HAVE_DECL_FFS $ac_have_decl
9953 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
9954 if test "x$ac_cv_have_decl_asprintf" = x
""yes; then :
9960 cat >>confdefs.h
<<_ACEOF
9961 #define HAVE_DECL_ASPRINTF $ac_have_decl
9963 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
9964 if test "x$ac_cv_have_decl_vasprintf" = x
""yes; then :
9970 cat >>confdefs.h
<<_ACEOF
9971 #define HAVE_DECL_VASPRINTF $ac_have_decl
9973 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
9974 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
9980 cat >>confdefs.h
<<_ACEOF
9981 #define HAVE_DECL_SNPRINTF $ac_have_decl
9983 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
9984 if test "x$ac_cv_have_decl_vsnprintf" = x
""yes; then :
9990 cat >>confdefs.h
<<_ACEOF
9991 #define HAVE_DECL_VSNPRINTF $ac_have_decl
9994 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
9995 if test "x$ac_cv_have_decl_strtol" = x
""yes; then :
10001 cat >>confdefs.h
<<_ACEOF
10002 #define HAVE_DECL_STRTOL $ac_have_decl
10004 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
10005 if test "x$ac_cv_have_decl_strtoul" = x
""yes; then :
10011 cat >>confdefs.h
<<_ACEOF
10012 #define HAVE_DECL_STRTOUL $ac_have_decl
10014 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
10015 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
10021 cat >>confdefs.h
<<_ACEOF
10022 #define HAVE_DECL_STRTOLL $ac_have_decl
10024 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
10025 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
10031 cat >>confdefs.h
<<_ACEOF
10032 #define HAVE_DECL_STRTOULL $ac_have_decl
10035 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
10036 if test "x$ac_cv_have_decl_strverscmp" = x
""yes; then :
10042 cat >>confdefs.h
<<_ACEOF
10043 #define HAVE_DECL_STRVERSCMP $ac_have_decl
10048 ac_fn_c_check_decl
"$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
10049 if test "x$ac_cv_have_decl_free" = x
""yes; then :
10055 cat >>confdefs.h
<<_ACEOF
10056 #define HAVE_DECL_FREE $ac_have_decl
10058 ac_fn_c_check_decl
"$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
10059 if test "x$ac_cv_have_decl_malloc" = x
""yes; then :
10065 cat >>confdefs.h
<<_ACEOF
10066 #define HAVE_DECL_MALLOC $ac_have_decl
10068 ac_fn_c_check_decl
"$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
10069 if test "x$ac_cv_have_decl_realloc" = x
""yes; then :
10075 cat >>confdefs.h
<<_ACEOF
10076 #define HAVE_DECL_REALLOC $ac_have_decl
10078 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
10079 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
10085 cat >>confdefs.h
<<_ACEOF
10086 #define HAVE_DECL_SNPRINTF $ac_have_decl
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10091 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10092 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10093 $as_echo_n "(cached) " >&6
10095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10096 /* end confdefs.h. */
10097 #include <locale.h>
10106 if ac_fn_c_try_link
"$LINENO"; then :
10107 am_cv_val_LC_MESSAGES
=yes
10109 am_cv_val_LC_MESSAGES
=no
10111 rm -f core conftest.err conftest.
$ac_objext \
10112 conftest
$ac_exeext conftest.
$ac_ext
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10115 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10116 if test $am_cv_val_LC_MESSAGES = yes; then
10118 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10123 # ----------------------- #
10124 # Checks for structures. #
10125 # ----------------------- #
10127 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
10128 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then :
10130 cat >>confdefs.h
<<_ACEOF
10131 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10136 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
10137 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then :
10139 cat >>confdefs.h
<<_ACEOF
10140 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10147 # ------------------ #
10148 # Checks for types. #
10149 # ------------------ #
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
10152 $as_echo_n "checking return type of signal handlers... " >&6; }
10153 if test "${ac_cv_type_signal+set}" = set; then :
10154 $as_echo_n "(cached) " >&6
10156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10157 /* end confdefs.h. */
10158 #include <sys/types.h>
10159 #include <signal.h>
10164 return *(signal (0, 0)) (0) == 1;
10169 if ac_fn_c_try_compile
"$LINENO"; then :
10170 ac_cv_type_signal
=int
10172 ac_cv_type_signal
=void
10174 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
10177 $as_echo "$ac_cv_type_signal" >&6; }
10179 cat >>confdefs.h
<<_ACEOF
10180 #define RETSIGTYPE $ac_cv_type_signal
10184 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
10185 #include <sys/socket.h>
10188 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
10190 cat >>confdefs.h
<<_ACEOF
10191 #define HAVE_SOCKLEN_T 1
10198 # ------------------------------------- #
10199 # Checks for compiler characteristics. #
10200 # ------------------------------------- #
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
10203 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
10204 if test "${ac_cv_c_const+set}" = set; then :
10205 $as_echo_n "(cached) " >&6
10207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10208 /* end confdefs.h. */
10213 /* FIXME: Include the comments suggested by Paul. */
10214 #ifndef __cplusplus
10215 /* Ultrix mips cc rejects this. */
10216 typedef int charset[2];
10218 /* SunOS 4.1.1 cc rejects this. */
10219 char const *const *pcpcc;
10221 /* NEC SVR4.0.2 mips cc rejects this. */
10222 struct point {int x, y;};
10223 static struct point const zero = {0,0};
10224 /* AIX XL C 1.02.0.0 rejects this.
10225 It does not let you subtract one const X* pointer from another in
10226 an arm of an if-expression whose if-part is not a constant
10228 const char *g = "string";
10229 pcpcc = &g + (g ? g-g : 0);
10230 /* HPUX 7.0 cc rejects these. */
10232 ppc = (char**) pcpcc;
10233 pcpcc = (char const *const *) ppc;
10234 { /* SCO 3.2v4 cc rejects this. */
10236 char const *s = 0 ? (char *) 0 : (char const *) 0;
10241 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10242 int x[] = {25, 17};
10243 const int *foo = &x[0];
10246 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10247 typedef const int *iptr;
10251 { /* AIX XL C 1.02.0.0 rejects this saying
10252 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10253 struct s { int j; const int *ap[3]; };
10254 struct s *b; b->j = 5;
10256 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10257 const int foo = 10;
10258 if (!foo) return 0;
10260 return !cs[0] && !zero.x;
10267 if ac_fn_c_try_compile
"$LINENO"; then :
10272 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10275 $as_echo "$ac_cv_c_const" >&6; }
10276 if test $ac_cv_c_const = no
; then
10278 $as_echo "#define const /**/" >>confdefs.h
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10283 $as_echo_n "checking for inline... " >&6; }
10284 if test "${ac_cv_c_inline+set}" = set; then :
10285 $as_echo_n "(cached) " >&6
10288 for ac_kw
in inline __inline__ __inline
; do
10289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10290 /* end confdefs.h. */
10291 #ifndef __cplusplus
10293 static $ac_kw foo_t static_foo () {return 0; }
10294 $ac_kw foo_t foo () {return 0; }
10298 if ac_fn_c_try_compile
"$LINENO"; then :
10299 ac_cv_c_inline
=$ac_kw
10301 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10302 test "$ac_cv_c_inline" != no
&& break
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10307 $as_echo "$ac_cv_c_inline" >&6; }
10309 case $ac_cv_c_inline in
10312 case $ac_cv_c_inline in
10314 *) ac_val
=$ac_cv_c_inline;;
10316 cat >>confdefs.h
<<_ACEOF
10317 #ifndef __cplusplus
10318 #define inline $ac_val
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10325 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10326 if test "${ac_cv_c_bigendian+set}" = set; then :
10327 $as_echo_n "(cached) " >&6
10329 ac_cv_c_bigendian
=unknown
10330 # See if we're dealing with a universal compiler.
10331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10332 /* end confdefs.h. */
10333 #ifndef __APPLE_CC__
10334 not a universal capable compiler
10339 if ac_fn_c_try_compile
"$LINENO"; then :
10341 # Check for potential -arch flags. It is not universal unless
10342 # there are at least two -arch flags with different values.
10345 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10346 if test -n "$ac_prev"; then
10348 i?
86 | x86_64 | ppc | ppc64
)
10349 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
10352 ac_cv_c_bigendian
=universal
10358 elif test "x$ac_word" = "x-arch"; then
10363 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10364 if test $ac_cv_c_bigendian = unknown
; then
10365 # See if sys/param.h defines the BYTE_ORDER macro.
10366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10367 /* end confdefs.h. */
10368 #include <sys/types.h>
10369 #include <sys/param.h>
10374 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10375 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10377 bogus endian macros
10384 if ac_fn_c_try_compile
"$LINENO"; then :
10385 # It does; now see whether it defined to BIG_ENDIAN or not.
10386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10387 /* end confdefs.h. */
10388 #include <sys/types.h>
10389 #include <sys/param.h>
10394 #if BYTE_ORDER != BIG_ENDIAN
10402 if ac_fn_c_try_compile
"$LINENO"; then :
10403 ac_cv_c_bigendian
=yes
10405 ac_cv_c_bigendian
=no
10407 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10409 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10411 if test $ac_cv_c_bigendian = unknown
; then
10412 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10414 /* end confdefs.h. */
10415 #include <limits.h>
10420 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10421 bogus endian macros
10428 if ac_fn_c_try_compile
"$LINENO"; then :
10429 # It does; now see whether it defined to _BIG_ENDIAN or not.
10430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10431 /* end confdefs.h. */
10432 #include <limits.h>
10437 #ifndef _BIG_ENDIAN
10445 if ac_fn_c_try_compile
"$LINENO"; then :
10446 ac_cv_c_bigendian
=yes
10448 ac_cv_c_bigendian
=no
10450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10452 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10454 if test $ac_cv_c_bigendian = unknown
; then
10455 # Compile a test program.
10456 if test "$cross_compiling" = yes; then :
10457 # Try to guess by grepping values from an object file.
10458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10459 /* end confdefs.h. */
10460 short int ascii_mm[] =
10461 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10462 short int ascii_ii[] =
10463 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10464 int use_ascii (int i) {
10465 return ascii_mm[i] + ascii_ii[i];
10467 short int ebcdic_ii[] =
10468 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10469 short int ebcdic_mm[] =
10470 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10471 int use_ebcdic (int i) {
10472 return ebcdic_mm[i] + ebcdic_ii[i];
10479 return use_ascii (foo) == use_ebcdic (foo);
10484 if ac_fn_c_try_compile
"$LINENO"; then :
10485 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
10486 ac_cv_c_bigendian
=yes
10488 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
10489 if test "$ac_cv_c_bigendian" = unknown
; then
10490 ac_cv_c_bigendian
=no
10492 # finding both strings is unlikely to happen, but who knows?
10493 ac_cv_c_bigendian
=unknown
10497 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10500 /* end confdefs.h. */
10501 $ac_includes_default
10506 /* Are we little or big endian? From Harbison&Steele. */
10510 char c[sizeof (long int)];
10513 return u.c[sizeof (long int) - 1] == 1;
10519 if ac_fn_c_try_run
"$LINENO"; then :
10520 ac_cv_c_bigendian
=no
10522 ac_cv_c_bigendian
=yes
10524 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10525 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10531 $as_echo "$ac_cv_c_bigendian" >&6; }
10532 case $ac_cv_c_bigendian in #(
10534 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10540 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10544 as_fn_error
"unknown endianness
10545 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10549 # ------------------------------ #
10550 # Checks for library functions. #
10551 # ------------------------------ #
10553 for ac_header
in stdlib.h unistd.h
10555 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10556 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10557 eval as_val
=\$
$as_ac_Header
10558 if test "x$as_val" = x
""yes; then :
10559 cat >>confdefs.h
<<_ACEOF
10560 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10567 for ac_func
in getpagesize
10569 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10570 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
10571 cat >>confdefs.h
<<_ACEOF
10572 #define HAVE_GETPAGESIZE 1
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10579 $as_echo_n "checking for working mmap... " >&6; }
10580 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10581 $as_echo_n "(cached) " >&6
10583 if test "$cross_compiling" = yes; then :
10584 ac_cv_func_mmap_fixed_mapped
=no
10586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10587 /* end confdefs.h. */
10588 $ac_includes_default
10589 /* malloc might have been renamed as rpl_malloc. */
10592 /* Thanks to Mike Haertel and Jim Avera for this test.
10593 Here is a matrix of mmap possibilities:
10594 mmap private not fixed
10595 mmap private fixed at somewhere currently unmapped
10596 mmap private fixed at somewhere already mapped
10597 mmap shared not fixed
10598 mmap shared fixed at somewhere currently unmapped
10599 mmap shared fixed at somewhere already mapped
10600 For private mappings, we should verify that changes cannot be read()
10601 back from the file, nor mmap's back from the file at a different
10602 address. (There have been systems where private was not correctly
10603 implemented like the infamous i386 svr4.0, and systems where the
10604 VM page cache was not coherent with the file system buffer cache
10605 like early versions of FreeBSD and possibly contemporary NetBSD.)
10606 For shared mappings, we should conversely verify that changes get
10607 propagated back to all the places they're supposed to be.
10609 Grep wants private fixed already mapped.
10610 The main things grep needs to know about mmap are:
10611 * does it exist and is it safe to write into the mmap'd area
10612 * how to use it (BSD variants) */
10615 #include <sys/mman.h>
10617 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10621 /* This mess was copied from the GNU getpagesize.h. */
10622 #ifndef HAVE_GETPAGESIZE
10623 /* Assume that all systems that can run configure have sys/param.h. */
10624 # ifndef HAVE_SYS_PARAM_H
10625 # define HAVE_SYS_PARAM_H 1
10628 # ifdef _SC_PAGESIZE
10629 # define getpagesize() sysconf(_SC_PAGESIZE)
10630 # else /* no _SC_PAGESIZE */
10631 # ifdef HAVE_SYS_PARAM_H
10632 # include <sys/param.h>
10633 # ifdef EXEC_PAGESIZE
10634 # define getpagesize() EXEC_PAGESIZE
10635 # else /* no EXEC_PAGESIZE */
10637 # define getpagesize() NBPG * CLSIZE
10640 # endif /* no CLSIZE */
10641 # else /* no NBPG */
10643 # define getpagesize() NBPC
10644 # else /* no NBPC */
10646 # define getpagesize() PAGESIZE
10647 # endif /* PAGESIZE */
10648 # endif /* no NBPC */
10649 # endif /* no NBPG */
10650 # endif /* no EXEC_PAGESIZE */
10651 # else /* no HAVE_SYS_PARAM_H */
10652 # define getpagesize() 8192 /* punt totally */
10653 # endif /* no HAVE_SYS_PARAM_H */
10654 # endif /* no _SC_PAGESIZE */
10656 #endif /* no HAVE_GETPAGESIZE */
10661 char *data, *data2, *data3;
10665 pagesize = getpagesize ();
10667 /* First, make a file with some known garbage in it. */
10668 data = (char *) malloc (pagesize);
10671 for (i = 0; i < pagesize; ++i)
10672 *(data + i) = rand ();
10674 fd = creat ("conftest.mmap", 0600);
10677 if (write (fd, data, pagesize) != pagesize)
10681 /* Next, try to mmap the file at a fixed address which already has
10682 something else allocated at it. If we can, also make sure that
10683 we see the same garbage. */
10684 fd = open ("conftest.mmap", O_RDWR);
10687 data2 = (char *) malloc (2 * pagesize);
10690 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10691 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10692 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10694 for (i = 0; i < pagesize; ++i)
10695 if (*(data + i) != *(data2 + i))
10698 /* Finally, make sure that changes to the mapped area do not
10699 percolate back to the file as seen by read(). (This is a bug on
10700 some variants of i386 svr4.0.) */
10701 for (i = 0; i < pagesize; ++i)
10702 *(data2 + i) = *(data2 + i) + 1;
10703 data3 = (char *) malloc (pagesize);
10706 if (read (fd, data3, pagesize) != pagesize)
10708 for (i = 0; i < pagesize; ++i)
10709 if (*(data + i) != *(data3 + i))
10715 if ac_fn_c_try_run
"$LINENO"; then :
10716 ac_cv_func_mmap_fixed_mapped
=yes
10718 ac_cv_func_mmap_fixed_mapped
=no
10720 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10721 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10726 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10727 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10729 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10732 rm -f conftest.mmap
10734 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10735 if test "x$ac_cv_type_pid_t" = x
""yes; then :
10739 cat >>confdefs.h
<<_ACEOF
10745 for ac_header
in vfork.h
10747 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
10748 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
10749 cat >>confdefs.h
<<_ACEOF
10750 #define HAVE_VFORK_H 1
10757 for ac_func
in fork vfork
10759 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10760 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10761 eval as_val
=\$
$as_ac_var
10762 if test "x$as_val" = x
""yes; then :
10763 cat >>confdefs.h
<<_ACEOF
10764 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10770 if test "x$ac_cv_func_fork" = xyes
; then
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10772 $as_echo_n "checking for working fork... " >&6; }
10773 if test "${ac_cv_func_fork_works+set}" = set; then :
10774 $as_echo_n "(cached) " >&6
10776 if test "$cross_compiling" = yes; then :
10777 ac_cv_func_fork_works
=cross
10779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10780 /* end confdefs.h. */
10781 $ac_includes_default
10786 /* By Ruediger Kuhlmann. */
10787 return fork () < 0;
10793 if ac_fn_c_try_run
"$LINENO"; then :
10794 ac_cv_func_fork_works
=yes
10796 ac_cv_func_fork_works
=no
10798 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10799 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10804 $as_echo "$ac_cv_func_fork_works" >&6; }
10807 ac_cv_func_fork_works
=$ac_cv_func_fork
10809 if test "x$ac_cv_func_fork_works" = xcross
; then
10811 *-*-amigaos* |
*-*-msdosdjgpp*)
10812 # Override, as these systems have only a dummy fork() stub
10813 ac_cv_func_fork_works
=no
10816 ac_cv_func_fork_works
=yes
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10820 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10822 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10823 if test "x$ac_cv_func_vfork" = xyes
; then
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10825 $as_echo_n "checking for working vfork... " >&6; }
10826 if test "${ac_cv_func_vfork_works+set}" = set; then :
10827 $as_echo_n "(cached) " >&6
10829 if test "$cross_compiling" = yes; then :
10830 ac_cv_func_vfork_works
=cross
10832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10833 /* end confdefs.h. */
10834 /* Thanks to Paul Eggert for this test. */
10835 $ac_includes_default
10836 #include <sys/wait.h>
10837 #ifdef HAVE_VFORK_H
10838 # include <vfork.h>
10840 /* On some sparc systems, changes by the child to local and incoming
10841 argument registers are propagated back to the parent. The compiler
10842 is told about this with #include <vfork.h>, but some compilers
10843 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10844 static variable whose address is put into a register that is
10845 clobbered by the vfork. */
10848 sparc_address_test (int arg)
10850 sparc_address_test (arg) int arg;
10853 static pid_t child;
10871 pid_t parent = getpid ();
10874 sparc_address_test (0);
10879 /* Here is another test for sparc vfork register problems. This
10880 test uses lots of local variables, at least as many local
10881 variables as main has allocated so far including compiler
10882 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10883 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10884 reuse the register of parent for one of the local variables,
10885 since it will think that parent can't possibly be used any more
10886 in this routine. Assigning to the local variable will thus
10887 munge parent in the parent process. */
10889 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10890 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10891 /* Convince the compiler that p..p7 are live; otherwise, it might
10892 use the same hardware register for all 8 local variables. */
10893 if (p != p1 || p != p2 || p != p3 || p != p4
10894 || p != p5 || p != p6 || p != p7)
10897 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10898 from child file descriptors. If the child closes a descriptor
10899 before it execs or exits, this munges the parent's descriptor
10900 as well. Test for this by closing stdout in the child. */
10901 _exit(close(fileno(stdout)) != 0);
10906 while (wait(&status) != child)
10909 /* Was there some problem with vforking? */
10912 /* Did the child fail? (This shouldn't happen.) */
10915 /* Did the vfork/compiler bug occur? */
10916 || parent != getpid()
10918 /* Did the file descriptor bug occur? */
10919 || fstat(fileno(stdout), &st) != 0
10924 if ac_fn_c_try_run
"$LINENO"; then :
10925 ac_cv_func_vfork_works
=yes
10927 ac_cv_func_vfork_works
=no
10929 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10930 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10935 $as_echo "$ac_cv_func_vfork_works" >&6; }
10938 if test "x$ac_cv_func_fork_works" = xcross
; then
10939 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10941 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10944 if test "x$ac_cv_func_vfork_works" = xyes
; then
10946 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10950 $as_echo "#define vfork fork" >>confdefs.h
10953 if test "x$ac_cv_func_fork_works" = xyes
; then
10955 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10959 for ac_func
in getauxval getrusage getuid getgid \
10960 pipe poll pread pread64 pwrite resize_term \
10961 sbrk setpgid setpgrp setsid \
10962 sigaction sigprocmask sigsetmask socketpair \
10963 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
10964 setrlimit getrlimit posix_madvise waitpid \
10965 ptrace64 sigaltstack mkdtemp
10967 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10968 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10969 eval as_val
=\$
$as_ac_var
10970 if test "x$as_val" = x
""yes; then :
10971 cat >>confdefs.h
<<_ACEOF
10972 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10980 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10981 if test "${am_cv_langinfo_codeset+set}" = set; then :
10982 $as_echo_n "(cached) " >&6
10984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10985 /* end confdefs.h. */
10986 #include <langinfo.h>
10990 char* cs = nl_langinfo(CODESET);
10995 if ac_fn_c_try_link
"$LINENO"; then :
10996 am_cv_langinfo_codeset
=yes
10998 am_cv_langinfo_codeset
=no
11000 rm -f core conftest.err conftest.
$ac_objext \
11001 conftest
$ac_exeext conftest.
$ac_ext
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11005 $as_echo "$am_cv_langinfo_codeset" >&6; }
11006 if test $am_cv_langinfo_codeset = yes; then
11008 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11014 $as_echo_n "checking for ANSI C header files... " >&6; }
11015 if test "${ac_cv_header_stdc+set}" = set; then :
11016 $as_echo_n "(cached) " >&6
11018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11019 /* end confdefs.h. */
11020 #include <stdlib.h>
11021 #include <stdarg.h>
11022 #include <string.h>
11033 if ac_fn_c_try_compile
"$LINENO"; then :
11034 ac_cv_header_stdc
=yes
11036 ac_cv_header_stdc
=no
11038 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11040 if test $ac_cv_header_stdc = yes; then
11041 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11043 /* end confdefs.h. */
11044 #include <string.h>
11047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11048 $EGREP "memchr" >/dev
/null
2>&1; then :
11051 ac_cv_header_stdc
=no
11057 if test $ac_cv_header_stdc = yes; then
11058 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11060 /* end confdefs.h. */
11061 #include <stdlib.h>
11064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11065 $EGREP "free" >/dev
/null
2>&1; then :
11068 ac_cv_header_stdc
=no
11074 if test $ac_cv_header_stdc = yes; then
11075 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11076 if test "$cross_compiling" = yes; then :
11079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11080 /* end confdefs.h. */
11082 #include <stdlib.h>
11083 #if ((' ' & 0x0FF) == 0x020)
11084 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11085 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11087 # define ISLOWER(c) \
11088 (('a' <= (c) && (c) <= 'i') \
11089 || ('j' <= (c) && (c) <= 'r') \
11090 || ('s' <= (c) && (c) <= 'z'))
11091 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11094 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11099 for (i = 0; i < 256; i++)
11100 if (XOR (islower (i), ISLOWER (i))
11101 || toupper (i) != TOUPPER (i))
11106 if ac_fn_c_try_run
"$LINENO"; then :
11109 ac_cv_header_stdc
=no
11111 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11112 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11118 $as_echo "$ac_cv_header_stdc" >&6; }
11119 if test $ac_cv_header_stdc = yes; then
11121 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11125 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11126 # for constant arguments. Useless!
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11128 $as_echo_n "checking for working alloca.h... " >&6; }
11129 if test "${ac_cv_working_alloca_h+set}" = set; then :
11130 $as_echo_n "(cached) " >&6
11132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11133 /* end confdefs.h. */
11134 #include <alloca.h>
11138 char *p = (char *) alloca (2 * sizeof (int));
11144 if ac_fn_c_try_link
"$LINENO"; then :
11145 ac_cv_working_alloca_h
=yes
11147 ac_cv_working_alloca_h
=no
11149 rm -f core conftest.err conftest.
$ac_objext \
11150 conftest
$ac_exeext conftest.
$ac_ext
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11153 $as_echo "$ac_cv_working_alloca_h" >&6; }
11154 if test $ac_cv_working_alloca_h = yes; then
11156 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11161 $as_echo_n "checking for alloca... " >&6; }
11162 if test "${ac_cv_func_alloca_works+set}" = set; then :
11163 $as_echo_n "(cached) " >&6
11165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11166 /* end confdefs.h. */
11168 # define alloca __builtin_alloca
11171 # include <malloc.h>
11172 # define alloca _alloca
11174 # ifdef HAVE_ALLOCA_H
11175 # include <alloca.h>
11180 # ifndef alloca /* predefined by HP cc +Olibcalls */
11191 char *p = (char *) alloca (1);
11197 if ac_fn_c_try_link
"$LINENO"; then :
11198 ac_cv_func_alloca_works
=yes
11200 ac_cv_func_alloca_works
=no
11202 rm -f core conftest.err conftest.
$ac_objext \
11203 conftest
$ac_exeext conftest.
$ac_ext
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11206 $as_echo "$ac_cv_func_alloca_works" >&6; }
11208 if test $ac_cv_func_alloca_works = yes; then
11210 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11213 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11214 # that cause trouble. Some versions do not even contain alloca or
11215 # contain a buggy version. If you still want to use their alloca,
11216 # use ar to extract alloca.o from them instead of compiling alloca.c.
11218 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
11220 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11224 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11225 if test "${ac_cv_os_cray+set}" = set; then :
11226 $as_echo_n "(cached) " >&6
11228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11229 /* end confdefs.h. */
11230 #if defined CRAY && ! defined CRAY2
11237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11238 $EGREP "webecray" >/dev
/null
2>&1; then :
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11247 $as_echo "$ac_cv_os_cray" >&6; }
11248 if test $ac_cv_os_cray = yes; then
11249 for ac_func
in _getb67 GETB67 getb67
; do
11250 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11251 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11252 eval as_val
=\$
$as_ac_var
11253 if test "x$as_val" = x
""yes; then :
11255 cat >>confdefs.h
<<_ACEOF
11256 #define CRAY_STACKSEG_END $ac_func
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11266 $as_echo_n "checking stack direction for C alloca... " >&6; }
11267 if test "${ac_cv_c_stack_direction+set}" = set; then :
11268 $as_echo_n "(cached) " >&6
11270 if test "$cross_compiling" = yes; then :
11271 ac_cv_c_stack_direction
=0
11273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11274 /* end confdefs.h. */
11275 $ac_includes_default
11277 find_stack_direction ()
11279 static char *addr = 0;
11284 return find_stack_direction ();
11287 return (&dummy > addr) ? 1 : -1;
11293 return find_stack_direction () < 0;
11296 if ac_fn_c_try_run
"$LINENO"; then :
11297 ac_cv_c_stack_direction
=1
11299 ac_cv_c_stack_direction
=-1
11301 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11302 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11307 $as_echo "$ac_cv_c_stack_direction" >&6; }
11308 cat >>confdefs.h
<<_ACEOF
11309 #define STACK_DIRECTION $ac_cv_c_stack_direction
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11318 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11319 if test "${am_cv_langinfo_codeset+set}" = set; then :
11320 $as_echo_n "(cached) " >&6
11322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11323 /* end confdefs.h. */
11324 #include <langinfo.h>
11328 char* cs = nl_langinfo(CODESET);
11333 if ac_fn_c_try_link
"$LINENO"; then :
11334 am_cv_langinfo_codeset
=yes
11336 am_cv_langinfo_codeset
=no
11338 rm -f core conftest.err conftest.
$ac_objext \
11339 conftest
$ac_exeext conftest.
$ac_ext
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11343 $as_echo "$am_cv_langinfo_codeset" >&6; }
11344 if test $am_cv_langinfo_codeset = yes; then
11346 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11351 for ac_header
in linux
/perf_event.h locale.h memory.h signal.h sys
/resource.h sys
/socket.h sys
/syscall.h sys
/un.h sys
/wait.h thread_db.h
wait.h
11353 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11354 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11355 eval as_val
=\$
$as_ac_Header
11356 if test "x$as_val" = x
""yes; then :
11357 cat >>confdefs.h
<<_ACEOF
11358 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11366 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair
11368 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11369 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11370 eval as_val
=\$
$as_ac_var
11371 if test "x$as_val" = x
""yes; then :
11372 cat >>confdefs.h
<<_ACEOF
11373 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11380 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
11381 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
11387 cat >>confdefs.h
<<_ACEOF
11388 #define HAVE_DECL_STRERROR $ac_have_decl
11390 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
11391 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
11397 cat >>confdefs.h
<<_ACEOF
11398 #define HAVE_DECL_STRSTR $ac_have_decl
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
11403 $as_echo_n "checking for sigsetjmp... " >&6; }
11404 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
11405 $as_echo_n "(cached) " >&6
11407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11408 /* end confdefs.h. */
11410 #include <setjmp.h>
11415 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
11420 if ac_fn_c_try_compile
"$LINENO"; then :
11421 gdb_cv_func_sigsetjmp
=yes
11423 gdb_cv_func_sigsetjmp
=no
11425 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
11428 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
11429 if test $gdb_cv_func_sigsetjmp = yes; then
11431 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
11436 # Check the return and argument types of ptrace. No canned test for
11437 # this, so roll our own.
11438 gdb_ptrace_headers
='
11439 #include <sys/types.h>
11440 #if HAVE_SYS_PTRACE_H
11441 # include <sys/ptrace.h>
11444 # include <unistd.h>
11447 # There is no point in checking if we don't have a prototype.
11448 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
11450 if test "x$ac_cv_have_decl_ptrace" = x
""yes; then :
11456 cat >>confdefs.h
<<_ACEOF
11457 #define HAVE_DECL_PTRACE $ac_have_decl
11459 if test $ac_have_decl = 1; then :
11463 : ${gdb_cv_func_ptrace_ret='int'}
11464 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
11468 # Check return type. Varargs (used on GNU/Linux) conflict with the
11469 # empty argument list, so check for that explicitly.
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
11471 $as_echo_n "checking return type of ptrace... " >&6; }
11472 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
11473 $as_echo_n "(cached) " >&6
11475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11476 /* end confdefs.h. */
11477 $gdb_ptrace_headers
11481 extern long ptrace (enum __ptrace_request, ...);
11486 if ac_fn_c_try_compile
"$LINENO"; then :
11487 gdb_cv_func_ptrace_ret
='long'
11489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11490 /* end confdefs.h. */
11491 $gdb_ptrace_headers
11495 extern int ptrace ();
11500 if ac_fn_c_try_compile
"$LINENO"; then :
11501 gdb_cv_func_ptrace_ret
='int'
11503 gdb_cv_func_ptrace_ret
='long'
11505 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
11510 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
11512 cat >>confdefs.h
<<_ACEOF
11513 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
11516 # Check argument types.
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
11518 $as_echo_n "checking types of arguments for ptrace... " >&6; }
11519 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
11520 $as_echo_n "(cached) " >&6
11523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11524 /* end confdefs.h. */
11525 $gdb_ptrace_headers
11529 extern long ptrace (enum __ptrace_request, ...);
11534 if ac_fn_c_try_compile
"$LINENO"; then :
11535 gdb_cv_func_ptrace_args
='int,int,long,long'
11538 for gdb_arg1
in 'int' 'long'; do
11539 for gdb_arg2
in 'pid_t' 'int' 'long'; do
11540 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
11541 for gdb_arg4
in 'int' 'long' 'void *'; do
11542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11543 /* end confdefs.h. */
11544 $gdb_ptrace_headers
11549 extern $gdb_cv_func_ptrace_ret
11550 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
11556 if ac_fn_c_try_compile
"$LINENO"; then :
11557 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
11560 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11561 for gdb_arg5
in 'int *' 'int' 'long'; do
11562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11563 /* end confdefs.h. */
11564 $gdb_ptrace_headers
11569 extern $gdb_cv_func_ptrace_ret
11570 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
11576 if ac_fn_c_try_compile
"$LINENO"; then :
11578 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
11581 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11587 # Provide a safe default value.
11588 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
11591 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
11594 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
11595 ac_save_IFS
=$IFS; IFS
=','
11596 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
11600 cat >>confdefs.h
<<_ACEOF
11601 #define PTRACE_TYPE_ARG3 $3
11605 cat >>confdefs.h
<<_ACEOF
11606 #define PTRACE_TYPE_ARG4 $4
11609 if test -n "$5"; then
11611 cat >>confdefs.h
<<_ACEOF
11612 #define PTRACE_TYPE_ARG5 $5
11617 if test "$cross_compiling" = no
; then
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
11619 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
11620 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
11621 $as_echo_n "(cached) " >&6
11623 if test "$cross_compiling" = yes; then :
11624 as_fn_error
"cannot check setpgrp when cross compiling" "$LINENO" 5
11626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11627 /* end confdefs.h. */
11628 $ac_includes_default
11632 /* If this system has a BSD-style setpgrp which takes arguments,
11633 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
11634 exit successfully. */
11635 return setpgrp (1,1) != -1;
11640 if ac_fn_c_try_run
"$LINENO"; then :
11641 ac_cv_func_setpgrp_void
=no
11643 ac_cv_func_setpgrp_void
=yes
11645 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11646 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
11651 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
11652 if test $ac_cv_func_setpgrp_void = yes; then
11654 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
11660 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
11661 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
11662 $as_echo_n "(cached) " >&6
11664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11665 /* end confdefs.h. */
11667 #include <unistd.h>
11673 if (setpgrp(1,1) == -1)
11682 if ac_fn_c_try_compile
"$LINENO"; then :
11683 ac_cv_func_setpgrp_void
=no
11685 ac_cv_func_setpgrp_void
=yes
11687 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
11690 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
11691 if test $ac_cv_func_setpgrp_void = yes; then
11692 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
11697 # Assume we'll default to using the included libiberty regex.
11698 gdb_use_included_regex
=yes
11700 # However, if the system regex is GNU regex, then default to *not*
11701 # using the included regex.
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
11703 $as_echo_n "checking for GNU regex... " >&6; }
11704 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
11705 $as_echo_n "(cached) " >&6
11707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11708 /* end confdefs.h. */
11709 #include <gnu-versions.h>
11713 #define REGEX_INTERFACE_VERSION 1
11714 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
11715 # error "Version mismatch"
11721 if ac_fn_c_try_compile
"$LINENO"; then :
11722 gdb_cv_have_gnu_regex
=yes
11724 gdb_cv_have_gnu_regex
=no
11726 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
11729 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
11730 if test $gdb_cv_have_gnu_regex = yes; then
11731 gdb_use_included_regex
=no
11735 # Check whether --with-included-regex was given.
11736 if test "${with_included_regex+set}" = set; then :
11737 withval
=$with_included_regex; gdb_with_regex
=$withval
11739 gdb_with_regex
=$gdb_use_included_regex
11742 if test "$gdb_with_regex" = yes; then
11744 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
11748 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
11749 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
11750 #include <sys/proc.h>
11753 if test "x$ac_cv_member_struct_thread_td_pcb" = x
""yes; then :
11755 cat >>confdefs.h
<<_ACEOF
11756 #define HAVE_STRUCT_THREAD_TD_PCB 1
11763 # See if <sys/lwp.h> defines `struct lwp`.
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
11765 $as_echo_n "checking for struct lwp... " >&6; }
11766 if test "${gdb_cv_struct_lwp+set}" = set; then :
11767 $as_echo_n "(cached) " >&6
11769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11770 /* end confdefs.h. */
11771 #include <sys/param.h>
11772 #include <sys/lwp.h>
11781 if ac_fn_c_try_compile
"$LINENO"; then :
11782 gdb_cv_struct_lwp
=yes
11784 gdb_cv_struct_lwp
=no
11786 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
11789 $as_echo "$gdb_cv_struct_lwp" >&6; }
11790 if test $gdb_cv_struct_lwp = yes; then
11792 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
11796 # See if <machine/reg.h> degines `struct reg'.
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
11798 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
11799 if test "${gdb_cv_struct_reg+set}" = set; then :
11800 $as_echo_n "(cached) " >&6
11802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11803 /* end confdefs.h. */
11804 #include <sys/types.h>
11805 #include <machine/reg.h>
11814 if ac_fn_c_try_compile
"$LINENO"; then :
11815 gdb_cv_struct_reg
=yes
11817 gdb_cv_struct_reg
=no
11819 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
11822 $as_echo "$gdb_cv_struct_reg" >&6; }
11823 if test $gdb_cv_struct_reg = yes; then
11825 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
11829 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
11830 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
11831 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
11833 if test "x$ac_cv_member_struct_reg_r_fs" = x
""yes; then :
11835 cat >>confdefs.h
<<_ACEOF
11836 #define HAVE_STRUCT_REG_R_FS 1
11841 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
11843 if test "x$ac_cv_member_struct_reg_r_gs" = x
""yes; then :
11845 cat >>confdefs.h
<<_ACEOF
11846 #define HAVE_STRUCT_REG_R_GS 1
11853 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
11854 # Older amd64 Linux's don't have the fs_base and gs_base members of
11855 # `struct user_regs_struct'.
11856 ac_fn_c_check_member
"$LINENO" "struct user_regs_struct" "fs_base" "ac_cv_member_struct_user_regs_struct_fs_base" "#include <sys/user.h>
11858 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = x
""yes; then :
11860 cat >>confdefs.h
<<_ACEOF
11861 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
11866 ac_fn_c_check_member
"$LINENO" "struct user_regs_struct" "gs_base" "ac_cv_member_struct_user_regs_struct_gs_base" "#include <sys/user.h>
11868 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = x
""yes; then :
11870 cat >>confdefs.h
<<_ACEOF
11871 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
11878 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
11880 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
11881 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
11882 $as_echo_n "(cached) " >&6
11884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11885 /* end confdefs.h. */
11886 #include <sys/ptrace.h>
11895 if ac_fn_c_try_compile
"$LINENO"; then :
11896 gdb_cv_have_ptrace_getregs
=yes
11898 gdb_cv_have_ptrace_getregs
=no
11900 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
11904 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
11905 if test $gdb_cv_have_ptrace_getregs = yes; then
11907 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
11911 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
11913 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
11914 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
11915 $as_echo_n "(cached) " >&6
11917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11918 /* end confdefs.h. */
11919 #include <sys/ptrace.h>
11928 if ac_fn_c_try_compile
"$LINENO"; then :
11929 gdb_cv_have_ptrace_getfpxregs
=yes
11931 gdb_cv_have_ptrace_getfpxregs
=no
11933 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
11937 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
11938 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
11940 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
11944 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
11946 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
11947 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
11948 $as_echo_n "(cached) " >&6
11950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11951 /* end confdefs.h. */
11952 #include <sys/types.h>
11953 #include <sys/ptrace.h>
11962 if ac_fn_c_try_compile
"$LINENO"; then :
11963 gdb_cv_have_pt_getdbregs
=yes
11965 gdb_cv_have_pt_getdbregs
=no
11967 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
11971 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
11972 if test $gdb_cv_have_pt_getdbregs = yes; then
11974 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
11978 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
11980 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
11981 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
11982 $as_echo_n "(cached) " >&6
11984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11985 /* end confdefs.h. */
11986 #include <sys/types.h>
11987 #include <sys/ptrace.h>
11996 if ac_fn_c_try_compile
"$LINENO"; then :
11997 gdb_cv_have_pt_getxmmregs
=yes
11999 gdb_cv_have_pt_getxmmregs
=no
12001 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
12005 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
12006 if test $gdb_cv_have_pt_getxmmregs = yes; then
12008 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
12012 # Detect which type of /proc is in use, such as for Solaris.
12014 if test "${target}" = "${host}"; then
12016 *-*-sysv4.2
* |
*-*-sysv5* )
12018 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
12021 *-*-solaris2.
[6789] |
*-*-solaris2.1
[0-9]*)
12023 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
12027 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
12029 $as_echo "#define _KMEMUSER 1" >>confdefs.h
12035 if test "$ac_cv_header_sys_procfs_h" = yes; then
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
12037 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
12038 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
12039 $as_echo_n "(cached) " >&6
12041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12042 /* end confdefs.h. */
12045 /* Needed for new procfs interface on sparc-solaris. */
12046 #define _STRUCTURED_PROC 1
12047 #include <sys/procfs.h>
12056 if ac_fn_c_try_compile
"$LINENO"; then :
12057 bfd_cv_have_sys_procfs_type_gregset_t
=yes
12059 bfd_cv_have_sys_procfs_type_gregset_t
=no
12062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12065 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
12067 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
12071 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
12074 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
12075 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
12076 $as_echo_n "(cached) " >&6
12078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12079 /* end confdefs.h. */
12082 /* Needed for new procfs interface on sparc-solaris. */
12083 #define _STRUCTURED_PROC 1
12084 #include <sys/procfs.h>
12093 if ac_fn_c_try_compile
"$LINENO"; then :
12094 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
12096 bfd_cv_have_sys_procfs_type_fpregset_t
=no
12099 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12102 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
12104 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
12108 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
12111 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
12112 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
12113 $as_echo_n "(cached) " >&6
12115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12116 /* end confdefs.h. */
12119 /* Needed for new procfs interface on sparc-solaris. */
12120 #define _STRUCTURED_PROC 1
12121 #include <sys/procfs.h>
12130 if ac_fn_c_try_compile
"$LINENO"; then :
12131 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
12133 bfd_cv_have_sys_procfs_type_prgregset_t
=no
12136 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12139 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
12141 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
12145 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
12148 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
12149 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
12150 $as_echo_n "(cached) " >&6
12152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12153 /* end confdefs.h. */
12156 /* Needed for new procfs interface on sparc-solaris. */
12157 #define _STRUCTURED_PROC 1
12158 #include <sys/procfs.h>
12167 if ac_fn_c_try_compile
"$LINENO"; then :
12168 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
12170 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
12173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12176 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
12178 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
12182 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
12185 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
12186 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
12187 $as_echo_n "(cached) " >&6
12189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12190 /* end confdefs.h. */
12193 /* Needed for new procfs interface on sparc-solaris. */
12194 #define _STRUCTURED_PROC 1
12195 #include <sys/procfs.h>
12204 if ac_fn_c_try_compile
"$LINENO"; then :
12205 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
12207 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
12210 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12213 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
12215 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
12219 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
12222 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
12223 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
12224 $as_echo_n "(cached) " >&6
12226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12227 /* end confdefs.h. */
12230 /* Needed for new procfs interface on sparc-solaris. */
12231 #define _STRUCTURED_PROC 1
12232 #include <sys/procfs.h>
12241 if ac_fn_c_try_compile
"$LINENO"; then :
12242 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
12244 bfd_cv_have_sys_procfs_type_lwpid_t
=no
12247 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12250 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
12252 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
12256 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
12259 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
12260 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
12261 $as_echo_n "(cached) " >&6
12263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12264 /* end confdefs.h. */
12267 /* Needed for new procfs interface on sparc-solaris. */
12268 #define _STRUCTURED_PROC 1
12269 #include <sys/procfs.h>
12278 if ac_fn_c_try_compile
"$LINENO"; then :
12279 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
12281 bfd_cv_have_sys_procfs_type_psaddr_t
=no
12284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12287 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
12289 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
12293 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
12296 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
12297 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
12298 $as_echo_n "(cached) " >&6
12300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12301 /* end confdefs.h. */
12304 /* Needed for new procfs interface on sparc-solaris. */
12305 #define _STRUCTURED_PROC 1
12306 #include <sys/procfs.h>
12315 if ac_fn_c_try_compile
"$LINENO"; then :
12316 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
12318 bfd_cv_have_sys_procfs_type_prsysent_t
=no
12321 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12324 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
12326 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
12330 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
12333 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
12334 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
12335 $as_echo_n "(cached) " >&6
12337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12338 /* end confdefs.h. */
12341 /* Needed for new procfs interface on sparc-solaris. */
12342 #define _STRUCTURED_PROC 1
12343 #include <sys/procfs.h>
12352 if ac_fn_c_try_compile
"$LINENO"; then :
12353 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
12355 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
12358 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12361 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
12363 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
12367 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
12370 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
12371 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
12372 $as_echo_n "(cached) " >&6
12374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12375 /* end confdefs.h. */
12378 /* Needed for new procfs interface on sparc-solaris. */
12379 #define _STRUCTURED_PROC 1
12380 #include <sys/procfs.h>
12384 pr_sigaction64_t avar
12389 if ac_fn_c_try_compile
"$LINENO"; then :
12390 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
12392 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
12395 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12398 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
12400 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
12404 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
12407 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
12408 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
12409 $as_echo_n "(cached) " >&6
12411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12412 /* end confdefs.h. */
12415 /* Needed for new procfs interface on sparc-solaris. */
12416 #define _STRUCTURED_PROC 1
12417 #include <sys/procfs.h>
12421 pr_siginfo64_t avar
12426 if ac_fn_c_try_compile
"$LINENO"; then :
12427 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
12429 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
12432 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12435 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
12437 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
12441 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
12447 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
12449 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
12450 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
12451 $as_echo_n "(cached) " >&6
12453 if test "$cross_compiling" = yes; then :
12454 gdb_cv_prfpregset_t_broken
=yes
12456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12457 /* end confdefs.h. */
12458 #include <sys/procfs.h>
12461 if (sizeof (prfpregset_t) == sizeof (void *))
12466 if ac_fn_c_try_run
"$LINENO"; then :
12467 gdb_cv_prfpregset_t_broken
=no
12469 gdb_cv_prfpregset_t_broken
=yes
12471 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12472 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
12478 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
12479 if test $gdb_cv_prfpregset_t_broken = yes; then
12481 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
12487 # Check if the compiler supports the `long long' type.
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
12490 $as_echo_n "checking for long long support in compiler... " >&6; }
12491 if test "${gdb_cv_c_long_long+set}" = set; then :
12492 $as_echo_n "(cached) " >&6
12494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12495 /* end confdefs.h. */
12496 extern long long foo;
12500 switch (foo & 2) { case 0: return 1; }
12505 if ac_fn_c_try_compile
"$LINENO"; then :
12506 gdb_cv_c_long_long
=yes
12508 gdb_cv_c_long_long
=no
12510 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
12513 $as_echo "$gdb_cv_c_long_long" >&6; }
12514 if test $gdb_cv_c_long_long != yes; then
12515 # libdecnumber requires long long.
12516 as_fn_error
"Compiler must support long long for GDB." "$LINENO" 5
12519 # Check if the compiler and runtime support printing long longs.
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
12522 $as_echo_n "checking for long long support in printf... " >&6; }
12523 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
12524 $as_echo_n "(cached) " >&6
12526 if test "$cross_compiling" = yes; then :
12527 gdb_cv_printf_has_long_long
=no
12529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12530 /* end confdefs.h. */
12531 $ac_includes_default
12537 l = (l << 16) + 0x0123;
12538 l = (l << 16) + 0x4567;
12539 l = (l << 16) + 0x89ab;
12540 l = (l << 16) + 0xcdef;
12541 sprintf (buf, "0x%016llx", l);
12542 return (strcmp ("0x0123456789abcdef", buf));
12547 if ac_fn_c_try_run
"$LINENO"; then :
12548 gdb_cv_printf_has_long_long
=yes
12550 gdb_cv_printf_has_long_long
=no
12552 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12553 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
12558 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
12559 if test $gdb_cv_printf_has_long_long = yes; then
12561 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
12565 # Check if the compiler and runtime support printing decfloats.
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
12568 $as_echo_n "checking for decfloat support in printf... " >&6; }
12569 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
12570 $as_echo_n "(cached) " >&6
12572 if test "$cross_compiling" = yes; then :
12573 gdb_cv_printf_has_decfloat
=no
12575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12576 /* end confdefs.h. */
12577 $ac_includes_default
12582 _Decimal32 d32 = 1.2345df;
12583 _Decimal64 d64 = 1.2345dd;
12584 _Decimal128 d128 = 1.2345dl;
12585 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
12586 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
12591 if ac_fn_c_try_run
"$LINENO"; then :
12592 gdb_cv_printf_has_decfloat
=yes
12594 gdb_cv_printf_has_decfloat
=no
12596 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12597 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
12602 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
12603 if test $gdb_cv_printf_has_decfloat = yes; then
12605 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
12609 # Check if the compiler supports the `long double' type. We can't use
12610 # AC_C_LONG_DOUBLE because that one does additional checks on the
12611 # constants defined in <float.h> that fail on some systems,
12612 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
12615 $as_echo_n "checking for long double support in compiler... " >&6; }
12616 if test "${gdb_cv_c_long_double+set}" = set; then :
12617 $as_echo_n "(cached) " >&6
12619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12620 /* end confdefs.h. */
12623 if ac_fn_c_try_compile
"$LINENO"; then :
12624 gdb_cv_c_long_double
=yes
12626 gdb_cv_c_long_double
=no
12628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
12631 $as_echo "$gdb_cv_c_long_double" >&6; }
12632 if test $gdb_cv_c_long_double = yes; then
12634 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12638 # Check if the compiler and runtime support printing long doubles.
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
12641 $as_echo_n "checking for long double support in printf... " >&6; }
12642 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
12643 $as_echo_n "(cached) " >&6
12645 if test "$cross_compiling" = yes; then :
12646 gdb_cv_printf_has_long_double
=no
12648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12649 /* end confdefs.h. */
12650 $ac_includes_default
12655 long double f = 3.141592653;
12656 sprintf (buf, "%Lg", f);
12657 return (strncmp ("3.14159", buf, 7));
12662 if ac_fn_c_try_run
"$LINENO"; then :
12663 gdb_cv_printf_has_long_double
=yes
12665 gdb_cv_printf_has_long_double
=no
12667 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12668 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
12673 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
12674 if test $gdb_cv_printf_has_long_double = yes; then
12676 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
12680 # Check if the compiler and runtime support scanning long doubles.
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
12683 $as_echo_n "checking for long double support in scanf... " >&6; }
12684 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
12685 $as_echo_n "(cached) " >&6
12687 if test "$cross_compiling" = yes; then :
12688 gdb_cv_scanf_has_long_double
=no
12690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12691 /* end confdefs.h. */
12696 char *buf = "3.141592653";
12698 sscanf (buf, "%Lg", &f);
12699 return !(f > 3.14159 && f < 3.14160);
12704 if ac_fn_c_try_run
"$LINENO"; then :
12705 gdb_cv_scanf_has_long_double
=yes
12707 gdb_cv_scanf_has_long_double
=no
12709 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12710 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
12715 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
12716 if test $gdb_cv_scanf_has_long_double = yes; then
12718 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
12725 $as_echo_n "checking for -bbigtoc option... " >&6; }
12726 if test "${gdb_cv_bigtoc+set}" = set; then :
12727 $as_echo_n "(cached) " >&6
12730 SAVE_LDFLAGS
=$LDFLAGS
12733 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
12734 *) gdb_cv_bigtoc
=-bbigtoc ;;
12737 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
12738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12739 /* end confdefs.h. */
12749 if ac_fn_c_try_link
"$LINENO"; then :
12754 rm -f core conftest.err conftest.
$ac_objext \
12755 conftest
$ac_exeext conftest.
$ac_ext
12756 LDFLAGS
="${SAVE_LDFLAGS}"
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
12760 $as_echo "$gdb_cv_bigtoc" >&6; }
12761 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
12766 $as_echo_n "checking for the dynamic export flag... " >&6; }
12768 if test "${gdb_native}" = yes; then
12769 # The dynamically loaded libthread_db needs access to symbols in the gdb
12770 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
12771 # may not be supported there.
12772 old_LDFLAGS
="$LDFLAGS"
12773 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
12774 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
12775 LDFLAGS
="$LDFLAGS $RDYNAMIC"
12776 if test "${have_libpython}" = no
; then
12777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12778 /* end confdefs.h. */
12788 if ac_fn_c_try_link
"$LINENO"; then :
12791 rm -f core conftest.err conftest.
$ac_objext \
12792 conftest
$ac_exeext conftest.
$ac_ext
12794 # Workaround http://bugs.python.org/issue4434 where static
12795 # libpythonX.Y.a would get its symbols required for
12796 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
12797 # Problem does not happen for the recommended libpythonX.Y.so linkage.
12798 old_CFLAGS
="$CFLAGS"
12799 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
12801 LIBS
="$LIBS $PYTHON_LIBS"
12802 if test "$cross_compiling" = yes; then :
12805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12806 /* end confdefs.h. */
12807 #include "${have_libpython}/Python.h"
12813 err = PyRun_SimpleString ("import itertools\n");
12815 return err == 0 ? 0 : 1;
12820 if ac_fn_c_try_run
"$LINENO"; then :
12823 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12824 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12828 CFLAGS
="$old_CFLAGS"
12830 LDFLAGS
="$old_LDFLAGS"
12832 if $dynamic_list; then
12833 found
="-Wl,--dynamic-list"
12834 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
12837 RDYNAMIC
="-rdynamic"
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
12841 $as_echo "$found" >&6; }
12844 if test ${build} = ${host} -a ${host} = ${target} ; then
12847 # See if thread_db library is around for Solaris thread debugging.
12848 # Note that we must explicitly test for version 1 of the library
12849 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
12852 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
12853 if test -f /usr
/lib
/libthread_db.so
.1 ; then
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12855 $as_echo "yes" >&6; }
12857 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
12859 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
12860 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12862 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12863 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12864 $as_echo_n "(cached) " >&6
12866 ac_check_lib_save_LIBS
=$LIBS
12868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12869 /* end confdefs.h. */
12871 /* Override any GCC internal prototype to avoid an error.
12872 Use char because int might match the return type of a GCC
12873 builtin and then its argument prototype would still apply. */
12886 if ac_fn_c_try_link
"$LINENO"; then :
12887 ac_cv_lib_dl_dlopen
=yes
12889 ac_cv_lib_dl_dlopen
=no
12891 rm -f core conftest.err conftest.
$ac_objext \
12892 conftest
$ac_exeext conftest.
$ac_ext
12893 LIBS
=$ac_check_lib_save_LIBS
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12896 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12897 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
12898 cat >>confdefs.h
<<_ACEOF
12899 #define HAVE_LIBDL 1
12906 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} $RDYNAMIC"
12907 # Sun randomly tweaked the prototypes in <proc_service.h>
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
12910 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
12911 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
12912 $as_echo_n "(cached) " >&6
12915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12916 /* end confdefs.h. */
12918 #include <proc_service.h>
12919 ps_err_e ps_pdwrite
12920 (struct ps_prochandle*, psaddr_t, const void*, size_t);
12930 if ac_fn_c_try_compile
"$LINENO"; then :
12931 gdb_cv_proc_service_is_old
=no
12933 gdb_cv_proc_service_is_old
=yes
12935 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
12940 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
12941 if test $gdb_cv_proc_service_is_old = yes; then
12943 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12948 $as_echo "no" >&6; }
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
12953 $as_echo_n "checking for AiX thread debugging library... " >&6; }
12954 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
12955 $as_echo_n "(cached) " >&6
12957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12958 /* end confdefs.h. */
12959 #include <sys/pthdebug.h>
12963 #ifndef PTHDB_VERSION_3
12970 if ac_fn_c_try_compile
"$LINENO"; then :
12971 gdb_cv_have_aix_thread_debug
=yes
12973 gdb_cv_have_aix_thread_debug
=no
12975 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
12979 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
12980 if test $gdb_cv_have_aix_thread_debug = yes; then
12981 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
12982 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
12983 LIBS
="$LIBS -lpthdebug"
12985 # Older versions of AIX do not provide the declaration for
12986 # the getthrds function (it appears that it was introduced
12988 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
12990 if test "x$ac_cv_have_decl_getthrds" = x
""yes; then :
12996 cat >>confdefs.h
<<_ACEOF
12997 #define HAVE_DECL_GETTHRDS $ac_have_decl
13006 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
13008 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
13009 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
13010 $as_echo_n "(cached) " >&6
13012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13013 /* end confdefs.h. */
13014 #include <thread_db.h>
13018 int i = TD_NOTALLOC;
13023 if ac_fn_c_try_compile
"$LINENO"; then :
13024 gdb_cv_thread_db_h_has_td_notalloc
=yes
13026 gdb_cv_thread_db_h_has_td_notalloc
=no
13029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
13033 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
13035 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
13036 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
13037 $as_echo_n "(cached) " >&6
13039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13040 /* end confdefs.h. */
13041 #include <thread_db.h>
13045 int i = TD_VERSION;
13050 if ac_fn_c_try_compile
"$LINENO"; then :
13051 gdb_cv_thread_db_h_has_td_version
=yes
13053 gdb_cv_thread_db_h_has_td_version
=no
13056 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
13060 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
13062 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
13063 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
13064 $as_echo_n "(cached) " >&6
13066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13067 /* end confdefs.h. */
13068 #include <thread_db.h>
13077 if ac_fn_c_try_compile
"$LINENO"; then :
13078 gdb_cv_thread_db_h_has_td_notls
=yes
13080 gdb_cv_thread_db_h_has_td_notls
=no
13083 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
13087 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
13089 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
13091 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
13094 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
13096 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
13099 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
13101 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
13105 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
13107 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
13108 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
13109 $as_echo_n "(cached) " >&6
13111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13112 /* end confdefs.h. */
13113 #include <sys/syscall.h>
13117 int i = __NR_tkill;
13122 if ac_fn_c_try_compile
"$LINENO"; then :
13123 gdb_cv_sys_syscall_h_has_tkill
=yes
13125 gdb_cv_sys_syscall_h_has_tkill
=no
13128 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
13132 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
13134 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes"; then
13135 ac_fn_c_check_func
"$LINENO" "syscall" "ac_cv_func_syscall"
13136 if test "x$ac_cv_func_syscall" = x
""yes; then :
13138 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
13145 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
13147 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
13153 cat >>confdefs.h
<<_ACEOF
13154 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
13158 if test "$cross_compiling" = yes; then :
13159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13160 /* end confdefs.h. */
13161 #include <sys/personality.h>
13166 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
13167 # define ADDR_NO_RANDOMIZE 0x0040000
13169 /* Test the flag could be set and stays set. */
13170 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13171 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13177 if ac_fn_c_try_link
"$LINENO"; then :
13178 have_personality
=true
13180 have_personality
=false
13182 rm -f core conftest.err conftest.
$ac_objext \
13183 conftest
$ac_exeext conftest.
$ac_ext
13185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13186 /* end confdefs.h. */
13187 #include <sys/personality.h>
13192 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
13193 # define ADDR_NO_RANDOMIZE 0x0040000
13195 /* Test the flag could be set and stays set. */
13196 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13197 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13203 if ac_fn_c_try_run
"$LINENO"; then :
13204 have_personality
=true
13206 have_personality
=false
13208 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13209 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13212 if $have_personality
13215 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
13228 cat >>confdefs.h
<<_ACEOF
13229 #define GDBINIT "$gdbinit"
13234 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
13235 # except that the argument to --with-sysroot is optional.
13236 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
13237 if test "x$with_sysroot" = xyes
; then
13238 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
13241 # Check whether --with-sysroot was given.
13242 if test "${with_sysroot+set}" = set; then :
13243 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
13245 TARGET_SYSTEM_ROOT
=
13249 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
13250 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13251 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
13252 ac_define_dir
=`eval echo $ac_define_dir`
13254 cat >>confdefs.h
<<_ACEOF
13255 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
13261 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
13262 if test "x$prefix" = xNONE
; then
13263 test_prefix
=/usr
/local
13265 test_prefix
=$prefix
13268 test_prefix
=$exec_prefix
13271 case ${ac_define_dir} in
13272 "${test_prefix}"|
"${test_prefix}/"*|\
13273 '${exec_prefix}'|
'${exec_prefix}/'*)
13278 cat >>confdefs.h
<<_ACEOF
13279 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
13286 # Check whether --with-system-gdbinit was given.
13287 if test "${with_system_gdbinit+set}" = set; then :
13288 withval
=$with_system_gdbinit;
13289 SYSTEM_GDBINIT
=$withval
13295 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
13296 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13297 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
13298 ac_define_dir
=`eval echo $ac_define_dir`
13300 cat >>confdefs.h
<<_ACEOF
13301 #define SYSTEM_GDBINIT "$ac_define_dir"
13307 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
13308 if test "x$prefix" = xNONE
; then
13309 test_prefix
=/usr
/local
13311 test_prefix
=$prefix
13314 test_prefix
=$exec_prefix
13317 case ${ac_define_dir} in
13318 "${test_prefix}"|
"${test_prefix}/"*|\
13319 '${exec_prefix}'|
'${exec_prefix}/'*)
13324 cat >>confdefs.h
<<_ACEOF
13325 #define SYSTEM_GDBINIT_RELOCATABLE $value
13331 # Check whether --enable-werror was given.
13332 if test "${enable_werror+set}" = set; then :
13333 enableval
=$enable_werror; case "${enableval}" in
13334 yes | y
) ERROR_ON_WARNING
="yes" ;;
13335 no | n
) ERROR_ON_WARNING
="no" ;;
13336 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
13341 # Enable -Werror by default when using gcc in C mode. Leave it off
13342 # for C++ until we're warning clean. Turn it off for releases.
13343 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" \
13344 && test x
"$enable_build_with_cxx" != x
"yes" \
13345 && $development; then
13346 ERROR_ON_WARNING
=yes
13350 if test "${ERROR_ON_WARNING}" = yes ; then
13351 WERROR_CFLAGS
="-Werror"
13354 # These options work in either C or C++ modes.
13355 build_warnings
="-Wall -Wpointer-arith \
13356 -Wno-unused -Wunused-value -Wunused-function \
13357 -Wno-switch -Wno-char-subscripts \
13360 # Now add in C and C++ specific options, depending on mode.
13361 if test "$enable_build_with_cxx" = "yes"; then
13362 build_warnings
="$build_warnings -Wno-sign-compare -Wno-write-strings \
13365 build_warnings
="$build_warnings -Wpointer-sign -Wmissing-prototypes \
13366 -Wdeclaration-after-statement -Wmissing-parameter-type \
13367 -Wold-style-declaration -Wold-style-definition"
13370 # Enable -Wno-format by default when using gcc on mingw since many
13371 # GCC versions complain about %I64.
13373 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
13374 *) build_warnings
="$build_warnings -Wformat-nonliteral" ;;
13377 # Check whether --enable-build-warnings was given.
13378 if test "${enable_build_warnings+set}" = set; then :
13379 enableval
=$enable_build_warnings; case "${enableval}" in
13381 no
) build_warnings
="-w";;
13382 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
13383 build_warnings
="${build_warnings} ${t}";;
13384 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
13385 build_warnings
="${t} ${build_warnings}";;
13386 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13388 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
13389 echo "Setting compiler warning flags = $build_warnings" 6>&1
13392 # Check whether --enable-gdb-build-warnings was given.
13393 if test "${enable_gdb_build_warnings+set}" = set; then :
13394 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
13396 no
) build_warnings
="-w";;
13397 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
13398 build_warnings
="${build_warnings} ${t}";;
13399 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
13400 build_warnings
="${t} ${build_warnings}";;
13401 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13403 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
13404 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
13408 # The set of warnings supported by a C++ compiler is not the same as
13409 # of the C compiler.
13410 if test "$enable_build_with_cxx" = "yes"; then
13412 ac_cpp
='$CXXCPP $CPPFLAGS'
13413 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13414 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13415 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
13420 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
13423 $as_echo_n "checking compiler warning flags... " >&6; }
13424 # Separate out the -Werror flag as some files just cannot be
13425 # compiled with it enabled.
13426 for w
in ${build_warnings}; do
13428 -Werr*) WERROR_CFLAGS
=-Werror ;;
13430 # Check whether GCC accepts it.
13431 saved_CFLAGS
="$CFLAGS"
13432 CFLAGS
="$CFLAGS $w"
13433 saved_CXXFLAGS
="$CXXFLAGS"
13434 CXXFLAGS
="$CXXFLAGS $w"
13436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13437 /* end confdefs.h. */
13447 if ac_fn_cxx_try_compile
"$LINENO"; then :
13448 WARN_CFLAGS
="${WARN_CFLAGS} $w"
13450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13451 CFLAGS
="$saved_CFLAGS"
13452 CXXFLAGS
="$saved_CXXFLAGS"
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
13456 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
13461 if test "$enable_build_with_cxx" = "yes"; then
13463 ac_cpp='$CPP $CPPFLAGS'
13464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13470 # In the Cygwin environment, we need some additional flags.
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
13472 $as_echo_n "checking
for cygwin...
" >&6; }
13473 if test "${gdb_cv_os_cygwin+set}" = set; then :
13474 $as_echo_n "(cached
) " >&6
13476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13477 /* end confdefs.h. */
13479 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
13483 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
13484 $EGREP "^lose$
" >/dev/null 2>&1; then :
13485 gdb_cv_os_cygwin=yes
13487 gdb_cv_os_cygwin=no
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
13493 $as_echo "$gdb_cv_os_cygwin" >&6; }
13496 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
13498 *go32* ) SER_HARDWIRE=ser-go32.o ;;
13499 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
13500 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
13504 # libreadline needs libuser32.a in a cygwin environment
13506 if test x$gdb_cv_os_cygwin = xyes; then
13507 WIN32LIBS="-luser32"
13508 case "${target}" in
13509 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
13514 # The ser-tcp.c module requires sockets.
13518 $as_echo "#define USE_WIN32API 1" >>confdefs.h
13520 WIN32LIBS
="$WIN32LIBS -lws2_32"
13525 # Add ELF support to GDB, but only if BFD includes ELF support.
13528 OLD_LDFLAGS
=$LDFLAGS
13530 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
13531 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
13532 # always want our bfd.
13533 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
13534 LDFLAGS
="-L../bfd -L../libiberty $zlibdir $LDFLAGS"
13535 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
13536 LIBS
="-lbfd -liberty -lz $intl $LIBS"
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
13538 $as_echo_n "checking for ELF support in BFD... " >&6; }
13539 if test "${gdb_cv_var_elf+set}" = set; then :
13540 $as_echo_n "(cached) " >&6
13542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13543 /* end confdefs.h. */
13544 #include <stdlib.h>
13546 #include "elf-bfd.h"
13551 return bfd_get_elf_phdr_upper_bound (NULL);
13556 if ac_fn_c_try_link
"$LINENO"; then :
13561 rm -f core conftest.err conftest.
$ac_objext \
13562 conftest
$ac_exeext conftest.
$ac_ext
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
13565 $as_echo "$gdb_cv_var_elf" >&6; }
13567 LDFLAGS
=$OLD_LDFLAGS
13569 if test $gdb_cv_var_elf = yes; then
13570 CONFIG_OBS
="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o"
13572 $as_echo "#define HAVE_ELF 1" >>confdefs.h
13574 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
13575 if test "$plugins" = "yes"; then
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13577 $as_echo_n "checking for library containing dlopen... " >&6; }
13578 if test "${ac_cv_search_dlopen+set}" = set; then :
13579 $as_echo_n "(cached) " >&6
13581 ac_func_search_save_LIBS
=$LIBS
13582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13583 /* end confdefs.h. */
13585 /* Override any GCC internal prototype to avoid an error.
13586 Use char because int might match the return type of a GCC
13587 builtin and then its argument prototype would still apply. */
13600 for ac_lib
in '' dl
; do
13601 if test -z "$ac_lib"; then
13602 ac_res
="none required"
13605 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13607 if ac_fn_c_try_link
"$LINENO"; then :
13608 ac_cv_search_dlopen
=$ac_res
13610 rm -f core conftest.err conftest.
$ac_objext \
13612 if test "${ac_cv_search_dlopen+set}" = set; then :
13616 if test "${ac_cv_search_dlopen+set}" = set; then :
13619 ac_cv_search_dlopen
=no
13621 rm conftest.
$ac_ext
13622 LIBS
=$ac_func_search_save_LIBS
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13625 $as_echo "$ac_cv_search_dlopen" >&6; }
13626 ac_res
=$ac_cv_search_dlopen
13627 if test "$ac_res" != no
; then :
13628 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13635 # Add macho support to GDB, but only if BFD includes it.
13638 OLD_LDFLAGS
=$LDFLAGS
13640 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
13641 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
13642 # always want our bfd.
13643 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
13644 LDFLAGS
="-L../bfd -L../libiberty $zlibdir $LDFLAGS"
13645 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
13646 LIBS
="-lbfd -liberty -lz $intl $LIBS"
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
13648 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
13649 if test "${gdb_cv_var_macho+set}" = set; then :
13650 $as_echo_n "(cached) " >&6
13652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13653 /* end confdefs.h. */
13654 #include <stdlib.h>
13656 #include "mach-o.h"
13661 return bfd_mach_o_lookup_command (NULL, 0, NULL);
13666 if ac_fn_c_try_link
"$LINENO"; then :
13667 gdb_cv_var_macho
=yes
13669 gdb_cv_var_macho
=no
13671 rm -f core conftest.err conftest.
$ac_objext \
13672 conftest
$ac_exeext conftest.
$ac_ext
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
13675 $as_echo "$gdb_cv_var_macho" >&6; }
13677 LDFLAGS
=$OLD_LDFLAGS
13679 if test $gdb_cv_var_macho = yes; then
13680 CONFIG_OBS
="$CONFIG_OBS machoread.o"
13683 # Add any host-specific objects to GDB.
13684 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
13686 # If building on ELF, look for lzma support for embedded compressed debug info.
13687 if test $gdb_cv_var_elf = yes; then
13689 # Check whether --with-lzma was given.
13690 if test "${with_lzma+set}" = set; then :
13691 withval
=$with_lzma;
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
13697 $as_echo_n "checking whether to use lzma... " >&6; }
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
13699 $as_echo "$with_lzma" >&6; }
13701 if test "${with_lzma}" != no
; then
13712 acl_save_prefix
="$prefix"
13713 prefix
="$acl_final_prefix"
13714 acl_save_exec_prefix
="$exec_prefix"
13715 exec_prefix
="$acl_final_exec_prefix"
13717 eval additional_includedir
=\"$includedir\"
13718 eval additional_libdir
=\"$libdir\"
13720 exec_prefix
="$acl_save_exec_prefix"
13721 prefix
="$acl_save_prefix"
13724 # Check whether --with-liblzma-prefix was given.
13725 if test "${with_liblzma_prefix+set}" = set; then :
13726 withval
=$with_liblzma_prefix;
13727 if test "X$withval" = "Xno"; then
13730 if test "X$withval" = "X"; then
13732 acl_save_prefix
="$prefix"
13733 prefix
="$acl_final_prefix"
13734 acl_save_exec_prefix
="$exec_prefix"
13735 exec_prefix
="$acl_final_exec_prefix"
13737 eval additional_includedir
=\"$includedir\"
13738 eval additional_libdir
=\"$libdir\"
13740 exec_prefix
="$acl_save_exec_prefix"
13741 prefix
="$acl_save_prefix"
13744 additional_includedir
="$withval/include"
13745 additional_libdir
="$withval/lib"
13756 names_already_handled
=
13757 names_next_round
='lzma '
13758 while test -n "$names_next_round"; do
13759 names_this_round
="$names_next_round"
13761 for name
in $names_this_round; do
13763 for n
in $names_already_handled; do
13764 if test "$n" = "$name"; then
13765 already_handled
=yes
13769 if test -z "$already_handled"; then
13770 names_already_handled
="$names_already_handled $name"
13771 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13772 eval value
=\"\
$HAVE_LIB$uppername\"
13773 if test -n "$value"; then
13774 if test "$value" = yes; then
13775 eval value
=\"\
$LIB$uppername\"
13776 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
13777 eval value
=\"\
$LTLIB$uppername\"
13778 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
13787 if test $use_additional = yes; then
13788 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13789 found_dir
="$additional_libdir"
13790 found_so
="$additional_libdir/lib$name.$shlibext"
13791 if test -f "$additional_libdir/lib$name.la"; then
13792 found_la
="$additional_libdir/lib$name.la"
13795 if test -f "$additional_libdir/lib$name.$libext"; then
13796 found_dir
="$additional_libdir"
13797 found_a
="$additional_libdir/lib$name.$libext"
13798 if test -f "$additional_libdir/lib$name.la"; then
13799 found_la
="$additional_libdir/lib$name.la"
13804 if test "X$found_dir" = "X"; then
13805 for x
in $LDFLAGS $LTLIBLZMA; do
13807 acl_save_prefix
="$prefix"
13808 prefix
="$acl_final_prefix"
13809 acl_save_exec_prefix
="$exec_prefix"
13810 exec_prefix
="$acl_final_exec_prefix"
13812 exec_prefix
="$acl_save_exec_prefix"
13813 prefix
="$acl_save_prefix"
13817 dir
=`echo "X$x" | sed -e 's/^X-L//'`
13818 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13820 found_so
="$dir/lib$name.$shlibext"
13821 if test -f "$dir/lib$name.la"; then
13822 found_la
="$dir/lib$name.la"
13825 if test -f "$dir/lib$name.$libext"; then
13827 found_a
="$dir/lib$name.$libext"
13828 if test -f "$dir/lib$name.la"; then
13829 found_la
="$dir/lib$name.la"
13835 if test "X$found_dir" != "X"; then
13840 if test "X$found_dir" != "X"; then
13841 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
13842 if test "X$found_so" != "X"; then
13843 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
13844 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
13847 for x
in $ltrpathdirs; do
13848 if test "X$x" = "X$found_dir"; then
13853 if test -z "$haveit"; then
13854 ltrpathdirs
="$ltrpathdirs $found_dir"
13856 if test "$hardcode_direct" = yes; then
13857 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
13859 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
13860 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
13862 for x
in $rpathdirs; do
13863 if test "X$x" = "X$found_dir"; then
13868 if test -z "$haveit"; then
13869 rpathdirs
="$rpathdirs $found_dir"
13873 for x
in $LDFLAGS $LIBLZMA; do
13875 acl_save_prefix
="$prefix"
13876 prefix
="$acl_final_prefix"
13877 acl_save_exec_prefix
="$exec_prefix"
13878 exec_prefix
="$acl_final_exec_prefix"
13880 exec_prefix
="$acl_save_exec_prefix"
13881 prefix
="$acl_save_prefix"
13883 if test "X$x" = "X-L$found_dir"; then
13888 if test -z "$haveit"; then
13889 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
13891 if test "$hardcode_minus_L" != no
; then
13892 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
13894 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
13900 if test "X$found_a" != "X"; then
13901 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
13903 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
13906 additional_includedir
=
13907 case "$found_dir" in
13909 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13910 additional_includedir
="$basedir/include"
13913 if test "X$additional_includedir" != "X"; then
13914 if test "X$additional_includedir" != "X/usr/include"; then
13916 if test "X$additional_includedir" = "X/usr/local/include"; then
13917 if test -n "$GCC"; then
13919 linux
*) haveit
=yes;;
13923 if test -z "$haveit"; then
13924 for x
in $CPPFLAGS $INCLZMA; do
13926 acl_save_prefix
="$prefix"
13927 prefix
="$acl_final_prefix"
13928 acl_save_exec_prefix
="$exec_prefix"
13929 exec_prefix
="$acl_final_exec_prefix"
13931 exec_prefix
="$acl_save_exec_prefix"
13932 prefix
="$acl_save_prefix"
13934 if test "X$x" = "X-I$additional_includedir"; then
13939 if test -z "$haveit"; then
13940 if test -d "$additional_includedir"; then
13941 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
13947 if test -n "$found_la"; then
13948 save_libdir
="$libdir"
13949 case "$found_la" in
13950 */* |
*\\*) .
"$found_la" ;;
13951 *) .
"./$found_la" ;;
13953 libdir
="$save_libdir"
13954 for dep
in $dependency_libs; do
13957 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
13958 if test "X$additional_libdir" != "X/usr/lib"; then
13960 if test "X$additional_libdir" = "X/usr/local/lib"; then
13961 if test -n "$GCC"; then
13963 linux
*) haveit
=yes;;
13967 if test -z "$haveit"; then
13969 for x
in $LDFLAGS $LIBLZMA; do
13971 acl_save_prefix
="$prefix"
13972 prefix
="$acl_final_prefix"
13973 acl_save_exec_prefix
="$exec_prefix"
13974 exec_prefix
="$acl_final_exec_prefix"
13976 exec_prefix
="$acl_save_exec_prefix"
13977 prefix
="$acl_save_prefix"
13979 if test "X$x" = "X-L$additional_libdir"; then
13984 if test -z "$haveit"; then
13985 if test -d "$additional_libdir"; then
13986 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
13990 for x
in $LDFLAGS $LTLIBLZMA; do
13992 acl_save_prefix
="$prefix"
13993 prefix
="$acl_final_prefix"
13994 acl_save_exec_prefix
="$exec_prefix"
13995 exec_prefix
="$acl_final_exec_prefix"
13997 exec_prefix
="$acl_save_exec_prefix"
13998 prefix
="$acl_save_prefix"
14000 if test "X$x" = "X-L$additional_libdir"; then
14005 if test -z "$haveit"; then
14006 if test -d "$additional_libdir"; then
14007 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
14014 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
14015 if test "$enable_rpath" != no
; then
14017 for x
in $rpathdirs; do
14018 if test "X$x" = "X$dir"; then
14023 if test -z "$haveit"; then
14024 rpathdirs
="$rpathdirs $dir"
14027 for x
in $ltrpathdirs; do
14028 if test "X$x" = "X$dir"; then
14033 if test -z "$haveit"; then
14034 ltrpathdirs
="$ltrpathdirs $dir"
14039 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14042 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14045 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
14046 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
14052 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
14053 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
14059 if test "X$rpathdirs" != "X"; then
14060 if test -n "$hardcode_libdir_separator"; then
14062 for found_dir
in $rpathdirs; do
14063 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14065 acl_save_libdir
="$libdir"
14067 eval flag
=\"$hardcode_libdir_flag_spec\"
14068 libdir
="$acl_save_libdir"
14069 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
14071 for found_dir
in $rpathdirs; do
14072 acl_save_libdir
="$libdir"
14073 libdir
="$found_dir"
14074 eval flag
=\"$hardcode_libdir_flag_spec\"
14075 libdir
="$acl_save_libdir"
14076 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
14080 if test "X$ltrpathdirs" != "X"; then
14081 for found_dir
in $ltrpathdirs; do
14082 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
14087 ac_save_CPPFLAGS
="$CPPFLAGS"
14089 for element
in $INCLZMA; do
14091 for x
in $CPPFLAGS; do
14093 acl_save_prefix
="$prefix"
14094 prefix
="$acl_final_prefix"
14095 acl_save_exec_prefix
="$exec_prefix"
14096 exec_prefix
="$acl_final_exec_prefix"
14098 exec_prefix
="$acl_save_exec_prefix"
14099 prefix
="$acl_save_prefix"
14101 if test "X$x" = "X$element"; then
14106 if test -z "$haveit"; then
14107 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
14113 $as_echo_n "checking for liblzma... " >&6; }
14114 if test "${ac_cv_liblzma+set}" = set; then :
14115 $as_echo_n "(cached) " >&6
14118 ac_save_LIBS
="$LIBS"
14119 LIBS
="$LIBS $LIBLZMA"
14120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14121 /* end confdefs.h. */
14126 lzma_index_iter iter;
14127 lzma_index_iter_init (&iter, 0);
14128 lzma_mf_is_supported (LZMA_MF_HC3);
14133 if ac_fn_c_try_link
"$LINENO"; then :
14138 rm -f core conftest.err conftest.
$ac_objext \
14139 conftest
$ac_exeext conftest.
$ac_ext
14140 LIBS
="$ac_save_LIBS"
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
14144 $as_echo "$ac_cv_liblzma" >&6; }
14145 if test "$ac_cv_liblzma" = yes; then
14148 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
14151 $as_echo_n "checking how to link with liblzma... " >&6; }
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
14153 $as_echo "$LIBLZMA" >&6; }
14156 CPPFLAGS
="$ac_save_CPPFLAGS"
14166 if test "$HAVE_LIBLZMA" != yes; then
14167 if test "$with_lzma" = yes; then
14168 as_fn_error
"missing liblzma for --with-lzma" "$LINENO" 5
14174 LIBGUI
="../libgui/src/libgui.a"
14175 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
14184 *-*-cygwin* |
*-*-mingw* )
14193 if test "${enable_gdbtk}" = "yes"; then
14195 # Gdbtk must have an absolute path to srcdir in order to run
14196 # properly when not installed.
14199 GDBTK_SRC_DIR
=`pwd`
14204 # Ok, lets find the tcl configuration
14205 # First, look for one uninstalled.
14206 # the alternative search directory is invoked by --with-tcl
14209 if test x
"${no_tcl}" = x
; then
14210 # we reset no_tcl in case something fails here
14213 # Check whether --with-tcl was given.
14214 if test "${with_tcl+set}" = set; then :
14215 withval
=$with_tcl; with_tclconfig
=${withval}
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
14219 $as_echo_n "checking for Tcl configuration... " >&6; }
14220 if test "${ac_cv_c_tclconfig+set}" = set; then :
14221 $as_echo_n "(cached) " >&6
14225 # First check to see if --with-tcl was specified.
14227 *-*-cygwin*) platDir
="win" ;;
14228 *) platDir
="unix" ;;
14230 if test x
"${with_tclconfig}" != x
; then
14231 if test -f "${with_tclconfig}/tclConfig.sh" ; then
14232 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
14234 as_fn_error
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
14238 # then check for a private Tcl installation
14239 if test x
"${ac_cv_c_tclconfig}" = x
; then
14242 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14243 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
14244 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
14246 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14247 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
14248 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
14250 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14251 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
14252 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
14253 if test -f "$i/$platDir/tclConfig.sh" ; then
14254 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
14260 # on Darwin, check in Framework installation locations
14261 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
14262 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
14263 `ls -d /Library/Frameworks 2>/dev/null` \
14264 `ls -d /Network/Library/Frameworks 2>/dev/null` \
14265 `ls -d /System/Library/Frameworks 2>/dev/null` \
14267 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
14268 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
14274 # check in a few common install locations
14275 if test x
"${ac_cv_c_tclconfig}" = x
; then
14276 for i
in `ls -d ${libdir} 2>/dev/null` \
14277 `ls -d ${exec_prefix}/lib 2>/dev/null` \
14278 `ls -d ${prefix}/lib 2>/dev/null` \
14279 `ls -d /usr/local/lib 2>/dev/null` \
14280 `ls -d /usr/contrib/lib 2>/dev/null` \
14281 `ls -d /usr/lib 2>/dev/null` \
14283 if test -f "$i/tclConfig.sh" ; then
14284 ac_cv_c_tclconfig
=`(cd $i; pwd)`
14290 # check in a few other private locations
14291 if test x
"${ac_cv_c_tclconfig}" = x
; then
14294 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14295 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
14296 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
14297 if test -f "$i/$platDir/tclConfig.sh" ; then
14298 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
14307 if test x
"${ac_cv_c_tclconfig}" = x
; then
14308 TCL_BIN_DIR
="# no Tcl configs found"
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
14310 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
14313 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
14315 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
14320 # If $no_tk is nonempty, then we can't do Tk, and there is no
14321 # point to doing Tcl.
14324 # Ok, lets find the tk configuration
14325 # First, look for one uninstalled.
14326 # the alternative search directory is invoked by --with-tk
14329 if test x
"${no_tk}" = x
; then
14330 # we reset no_tk in case something fails here
14333 # Check whether --with-tk was given.
14334 if test "${with_tk+set}" = set; then :
14335 withval
=$with_tk; with_tkconfig
=${withval}
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
14339 $as_echo_n "checking for Tk configuration... " >&6; }
14340 if test "${ac_cv_c_tkconfig+set}" = set; then :
14341 $as_echo_n "(cached) " >&6
14345 # First check to see if --with-tkconfig was specified.
14346 if test x
"${with_tkconfig}" != x
; then
14347 if test -f "${with_tkconfig}/tkConfig.sh" ; then
14348 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
14350 as_fn_error
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
14354 # then check for a private Tk library
14356 *-*-cygwin*) platDir
="win" ;;
14357 *) platDir
="unix" ;;
14359 if test x
"${ac_cv_c_tkconfig}" = x
; then
14362 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14363 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
14364 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
14366 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14367 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
14368 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
14370 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14371 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
14372 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
14373 if test -f "$i/$platDir/tkConfig.sh" ; then
14374 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
14380 # on Darwin, check in Framework installation locations
14381 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
14382 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
14383 `ls -d /Library/Frameworks 2>/dev/null` \
14384 `ls -d /Network/Library/Frameworks 2>/dev/null` \
14385 `ls -d /System/Library/Frameworks 2>/dev/null` \
14387 if test -f "$i/Tk.framework/tkConfig.sh" ; then
14388 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
14394 # check in a few common install locations
14395 if test x
"${ac_cv_c_tkconfig}" = x
; then
14396 for i
in `ls -d ${libdir} 2>/dev/null` \
14397 `ls -d ${exec_prefix}/lib 2>/dev/null` \
14398 `ls -d ${prefix}/lib 2>/dev/null` \
14399 `ls -d /usr/local/lib 2>/dev/null` \
14400 `ls -d /usr/contrib/lib 2>/dev/null` \
14401 `ls -d /usr/lib 2>/dev/null` \
14403 if test -f "$i/tkConfig.sh" ; then
14404 ac_cv_c_tkconfig
=`(cd $i; pwd)`
14409 # check in a few other private locations
14410 if test x
"${ac_cv_c_tkconfig}" = x
; then
14413 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14414 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
14415 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
14416 if test -f "$i/$platDir/tkConfig.sh" ; then
14417 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
14426 if test x
"${ac_cv_c_tkconfig}" = x
; then
14427 TK_BIN_DIR
="# no Tk configs found"
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
14429 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
14432 TK_BIN_DIR
=${ac_cv_c_tkconfig}
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
14434 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
14439 if test -z "${no_tcl}" -a -z "${no_tk}"; then
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
14442 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
14444 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
14446 $as_echo "loading" >&6; }
14447 .
${TCL_BIN_DIR}/tclConfig.sh
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
14450 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
14453 # eval is required to do the TCL_DBGX substitution
14454 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
14455 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
14457 # If the TCL_BIN_DIR is the build directory (not the install directory),
14458 # then set the common variable name to the value of the build variables.
14459 # For example, the variable TCL_LIB_SPEC will be set to the value
14460 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
14461 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
14462 # installed and uninstalled version of Tcl.
14463 if test -f "${TCL_BIN_DIR}/Makefile" ; then
14464 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
14465 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
14466 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
14467 elif test "`uname -s`" = "Darwin"; then
14468 # If Tcl was built as a framework, attempt to use the libraries
14469 # from the framework at the given location so that linking works
14470 # against Tcl.framework installed in an arbitrary location.
14471 case ${TCL_DEFS} in
14473 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
14474 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
14475 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
14476 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
14477 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
14482 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
14483 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
14484 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
14490 # eval is required to do the TCL_DBGX substitution
14491 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
14492 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
14493 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
14494 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
14510 # Check for in-tree tcl
14517 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
14521 # Find Tcl private headers
14522 if test x
"${intree}" = xno
; then
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
14525 $as_echo_n "checking for Tcl private headers... " >&6; }
14527 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
14528 if test -f ${dir}/tclInt.h
; then
14532 if test x
"${private_dir}" = x
; then
14533 as_fn_error
"could not find private Tcl headers" "$LINENO" 5
14535 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
14537 $as_echo "${private_dir}" >&6; }
14540 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
14541 TCL_LIBRARY
="${TCL_LIB_SPEC}"
14544 # If building tcl in the same src tree, private headers
14545 # are not needed, but we need to be sure to use the right
14547 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
14548 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
14549 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
14557 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
14559 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
14561 $as_echo "loading" >&6; }
14562 .
${TK_BIN_DIR}/tkConfig.sh
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
14565 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
14568 # eval is required to do the TK_DBGX substitution
14569 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
14570 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
14572 # If the TK_BIN_DIR is the build directory (not the install directory),
14573 # then set the common variable name to the value of the build variables.
14574 # For example, the variable TK_LIB_SPEC will be set to the value
14575 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
14576 # instead of TK_BUILD_LIB_SPEC since it will work with both an
14577 # installed and uninstalled version of Tcl.
14578 if test -f "${TK_BIN_DIR}/Makefile" ; then
14579 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
14580 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
14581 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
14582 elif test "`uname -s`" = "Darwin"; then
14583 # If Tk was built as a framework, attempt to use the libraries
14584 # from the framework at the given location so that linking works
14585 # against Tk.framework installed in an arbitrary location.
14588 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
14589 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
14590 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
14591 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
14592 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
14597 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
14598 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
14599 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
14605 # eval is required to do the TK_DBGX substitution
14606 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
14607 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
14608 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
14609 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
14624 # Check for in-tree Tk
14626 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
14630 # Find Tk private headers
14631 if test x
"${intree}" = xno
; then
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
14634 $as_echo_n "checking for Tk private headers... " >&6; }
14636 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
14637 if test -f ${dir}/tkInt.h
; then
14641 if test x
"${private_dir}" = x
; then
14642 as_fn_error
"could not find Tk private headers" "$LINENO" 5
14644 TK_PRIVATE_INCLUDE
="-I${private_dir}"
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
14646 $as_echo "${private_dir}" >&6; }
14649 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
14650 TK_LIBRARY
=${TK_LIB_SPEC}
14653 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
14654 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
14655 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
14662 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
14664 # Include some libraries that Tcl and Tk want.
14665 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
14666 # Yes, the ordering seems wrong here. But it isn't.
14667 # TK_LIBS is the list of libraries that need to be linked
14668 # after Tcl/Tk. Note that this isn't put into LIBS. If it
14669 # were in LIBS then any link tests after this point would
14670 # try to include things like `$(LIBGUI)', which wouldn't work.
14671 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
14673 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
14674 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
14675 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
14676 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
14677 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
14678 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
14679 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
14681 if test x
$gdb_cv_os_cygwin = xyes
; then
14682 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
14683 WIN32LDAPP
="-Wl,--subsystem,console"
14684 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
14687 subdirs
="$subdirs gdbtk"
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14700 $as_echo_n "checking for X... " >&6; }
14703 # Check whether --with-x was given.
14704 if test "${with_x+set}" = set; then :
14708 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14709 if test "x$with_x" = xno
; then
14710 # The user explicitly disabled X.
14713 case $x_includes,$x_libraries in #(
14714 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
14715 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
14716 $as_echo_n "(cached) " >&6
14718 # One or both of the vars are not set, and there is no cached value.
14719 ac_x_includes
=no ac_x_libraries
=no
14720 rm -f -r conftest.dir
14721 if mkdir conftest.dir
; then
14723 cat >Imakefile
<<'_ACEOF'
14725 @echo incroot='${INCROOT}'
14727 @echo usrlibdir='${USRLIBDIR}'
14729 @echo libdir='${LIBDIR}'
14731 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
14732 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
14733 for ac_var
in incroot usrlibdir libdir
; do
14734 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14736 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14737 for ac_extension
in a so sl dylib la dll
; do
14738 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14739 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14740 ac_im_usrlibdir
=$ac_im_libdir; break
14743 # Screen out bogus values from the imake configuration. They are
14744 # bogus both because they are the default anyway, and because
14745 # using them would break gcc on systems where it needs fixed includes.
14746 case $ac_im_incroot in
14747 /usr
/include
) ac_x_includes
= ;;
14748 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
14750 case $ac_im_usrlibdir in
14751 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
14752 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
14756 rm -f -r conftest.dir
14759 # Standard set of common directories for X headers.
14760 # Check X11 before X11Rn because it is often a symlink to the current release.
14774 /usr/local/X11/include
14775 /usr/local/X11R7/include
14776 /usr/local/X11R6/include
14777 /usr/local/X11R5/include
14778 /usr/local/X11R4/include
14780 /usr/local/include/X11
14781 /usr/local/include/X11R7
14782 /usr/local/include/X11R6
14783 /usr/local/include/X11R5
14784 /usr/local/include/X11R4
14788 /usr/XFree86/include/X11
14792 /usr/unsupported/include
14793 /usr/athena/include
14794 /usr/local/x11r5/include
14795 /usr/lpp/Xamples/include
14797 /usr/openwin/include
14798 /usr/openwin/share/include'
14800 if test "$ac_x_includes" = no
; then
14801 # Guess where to find include files, by looking for Xlib.h.
14802 # First, try using that file with no special directory specified.
14803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14804 /* end confdefs.h. */
14805 #include <X11/Xlib.h>
14807 if ac_fn_c_try_cpp
"$LINENO"; then :
14808 # We can compile using X headers with no special include directory.
14811 for ac_dir
in $ac_x_header_dirs; do
14812 if test -r "$ac_dir/X11/Xlib.h"; then
14813 ac_x_includes
=$ac_dir
14818 rm -f conftest.err conftest.
$ac_ext
14819 fi # $ac_x_includes = no
14821 if test "$ac_x_libraries" = no
; then
14822 # Check for the libraries.
14823 # See if we find them without any special options.
14824 # Don't add to $LIBS permanently.
14827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14828 /* end confdefs.h. */
14829 #include <X11/Xlib.h>
14838 if ac_fn_c_try_link
"$LINENO"; then :
14840 # We can link X programs with no special library path.
14844 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14846 # Don't even attempt the hair of trying to link an X program!
14847 for ac_extension
in a so sl dylib la dll
; do
14848 if test -r "$ac_dir/libX11.$ac_extension"; then
14849 ac_x_libraries
=$ac_dir
14855 rm -f core conftest.err conftest.
$ac_objext \
14856 conftest
$ac_exeext conftest.
$ac_ext
14857 fi # $ac_x_libraries = no
14859 case $ac_x_includes,$ac_x_libraries in #(
14860 no
,* |
*,no |
*\'*)
14861 # Didn't find X, or a directory has "'" in its name.
14862 ac_cv_have_x
="have_x=no";; #(
14864 # Record where we found X for the cache.
14865 ac_cv_have_x
="have_x=yes\
14866 ac_x_includes='$ac_x_includes'\
14867 ac_x_libraries='$ac_x_libraries'"
14873 eval "$ac_cv_have_x"
14876 if test "$have_x" != yes; then
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14878 $as_echo "$have_x" >&6; }
14881 # If each of the values was on the command line, it overrides each guess.
14882 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
14883 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
14884 # Update the cache value to reflect the command line values.
14885 ac_cv_have_x
="have_x=yes\
14886 ac_x_includes='$x_includes'\
14887 ac_x_libraries='$x_libraries'"
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14889 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14893 # Unlike the sim directory, whether a simulator is linked is controlled by
14894 # presence of a gdb_sim definition in the target configure.tgt entry.
14895 # This code just checks for a few cases where we'd like to ignore those
14896 # definitions, even when they're present in the '.mt' file. These cases
14897 # are when --disable-sim is specified, or if the simulator directory is
14898 # not part of the source tree.
14900 # Check whether --enable-sim was given.
14901 if test "${enable_sim+set}" = set; then :
14902 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
14903 echo "enableval = ${enableval}";
14904 case "${enableval}" in
14905 yes) ignore_sim
=false
;;
14906 no
) ignore_sim
=true
;;
14907 *) ignore_sim
=false
;;
14914 if test ! -d "${srcdir}/../sim"; then
14920 if test "${ignore_sim}" = "false"; then
14921 if test x
"${gdb_sim}" != x
; then
14923 SIM_OBS
="remote-sim.o"
14925 $as_echo "#define WITH_SIM 1" >>confdefs.h
14943 # List of host floatformats.
14945 cat >>confdefs.h
<<_ACEOF
14946 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
14950 cat >>confdefs.h
<<_ACEOF
14951 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
14955 cat >>confdefs.h
<<_ACEOF
14956 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
14960 # target_subdir is used by the testsuite to find the target libraries.
14962 if test "${host}" != "${target}"; then
14963 target_subdir
="${target_alias}/"
14968 if test "${gdb_native}" = "yes"; then
14969 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
14970 if test ! -f ${host_makefile_frag}; then
14971 as_fn_error
"\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
14973 frags
="$frags $host_makefile_frag"
14975 host_makefile_frag
=/dev
/null
14981 if test "${gdb_native}" = "yes"; then
14982 # We pick this up from the host configuration file (.mh) because we
14983 # do not have a native configuration Makefile fragment.
14984 nativefile
=`sed -n '
14985 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
14986 ' ${host_makefile_frag}`
14990 if test x
"${gdb_osabi}" != x
; then
14992 cat >>confdefs.h
<<_ACEOF
14993 #define GDB_OSABI_DEFAULT $gdb_osabi
14998 # Enable multi-ice-gdb-server.
14999 # Check whether --enable-multi-ice was given.
15000 if test "${enable_multi_ice+set}" = set; then :
15001 enableval
=$enable_multi_ice; case $enableval in
15004 *) as_fn_error
"bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
15008 if test "x$enable_multi_ice" = xyes
; then
15009 subdirs
="$subdirs multi-ice"
15013 # Check whether --enable-gdbserver was given.
15014 if test "${enable_gdbserver+set}" = set; then :
15015 enableval
=$enable_gdbserver; case "${enableval}" in
15017 *) as_fn_error
"bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
15020 enable_gdbserver
=auto
15024 # We only build gdbserver automatically in a native configuration, and
15025 # only if the user did not explicitly disable its build.
15026 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
15028 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
15029 if test "x$build_gdbserver" = xyes
; then
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15031 $as_echo "yes" >&6; }
15032 subdirs
="$subdirs gdbserver"
15034 gdbserver_build_enabled
=yes
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15037 $as_echo "no" >&6; }
15041 # If the user explicitly request the gdbserver to be built, verify that
15042 # we were in fact able to enable it.
15043 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
15044 as_fn_error
"Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
15047 # Check for babeltrace and babeltrace-ctf
15049 # Check whether --with-babeltrace was given.
15050 if test "${with_babeltrace+set}" = set; then :
15051 withval
=$with_babeltrace;
15053 with_babeltrace
=auto
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
15057 $as_echo_n "checking whether to use babeltrace... " >&6; }
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
15059 $as_echo "$with_babeltrace" >&6; }
15061 if test "x$with_babeltrace" = "xno"; then
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
15063 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
15065 # Append -Werror to CFLAGS so that configure can catch the warning
15066 # "assignment from incompatible pointer type", which is related to
15067 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
15068 # in GDB, while babeltrace 1.0.3 is broken.
15069 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
15070 # safe to save and restore CFLAGS here.
15071 saved_CFLAGS
=$CFLAGS
15072 CFLAGS
="$CFLAGS -Werror"
15083 acl_save_prefix
="$prefix"
15084 prefix
="$acl_final_prefix"
15085 acl_save_exec_prefix
="$exec_prefix"
15086 exec_prefix
="$acl_final_exec_prefix"
15088 eval additional_includedir
=\"$includedir\"
15089 eval additional_libdir
=\"$libdir\"
15091 exec_prefix
="$acl_save_exec_prefix"
15092 prefix
="$acl_save_prefix"
15095 # Check whether --with-libbabeltrace-prefix was given.
15096 if test "${with_libbabeltrace_prefix+set}" = set; then :
15097 withval
=$with_libbabeltrace_prefix;
15098 if test "X$withval" = "Xno"; then
15101 if test "X$withval" = "X"; then
15103 acl_save_prefix
="$prefix"
15104 prefix
="$acl_final_prefix"
15105 acl_save_exec_prefix
="$exec_prefix"
15106 exec_prefix
="$acl_final_exec_prefix"
15108 eval additional_includedir
=\"$includedir\"
15109 eval additional_libdir
=\"$libdir\"
15111 exec_prefix
="$acl_save_exec_prefix"
15112 prefix
="$acl_save_prefix"
15115 additional_includedir
="$withval/include"
15116 additional_libdir
="$withval/lib"
15127 names_already_handled
=
15128 names_next_round
='babeltrace babeltrace-ctf'
15129 while test -n "$names_next_round"; do
15130 names_this_round
="$names_next_round"
15132 for name
in $names_this_round; do
15134 for n
in $names_already_handled; do
15135 if test "$n" = "$name"; then
15136 already_handled
=yes
15140 if test -z "$already_handled"; then
15141 names_already_handled
="$names_already_handled $name"
15142 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15143 eval value
=\"\
$HAVE_LIB$uppername\"
15144 if test -n "$value"; then
15145 if test "$value" = yes; then
15146 eval value
=\"\
$LIB$uppername\"
15147 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
15148 eval value
=\"\
$LTLIB$uppername\"
15149 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
15158 if test $use_additional = yes; then
15159 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15160 found_dir
="$additional_libdir"
15161 found_so
="$additional_libdir/lib$name.$shlibext"
15162 if test -f "$additional_libdir/lib$name.la"; then
15163 found_la
="$additional_libdir/lib$name.la"
15166 if test -f "$additional_libdir/lib$name.$libext"; then
15167 found_dir
="$additional_libdir"
15168 found_a
="$additional_libdir/lib$name.$libext"
15169 if test -f "$additional_libdir/lib$name.la"; then
15170 found_la
="$additional_libdir/lib$name.la"
15175 if test "X$found_dir" = "X"; then
15176 for x
in $LDFLAGS $LTLIBBABELTRACE; do
15178 acl_save_prefix
="$prefix"
15179 prefix
="$acl_final_prefix"
15180 acl_save_exec_prefix
="$exec_prefix"
15181 exec_prefix
="$acl_final_exec_prefix"
15183 exec_prefix
="$acl_save_exec_prefix"
15184 prefix
="$acl_save_prefix"
15188 dir
=`echo "X$x" | sed -e 's/^X-L//'`
15189 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15191 found_so
="$dir/lib$name.$shlibext"
15192 if test -f "$dir/lib$name.la"; then
15193 found_la
="$dir/lib$name.la"
15196 if test -f "$dir/lib$name.$libext"; then
15198 found_a
="$dir/lib$name.$libext"
15199 if test -f "$dir/lib$name.la"; then
15200 found_la
="$dir/lib$name.la"
15206 if test "X$found_dir" != "X"; then
15211 if test "X$found_dir" != "X"; then
15212 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
15213 if test "X$found_so" != "X"; then
15214 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
15215 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
15218 for x
in $ltrpathdirs; do
15219 if test "X$x" = "X$found_dir"; then
15224 if test -z "$haveit"; then
15225 ltrpathdirs
="$ltrpathdirs $found_dir"
15227 if test "$hardcode_direct" = yes; then
15228 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
15230 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
15231 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
15233 for x
in $rpathdirs; do
15234 if test "X$x" = "X$found_dir"; then
15239 if test -z "$haveit"; then
15240 rpathdirs
="$rpathdirs $found_dir"
15244 for x
in $LDFLAGS $LIBBABELTRACE; do
15246 acl_save_prefix
="$prefix"
15247 prefix
="$acl_final_prefix"
15248 acl_save_exec_prefix
="$exec_prefix"
15249 exec_prefix
="$acl_final_exec_prefix"
15251 exec_prefix
="$acl_save_exec_prefix"
15252 prefix
="$acl_save_prefix"
15254 if test "X$x" = "X-L$found_dir"; then
15259 if test -z "$haveit"; then
15260 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
15262 if test "$hardcode_minus_L" != no
; then
15263 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
15265 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
15271 if test "X$found_a" != "X"; then
15272 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
15274 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
15277 additional_includedir
=
15278 case "$found_dir" in
15280 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15281 additional_includedir
="$basedir/include"
15284 if test "X$additional_includedir" != "X"; then
15285 if test "X$additional_includedir" != "X/usr/include"; then
15287 if test "X$additional_includedir" = "X/usr/local/include"; then
15288 if test -n "$GCC"; then
15290 linux
*) haveit
=yes;;
15294 if test -z "$haveit"; then
15295 for x
in $CPPFLAGS $INCBABELTRACE; do
15297 acl_save_prefix
="$prefix"
15298 prefix
="$acl_final_prefix"
15299 acl_save_exec_prefix
="$exec_prefix"
15300 exec_prefix
="$acl_final_exec_prefix"
15302 exec_prefix
="$acl_save_exec_prefix"
15303 prefix
="$acl_save_prefix"
15305 if test "X$x" = "X-I$additional_includedir"; then
15310 if test -z "$haveit"; then
15311 if test -d "$additional_includedir"; then
15312 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
15318 if test -n "$found_la"; then
15319 save_libdir
="$libdir"
15320 case "$found_la" in
15321 */* |
*\\*) .
"$found_la" ;;
15322 *) .
"./$found_la" ;;
15324 libdir
="$save_libdir"
15325 for dep
in $dependency_libs; do
15328 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
15329 if test "X$additional_libdir" != "X/usr/lib"; then
15331 if test "X$additional_libdir" = "X/usr/local/lib"; then
15332 if test -n "$GCC"; then
15334 linux
*) haveit
=yes;;
15338 if test -z "$haveit"; then
15340 for x
in $LDFLAGS $LIBBABELTRACE; do
15342 acl_save_prefix
="$prefix"
15343 prefix
="$acl_final_prefix"
15344 acl_save_exec_prefix
="$exec_prefix"
15345 exec_prefix
="$acl_final_exec_prefix"
15347 exec_prefix
="$acl_save_exec_prefix"
15348 prefix
="$acl_save_prefix"
15350 if test "X$x" = "X-L$additional_libdir"; then
15355 if test -z "$haveit"; then
15356 if test -d "$additional_libdir"; then
15357 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
15361 for x
in $LDFLAGS $LTLIBBABELTRACE; do
15363 acl_save_prefix
="$prefix"
15364 prefix
="$acl_final_prefix"
15365 acl_save_exec_prefix
="$exec_prefix"
15366 exec_prefix
="$acl_final_exec_prefix"
15368 exec_prefix
="$acl_save_exec_prefix"
15369 prefix
="$acl_save_prefix"
15371 if test "X$x" = "X-L$additional_libdir"; then
15376 if test -z "$haveit"; then
15377 if test -d "$additional_libdir"; then
15378 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
15385 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
15386 if test "$enable_rpath" != no
; then
15388 for x
in $rpathdirs; do
15389 if test "X$x" = "X$dir"; then
15394 if test -z "$haveit"; then
15395 rpathdirs
="$rpathdirs $dir"
15398 for x
in $ltrpathdirs; do
15399 if test "X$x" = "X$dir"; then
15404 if test -z "$haveit"; then
15405 ltrpathdirs
="$ltrpathdirs $dir"
15410 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15413 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15416 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
15417 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
15423 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
15424 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
15430 if test "X$rpathdirs" != "X"; then
15431 if test -n "$hardcode_libdir_separator"; then
15433 for found_dir
in $rpathdirs; do
15434 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15436 acl_save_libdir
="$libdir"
15438 eval flag
=\"$hardcode_libdir_flag_spec\"
15439 libdir
="$acl_save_libdir"
15440 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
15442 for found_dir
in $rpathdirs; do
15443 acl_save_libdir
="$libdir"
15444 libdir
="$found_dir"
15445 eval flag
=\"$hardcode_libdir_flag_spec\"
15446 libdir
="$acl_save_libdir"
15447 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
15451 if test "X$ltrpathdirs" != "X"; then
15452 for found_dir
in $ltrpathdirs; do
15453 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
15458 ac_save_CPPFLAGS
="$CPPFLAGS"
15460 for element
in $INCBABELTRACE; do
15462 for x
in $CPPFLAGS; do
15464 acl_save_prefix
="$prefix"
15465 prefix
="$acl_final_prefix"
15466 acl_save_exec_prefix
="$exec_prefix"
15467 exec_prefix
="$acl_final_exec_prefix"
15469 exec_prefix
="$acl_save_exec_prefix"
15470 prefix
="$acl_save_prefix"
15472 if test "X$x" = "X$element"; then
15477 if test -z "$haveit"; then
15478 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
15484 $as_echo_n "checking for libbabeltrace... " >&6; }
15485 if test "${ac_cv_libbabeltrace+set}" = set; then :
15486 $as_echo_n "(cached) " >&6
15489 ac_save_LIBS
="$LIBS"
15490 LIBS
="$LIBS $LIBBABELTRACE"
15491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15492 /* end confdefs.h. */
15493 #include <babeltrace/babeltrace.h>
15494 #include <babeltrace/ctf/events.h>
15495 #include <babeltrace/ctf/iterator.h>
15499 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
15500 struct bt_ctf_event *event = NULL;
15501 const struct bt_definition *scope;
15503 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
15504 scope = bt_ctf_get_top_level_scope (event,
15505 BT_STREAM_EVENT_HEADER);
15506 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
15512 if ac_fn_c_try_link
"$LINENO"; then :
15513 ac_cv_libbabeltrace
=yes
15515 ac_cv_libbabeltrace
=no
15517 rm -f core conftest.err conftest.
$ac_objext \
15518 conftest
$ac_exeext conftest.
$ac_ext
15519 LIBS
="$ac_save_LIBS"
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
15523 $as_echo "$ac_cv_libbabeltrace" >&6; }
15524 if test "$ac_cv_libbabeltrace" = yes; then
15525 HAVE_LIBBABELTRACE
=yes
15527 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
15530 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
15532 $as_echo "$LIBBABELTRACE" >&6; }
15534 HAVE_LIBBABELTRACE
=no
15535 CPPFLAGS
="$ac_save_CPPFLAGS"
15545 CFLAGS
=$saved_CFLAGS
15547 if test "$HAVE_LIBBABELTRACE" != yes; then
15548 if test "$with_babeltrace" = yes; then
15549 as_fn_error
"babeltrace is missing or unusable" "$LINENO" 5
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
15552 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
15557 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
15558 # to an empty version.
15564 if test "${nativefile}" != ""; then
15565 case "${nativefile}" in
15566 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
15567 * ) GDB_NM_FILE
="${nativefile}"
15569 files
="${files} ${GDB_NM_FILE}"
15570 links
="${links} nm.h"
15572 cat >>confdefs.h
<<_ACEOF
15573 #define GDB_NM_FILE "${GDB_NM_FILE}"
15579 ac_sources
="$files"
15581 while test -n "$ac_sources"; do
15582 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
15583 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
15584 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
15586 ac_config_links
="$ac_config_links $ac_config_links_1"
15592 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
15596 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
15597 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
15598 if test "x$GDB_TRANSFORM_NAME" = x
; then
15599 GDB_TRANSFORM_NAME
=gdb
15604 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
15605 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
15606 if test "x$GCORE_TRANSFORM_NAME" = x
; then
15607 GCORE_TRANSFORM_NAME
=gcore
15611 ac_config_files
="$ac_config_files gcore"
15614 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"
15616 ac_config_commands
="$ac_config_commands default"
15618 cat >confcache
<<\_ACEOF
15619 # This file is a shell script that caches the results of configure
15620 # tests run on this system so they can be shared between configure
15621 # scripts and configure runs, see configure's option --config-cache.
15622 # It is not useful on other systems. If it contains results you don't
15623 # want to keep, you may remove or edit it.
15625 # config.status only pays attention to the cache file if you give it
15626 # the --recheck option to rerun configure.
15628 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15629 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15630 # following values.
15634 # The following way of writing the cache mishandles newlines in values,
15635 # but we know of no workaround that is simple, portable, and efficient.
15636 # So, we kill variables containing newlines.
15637 # Ultrix sh set writes to stderr and can't be redirected directly,
15638 # and sets the high bit in the cache file unless we assign to the vars.
15640 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15641 eval ac_val
=\$
$ac_var
15645 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15646 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15649 _ | IFS | as_nl
) ;; #(
15650 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15651 *) { eval $ac_var=; unset $ac_var;} ;;
15657 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15658 *${as_nl}ac_space
=\
*)
15659 # `set' does not quote correctly, so add quotes: double-quote
15660 # substitution turns \\\\ into \\, and sed turns \\ into \.
15663 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15666 # `set' quotes correctly as required by POSIX, so do not add quotes.
15667 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15676 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15678 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15680 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15681 if test -w "$cache_file"; then
15682 test "x$cache_file" != "x/dev/null" &&
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15684 $as_echo "$as_me: updating cache $cache_file" >&6;}
15685 cat confcache
>$cache_file
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15688 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15693 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15694 # Let make expand exec_prefix.
15695 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15697 DEFS
=-DHAVE_CONFIG_H
15701 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15702 # 1. Remove the extension, and $U if already installed.
15703 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15704 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15705 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15706 # will be set to the directory where LIBOBJS objects are built.
15707 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15708 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15710 LIBOBJS
=$ac_libobjs
15712 LTLIBOBJS
=$ac_ltlibobjs
15715 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15716 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
15717 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15719 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
15720 as_fn_error
"conditional \"GMAKE\" was never defined.
15721 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15723 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
15724 as_fn_error
"conditional \"HAVE_PYTHON\" was never defined.
15725 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15727 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
15728 as_fn_error
"conditional \"HAVE_GUILE\" was never defined.
15729 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15733 : ${CONFIG_STATUS=./config.status}
15735 ac_clean_files_save
=$ac_clean_files
15736 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15737 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15738 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15740 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15742 # Generated by $as_me.
15743 # Run this file to recreate the current configuration.
15744 # Compiler output produced by configure, useful for debugging
15745 # configure, is in config.log if it exists.
15748 ac_cs_recheck=false
15751 SHELL=\${CONFIG_SHELL-$SHELL}
15754 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15755 ## -------------------- ##
15756 ## M4sh Initialization. ##
15757 ## -------------------- ##
15759 # Be more Bourne compatible
15760 DUALCASE
=1; export DUALCASE
# for MKS sh
15761 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15764 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15765 # is contrary to our usage. Disable this feature.
15766 alias -g '${1+"$@"}'='"$@"'
15767 setopt NO_GLOB_SUBST
15769 case `(set -o) 2>/dev/null` in #(
15781 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15782 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15783 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15784 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15785 # Prefer a ksh shell builtin over an external printf program on Solaris,
15786 # but without wasting forks for bash or zsh.
15787 if test -z "$BASH_VERSION$ZSH_VERSION" \
15788 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15789 as_echo='print
-r --'
15790 as_echo_n='print
-rn --'
15791 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15792 as_echo='printf %s
\n'
15793 as_echo_n='printf %s
'
15795 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15796 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15797 as_echo_n='/usr
/ucb
/echo -n'
15799 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15800 as_echo_n_body='eval
15804 expr "X$arg" : "X\\(.*\\)$as_nl";
15805 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15807 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15809 export as_echo_n_body
15810 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15812 export as_echo_body
15813 as_echo='sh
-c $as_echo_body as_echo
'
15816 # The user is always right.
15817 if test "${PATH_SEPARATOR+set}" != set; then
15819 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15820 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15827 # We need space, tab and new line, in precisely that order. Quoting is
15828 # there to prevent editors from complaining about space-tab.
15829 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15830 # splitting by setting IFS to empty value.)
15833 # Find who we are. Look in the path if we contain no directory separator.
15835 *[\\/]* ) as_myself=$0 ;;
15836 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15837 for as_dir in $PATH
15840 test -z "$as_dir" && as_dir=.
15841 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15847 # We did not find ourselves, most probably we were run as `sh COMMAND'
15848 # in which case we are not to be found in the path.
15849 if test "x$as_myself" = x
; then
15852 if test ! -f "$as_myself"; then
15853 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15857 # Unset variables that we do not need and which cause bugs (e.g. in
15858 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15859 # suppresses any "Segmentation fault" message there. '((' could
15860 # trigger a bug in pdksh 5.2.14.
15861 for as_var
in BASH_ENV ENV MAIL MAILPATH
15862 do eval test x\
${$as_var+set} = xset \
15863 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15876 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15879 # as_fn_error ERROR [LINENO LOG_FD]
15880 # ---------------------------------
15881 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15882 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15883 # script with status $?, using 1 if that was 0.
15886 as_status
=$?
; test $as_status -eq 0 && as_status
=1
15888 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15889 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15891 $as_echo "$as_me: error: $1" >&2
15892 as_fn_exit
$as_status
15896 # as_fn_set_status STATUS
15897 # -----------------------
15898 # Set $? to STATUS, without forking.
15899 as_fn_set_status
()
15902 } # as_fn_set_status
15904 # as_fn_exit STATUS
15905 # -----------------
15906 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15910 as_fn_set_status
$1
15916 # Portably unset VAR.
15919 { eval $1=; unset $1;}
15921 as_unset
=as_fn_unset
15922 # as_fn_append VAR VALUE
15923 # ----------------------
15924 # Append the text in VALUE to the end of the definition contained in VAR. Take
15925 # advantage of any shell optimizations that allow amortized linear growth over
15926 # repeated appends, instead of the typical quadratic growth present in naive
15928 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15929 eval 'as_fn_append ()
15940 # as_fn_arith ARG...
15941 # ------------------
15942 # Perform arithmetic evaluation on the ARGs, and store the result in the
15943 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15944 # must be portable across $(()) and expr.
15945 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15946 eval 'as_fn_arith ()
15953 as_val
=`expr "$@" || test $? -eq 1`
15958 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15959 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15965 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15966 as_basename
=basename
15971 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15977 as_me
=`$as_basename -- "$0" ||
15978 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15979 X"$0" : 'X\(//\)$' \| \
15980 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15982 sed '/^.*\/\([^/][^/]*\)\/*$/{
15996 # Avoid depending upon Character Ranges.
15997 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15998 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15999 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16000 as_cr_digits
='0123456789'
16001 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16003 ECHO_C
= ECHO_N
= ECHO_T
=
16004 case `echo -n x` in #(((((
16006 case `echo 'xy\c'` in
16007 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16009 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16016 rm -f conf$$ conf$$.exe conf$$.
file
16017 if test -d conf$$.dir
; then
16018 rm -f conf$$.dir
/conf$$.
file
16021 mkdir conf$$.dir
2>/dev
/null
16023 if (echo >conf$$.
file) 2>/dev
/null
; then
16024 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16026 # ... but there are two gotchas:
16027 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16028 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16029 # In both cases, we have to default to `cp -p'.
16030 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16032 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16040 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16041 rmdir conf$$.dir
2>/dev
/null
16046 # Create "$as_dir" as a directory, including parents if necessary.
16051 -*) as_dir
=.
/$as_dir;;
16053 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16057 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16058 *) as_qdir
=$as_dir;;
16060 as_dirs
="'$as_qdir' $as_dirs"
16061 as_dir
=`$as_dirname -- "$as_dir" ||
16062 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16063 X"$as_dir" : 'X\(//\)[^/]' \| \
16064 X"$as_dir" : 'X\(//\)$' \| \
16065 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16066 $as_echo X"$as_dir" |
16067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16071 /^X\(\/\/\)[^/].*/{
16084 test -d "$as_dir" && break
16086 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16087 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
16091 if mkdir
-p .
2>/dev
/null
; then
16092 as_mkdir_p
='mkdir -p "$as_dir"'
16094 test -d .
/-p && rmdir .
/-p
16098 if test -x / >/dev
/null
2>&1; then
16099 as_test_x
='test -x'
16101 if ls -dL / >/dev
/null
2>&1; then
16108 if test -d "$1"; then
16114 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16115 ???[sx]*):;;*)false;;esac;fi
16119 as_executable_p
=$as_test_x
16121 # Sed expression to map a string onto a valid CPP name.
16122 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16124 # Sed expression to map a string onto a valid variable name.
16125 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16129 ## ----------------------------------- ##
16130 ## Main body of $CONFIG_STATUS script. ##
16131 ## ----------------------------------- ##
16133 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16136 # Save the log message, to keep $0 and so on meaningful, and to
16137 # report actual input values of CONFIG_FILES etc. instead of their
16138 # values after options handling.
16140 This file was extended by $as_me, which was
16141 generated by GNU Autoconf 2.64. Invocation command line was
16143 CONFIG_FILES = $CONFIG_FILES
16144 CONFIG_HEADERS = $CONFIG_HEADERS
16145 CONFIG_LINKS = $CONFIG_LINKS
16146 CONFIG_COMMANDS = $CONFIG_COMMANDS
16149 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16154 case $ac_config_files in *"
16155 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16158 case $ac_config_headers in *"
16159 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16164 # Files that config.status was made for.
16165 config_files="$ac_config_files"
16166 config_headers="$ac_config_headers"
16167 config_links="$ac_config_links"
16168 config_commands="$ac_config_commands"
16172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16174 \`$as_me' instantiates files and other configuration actions
16175 from templates according to the current configuration. Unless the files
16176 and actions are specified as TAGs, all are instantiated by default.
16178 Usage: $0 [OPTION]... [TAG]...
16180 -h, --help print this help, then exit
16181 -V, --version print version number and configuration settings, then exit
16182 -q, --quiet, --silent
16183 do not print progress messages
16184 -d, --debug don't remove temporary files
16185 --recheck update $as_me by reconfiguring in the same conditions
16186 --file=FILE[:TEMPLATE]
16187 instantiate the configuration file FILE
16188 --header=FILE[:TEMPLATE]
16189 instantiate the configuration header FILE
16191 Configuration files:
16194 Configuration headers:
16197 Configuration links:
16200 Configuration commands:
16203 Report bugs to the package provider."
16206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16209 configured by $0, generated by GNU Autoconf 2.64,
16210 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16212 Copyright (C) 2009 Free Software Foundation, Inc.
16213 This config.status script is free software; the Free Software Foundation
16214 gives unlimited permission to copy, distribute and modify it."
16220 test -n "\$AWK" || AWK=awk
16223 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16224 # The default lists apply if the user does not specify any file.
16230 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16231 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16242 # Handling of the options.
16243 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16245 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16246 $as_echo "$ac_cs_version"; exit ;;
16247 --debug |
--debu |
--deb |
--de |
--d |
-d )
16249 --file |
--fil |
--fi |
--f )
16252 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16254 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16255 ac_need_defaults
=false
;;
16256 --header |
--heade |
--head |
--hea )
16259 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16261 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
16262 ac_need_defaults
=false
;;
16264 # Conflict between --help and --header
16265 as_fn_error
"ambiguous option: \`$1'
16266 Try \`$0 --help' for more information.";;
16267 --help |
--hel |
-h )
16268 $as_echo "$ac_cs_usage"; exit ;;
16269 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16270 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16273 # This is an error.
16274 -*) as_fn_error
"unrecognized option: \`$1'
16275 Try \`$0 --help' for more information." ;;
16277 *) as_fn_append ac_config_targets
" $1"
16278 ac_need_defaults
=false
;;
16284 ac_configure_extra_args
=
16286 if $ac_cs_silent; then
16288 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16293 if \$ac_cs_recheck; then
16294 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16296 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16297 CONFIG_SHELL='$SHELL'
16298 export CONFIG_SHELL
16303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16307 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16308 ## Running $as_me. ##
16314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16318 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16322 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16324 # Handling of arguments.
16325 for ac_config_target
in $ac_config_targets
16327 case $ac_config_target in
16328 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
16329 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
16330 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
16331 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
16332 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
16333 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16334 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
16335 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
16336 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
16337 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
16339 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16344 # If the user did not use the arguments to specify the items to instantiate,
16345 # then the envvar interface is used. Set only those that are not.
16346 # We use the long form for the default assignment because of an extremely
16347 # bizarre bug on SunOS 4.1.3.
16348 if $ac_need_defaults; then
16349 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16350 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16351 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
16352 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16355 # Have a temporary directory for convenience. Make it in the build tree
16356 # simply because there is no reason against having it here, and in addition,
16357 # creating and moving files from /tmp can sometimes cause problems.
16358 # Hook for its removal unless debugging.
16359 # Note that there is a small window in which the directory will not be cleaned:
16360 # after its creation but before its name has been assigned to `$tmp'.
16364 trap 'exit_status=$?
16365 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16367 trap 'as_fn_exit 1' 1 2 13 15
16369 # Create a (secure) tmp directory for tmp files.
16372 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16373 test -n "$tmp" && test -d "$tmp"
16376 tmp
=.
/conf$$
-$RANDOM
16377 (umask 077 && mkdir
"$tmp")
16378 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
16380 # Set up the scripts for CONFIG_FILES section.
16381 # No need to generate them if there are no CONFIG_FILES.
16382 # This happens for instance with `./config.status config.h'.
16383 if test -n "$CONFIG_FILES"; then
16385 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
16386 ac_cs_awk_getline
=:
16387 ac_cs_awk_pipe_init
=
16388 ac_cs_awk_read_file
='
16389 while ((getline aline < (F[key])) > 0)
16392 ac_cs_awk_pipe_fini
=
16394 ac_cs_awk_getline
=false
16395 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
16396 ac_cs_awk_read_file
='
16398 print "cat " F[key] " &&"
16399 '$ac_cs_awk_pipe_init
16400 # The final `:' finishes the AND list.
16401 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
16403 ac_cr
=`echo X | tr X '\015'`
16404 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16405 # But we know of no other shell where ac_cr would be empty at this
16406 # point, so we can use a bashism as a fallback.
16407 if test "x$ac_cr" = x
; then
16408 eval ac_cr
=\$
\'\\r
\'
16410 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16411 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16414 ac_cs_awk_cr
=$ac_cr
16417 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16420 # Create commands to substitute file output variables.
16422 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16423 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16424 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
16427 } >conf$
$files.sh
&&
16428 . .
/conf$
$files.sh ||
16429 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
16430 rm -f conf$
$files.sh
16433 echo "cat >conf$$subs.awk <<_ACEOF" &&
16434 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16436 } >conf$$subs.sh ||
16437 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16438 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16440 for ac_last_try in false false false false false :; do
16441 . ./conf$$subs.sh ||
16442 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16444 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16445 if test $ac_delim_n = $ac_delim_num; then
16447 elif $ac_last_try; then
16448 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16450 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16453 rm -f conf$$subs.sh
16455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16456 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
16460 s/^/S["/; s
/!.
*/"]=/
16470 s/\(.\{148\}\).*/\1/
16472 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16477 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16484 s/\(.\{148\}\).*/\1/
16486 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16490 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16495 ' <conf$$subs.awk | sed '
16500 ' >>$CONFIG_STATUS || ac_write_fail=1
16501 rm -f conf$$subs.awk
16502 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16504 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
16505 for (key in S) S_is_set[key] = 1
16507 \$ac_cs_awk_pipe_init
16511 nfields = split(line, field, "@
")
16513 len = length(field[1])
16514 for (i = 2; i < nfields; i++) {
16516 keylen = length(key)
16517 if (S_is_set[key]) {
16519 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16520 len += length(value) + length(field[++i])
16525 if (nfields == 3 && !substed) {
16527 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16528 \$ac_cs_awk_read_file
16534 \$ac_cs_awk_pipe_fini
16537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16538 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16539 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16542 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
16543 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
16546 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16547 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
16548 # trailing colons and then remove the whole line if VPATH becomes empty
16549 # (actually we leave an empty line to preserve line numbers).
16550 if test "x
$srcdir" = x.; then
16551 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16552 s/:*\$(srcdir):*/:/
16553 s/:*\${srcdir}:*/:/
16555 s/^\([^=]*=[ ]*\):*/\1/
16561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16562 fi # test -n "$CONFIG_FILES"
16564 # Set up the scripts for CONFIG_HEADERS section.
16565 # No need to generate them if there are no CONFIG_HEADERS.
16566 # This happens for instance with `./config.status Makefile'.
16567 if test -n "$CONFIG_HEADERS"; then
16568 cat >"$tmp/defines.
awk" <<\_ACAWK ||
16572 # Transform confdefs.h into an awk script `defines.awk', embedded as
16573 # here-document in config.status, that substitutes the proper values into
16574 # config.h.in to produce config.h.
16576 # Create a delimiter string that does not exist in confdefs.h, to ease
16577 # handling of long lines.
16579 for ac_last_try in false false :; do
16580 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
16581 if test -z "$ac_t"; then
16583 elif $ac_last_try; then
16584 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
16586 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16590 # For the awk script, D is an array of macro values keyed by name,
16591 # likewise P contains macro parameters if any. Preserve backslash
16592 # newline sequences.
16594 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16596 s/.\{148\}/&'"$ac_delim"'/g
16599 s/^[ ]*#[ ]*define[ ][ ]*/ /
16606 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16608 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16612 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16613 D["\
1"]=" \
3\\\\\\n
"\\/p
16615 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16620 s/.\{148\}/&'"$ac_delim"'/g
16625 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16628 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16630 ' <confdefs.h | sed '
16631 s/'"$ac_delim"'/"\\\
16632 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16635 for (key in D) D_is_set[key] = 1
16638 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16640 split(line, arg, " ")
16641 if (arg[1] == "#") {
16645 defundef
= substr
(arg
[1], 2)
16648 split(mac1
, mac2
, "(") #)
16650 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16651 if (D_is_set
[macro
]) {
16652 # Preserve the white space surrounding the "#".
16653 print prefix
"define", macro P
[macro
] D
[macro
]
16656 # Replace #undef with comments. This is necessary, for example,
16657 # in the case of _POSIX_SOURCE, which is predefined and required
16658 # on some systems where configure will not decide to define it.
16659 if (defundef
== "undef") {
16660 print
"/*", prefix defundef
, macro
, "*/"
16668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16669 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
16670 fi # test -n "$CONFIG_HEADERS"
16673 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16678 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16680 case $ac_mode$ac_tag in
16682 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16683 :[FH
]-) ac_tag
=-:-;;
16684 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16701 -) ac_f
="$tmp/stdin";;
16702 *) # Look for the file first in the build tree, then in the source tree
16703 # (if the path is not absolute). The absolute path cannot be DOS-style,
16704 # because $ac_f cannot contain `:'.
16708 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16710 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
16712 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16713 as_fn_append ac_file_inputs
" '$ac_f'"
16716 # Let's still pretend it is `configure' which instantiates (i.e., don't
16717 # use $as_me), people would be surprised to read:
16718 # /* config.h. Generated by config.status. */
16719 configure_input
='Generated from '`
16720 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16722 if test x
"$ac_file" != x-
; then
16723 configure_input
="$ac_file. $configure_input"
16724 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16725 $as_echo "$as_me: creating $ac_file" >&6;}
16727 # Neutralize special characters interpreted by sed in replacement strings.
16728 case $configure_input in #(
16729 *\
&* |
*\|
* |
*\\* )
16730 ac_sed_conf_input
=`$as_echo "$configure_input" |
16731 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16732 *) ac_sed_conf_input
=$configure_input;;
16736 *:-:* |
*:-) cat >"$tmp/stdin" \
16737 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
16742 ac_dir
=`$as_dirname -- "$ac_file" ||
16743 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16744 X"$ac_file" : 'X\(//\)[^/]' \| \
16745 X"$ac_file" : 'X\(//\)$' \| \
16746 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16747 $as_echo X"$ac_file" |
16748 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16752 /^X\(\/\/\)[^/].*/{
16765 as_dir
="$ac_dir"; as_fn_mkdir_p
16769 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16771 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16772 # A ".." for each directory in $ac_dir_suffix.
16773 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16774 case $ac_top_builddir_sub in
16775 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16776 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16779 ac_abs_top_builddir
=$ac_pwd
16780 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16781 # for backward compatibility:
16782 ac_top_builddir
=$ac_top_build_prefix
16785 .
) # We are building in place.
16787 ac_top_srcdir
=$ac_top_builddir_sub
16788 ac_abs_top_srcdir
=$ac_pwd ;;
16789 [\\/]* | ?
:[\\/]* ) # Absolute name.
16790 ac_srcdir
=$srcdir$ac_dir_suffix;
16791 ac_top_srcdir
=$srcdir
16792 ac_abs_top_srcdir
=$srcdir ;;
16793 *) # Relative name.
16794 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16795 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16796 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16798 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16808 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
16809 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
16813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16814 # If the template does not know about datarootdir, expand it.
16815 # FIXME: This hack should be removed a few years after 2.60.
16816 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16827 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16828 *datarootdir
*) ac_datarootdir_seen
=yes;;
16829 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
16830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16831 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16834 ac_datarootdir_hack='
16835 s&@datadir@&$datadir&g
16836 s&@docdir@&$docdir&g
16837 s&@infodir@&$infodir&g
16838 s&@localedir@&$localedir&g
16839 s&@mandir@&$mandir&g
16840 s&\\\${datarootdir}&$datarootdir&g' ;;
16844 # Neutralize VPATH when `$srcdir' = `.'.
16845 # Shell code in configure.ac might set extrasub.
16846 # FIXME: do we really want to maintain this feature?
16847 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16848 ac_sed_extra="$ac_vpsub
16851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16853 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16854 s|@configure_input@|
$ac_sed_conf_input|
;t t
16855 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16856 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16857 s
&@srcdir@
&$ac_srcdir&;t t
16858 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16859 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16860 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16861 s
&@builddir@
&$ac_builddir&;t t
16862 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16863 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16864 s
&@INSTALL@
&$ac_INSTALL&;t t
16865 $ac_datarootdir_hack
16867 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16868 if $ac_cs_awk_getline; then
16869 $AWK -f "$tmp/subs.
awk"
16871 $AWK -f "$tmp/subs.
awk" | $SHELL
16873 || as_fn_error "could not create
$ac_file" "$LINENO" 5
16875 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16876 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
16877 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16879 which seems to be undefined. Please make sure it is defined." >&5
16880 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16881 which seems to be undefined. Please make sure it is defined." >&2;}
16885 -) cat "$tmp/out" && rm -f "$tmp/out";;
16886 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16888 || as_fn_error "could not create $ac_file" "$LINENO" 5
16894 if test x"$ac_file" != x-; then
16896 $as_echo "/* $configure_input */" \
16897 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16898 } >"$tmp/config.h" \
16899 || as_fn_error "could not create $ac_file" "$LINENO" 5
16900 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16901 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16902 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16905 mv "$tmp/config.h" "$ac_file" \
16906 || as_fn_error "could not create $ac_file" "$LINENO" 5
16909 $as_echo "/* $configure_input */" \
16910 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16911 || as_fn_error "could not create -" "$LINENO" 5
16919 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
16922 # Prefer the file from the source tree if names are identical.
16923 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16924 ac_source=$srcdir/$ac_source
16927 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16928 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16930 if test ! -r "$ac_source"; then
16931 as_fn_error "$ac_source: file not found" "$LINENO" 5
16935 # Try a relative symlink, then a hard link, then a copy.
16937 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16938 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16940 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16941 ln "$ac_source" "$ac_file" 2>/dev/null ||
16942 cp -p "$ac_source" "$ac_file" ||
16943 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16946 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16947 $as_echo "$as_me: executing $ac_file commands" >&6;}
16952 case $ac_file$ac_mode in
16953 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
16954 "gcore":F) chmod +x gcore ;;
16956 case x$CONFIG_HEADERS in
16957 xconfig.h:config.in)
16968 ac_clean_files=$ac_clean_files_save
16970 test $ac_write_fail = 0 ||
16971 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16974 # configure is writing to config.log, and then calls config.status.
16975 # config.status does its own redirection, appending to config.log.
16976 # Unfortunately, on DOS this fails, as config.log is still kept open
16977 # by configure, so config.status won't be able to
write to it
; its
16978 # output is simply discarded. So we exec the FD to /dev/null,
16979 # effectively closing config.log, so it can be properly (re)opened and
16980 # appended to by config.status. When coming back to configure, we
16981 # need to make the FD available again.
16982 if test "$no_create" != yes; then
16984 ac_config_status_args
=
16985 test "$silent" = yes &&
16986 ac_config_status_args
="$ac_config_status_args --quiet"
16988 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16990 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16991 # would make configure fail if this is the last instruction.
16992 $ac_cs_success || as_fn_exit $?
16996 # CONFIG_SUBDIRS section.
16998 if test "$no_recursion" != yes; then
17000 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17001 # so they do not pile up.
17002 ac_sub_configure_args
=
17004 eval "set x $ac_configure_args"
17008 if test -n "$ac_prev"; then
17013 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
17014 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
17015 ac_prev
=cache_file
;;
17016 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
17017 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
17020 --config-cache |
-C)
17022 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
17024 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
17026 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
17028 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
17030 --disable-option-checking)
17034 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17036 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
17040 # Always prepend --prefix to ensure using the same prefix
17041 # in subdir configurations.
17042 ac_arg
="--prefix=$prefix"
17044 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17046 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
17049 if test "$silent" = yes; then
17050 ac_sub_configure_args
="--silent $ac_sub_configure_args"
17053 # Always prepend --disable-option-checking to silence warnings, since
17054 # different subdirs can have different --enable and --with options.
17055 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
17058 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
17060 # Do not complain, so a configure script can configure whichever
17061 # parts of a large source tree are present.
17062 test -d "$srcdir/$ac_dir" ||
continue
17064 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17065 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17066 $as_echo "$ac_msg" >&6
17067 as_dir
="$ac_dir"; as_fn_mkdir_p
17071 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17073 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17074 # A ".." for each directory in $ac_dir_suffix.
17075 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17076 case $ac_top_builddir_sub in
17077 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17078 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17081 ac_abs_top_builddir
=$ac_pwd
17082 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17083 # for backward compatibility:
17084 ac_top_builddir
=$ac_top_build_prefix
17087 .
) # We are building in place.
17089 ac_top_srcdir
=$ac_top_builddir_sub
17090 ac_abs_top_srcdir
=$ac_pwd ;;
17091 [\\/]* | ?
:[\\/]* ) # Absolute name.
17092 ac_srcdir
=$srcdir$ac_dir_suffix;
17093 ac_top_srcdir
=$srcdir
17094 ac_abs_top_srcdir
=$srcdir ;;
17095 *) # Relative name.
17096 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17097 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17098 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17100 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17105 # Check for guested configure; otherwise get Cygnus style configure.
17106 if test -f "$ac_srcdir/configure.gnu"; then
17107 ac_sub_configure
=$ac_srcdir/configure.gnu
17108 elif test -f "$ac_srcdir/configure"; then
17109 ac_sub_configure
=$ac_srcdir/configure
17110 elif test -f "$ac_srcdir/configure.in"; then
17111 # This should be Cygnus configure.
17112 ac_sub_configure
=$ac_aux_dir/configure
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17115 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17119 # The recursion is here.
17120 if test -n "$ac_sub_configure"; then
17121 # Make the cache file name correct relative to the subdirectory.
17122 case $cache_file in
17123 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
17124 *) # Relative name.
17125 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
17128 { $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
17129 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17130 # The eval makes quoting arguments work.
17131 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17132 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17133 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17139 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
17140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17141 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}