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
698 HAVE_NATIVE_GCORE_TARGET
728 INSTALL_STRIP_PROGRAM
757 MAINTAINER_MODE_FALSE
786 program_transform_name
797 ac_subst_files
='host_makefile_frag'
799 enable_option_checking
800 enable_maintainer_mode
803 enable_build_with_cxx
804 with_separate_debug_dir
806 with_relocated_sources
808 with_auto_load_safe_path
836 enable_build_warnings
837 enable_gdb_build_warnings
847 with_libbabeltrace_prefix
849 ac_precious_vars
='build_alias
866 ac_subdirs_all
='testsuite
871 # Initialize some variables set by options.
873 ac_init_version
=false
874 ac_unrecognized_opts
=
876 # The variables have the same names as the options, with
877 # dashes changed to underlines.
885 program_transform_name
=s
,x
,x
,
893 # Installation directory options.
894 # These are left unexpanded so users can "make install exec_prefix=/foo"
895 # and all the variables that are supposed to be based on exec_prefix
896 # by default will actually change.
897 # Use braces instead of parens because sh, perl, etc. also accept them.
898 # (The list follows the same order as the GNU Coding Standards.)
899 bindir
='${exec_prefix}/bin'
900 sbindir
='${exec_prefix}/sbin'
901 libexecdir
='${exec_prefix}/libexec'
902 datarootdir
='${prefix}/share'
903 datadir
='${datarootdir}'
904 sysconfdir
='${prefix}/etc'
905 sharedstatedir
='${prefix}/com'
906 localstatedir
='${prefix}/var'
907 includedir
='${prefix}/include'
908 oldincludedir
='/usr/include'
909 docdir
='${datarootdir}/doc/${PACKAGE}'
910 infodir
='${datarootdir}/info'
915 libdir
='${exec_prefix}/lib'
916 localedir
='${datarootdir}/locale'
917 mandir
='${datarootdir}/man'
923 # If the previous option needs an argument, assign it.
924 if test -n "$ac_prev"; then
925 eval $ac_prev=\
$ac_option
931 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
935 # Accept the important Cygnus configure options, so we can diagnose typos.
937 case $ac_dashdash$ac_option in
941 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
943 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
946 -build |
--build |
--buil |
--bui |
--bu)
947 ac_prev
=build_alias
;;
948 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
949 build_alias
=$ac_optarg ;;
951 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
952 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
953 ac_prev
=cache_file
;;
954 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
955 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
956 cache_file
=$ac_optarg ;;
959 cache_file
=config.cache
;;
961 -datadir |
--datadir |
--datadi |
--datad)
963 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
964 datadir
=$ac_optarg ;;
966 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
967 |
--dataroo |
--dataro |
--datar)
968 ac_prev
=datarootdir
;;
969 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
970 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
971 datarootdir
=$ac_optarg ;;
973 -disable-* |
--disable-*)
974 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
975 # Reject names that are not valid shell variable names.
976 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
977 as_fn_error
"invalid feature name: $ac_useropt"
978 ac_useropt_orig
=$ac_useropt
979 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980 case $ac_user_opts in
984 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
985 ac_unrecognized_sep
=', ';;
987 eval enable_
$ac_useropt=no
;;
989 -docdir |
--docdir |
--docdi |
--doc |
--do)
991 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
994 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
996 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
999 -enable-* |
--enable-*)
1000 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1001 # Reject names that are not valid shell variable names.
1002 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1003 as_fn_error
"invalid feature name: $ac_useropt"
1004 ac_useropt_orig
=$ac_useropt
1005 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1006 case $ac_user_opts in
1008 "enable_
$ac_useropt"
1010 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1011 ac_unrecognized_sep
=', ';;
1013 eval enable_
$ac_useropt=\
$ac_optarg ;;
1015 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1016 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1017 |
--exec |
--exe |
--ex)
1018 ac_prev
=exec_prefix
;;
1019 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1020 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1021 |
--exec=* |
--exe=* |
--ex=*)
1022 exec_prefix
=$ac_optarg ;;
1024 -gas |
--gas |
--ga |
--g)
1025 # Obsolete; use --with-gas.
1028 -help |
--help |
--hel |
--he |
-h)
1029 ac_init_help
=long
;;
1030 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1031 ac_init_help
=recursive
;;
1032 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1033 ac_init_help
=short
;;
1035 -host |
--host |
--hos |
--ho)
1036 ac_prev
=host_alias
;;
1037 -host=* |
--host=* |
--hos=* |
--ho=*)
1038 host_alias
=$ac_optarg ;;
1040 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1042 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1044 htmldir
=$ac_optarg ;;
1046 -includedir |
--includedir |
--includedi |
--included |
--include \
1047 |
--includ |
--inclu |
--incl |
--inc)
1048 ac_prev
=includedir
;;
1049 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1050 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1051 includedir
=$ac_optarg ;;
1053 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1055 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1056 infodir
=$ac_optarg ;;
1058 -libdir |
--libdir |
--libdi |
--libd)
1060 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1061 libdir
=$ac_optarg ;;
1063 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1064 |
--libexe |
--libex |
--libe)
1065 ac_prev
=libexecdir
;;
1066 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1067 |
--libexe=* |
--libex=* |
--libe=*)
1068 libexecdir
=$ac_optarg ;;
1070 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1071 ac_prev
=localedir
;;
1072 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1073 localedir
=$ac_optarg ;;
1075 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1076 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1077 ac_prev
=localstatedir
;;
1078 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1079 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1080 localstatedir
=$ac_optarg ;;
1082 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1084 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1085 mandir
=$ac_optarg ;;
1087 -nfp |
--nfp |
--nf)
1088 # Obsolete; use --without-fp.
1091 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1092 |
--no-cr |
--no-c |
-n)
1095 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1096 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1099 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1100 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1101 |
--oldin |
--oldi |
--old |
--ol |
--o)
1102 ac_prev
=oldincludedir
;;
1103 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1104 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1105 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1106 oldincludedir
=$ac_optarg ;;
1108 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1110 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1111 prefix
=$ac_optarg ;;
1113 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1114 |
--program-pre |
--program-pr |
--program-p)
1115 ac_prev
=program_prefix
;;
1116 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1117 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1118 program_prefix
=$ac_optarg ;;
1120 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1121 |
--program-suf |
--program-su |
--program-s)
1122 ac_prev
=program_suffix
;;
1123 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1124 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1125 program_suffix
=$ac_optarg ;;
1127 -program-transform-name |
--program-transform-name \
1128 |
--program-transform-nam |
--program-transform-na \
1129 |
--program-transform-n |
--program-transform- \
1130 |
--program-transform |
--program-transfor \
1131 |
--program-transfo |
--program-transf \
1132 |
--program-trans |
--program-tran \
1133 |
--progr-tra |
--program-tr |
--program-t)
1134 ac_prev
=program_transform_name
;;
1135 -program-transform-name=* |
--program-transform-name=* \
1136 |
--program-transform-nam=* |
--program-transform-na=* \
1137 |
--program-transform-n=* |
--program-transform-=* \
1138 |
--program-transform=* |
--program-transfor=* \
1139 |
--program-transfo=* |
--program-transf=* \
1140 |
--program-trans=* |
--program-tran=* \
1141 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1142 program_transform_name
=$ac_optarg ;;
1144 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1146 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1147 pdfdir
=$ac_optarg ;;
1149 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1151 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1154 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1155 |
-silent |
--silent |
--silen |
--sile |
--sil)
1158 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1160 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1162 sbindir
=$ac_optarg ;;
1164 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1165 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1166 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1168 ac_prev
=sharedstatedir
;;
1169 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1170 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1171 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1173 sharedstatedir
=$ac_optarg ;;
1175 -site |
--site |
--sit)
1177 -site=* |
--site=* |
--sit=*)
1180 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1182 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1183 srcdir
=$ac_optarg ;;
1185 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1186 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1187 ac_prev
=sysconfdir
;;
1188 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1189 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1190 sysconfdir
=$ac_optarg ;;
1192 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1193 ac_prev
=target_alias
;;
1194 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1195 target_alias
=$ac_optarg ;;
1197 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1200 -version |
--version |
--versio |
--versi |
--vers |
-V)
1201 ac_init_version
=: ;;
1204 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1207 as_fn_error
"invalid package name: $ac_useropt"
1208 ac_useropt_orig
=$ac_useropt
1209 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210 case $ac_user_opts in
1214 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1215 ac_unrecognized_sep
=', ';;
1217 eval with_
$ac_useropt=\
$ac_optarg ;;
1219 -without-* |
--without-*)
1220 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1223 as_fn_error
"invalid package name: $ac_useropt"
1224 ac_useropt_orig
=$ac_useropt
1225 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226 case $ac_user_opts in
1230 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1231 ac_unrecognized_sep
=', ';;
1233 eval with_
$ac_useropt=no
;;
1236 # Obsolete; use --with-x.
1239 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1240 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1241 ac_prev
=x_includes
;;
1242 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1243 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1244 x_includes
=$ac_optarg ;;
1246 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1247 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1248 ac_prev
=x_libraries
;;
1249 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1250 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1251 x_libraries
=$ac_optarg ;;
1253 -*) as_fn_error
"unrecognized option: \`$ac_option'
1254 Try \`$0 --help' for more information."
1258 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1259 # Reject names that are not valid shell variable names.
1260 case $ac_envvar in #(
1261 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1262 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1264 eval $ac_envvar=\
$ac_optarg
1265 export $ac_envvar ;;
1268 # FIXME: should be removed in autoconf 3.0.
1269 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1270 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1271 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1272 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1278 if test -n "$ac_prev"; then
1279 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1280 as_fn_error
"missing argument to $ac_option"
1283 if test -n "$ac_unrecognized_opts"; then
1284 case $enable_option_checking in
1286 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1287 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1291 # Check all directory arguments for consistency.
1292 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293 datadir sysconfdir sharedstatedir localstatedir includedir \
1294 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295 libdir localedir mandir
1297 eval ac_val
=\$
$ac_var
1298 # Remove trailing slashes.
1301 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1302 eval $ac_var=\
$ac_val;;
1304 # Be sure to have absolute directory names.
1306 [\\/$
]* | ?
:[\\/]* ) continue;;
1307 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1309 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1312 # There might be people who depend on the old broken behavior: `$host'
1313 # used to hold the argument of --host etc.
1314 # FIXME: To remove some day.
1317 target
=$target_alias
1319 # FIXME: To remove some day.
1320 if test "x$host_alias" != x
; then
1321 if test "x$build_alias" = x
; then
1322 cross_compiling
=maybe
1323 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1324 If a cross compiler is detected then cross compile mode will be used." >&2
1325 elif test "x$build_alias" != "x$host_alias"; then
1331 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1333 test "$silent" = yes && exec 6>/dev
/null
1336 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1337 ac_ls_di
=`ls -di .` &&
1338 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1339 as_fn_error
"working directory cannot be determined"
1340 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341 as_fn_error
"pwd does not report name of working directory"
1344 # Find the source files, if location was not specified.
1345 if test -z "$srcdir"; then
1346 ac_srcdir_defaulted
=yes
1347 # Try the directory containing this script, then the parent directory.
1348 ac_confdir
=`$as_dirname -- "$as_myself" ||
1349 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1350 X"$as_myself" : 'X\(//\)[^/]' \| \
1351 X"$as_myself" : 'X\(//\)$' \| \
1352 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1353 $as_echo X"$as_myself" |
1354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1372 if test ! -r "$srcdir/$ac_unique_file"; then
1376 ac_srcdir_defaulted
=no
1378 if test ! -r "$srcdir/$ac_unique_file"; then
1379 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1380 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1382 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1384 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1386 # When building in place, set srcdir=.
1387 if test "$ac_abs_confdir" = "$ac_pwd"; then
1390 # Remove unnecessary trailing slashes from srcdir.
1391 # Double slashes in file names in object file debugging info
1392 # mess up M-x gdb in Emacs.
1394 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1396 for ac_var
in $ac_precious_vars; do
1397 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1398 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1399 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1400 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1404 # Report the --help message.
1406 if test "$ac_init_help" = "long"; then
1407 # Omit some internal or obsolete options to make the list less imposing.
1408 # This message is too long to be a string in the A/UX 3.1 sh.
1410 \`configure' configures this package to adapt to many kinds of systems.
1412 Usage: $0 [OPTION]... [VAR=VALUE]...
1414 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1415 VAR=VALUE. See below for descriptions of some of the useful variables.
1417 Defaults for the options are specified in brackets.
1420 -h, --help display this help and exit
1421 --help=short display options specific to this package
1422 --help=recursive display the short help of all the included packages
1423 -V, --version display version information and exit
1424 -q, --quiet, --silent do not print \`checking...' messages
1425 --cache-file=FILE cache test results in FILE [disabled]
1426 -C, --config-cache alias for \`--cache-file=config.cache'
1427 -n, --no-create do not create output files
1428 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1430 Installation directories:
1431 --prefix=PREFIX install architecture-independent files in PREFIX
1432 [$ac_default_prefix]
1433 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1436 By default, \`make install' will install all the files in
1437 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1438 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1439 for instance \`--prefix=\$HOME'.
1441 For better control, use the options below.
1443 Fine tuning of the installation directories:
1444 --bindir=DIR user executables [EPREFIX/bin]
1445 --sbindir=DIR system admin executables [EPREFIX/sbin]
1446 --libexecdir=DIR program executables [EPREFIX/libexec]
1447 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1448 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1449 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1450 --libdir=DIR object code libraries [EPREFIX/lib]
1451 --includedir=DIR C header files [PREFIX/include]
1452 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1453 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1454 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1455 --infodir=DIR info documentation [DATAROOTDIR/info]
1456 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1457 --mandir=DIR man documentation [DATAROOTDIR/man]
1458 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1459 --htmldir=DIR html documentation [DOCDIR]
1460 --dvidir=DIR dvi documentation [DOCDIR]
1461 --pdfdir=DIR pdf documentation [DOCDIR]
1462 --psdir=DIR ps documentation [DOCDIR]
1468 --program-prefix=PREFIX prepend PREFIX to installed program names
1469 --program-suffix=SUFFIX append SUFFIX to installed program names
1470 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1473 --x-includes=DIR X include files are
in DIR
1474 --x-libraries=DIR X library files are
in DIR
1477 --build=BUILD configure
for building on BUILD
[guessed
]
1478 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1479 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1483 if test -n "$ac_init_help"; then
1488 --disable-option-checking ignore unrecognized
--enable/--with options
1489 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1490 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1491 --enable-maintainer-mode enable make rules and dependencies not useful
1492 (and sometimes confusing
) to the casual installer
1493 --enable-plugins Enable support
for plugins
1494 --disable-largefile omit support
for large files
1495 --enable-build-with-cxx build with C
++ compiler instead of C compiler
1496 --enable-targets=TARGETS
1497 alternative target configurations
1498 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1499 --disable-gdbcli disable command-line interface
(CLI
)
1500 --disable-gdbmi disable machine-interface
(MI
)
1501 --enable-tui enable full-screen terminal user interface
(TUI
)
1502 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1503 --enable-profiling enable profiling of GDB
1504 --disable-rpath do not hardcode runtime library paths
1505 --enable-libmcheck Try linking with
-lmcheck if available
1506 --enable-werror treat compile warnings as errors
1507 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1508 --enable-gdb-build-warnings
1509 enable GDB specific build-time compiler warnings
if
1511 --enable-sim link gdb with simulator
1512 --enable-multi-ice build the multi-ice-gdb-server
1513 --enable-gdbserver automatically build gdbserver
(yes
/no
/auto
, default
1517 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1518 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1519 --with-separate-debug-dir=PATH
1520 look for global separate debug info
in this path
1522 --with-gdb-datadir=PATH
look for global separate data files
in this path
1524 --with-relocated-sources=PATH
1525 automatically relocate this path
for source files
1526 --with-auto-load-dir=PATH
1527 directories from
which to load auto-loaded scripts
1528 [$debugdir:$datadir/auto-load
]
1529 --with-auto-load-safe-path=PATH
1530 directories safe to hold auto-loaded files
1531 [--with-auto-load-dir]
1532 --without-auto-load-safe-path
1533 do not restrict auto-loaded files locations
1534 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1535 --with-curses use the curses library instead of the termcap
1537 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1538 --with-bugurl=URL Direct users to URL to report a bug
1539 --with-zlib include zlib support
(auto
/yes
/no
) default
=auto
1540 --with-libiconv-prefix=DIR
1541 search
for libiconv
in DIR
/include and DIR
/lib
1542 --with-iconv-bin=PATH specify where to
find the
iconv program
1543 --with-system-readline use installed readline library
1544 --with-jit-reader-dir=PATH
1545 directory to load the JIT readers from
1546 --with-expat include expat support
(auto
/yes
/no
)
1547 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1548 --with-libexpat-prefix[=DIR
] search
for libexpat
in DIR
/include and DIR
/lib
1549 --without-libexpat-prefix don
't search for libexpat in includedir and libdir
1550 --with-python[=PYTHON] include python support
1551 (auto/yes/no/<python-program>)
1552 --with-guile[=GUILE] include guile support
1553 (auto/yes/no/<guile-version>/<pkg-config-program>)
1554 --without-included-regex
1555 don't use included regex
; this is the default on
1556 systems with version
2 of the GNU C library
(use
1557 with caution on other system
)
1558 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1559 --with-system-gdbinit=PATH
1560 automatically load a system-wide gdbinit
file
1561 --with-lzma support lzma compression
(auto
/yes
/no
)
1562 --with-liblzma-prefix[=DIR
] search
for liblzma
in DIR
/include and DIR
/lib
1563 --without-liblzma-prefix don
't search for liblzma in includedir and libdir
1564 --with-tcl directory containing tcl configuration (tclConfig.sh)
1565 --with-tk directory containing tk configuration (tkConfig.sh)
1566 --with-x use the X Window System
1567 --with-babeltrace include babeltrace support (auto/yes/no)
1568 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1569 --without-libbabeltrace-prefix don't search
for libbabeltrace
in includedir and libdir
1571 Some influential environment variables
:
1572 CC C compiler
command
1573 CFLAGS C compiler flags
1574 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1575 nonstandard directory
<lib dir
>
1576 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1577 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1578 you have headers
in a nonstandard directory
<include dir
>
1579 CXX C
++ compiler
command
1580 CXXFLAGS C
++ compiler flags
1582 MAKEINFO Parent configure detects
if it is of sufficient version.
1584 Parameters
for MAKEINFO.
1585 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1586 the first program found out of: `bison
-y', `byacc', `yacc'.
1587 YFLAGS The list of arguments that will be passed by default to $YACC.
1588 This script will default YFLAGS to the empty string to avoid a
1589 default value of `-d' given by some make applications.
1590 XMKMF Path to xmkmf, Makefile generator for X Window System
1592 Use these variables to override the choices made by `configure' or to
help
1593 it to
find libraries and programs with nonstandard names
/locations.
1595 Report bugs to the package provider.
1600 if test "$ac_init_help" = "recursive"; then
1601 # If there are subdirs, report their specific --help.
1602 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1603 test -d "$ac_dir" ||
1604 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1609 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1611 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1612 # A ".." for each directory in $ac_dir_suffix.
1613 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1614 case $ac_top_builddir_sub in
1615 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1616 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1619 ac_abs_top_builddir
=$ac_pwd
1620 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1621 # for backward compatibility:
1622 ac_top_builddir
=$ac_top_build_prefix
1625 .
) # We are building in place.
1627 ac_top_srcdir
=$ac_top_builddir_sub
1628 ac_abs_top_srcdir
=$ac_pwd ;;
1629 [\\/]* | ?
:[\\/]* ) # Absolute name.
1630 ac_srcdir
=$srcdir$ac_dir_suffix;
1631 ac_top_srcdir
=$srcdir
1632 ac_abs_top_srcdir
=$srcdir ;;
1634 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1635 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1636 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1638 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1640 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1641 # Check for guested configure.
1642 if test -f "$ac_srcdir/configure.gnu"; then
1644 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1645 elif test -f "$ac_srcdir/configure"; then
1647 $SHELL "$ac_srcdir/configure" --help=recursive
1649 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1651 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1655 test -n "$ac_init_help" && exit $ac_status
1656 if $ac_init_version; then
1659 generated by GNU Autoconf
2.64
1661 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1662 This configure
script is free software
; the Free Software Foundation
1663 gives unlimited permission to copy
, distribute and modify it.
1668 ## ------------------------ ##
1669 ## Autoconf initialization. ##
1670 ## ------------------------ ##
1672 # ac_fn_c_try_compile LINENO
1673 # --------------------------
1674 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1675 ac_fn_c_try_compile
()
1677 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1678 rm -f conftest.
$ac_objext
1679 if { { ac_try
="$ac_compile"
1681 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686 (eval "$ac_compile") 2>conftest.err
1688 if test -s conftest.err; then
1689 grep -v '^ *+' conftest.err >conftest.er1
1690 cat conftest.er1 >&5
1691 mv -f conftest.er1 conftest.err
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; } && {
1695 test -z "$ac_c_werror_flag" ||
1696 test ! -s conftest.err
1697 } && test -s conftest.$ac_objext; then :
1700 $as_echo "$as_me: failed program was:" >&5
1701 sed 's/^/| /' conftest.$ac_ext >&5
1705 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1708 } # ac_fn_c_try_compile
1710 # ac_fn_cxx_try_compile LINENO
1711 # ----------------------------
1712 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1713 ac_fn_cxx_try_compile ()
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 rm -f conftest.$ac_objext
1717 if { { ac_try="$ac_compile"
1719 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1720 *) ac_try_echo
=$ac_try;;
1722 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_compile") 2>conftest.err
1726 if test -s conftest.err
; then
1727 grep -v '^ *+' conftest.err
>conftest.er1
1728 cat conftest.er1
>&5
1729 mv -f conftest.er1 conftest.err
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; } && {
1733 test -z "$ac_cxx_werror_flag" ||
1734 test ! -s conftest.err
1735 } && test -s conftest.
$ac_objext; then :
1738 $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.
$ac_ext >&5
1743 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1746 } # ac_fn_cxx_try_compile
1748 # ac_fn_c_try_cpp LINENO
1749 # ----------------------
1750 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1753 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1754 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1756 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1763 if test -s conftest.err; then
1764 grep -v '^ *+' conftest.err >conftest.er1
1765 cat conftest.er1 >&5
1766 mv -f conftest.er1 conftest.err
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } >/dev/null && {
1770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1771 test ! -s conftest.err
1775 $as_echo "$as_me: failed program was:" >&5
1776 sed 's/^/| /' conftest.$ac_ext >&5
1780 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1785 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1786 # -------------------------------------------------------
1787 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1788 # the include files in INCLUDES and setting the cache variable VAR
1790 ac_fn_c_check_header_mongrel ()
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795 $as_echo_n "checking for $2... " >&6; }
1796 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1797 $as_echo_n "(cached) " >&6
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801 $as_echo "$ac_res" >&6; }
1803 # Is the header compilable?
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1805 $as_echo_n "checking $2 usability... " >&6; }
1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h. */
1811 if ac_fn_c_try_compile "$LINENO"; then :
1812 ac_header_compiler=yes
1814 ac_header_compiler=no
1816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1818 $as_echo "$ac_header_compiler" >&6; }
1820 # Is the header present?
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1822 $as_echo_n "checking $2 presence... " >&6; }
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h. */
1827 if ac_fn_c_try_cpp "$LINENO"; then :
1828 ac_header_preproc=yes
1830 ac_header_preproc=no
1832 rm -f conftest.err conftest.$ac_ext
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1834 $as_echo "$ac_header_preproc" >&6; }
1836 # So? What about this header?
1837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1840 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1842 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1846 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1848 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1850 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1852 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1854 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858 $as_echo_n "checking for $2... " >&6; }
1859 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1860 $as_echo_n "(cached) " >&6
1862 eval "$3=\$ac_header_compiler"
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1868 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1870 } # ac_fn_c_check_header_mongrel
1872 # ac_fn_c_try_run LINENO
1873 # ----------------------
1874 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1875 # that executables *can* be run.
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 if { { ac_try="$ac_link"
1881 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1882 *) ac_try_echo
=$ac_try;;
1884 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885 $as_echo "$ac_try_echo"; } >&5
1886 (eval "$ac_link") 2>&5
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1890 { { case "(($ac_try" in
1891 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1892 *) ac_try_echo=$ac_try;;
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896 (eval "$ac_try") 2>&5
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; }; }; then :
1902 $as_echo "$as_me: program exited with status $ac_status" >&5
1903 $as_echo "$as_me: failed program was:" >&5
1904 sed 's/^/| /' conftest.$ac_ext >&5
1906 ac_retval=$ac_status
1908 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1909 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1914 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1915 # -------------------------------------------------------
1916 # Tests whether HEADER exists and can be compiled using the include files in
1917 # INCLUDES, setting the cache variable VAR accordingly.
1918 ac_fn_c_check_header_compile ()
1920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1922 $as_echo_n "checking for $2... " >&6; }
1923 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1924 $as_echo_n "(cached) " >&6
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1931 if ac_fn_c_try_compile "$LINENO"; then :
1936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940 $as_echo "$ac_res" >&6; }
1941 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1943 } # ac_fn_c_check_header_compile
1945 # ac_fn_c_try_link LINENO
1946 # -----------------------
1947 # Try to link conftest.$ac_ext, and return whether this succeeded.
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 rm -f conftest.$ac_objext conftest$ac_exeext
1952 if { { ac_try="$ac_link"
1954 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1955 *) ac_try_echo
=$ac_try;;
1957 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1958 $as_echo "$ac_try_echo"; } >&5
1959 (eval "$ac_link") 2>conftest.err
1961 if test -s conftest.err
; then
1962 grep -v '^ *+' conftest.err
>conftest.er1
1963 cat conftest.er1
>&5
1964 mv -f conftest.er1 conftest.err
1966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1967 test $ac_status = 0; } && {
1968 test -z "$ac_c_werror_flag" ||
1969 test ! -s conftest.err
1970 } && test -s conftest
$ac_exeext && {
1971 test "$cross_compiling" = yes ||
1972 $as_test_x conftest
$ac_exeext
1976 $as_echo "$as_me: failed program was:" >&5
1977 sed 's/^/| /' conftest.
$ac_ext >&5
1981 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1982 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1983 # interfere with the next link command; also delete a directory that is
1984 # left behind by Apple's compiler. We do this before executing the actions.
1985 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1986 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1989 } # ac_fn_c_try_link
1991 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1992 # --------------------------------------------
1993 # Tries to find the compile-time value of EXPR in a program that includes
1994 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1996 ac_fn_c_compute_int
()
1998 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1999 if test "$cross_compiling" = yes; then
2000 # Depending upon the size, compute the lo and hi bounds.
2001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2007 static int test_array [1 - 2 * !(($2) >= 0)];
2014 if ac_fn_c_try_compile
"$LINENO"; then :
2017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2023 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2030 if ac_fn_c_try_compile
"$LINENO"; then :
2031 ac_hi
=$ac_mid; break
2033 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2034 if test $ac_lo -le $ac_mid; then
2038 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2040 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h. */
2049 static int test_array [1 - 2 * !(($2) < 0)];
2056 if ac_fn_c_try_compile
"$LINENO"; then :
2059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2065 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2072 if ac_fn_c_try_compile
"$LINENO"; then :
2073 ac_lo
=$ac_mid; break
2075 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2076 if test $ac_mid -le $ac_hi; then
2080 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2082 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2087 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2089 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2090 # Binary search between lo and hi bounds.
2091 while test "x$ac_lo" != "x$ac_hi"; do
2092 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h. */
2099 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2106 if ac_fn_c_try_compile
"$LINENO"; then :
2109 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2111 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2114 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2121 static long int longval () { return $2; }
2122 static unsigned long int ulongval () { return $2; }
2129 FILE *f = fopen ("conftest.val", "w");
2134 long int i = longval ();
2137 fprintf (f, "%ld", i);
2141 unsigned long int i = ulongval ();
2144 fprintf (f, "%lu", i);
2146 /* Do not output a trailing newline, as this causes \r\n confusion
2147 on some platforms. */
2148 return ferror (f) || fclose (f) != 0;
2154 if ac_fn_c_try_run
"$LINENO"; then :
2155 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2159 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2160 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2164 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2167 } # ac_fn_c_compute_int
2169 # ac_fn_c_check_func LINENO FUNC VAR
2170 # ----------------------------------
2171 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2172 ac_fn_c_check_func
()
2174 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2176 $as_echo_n "checking for $2... " >&6; }
2177 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2178 $as_echo_n "(cached) " >&6
2180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2181 /* end confdefs.h. */
2182 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2184 #define $2 innocuous_$2
2186 /* System header to define __stub macros and hopefully few prototypes,
2187 which can conflict with char $2 (); below.
2188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2189 <limits.h> exists even on freestanding compilers. */
2192 # include <limits.h>
2194 # include <assert.h>
2199 /* Override any GCC internal prototype to avoid an error.
2200 Use char because int might match the return type of a GCC
2201 builtin and then its argument prototype would still apply. */
2206 /* The GNU C library defines this for functions which it implements
2207 to always fail with ENOSYS. Some functions are actually named
2208 something starting with __ and the normal name is an alias. */
2209 #if defined __stub_$2 || defined __stub___$2
2221 if ac_fn_c_try_link
"$LINENO"; then :
2226 rm -f core conftest.err conftest.
$ac_objext \
2227 conftest
$ac_exeext conftest.
$ac_ext
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2231 $as_echo "$ac_res" >&6; }
2232 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2234 } # ac_fn_c_check_func
2236 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2237 # -------------------------------------------
2238 # Tests whether TYPE exists after having included INCLUDES, setting cache
2239 # variable VAR accordingly.
2240 ac_fn_c_check_type
()
2242 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2244 $as_echo_n "checking for $2... " >&6; }
2245 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2246 $as_echo_n "(cached) " >&6
2249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2250 /* end confdefs.h. */
2261 if ac_fn_c_try_compile
"$LINENO"; then :
2262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2263 /* end confdefs.h. */
2274 if ac_fn_c_try_compile
"$LINENO"; then :
2279 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2281 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2285 $as_echo "$ac_res" >&6; }
2286 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2288 } # ac_fn_c_check_type
2290 # ac_fn_c_check_decl LINENO SYMBOL VAR
2291 # ------------------------------------
2292 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2293 ac_fn_c_check_decl
()
2295 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2296 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2297 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2299 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2300 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2301 $as_echo_n "(cached) " >&6
2303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h. */
2309 #ifndef $as_decl_name
2311 (void) $as_decl_use;
2313 (void) $as_decl_name;
2321 if ac_fn_c_try_compile
"$LINENO"; then :
2326 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2330 $as_echo "$ac_res" >&6; }
2331 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2333 } # ac_fn_c_check_decl
2335 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2336 # ----------------------------------------------------
2337 # Tries to find if the field MEMBER exists in type AGGR, after including
2338 # INCLUDES, setting cache variable VAR accordingly.
2339 ac_fn_c_check_member
()
2341 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2343 $as_echo_n "checking for $2.$3... " >&6; }
2344 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2345 $as_echo_n "(cached) " >&6
2347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2348 /* end confdefs.h. */
2360 if ac_fn_c_try_compile
"$LINENO"; then :
2363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2364 /* end confdefs.h. */
2370 if (sizeof ac_aggr.$3)
2376 if ac_fn_c_try_compile
"$LINENO"; then :
2381 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2383 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2387 $as_echo "$ac_res" >&6; }
2388 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2390 } # ac_fn_c_check_member
2391 cat >config.log
<<_ACEOF
2392 This file contains any messages produced by compilers while
2393 running configure, to aid debugging if configure makes a mistake.
2395 It was created by $as_me, which was
2396 generated by GNU Autoconf 2.64. Invocation command line was
2408 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2409 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2410 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2411 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2412 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2414 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2415 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2417 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2418 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2419 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2420 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2421 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2422 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2423 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2427 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2431 test -z "$as_dir" && as_dir
=.
2432 $as_echo "PATH: $as_dir"
2448 # Keep a trace of the command line.
2449 # Strip out --no-create and --no-recursion so they do not pile up.
2450 # Strip out --silent because we don't want to record it for future runs.
2451 # Also quote any args containing shell meta-characters.
2452 # Make two passes to allow for proper duplicate-argument suppression.
2456 ac_must_keep_next
=false
2462 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2463 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2464 |
-silent |
--silent |
--silen |
--sile |
--sil)
2467 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2470 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2472 as_fn_append ac_configure_args1
" '$ac_arg'"
2473 if test $ac_must_keep_next = true
; then
2474 ac_must_keep_next
=false
# Got value, back to normal.
2477 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2478 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2479 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2480 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2481 case "$ac_configure_args0 " in
2482 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2485 -* ) ac_must_keep_next
=true
;;
2488 as_fn_append ac_configure_args
" '$ac_arg'"
2493 { ac_configure_args0
=; unset ac_configure_args0
;}
2494 { ac_configure_args1
=; unset ac_configure_args1
;}
2496 # When interrupted or exit'd, cleanup temporary files, and complete
2497 # config.log. We remove comments because anyway the quotes in there
2498 # would cause problems or look ugly.
2499 # WARNING: Use '\'' to represent an apostrophe within the trap.
2500 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2501 trap 'exit_status=$?
2502 # Save into config.log some information that might help in debugging.
2507 ## ---------------- ##
2508 ## Cache variables. ##
2509 ## ---------------- ##
2512 # The following way of writing the cache mishandles newlines in values,
2514 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2515 eval ac_val=\$$ac_var
2519 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2520 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2523 _ | IFS | as_nl) ;; #(
2524 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2525 *) { eval $ac_var=; unset $ac_var;} ;;
2530 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2531 *${as_nl}ac_space=\ *)
2533 "s/'\''/'\''\\\\'\'''\''/g;
2534 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2537 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2545 ## ----------------- ##
2546 ## Output variables. ##
2547 ## ----------------- ##
2550 for ac_var in $ac_subst_vars
2552 eval ac_val=\$$ac_var
2554 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2556 $as_echo "$ac_var='\''$ac_val'\''"
2560 if test -n "$ac_subst_files"; then
2562 ## ------------------- ##
2563 ## File substitutions. ##
2564 ## ------------------- ##
2567 for ac_var
in $ac_subst_files
2569 eval ac_val
=\$
$ac_var
2571 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2573 $as_echo "$ac_var='\''$ac_val'\''"
2578 if test -s confdefs.h; then
2588 test "$ac_signal" != 0 &&
2589 $as_echo "$as_me: caught signal $ac_signal"
2590 $as_echo "$as_me: exit $exit_status"
2592 rm -f core *.core core.conftest.* &&
2593 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2596 for ac_signal
in 1 2 13 15; do
2597 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2601 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2602 rm -f -r conftest
* confdefs.h
2604 $as_echo "/* confdefs.h */" > confdefs.h
2606 # Predefined preprocessor variables.
2608 cat >>confdefs.h
<<_ACEOF
2609 #define PACKAGE_NAME "$PACKAGE_NAME"
2612 cat >>confdefs.h
<<_ACEOF
2613 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2616 cat >>confdefs.h
<<_ACEOF
2617 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2620 cat >>confdefs.h
<<_ACEOF
2621 #define PACKAGE_STRING "$PACKAGE_STRING"
2624 cat >>confdefs.h
<<_ACEOF
2625 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2628 cat >>confdefs.h
<<_ACEOF
2629 #define PACKAGE_URL "$PACKAGE_URL"
2633 # Let the site file select an alternate cache file if it wants to.
2634 # Prefer an explicitly selected file to automatically selected ones.
2637 if test -n "$CONFIG_SITE"; then
2638 ac_site_file1
=$CONFIG_SITE
2639 elif test "x$prefix" != xNONE
; then
2640 ac_site_file1
=$prefix/share
/config.site
2641 ac_site_file2
=$prefix/etc
/config.site
2643 ac_site_file1
=$ac_default_prefix/share
/config.site
2644 ac_site_file2
=$ac_default_prefix/etc
/config.site
2646 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2648 test "x$ac_site_file" = xNONE
&& continue
2649 if test -r "$ac_site_file"; then
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2651 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2652 sed 's/^/| /' "$ac_site_file" >&5
2657 if test -r "$cache_file"; then
2658 # Some versions of bash will fail to source /dev/null (special
2659 # files actually), so we avoid doing that.
2660 if test -f "$cache_file"; then
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2662 $as_echo "$as_me: loading cache $cache_file" >&6;}
2664 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2665 *) .
"./$cache_file";;
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2670 $as_echo "$as_me: creating cache $cache_file" >&6;}
2674 # Check that the precious variables saved in the cache have kept the same
2676 ac_cache_corrupted
=false
2677 for ac_var
in $ac_precious_vars; do
2678 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2679 eval ac_new_set
=\
$ac_env_${ac_var}_set
2680 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2681 eval ac_new_val
=\
$ac_env_${ac_var}_value
2682 case $ac_old_set,$ac_new_set in
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2685 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2686 ac_cache_corrupted
=: ;;
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2689 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2690 ac_cache_corrupted
=: ;;
2693 if test "x$ac_old_val" != "x$ac_new_val"; then
2694 # differences in whitespace do not lead to failure.
2695 ac_old_val_w
=`echo x $ac_old_val`
2696 ac_new_val_w
=`echo x $ac_new_val`
2697 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2699 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2700 ac_cache_corrupted
=:
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2703 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2704 eval $ac_var=\
$ac_old_val
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2707 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2709 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2712 # Pass precious variables to config.status.
2713 if test "$ac_new_set" = set; then
2715 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2716 *) ac_arg
=$ac_var=$ac_new_val ;;
2718 case " $ac_configure_args " in
2719 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2720 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2724 if $ac_cache_corrupted; then
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2726 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2728 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2729 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2731 ## -------------------- ##
2732 ## Main body of script. ##
2733 ## -------------------- ##
2736 ac_cpp
='$CPP $CPPFLAGS'
2737 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2738 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2739 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2745 ac_config_headers
="$ac_config_headers config.h:config.in"
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2749 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2750 # Check whether --enable-maintainer-mode was given.
2751 if test "${enable_maintainer_mode+set}" = set; then :
2752 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2754 USE_MAINTAINER_MODE
=no
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2758 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2759 if test $USE_MAINTAINER_MODE = yes; then
2760 MAINTAINER_MODE_TRUE
=
2761 MAINTAINER_MODE_FALSE
='#'
2763 MAINTAINER_MODE_TRUE
='#'
2764 MAINTAINER_MODE_FALSE
=
2767 MAINT
=$MAINTAINER_MODE_TRUE
2771 # Set the 'development' global.
2772 .
$srcdir/..
/bfd
/development.sh
2775 ac_cpp
='$CPP $CPPFLAGS'
2776 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2777 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2778 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2779 if test -n "$ac_tool_prefix"; then
2780 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2781 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2783 $as_echo_n "checking for $ac_word... " >&6; }
2784 if test "${ac_cv_prog_CC+set}" = set; then :
2785 $as_echo_n "(cached) " >&6
2787 if test -n "$CC"; then
2788 ac_cv_prog_CC
="$CC" # Let the user override the test.
2790 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2794 test -z "$as_dir" && as_dir
=.
2795 for ac_exec_ext
in '' $ac_executable_extensions; do
2796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2797 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2808 if test -n "$CC"; then
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2810 $as_echo "$CC" >&6; }
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2813 $as_echo "no" >&6; }
2818 if test -z "$ac_cv_prog_CC"; then
2820 # Extract the first word of "gcc", so it can be a program name with args.
2821 set dummy gcc
; ac_word
=$2
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2823 $as_echo_n "checking for $ac_word... " >&6; }
2824 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2825 $as_echo_n "(cached) " >&6
2827 if test -n "$ac_ct_CC"; then
2828 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2830 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2834 test -z "$as_dir" && as_dir
=.
2835 for ac_exec_ext
in '' $ac_executable_extensions; do
2836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2837 ac_cv_prog_ac_ct_CC
="gcc"
2838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2848 if test -n "$ac_ct_CC"; then
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2850 $as_echo "$ac_ct_CC" >&6; }
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2853 $as_echo "no" >&6; }
2856 if test "x$ac_ct_CC" = x
; then
2859 case $cross_compiling:$ac_tool_warned in
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2863 ac_tool_warned
=yes ;;
2871 if test -z "$CC"; then
2872 if test -n "$ac_tool_prefix"; then
2873 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2874 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2876 $as_echo_n "checking for $ac_word... " >&6; }
2877 if test "${ac_cv_prog_CC+set}" = set; then :
2878 $as_echo_n "(cached) " >&6
2880 if test -n "$CC"; then
2881 ac_cv_prog_CC
="$CC" # Let the user override the test.
2883 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2887 test -z "$as_dir" && as_dir
=.
2888 for ac_exec_ext
in '' $ac_executable_extensions; do
2889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2890 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 if test -n "$CC"; then
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2903 $as_echo "$CC" >&6; }
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2906 $as_echo "no" >&6; }
2912 if test -z "$CC"; then
2913 # Extract the first word of "cc", so it can be a program name with args.
2914 set dummy cc
; ac_word
=$2
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2916 $as_echo_n "checking for $ac_word... " >&6; }
2917 if test "${ac_cv_prog_CC+set}" = set; then :
2918 $as_echo_n "(cached) " >&6
2920 if test -n "$CC"; then
2921 ac_cv_prog_CC
="$CC" # Let the user override the test.
2924 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2928 test -z "$as_dir" && as_dir
=.
2929 for ac_exec_ext
in '' $ac_executable_extensions; do
2930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2931 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2932 ac_prog_rejected
=yes
2936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2943 if test $ac_prog_rejected = yes; then
2944 # We found a bogon in the path, so make sure we never use it.
2945 set dummy
$ac_cv_prog_CC
2947 if test $# != 0; then
2948 # We chose a different compiler from the bogus one.
2949 # However, it has the same basename, so the bogon will be chosen
2950 # first if we set CC to just the basename; use the full file name.
2952 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2958 if test -n "$CC"; then
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2960 $as_echo "$CC" >&6; }
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2968 if test -z "$CC"; then
2969 if test -n "$ac_tool_prefix"; then
2970 for ac_prog
in cl.exe
2972 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2973 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2975 $as_echo_n "checking for $ac_word... " >&6; }
2976 if test "${ac_cv_prog_CC+set}" = set; then :
2977 $as_echo_n "(cached) " >&6
2979 if test -n "$CC"; then
2980 ac_cv_prog_CC
="$CC" # Let the user override the test.
2982 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2986 test -z "$as_dir" && as_dir
=.
2987 for ac_exec_ext
in '' $ac_executable_extensions; do
2988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2989 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3000 if test -n "$CC"; then
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3002 $as_echo "$CC" >&6; }
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3005 $as_echo "no" >&6; }
3009 test -n "$CC" && break
3012 if test -z "$CC"; then
3014 for ac_prog
in cl.exe
3016 # Extract the first word of "$ac_prog", so it can be a program name with args.
3017 set dummy
$ac_prog; ac_word
=$2
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3019 $as_echo_n "checking for $ac_word... " >&6; }
3020 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3021 $as_echo_n "(cached) " >&6
3023 if test -n "$ac_ct_CC"; then
3024 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3026 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3030 test -z "$as_dir" && as_dir
=.
3031 for ac_exec_ext
in '' $ac_executable_extensions; do
3032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3033 ac_cv_prog_ac_ct_CC
="$ac_prog"
3034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3043 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3044 if test -n "$ac_ct_CC"; then
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3046 $as_echo "$ac_ct_CC" >&6; }
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3049 $as_echo "no" >&6; }
3053 test -n "$ac_ct_CC" && break
3056 if test "x$ac_ct_CC" = x
; then
3059 case $cross_compiling:$ac_tool_warned in
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3063 ac_tool_warned
=yes ;;
3072 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3074 as_fn_error
"no acceptable C compiler found in \$PATH
3075 See \`config.log' for more details." "$LINENO" 5; }
3077 # Provide some information about the compiler.
3078 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3081 for ac_option
in --version -v -V -qversion; do
3082 { { ac_try
="$ac_compiler $ac_option >&5"
3084 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3087 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3088 $as_echo "$ac_try_echo"; } >&5
3089 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3091 if test -s conftest.err; then
3093 ... rest of stderr output deleted ...
3094 10q' conftest.err >conftest.er1
3095 cat conftest.er1 >&5
3096 rm -f conftest.er1 conftest.err
3098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3099 test $ac_status = 0; }
3102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3103 /* end confdefs.h. */
3113 ac_clean_files_save=$ac_clean_files
3114 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3115 # Try to create an executable without -o first, disregard a.out.
3116 # It will help us diagnose broken compilers, and finding out an intuition
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3119 $as_echo_n "checking for C compiler default output file name... " >&6; }
3120 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3122 # The possible output files:
3123 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3126 for ac_file in $ac_files
3129 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3130 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3135 if { { ac_try="$ac_link_default"
3137 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3138 *) ac_try_echo
=$ac_try;;
3140 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3141 $as_echo "$ac_try_echo"; } >&5
3142 (eval "$ac_link_default") 2>&5
3144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3145 test $ac_status = 0; }; then :
3146 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3147 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3148 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3149 # so that the user can short-circuit this test for compilers unknown to
3151 for ac_file
in $ac_files ''
3153 test -f "$ac_file" ||
continue
3155 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3158 # We found the default executable, but exeext='' is most
3162 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3164 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3166 # We set ac_cv_exeext here because the later test for it is not
3167 # safe: cross compilers may not add the suffix if given an `-o'
3168 # argument, so we may need to know it at that point already.
3169 # Even if this section looks crufty: it has the advantage of
3176 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3182 $as_echo "$ac_file" >&6; }
3183 if test -z "$ac_file"; then :
3184 $as_echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.
$ac_ext >&5
3187 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3189 { as_fn_set_status
77
3190 as_fn_error
"C compiler cannot create executables
3191 See \`config.log' for more details." "$LINENO" 5; }; }
3193 ac_exeext
=$ac_cv_exeext
3195 # Check that the compiler produces executables we can run. If not, either
3196 # the compiler is broken, or we cross compile.
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3198 $as_echo_n "checking whether the C compiler works... " >&6; }
3199 # If not cross compiling, check that we can run a simple program.
3200 if test "$cross_compiling" != yes; then
3201 if { ac_try
='./$ac_file'
3202 { { case "(($ac_try" in
3203 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3207 $as_echo "$ac_try_echo"; } >&5
3208 (eval "$ac_try") 2>&5
3210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3211 test $ac_status = 0; }; }; then
3214 if test "$cross_compiling" = maybe; then
3217 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3219 as_fn_error "cannot run C compiled programs.
3220 If you meant to cross compile
, use \
`--host'.
3221 See \`config.log
' for more details." "$LINENO" 5; }
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3226 $as_echo "yes" >&6; }
3228 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3229 ac_clean_files=$ac_clean_files_save
3230 # Check that the compiler produces executables we can run. If not, either
3231 # the compiler is broken, or we cross compile.
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3233 $as_echo_n "checking whether we are cross compiling... " >&6; }
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3235 $as_echo "$cross_compiling" >&6; }
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3238 $as_echo_n "checking for suffix of executables... " >&6; }
3239 if { { ac_try="$ac_link"
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3245 $as_echo "$ac_try_echo"; } >&5
3246 (eval "$ac_link") 2>&5
3248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3249 test $ac_status = 0; }; then :
3250 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3251 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3252 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3254 for ac_file
in conftest.exe conftest conftest.
*; do
3255 test -f "$ac_file" ||
continue
3257 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3258 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3264 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3266 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3267 See \`config.log' for more details." "$LINENO" 5; }
3269 rm -f conftest
$ac_cv_exeext
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3271 $as_echo "$ac_cv_exeext" >&6; }
3273 rm -f conftest.
$ac_ext
3274 EXEEXT
=$ac_cv_exeext
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3277 $as_echo_n "checking for suffix of object files... " >&6; }
3278 if test "${ac_cv_objext+set}" = set; then :
3279 $as_echo_n "(cached) " >&6
3281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3282 /* end confdefs.h. */
3292 rm -f conftest.o conftest.obj
3293 if { { ac_try
="$ac_compile"
3295 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3296 *) ac_try_echo=$ac_try;;
3298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3299 $as_echo "$ac_try_echo"; } >&5
3300 (eval "$ac_compile") 2>&5
3302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3303 test $ac_status = 0; }; then :
3304 for ac_file in conftest.o conftest.obj conftest.*; do
3305 test -f "$ac_file" || continue;
3307 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3308 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3313 $as_echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3316 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3318 as_fn_error "cannot compute suffix of object files
: cannot compile
3319 See \
`config.log' for more details." "$LINENO" 5; }
3321 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3324 $as_echo "$ac_cv_objext" >&6; }
3325 OBJEXT=$ac_cv_objext
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3328 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3329 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3330 $as_echo_n "(cached) " >&6
3332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3333 /* end confdefs.h. */
3346 if ac_fn_c_try_compile "$LINENO"; then :
3351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3352 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3356 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3357 if test $ac_compiler_gnu = yes; then
3362 ac_test_CFLAGS=${CFLAGS+set}
3363 ac_save_CFLAGS=$CFLAGS
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3365 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3366 if test "${ac_cv_prog_cc_g+set}" = set; then :
3367 $as_echo_n "(cached) " >&6
3369 ac_save_c_werror_flag=$ac_c_werror_flag
3370 ac_c_werror_flag=yes
3373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3374 /* end confdefs.h. */
3384 if ac_fn_c_try_compile "$LINENO"; then :
3388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3389 /* end confdefs.h. */
3399 if ac_fn_c_try_compile "$LINENO"; then :
3402 ac_c_werror_flag=$ac_save_c_werror_flag
3404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3405 /* end confdefs.h. */
3415 if ac_fn_c_try_compile "$LINENO"; then :
3418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3423 ac_c_werror_flag=$ac_save_c_werror_flag
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3426 $as_echo "$ac_cv_prog_cc_g" >&6; }
3427 if test "$ac_test_CFLAGS" = set; then
3428 CFLAGS=$ac_save_CFLAGS
3429 elif test $ac_cv_prog_cc_g = yes; then
3430 if test "$GCC" = yes; then
3436 if test "$GCC" = yes; then
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3443 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3444 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3445 $as_echo_n "(cached) " >&6
3447 ac_cv_prog_cc_c89=no
3449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3450 /* end confdefs.h. */
3453 #include <sys/types.h>
3454 #include <sys/stat.h>
3455 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3456 struct buf { int x; };
3457 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3458 static char *e (p, i)
3464 static char *f (char * (*g) (char **, int), char **p, ...)
3469 s = g (p, va_arg (v,int));
3474 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3475 function prototypes and stuff, but not '\xHH' hex character constants.
3476 These don't provoke an error unfortunately, instead are silently treated
3477 as 'x'. The following induces an error, until -std is added to get
3478 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3479 array size at least. It's necessary to write '\x00'==0 to get something
3480 that's true only with -std. */
3481 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3483 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3484 inside strings and character constants. */
3486 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3488 int test (int i, double x);
3489 struct s1 {int (*f) (int a);};
3490 struct s2 {int (*f) (double a);};
3491 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3497 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3502 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3503 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3505 CC="$ac_save_CC $ac_arg"
3506 if ac_fn_c_try_compile "$LINENO"; then :
3507 ac_cv_prog_cc_c89=$ac_arg
3509 rm -f core conftest.err conftest.$ac_objext
3510 test "x$ac_cv_prog_cc_c89" != "xno" && break
3512 rm -f conftest.$ac_ext
3517 case "x$ac_cv_prog_cc_c89" in
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3520 $as_echo "none needed" >&6; } ;;
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3523 $as_echo "unsupported" >&6; } ;;
3525 CC="$CC $ac_cv_prog_cc_c89"
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3527 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3529 if test "x$ac_cv_prog_cc_c89" != xno; then :
3534 ac_cpp='$CPP $CPPFLAGS'
3535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3540 ac_cpp='$CXXCPP $CPPFLAGS'
3541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3542 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3544 if test -z "$CXX"; then
3545 if test -n "$CCC"; then
3548 if test -n "$ac_tool_prefix"; then
3549 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3551 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3552 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554 $as_echo_n "checking for $ac_word... " >&6; }
3555 if test "${ac_cv_prog_CXX+set}" = set; then :
3556 $as_echo_n "(cached) " >&6
3558 if test -n "$CXX"; then
3559 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 test -z "$as_dir" && as_dir=.
3566 for ac_exec_ext in '' $ac_executable_extensions; do
3567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3568 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3579 if test -n "$CXX"; then
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3581 $as_echo "$CXX" >&6; }
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584 $as_echo "no" >&6; }
3588 test -n "$CXX" && break
3591 if test -z "$CXX"; then
3593 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3595 # Extract the first word of "$ac_prog", so it can be a program name with args.
3596 set dummy $ac_prog; ac_word=$2
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3598 $as_echo_n "checking for $ac_word... " >&6; }
3599 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3600 $as_echo_n "(cached) " >&6
3602 if test -n "$ac_ct_CXX"; then
3603 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609 test -z "$as_dir" && as_dir=.
3610 for ac_exec_ext in '' $ac_executable_extensions; do
3611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3612 ac_cv_prog_ac_ct_CXX="$ac_prog"
3613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3622 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3623 if test -n "$ac_ct_CXX"; then
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3625 $as_echo "$ac_ct_CXX" >&6; }
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3628 $as_echo "no" >&6; }
3632 test -n "$ac_ct_CXX" && break
3635 if test "x$ac_ct_CXX" = x; then
3638 case $cross_compiling:$ac_tool_warned in
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3642 ac_tool_warned=yes ;;
3650 # Provide some information about the compiler.
3651 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3654 for ac_option in --version -v -V -qversion; do
3655 { { ac_try="$ac_compiler $ac_option >&5"
3657 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3658 *) ac_try_echo
=$ac_try;;
3660 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3661 $as_echo "$ac_try_echo"; } >&5
3662 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3664 if test -s conftest.err
; then
3666 ... rest of stderr output deleted ...
3667 10q' conftest.err
>conftest.er1
3668 cat conftest.er1
>&5
3669 rm -f conftest.er1 conftest.err
3671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3672 test $ac_status = 0; }
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3676 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3677 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3678 $as_echo_n "(cached) " >&6
3680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3681 /* end confdefs.h. */
3694 if ac_fn_cxx_try_compile
"$LINENO"; then :
3699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3700 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3704 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3705 if test $ac_compiler_gnu = yes; then
3710 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3711 ac_save_CXXFLAGS
=$CXXFLAGS
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3713 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3714 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3715 $as_echo_n "(cached) " >&6
3717 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3718 ac_cxx_werror_flag
=yes
3721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3722 /* end confdefs.h. */
3732 if ac_fn_cxx_try_compile
"$LINENO"; then :
3733 ac_cv_prog_cxx_g
=yes
3736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h. */
3747 if ac_fn_cxx_try_compile
"$LINENO"; then :
3750 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3753 /* end confdefs.h. */
3763 if ac_fn_cxx_try_compile
"$LINENO"; then :
3764 ac_cv_prog_cxx_g
=yes
3766 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3768 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3770 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3771 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3774 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3775 if test "$ac_test_CXXFLAGS" = set; then
3776 CXXFLAGS
=$ac_save_CXXFLAGS
3777 elif test $ac_cv_prog_cxx_g = yes; then
3778 if test "$GXX" = yes; then
3784 if test "$GXX" = yes; then
3791 ac_cpp
='$CPP $CPPFLAGS'
3792 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3793 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3794 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3799 ac_cpp
='$CPP $CPPFLAGS'
3800 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3801 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3802 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3804 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3805 # On Suns, sometimes $CPP names a directory.
3806 if test -n "$CPP" && test -d "$CPP"; then
3809 if test -z "$CPP"; then
3810 if test "${ac_cv_prog_CPP+set}" = set; then :
3811 $as_echo_n "(cached) " >&6
3813 # Double quotes because CPP needs to be expanded
3814 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3817 for ac_c_preproc_warn_flag
in '' yes
3819 # Use a header file that comes with gcc, so configuring glibc
3820 # with a fresh cross-compiler works.
3821 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3822 # <limits.h> exists even on freestanding compilers.
3823 # On the NeXT, cc -E runs the code through the compiler's parser,
3824 # not just through cpp. "Syntax error" is here to catch this case.
3825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3828 # include <limits.h>
3830 # include <assert.h>
3834 if ac_fn_c_try_cpp
"$LINENO"; then :
3837 # Broken: fails on valid input.
3840 rm -f conftest.err conftest.
$ac_ext
3842 # OK, works on sane cases. Now check whether nonexistent headers
3843 # can be detected and how.
3844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3845 /* end confdefs.h. */
3846 #include <ac_nonexistent.h>
3848 if ac_fn_c_try_cpp
"$LINENO"; then :
3849 # Broken: success on invalid input.
3852 # Passes both tests.
3856 rm -f conftest.err conftest.
$ac_ext
3859 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3860 rm -f conftest.err conftest.
$ac_ext
3861 if $ac_preproc_ok; then :
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3874 $as_echo "$CPP" >&6; }
3876 for ac_c_preproc_warn_flag
in '' yes
3878 # Use a header file that comes with gcc, so configuring glibc
3879 # with a fresh cross-compiler works.
3880 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3881 # <limits.h> exists even on freestanding compilers.
3882 # On the NeXT, cc -E runs the code through the compiler's parser,
3883 # not just through cpp. "Syntax error" is here to catch this case.
3884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3887 # include <limits.h>
3889 # include <assert.h>
3893 if ac_fn_c_try_cpp
"$LINENO"; then :
3896 # Broken: fails on valid input.
3899 rm -f conftest.err conftest.
$ac_ext
3901 # OK, works on sane cases. Now check whether nonexistent headers
3902 # can be detected and how.
3903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3904 /* end confdefs.h. */
3905 #include <ac_nonexistent.h>
3907 if ac_fn_c_try_cpp
"$LINENO"; then :
3908 # Broken: success on invalid input.
3911 # Passes both tests.
3915 rm -f conftest.err conftest.
$ac_ext
3918 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3919 rm -f conftest.err conftest.
$ac_ext
3920 if $ac_preproc_ok; then :
3923 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3925 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
3926 See \`config.log' for more details." "$LINENO" 5; }
3930 ac_cpp
='$CPP $CPPFLAGS'
3931 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3932 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3933 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3937 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3938 if test "${ac_cv_path_GREP+set}" = set; then :
3939 $as_echo_n "(cached) " >&6
3941 if test -z "$GREP"; then
3942 ac_path_GREP_found
=false
3943 # Loop through the user's path and test for each of PROGNAME-LIST
3944 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3945 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3948 test -z "$as_dir" && as_dir
=.
3949 for ac_prog
in grep ggrep
; do
3950 for ac_exec_ext
in '' $ac_executable_extensions; do
3951 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3952 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3953 # Check for GNU ac_path_GREP and select it if it is found.
3954 # Check for GNU $ac_path_GREP
3955 case `"$ac_path_GREP" --version 2>&1` in
3957 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3960 $as_echo_n 0123456789 >"conftest.in"
3963 cat "conftest.in" "conftest.in" >"conftest.tmp"
3964 mv "conftest.tmp" "conftest.in"
3965 cp "conftest.in" "conftest.nl"
3966 $as_echo 'GREP' >> "conftest.nl"
3967 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3968 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3969 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3970 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3971 # Best one so far, save it but keep looking for a better one
3972 ac_cv_path_GREP
="$ac_path_GREP"
3973 ac_path_GREP_max
=$ac_count
3975 # 10*(2^10) chars as input seems more than enough
3976 test $ac_count -gt 10 && break
3978 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3981 $ac_path_GREP_found && break 3
3986 if test -z "$ac_cv_path_GREP"; then
3987 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3990 ac_cv_path_GREP
=$GREP
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3995 $as_echo "$ac_cv_path_GREP" >&6; }
3996 GREP
="$ac_cv_path_GREP"
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4000 $as_echo_n "checking for egrep... " >&6; }
4001 if test "${ac_cv_path_EGREP+set}" = set; then :
4002 $as_echo_n "(cached) " >&6
4004 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4005 then ac_cv_path_EGREP
="$GREP -E"
4007 if test -z "$EGREP"; then
4008 ac_path_EGREP_found
=false
4009 # Loop through the user's path and test for each of PROGNAME-LIST
4010 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4011 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4014 test -z "$as_dir" && as_dir
=.
4015 for ac_prog
in egrep; do
4016 for ac_exec_ext
in '' $ac_executable_extensions; do
4017 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4018 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4019 # Check for GNU ac_path_EGREP and select it if it is found.
4020 # Check for GNU $ac_path_EGREP
4021 case `"$ac_path_EGREP" --version 2>&1` in
4023 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4026 $as_echo_n 0123456789 >"conftest.in"
4029 cat "conftest.in" "conftest.in" >"conftest.tmp"
4030 mv "conftest.tmp" "conftest.in"
4031 cp "conftest.in" "conftest.nl"
4032 $as_echo 'EGREP' >> "conftest.nl"
4033 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4034 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4035 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4036 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4037 # Best one so far, save it but keep looking for a better one
4038 ac_cv_path_EGREP
="$ac_path_EGREP"
4039 ac_path_EGREP_max
=$ac_count
4041 # 10*(2^10) chars as input seems more than enough
4042 test $ac_count -gt 10 && break
4044 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4047 $ac_path_EGREP_found && break 3
4052 if test -z "$ac_cv_path_EGREP"; then
4053 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4056 ac_cv_path_EGREP
=$EGREP
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4062 $as_echo "$ac_cv_path_EGREP" >&6; }
4063 EGREP
="$ac_cv_path_EGREP"
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4067 $as_echo_n "checking for ANSI C header files... " >&6; }
4068 if test "${ac_cv_header_stdc+set}" = set; then :
4069 $as_echo_n "(cached) " >&6
4071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h. */
4086 if ac_fn_c_try_compile
"$LINENO"; then :
4087 ac_cv_header_stdc
=yes
4089 ac_cv_header_stdc
=no
4091 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4093 if test $ac_cv_header_stdc = yes; then
4094 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4096 /* end confdefs.h. */
4100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4101 $EGREP "memchr" >/dev
/null
2>&1; then :
4104 ac_cv_header_stdc
=no
4110 if test $ac_cv_header_stdc = yes; then
4111 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4113 /* end confdefs.h. */
4117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4118 $EGREP "free" >/dev
/null
2>&1; then :
4121 ac_cv_header_stdc
=no
4127 if test $ac_cv_header_stdc = yes; then
4128 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4129 if test "$cross_compiling" = yes; then :
4132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4133 /* end confdefs.h. */
4136 #if ((' ' & 0x0FF) == 0x020)
4137 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4138 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4140 # define ISLOWER(c) \
4141 (('a' <= (c) && (c) <= 'i') \
4142 || ('j' <= (c) && (c) <= 'r') \
4143 || ('s' <= (c) && (c) <= 'z'))
4144 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4147 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4152 for (i = 0; i < 256; i++)
4153 if (XOR (islower (i), ISLOWER (i))
4154 || toupper (i) != TOUPPER (i))
4159 if ac_fn_c_try_run
"$LINENO"; then :
4162 ac_cv_header_stdc
=no
4164 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4165 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4171 $as_echo "$ac_cv_header_stdc" >&6; }
4172 if test $ac_cv_header_stdc = yes; then
4174 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4178 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4179 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4180 inttypes.h stdint.h unistd.h
4182 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4183 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4185 eval as_val
=\$
$as_ac_Header
4186 if test "x$as_val" = x
""yes; then :
4187 cat >>confdefs.h
<<_ACEOF
4188 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4197 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4198 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4205 if test "$MINIX" = yes; then
4207 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4210 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4213 $as_echo "#define _MINIX 1" >>confdefs.h
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4219 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4220 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4221 $as_echo_n "(cached) " >&6
4223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h. */
4226 # define __EXTENSIONS__ 1
4227 $ac_includes_default
4236 if ac_fn_c_try_compile
"$LINENO"; then :
4237 ac_cv_safe_to_define___extensions__
=yes
4239 ac_cv_safe_to_define___extensions__
=no
4241 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4244 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4245 test $ac_cv_safe_to_define___extensions__ = yes &&
4246 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4248 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4250 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4252 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4254 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4258 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4259 for ac_t
in install-sh
install.sh shtool
; do
4260 if test -f "$ac_dir/$ac_t"; then
4262 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4267 if test -z "$ac_aux_dir"; then
4268 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4271 # These three variables are undocumented and unsupported,
4272 # and are intended to be withdrawn in a future Autoconf release.
4273 # They can cause serious problems if a builder's source tree is in a directory
4274 # whose full name contains unusual characters.
4275 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4276 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4277 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4280 # Make sure we can run config.sub.
4281 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4282 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4285 $as_echo_n "checking build system type... " >&6; }
4286 if test "${ac_cv_build+set}" = set; then :
4287 $as_echo_n "(cached) " >&6
4289 ac_build_alias
=$build_alias
4290 test "x$ac_build_alias" = x
&&
4291 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4292 test "x$ac_build_alias" = x
&&
4293 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4294 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4295 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4299 $as_echo "$ac_cv_build" >&6; }
4300 case $ac_cv_build in
4302 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4305 ac_save_IFS
=$IFS; IFS
='-'
4311 # Remember, the first character of IFS is used to create $*,
4312 # except with old shells:
4315 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4319 $as_echo_n "checking host system type... " >&6; }
4320 if test "${ac_cv_host+set}" = set; then :
4321 $as_echo_n "(cached) " >&6
4323 if test "x$host_alias" = x
; then
4324 ac_cv_host
=$ac_cv_build
4326 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4327 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4332 $as_echo "$ac_cv_host" >&6; }
4335 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4338 ac_save_IFS
=$IFS; IFS
='-'
4344 # Remember, the first character of IFS is used to create $*,
4345 # except with old shells:
4348 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4352 $as_echo_n "checking target system type... " >&6; }
4353 if test "${ac_cv_target+set}" = set; then :
4354 $as_echo_n "(cached) " >&6
4356 if test "x$target_alias" = x
; then
4357 ac_cv_target
=$ac_cv_host
4359 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4360 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4365 $as_echo "$ac_cv_target" >&6; }
4366 case $ac_cv_target in
4368 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4370 target
=$ac_cv_target
4371 ac_save_IFS
=$IFS; IFS
='-'
4377 # Remember, the first character of IFS is used to create $*,
4378 # except with old shells:
4381 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4384 # The aliases save the names the user supplied, while $host etc.
4385 # will get canonicalized.
4386 test -n "$target_alias" &&
4387 test "$program_prefix$program_suffix$program_transform_name" = \
4389 program_prefix
=${target_alias}-
4391 # The tests for host and target for $enable_largefile require
4396 # As the $enable_largefile decision depends on --enable-plugins we must set it
4397 # even in directories otherwise not depending on the $plugins option.
4401 for ac_header
in dlfcn.h
4403 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4405 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then :
4406 cat >>confdefs.h
<<_ACEOF
4407 #define HAVE_DLFCN_H 1
4414 for ac_header
in windows.h
4416 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4418 if test "x$ac_cv_header_windows_h" = x
""yes; then :
4419 cat >>confdefs.h
<<_ACEOF
4420 #define HAVE_WINDOWS_H 1
4428 # Check whether --enable-plugins was given.
4429 if test "${enable_plugins+set}" = set; then :
4430 enableval
=$enable_plugins; case "${enableval}" in
4433 if test "$maybe_plugins" != "yes" ; then
4434 as_fn_error
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4438 plugins
=$maybe_plugins
4442 if test "$plugins" = "yes"; then
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
4444 $as_echo_n "checking for library containing dlopen... " >&6; }
4445 if test "${ac_cv_search_dlopen+set}" = set; then :
4446 $as_echo_n "(cached) " >&6
4448 ac_func_search_save_LIBS
=$LIBS
4449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4450 /* end confdefs.h. */
4452 /* Override any GCC internal prototype to avoid an error.
4453 Use char because int might match the return type of a GCC
4454 builtin and then its argument prototype would still apply. */
4467 for ac_lib
in '' dl
; do
4468 if test -z "$ac_lib"; then
4469 ac_res
="none required"
4472 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4474 if ac_fn_c_try_link
"$LINENO"; then :
4475 ac_cv_search_dlopen
=$ac_res
4477 rm -f core conftest.err conftest.
$ac_objext \
4479 if test "${ac_cv_search_dlopen+set}" = set; then :
4483 if test "${ac_cv_search_dlopen+set}" = set; then :
4486 ac_cv_search_dlopen
=no
4489 LIBS
=$ac_func_search_save_LIBS
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
4492 $as_echo "$ac_cv_search_dlopen" >&6; }
4493 ac_res
=$ac_cv_search_dlopen
4494 if test "$ac_res" != no
; then :
4495 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4503 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4504 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4505 # are mutually exclusive; and without procfs support, the bfd/ elf module
4506 # cannot provide certain routines such as elfcore_write_prpsinfo
4507 # or elfcore_write_prstatus. So unless the user explicitly requested
4508 # large-file support through the --enable-largefile switch, disable
4509 # large-file support in favor of procfs support.
4510 test "${target}" = "${host}" -a "x$plugins" = xno \
4511 && : ${enable_largefile="no"}
4515 # Check whether --enable-largefile was given.
4516 if test "${enable_largefile+set}" = set; then :
4517 enableval
=$enable_largefile;
4520 if test "$enable_largefile" != no
; then
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4523 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4524 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4525 $as_echo_n "(cached) " >&6
4527 ac_cv_sys_largefile_CC
=no
4528 if test "$GCC" != yes; then
4531 # IRIX 6.2 and later do not support large files by default,
4532 # so use the C compiler's -n32 option if that helps.
4533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4535 #include <sys/types.h>
4536 /* Check that off_t can represent 2**63 - 1 correctly.
4537 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4538 since some C++ compilers masquerading as C compilers
4539 incorrectly reject 9223372036854775807. */
4540 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4541 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4542 && LARGE_OFF_T % 2147483647 == 1)
4552 if ac_fn_c_try_compile
"$LINENO"; then :
4555 rm -f core conftest.err conftest.
$ac_objext
4557 if ac_fn_c_try_compile
"$LINENO"; then :
4558 ac_cv_sys_largefile_CC
=' -n32'; break
4560 rm -f core conftest.err conftest.
$ac_objext
4564 rm -f conftest.
$ac_ext
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4568 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4569 if test "$ac_cv_sys_largefile_CC" != no
; then
4570 CC
=$CC$ac_cv_sys_largefile_CC
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4574 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4575 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4576 $as_echo_n "(cached) " >&6
4579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h. */
4581 #include <sys/types.h>
4582 /* Check that off_t can represent 2**63 - 1 correctly.
4583 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4584 since some C++ compilers masquerading as C compilers
4585 incorrectly reject 9223372036854775807. */
4586 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4587 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4588 && LARGE_OFF_T % 2147483647 == 1)
4598 if ac_fn_c_try_compile
"$LINENO"; then :
4599 ac_cv_sys_file_offset_bits
=no
; break
4601 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4603 /* end confdefs.h. */
4604 #define _FILE_OFFSET_BITS 64
4605 #include <sys/types.h>
4606 /* Check that off_t can represent 2**63 - 1 correctly.
4607 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4608 since some C++ compilers masquerading as C compilers
4609 incorrectly reject 9223372036854775807. */
4610 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4611 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4612 && LARGE_OFF_T % 2147483647 == 1)
4622 if ac_fn_c_try_compile
"$LINENO"; then :
4623 ac_cv_sys_file_offset_bits
=64; break
4625 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4626 ac_cv_sys_file_offset_bits
=unknown
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4631 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4632 case $ac_cv_sys_file_offset_bits in #(
4635 cat >>confdefs.h
<<_ACEOF
4636 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4641 if test $ac_cv_sys_file_offset_bits = unknown
; then
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4643 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4644 if test "${ac_cv_sys_large_files+set}" = set; then :
4645 $as_echo_n "(cached) " >&6
4648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4649 /* end confdefs.h. */
4650 #include <sys/types.h>
4651 /* Check that off_t can represent 2**63 - 1 correctly.
4652 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4653 since some C++ compilers masquerading as C compilers
4654 incorrectly reject 9223372036854775807. */
4655 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4656 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4657 && LARGE_OFF_T % 2147483647 == 1)
4667 if ac_fn_c_try_compile
"$LINENO"; then :
4668 ac_cv_sys_large_files
=no
; break
4670 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h. */
4673 #define _LARGE_FILES 1
4674 #include <sys/types.h>
4675 /* Check that off_t can represent 2**63 - 1 correctly.
4676 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4677 since some C++ compilers masquerading as C compilers
4678 incorrectly reject 9223372036854775807. */
4679 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4680 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4681 && LARGE_OFF_T % 2147483647 == 1)
4691 if ac_fn_c_try_compile
"$LINENO"; then :
4692 ac_cv_sys_large_files
=1; break
4694 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4695 ac_cv_sys_large_files
=unknown
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4700 $as_echo "$ac_cv_sys_large_files" >&6; }
4701 case $ac_cv_sys_large_files in #(
4704 cat >>confdefs.h
<<_ACEOF
4705 #define _LARGE_FILES $ac_cv_sys_large_files
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4718 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4719 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4720 $as_echo_n "(cached) " >&6
4722 am_cv_prog_cc_stdc
=no
4724 # Don't try gcc -ansi; that turns off useful extensions and
4725 # breaks some systems' header files.
4726 # AIX -qlanglvl=ansi
4727 # Ultrix and OSF/1 -std1
4728 # HP-UX 10.20 and later -Ae
4729 # HP-UX older versions -Aa -D_HPUX_SOURCE
4730 # SVR4 -Xc -D__EXTENSIONS__
4731 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4733 CC
="$ac_save_CC $ac_arg"
4734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h. */
4738 #include <sys/types.h>
4739 #include <sys/stat.h>
4740 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4741 struct buf { int x; };
4742 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4743 static char *e (p, i)
4749 static char *f (char * (*g) (char **, int), char **p, ...)
4754 s = g (p, va_arg (v,int));
4758 int test (int i, double x);
4759 struct s1 {int (*f) (int a);};
4760 struct s2 {int (*f) (double a);};
4761 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4769 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4775 if ac_fn_c_try_compile
"$LINENO"; then :
4776 am_cv_prog_cc_stdc
="$ac_arg"; break
4778 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4784 if test -z "$am_cv_prog_cc_stdc"; then
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4786 $as_echo "none needed" >&6; }
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4789 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4791 case "x$am_cv_prog_cc_stdc" in
4793 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4796 # expand $ac_aux_dir to an absolute path
4797 am_aux_dir
=`cd $ac_aux_dir && pwd`
4799 if test x
"${install_sh}" != xset
; then
4802 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
4804 install_sh
="\${SHELL} $am_aux_dir/install-sh"
4808 # Installed binaries are usually stripped using `strip' when the user
4809 # run `make install-strip'. However `strip' might not be the right
4810 # tool to use in cross-compilation environments, therefore Automake
4811 # will honor the `STRIP' environment variable to overrule this program.
4812 if test "$cross_compiling" != no
; then
4813 if test -n "$ac_tool_prefix"; then
4814 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4815 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817 $as_echo_n "checking for $ac_word... " >&6; }
4818 if test "${ac_cv_prog_STRIP+set}" = set; then :
4819 $as_echo_n "(cached) " >&6
4821 if test -n "$STRIP"; then
4822 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4824 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4828 test -z "$as_dir" && as_dir
=.
4829 for ac_exec_ext
in '' $ac_executable_extensions; do
4830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4831 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4841 STRIP
=$ac_cv_prog_STRIP
4842 if test -n "$STRIP"; then
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4844 $as_echo "$STRIP" >&6; }
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847 $as_echo "no" >&6; }
4852 if test -z "$ac_cv_prog_STRIP"; then
4854 # Extract the first word of "strip", so it can be a program name with args.
4855 set dummy strip
; ac_word
=$2
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4857 $as_echo_n "checking for $ac_word... " >&6; }
4858 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4859 $as_echo_n "(cached) " >&6
4861 if test -n "$ac_ct_STRIP"; then
4862 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
4864 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4868 test -z "$as_dir" && as_dir
=.
4869 for ac_exec_ext
in '' $ac_executable_extensions; do
4870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4871 ac_cv_prog_ac_ct_STRIP
="strip"
4872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4881 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4882 if test -n "$ac_ct_STRIP"; then
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4884 $as_echo "$ac_ct_STRIP" >&6; }
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887 $as_echo "no" >&6; }
4890 if test "x$ac_ct_STRIP" = x
; then
4893 case $cross_compiling:$ac_tool_warned in
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4897 ac_tool_warned
=yes ;;
4902 STRIP
="$ac_cv_prog_STRIP"
4906 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
4910 for ac_dir
in ..
"$srcdir"/..
; do
4911 for ac_t
in install-sh
install.sh shtool
; do
4912 if test -f "$ac_dir/$ac_t"; then
4914 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4919 if test -z "$ac_aux_dir"; then
4920 as_fn_error
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4923 # These three variables are undocumented and unsupported,
4924 # and are intended to be withdrawn in a future Autoconf release.
4925 # They can cause serious problems if a builder's source tree is in a directory
4926 # whose full name contains unusual characters.
4927 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4928 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4929 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4933 test "$program_prefix" != NONE
&&
4934 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4935 # Use a double $ so make ignores it.
4936 test "$program_suffix" != NONE
&&
4937 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4938 # Double any \ or $.
4939 # By default was `s,x,x', remove it if useless.
4940 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4941 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4944 # See if we are building with C++, and substitute COMPILER.
4946 # Check whether --enable-build-with-cxx was given.
4947 if test "${enable_build_with_cxx+set}" = set; then :
4948 enableval
=$enable_build_with_cxx; case $enableval in
4952 as_fn_error
"bad value $enableval for --enable-build-with-cxx" "$LINENO" 5 ;;
4955 enable_build_with_cxx
=no
4959 if test "$enable_build_with_cxx" = "yes"; then
4960 # We're using -fpermissive as shortcut for now.
4961 COMPILER
='$(CXX) -fpermissive'
4968 # Dependency checking.
4969 rm -rf .tst
2>/dev
/null
4970 mkdir .tst
2>/dev
/null
4971 if test -d .tst
; then
4976 rmdir .tst
2>/dev
/null
4978 DEPDIR
="${am__leading_dot}deps"
4980 ac_config_commands
="$ac_config_commands depdir"
4983 depcc
="$CC" am_compiler_list
=
4985 am_depcomp
=$ac_aux_dir/depcomp
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4987 $as_echo_n "checking dependency style of $depcc... " >&6; }
4988 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4989 $as_echo_n "(cached) " >&6
4991 if test -f "$am_depcomp"; then
4992 # We make a subdir and do the tests there. Otherwise we can end up
4993 # making bogus files that we don't know about and never remove. For
4994 # instance it was reported that on HP-UX the gcc test will end up
4995 # making a dummy file named `D' -- because `-MD' means `put the output
4998 # Copy depcomp to subdir because otherwise we won't find it if we're
4999 # using a relative directory.
5000 cp "$am_depcomp" conftest.dir
5002 # We will build objects and dependencies in a subdirectory because
5003 # it helps to detect inapplicable dependency modes. For instance
5004 # both Tru64's cc and ICC support -MD to output dependencies as a
5005 # side effect of compilation, but ICC will put the dependencies in
5006 # the current directory while Tru64 will put them in the object
5010 am_cv_CC_dependencies_compiler_type
=none
5011 if test "$am_compiler_list" = ""; then
5012 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5014 for depmode
in $am_compiler_list; do
5015 if test $depmode = none
; then break; fi
5017 $as_echo "$as_me:$LINENO: trying $depmode" >&5
5018 # Setup a source with many dependencies, because some compilers
5019 # like to wrap large dependency lists on column 80 (with \), and
5020 # we should not choose a depcomp mode which is confused by this.
5022 # We need to recreate these files for each test, as the compiler may
5023 # overwrite some of them when testing with obscure command lines.
5024 # This happens at least with the AIX C compiler.
5026 for i
in 1 2 3 4 5 6; do
5027 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5028 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5029 # Solaris 8's {/usr,}/bin/sh.
5030 touch sub
/conftst
$i.h
5032 echo "include sub/conftest.Po" > confmf
5034 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5035 # mode. It turns out that the SunPro C++ compiler does not properly
5036 # handle `-M -o', and we need to detect this.
5037 depcmd
="depmode=$depmode \
5038 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5039 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5040 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
5041 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
5042 if env
$depcmd > conftest.err
2>&1 &&
5043 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
5044 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
5045 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
5046 # icc doesn't choke on unknown options, it will just issue warnings
5047 # or remarks (even with -Werror). So we grep stderr for any message
5048 # that says an option was ignored or not supported.
5049 # When given -MP, icc 7.0 and 7.1 complain thusly:
5050 # icc: Command line warning: ignoring option '-M'; no argument required
5051 # The diagnosis changed in icc 8.0:
5052 # icc: Command line remark: option '-MP' not supported
5053 if (grep 'ignoring option' conftest.err ||
5054 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5055 am_cv_CC_dependencies_compiler_type
=$depmode
5056 $as_echo "$as_me:$LINENO: success" >&5
5060 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
5061 sed -e 's/^/| /' < conftest.err
>&5
5067 am_cv_CC_dependencies_compiler_type
=none
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5072 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5073 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
5074 then as_fn_error
"no usable dependency style found" "$LINENO" 5
5075 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
5080 # Check for the 'make' the user wants to use.
5083 # Extract the first word of "$ac_prog", so it can be a program name with args.
5084 set dummy
$ac_prog; ac_word
=$2
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5086 $as_echo_n "checking for $ac_word... " >&6; }
5087 if test "${ac_cv_prog_MAKE+set}" = set; then :
5088 $as_echo_n "(cached) " >&6
5090 if test -n "$MAKE"; then
5091 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
5093 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5097 test -z "$as_dir" && as_dir
=.
5098 for ac_exec_ext
in '' $ac_executable_extensions; do
5099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5100 ac_cv_prog_MAKE
="$ac_prog"
5101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5110 MAKE
=$ac_cv_prog_MAKE
5111 if test -n "$MAKE"; then
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5113 $as_echo "$MAKE" >&6; }
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5116 $as_echo "no" >&6; }
5120 test -n "$MAKE" && break
5124 case "`$MAKE --version 2>&1 | sed 1q`" in
5129 if test "$MAKE_IS_GNU" = yes; then
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5138 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5140 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5141 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5142 $as_echo_n "(cached) " >&6
5144 cat >conftest.
make <<\_ACEOF
5147 @
echo '@@@%%%=$(MAKE)=@@@%%%'
5149 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5150 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5152 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
5154 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
5158 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5160 $as_echo "yes" >&6; }
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5164 $as_echo "no" >&6; }
5165 SET_MAKE
="MAKE=${MAKE-make}"
5169 gnulib_extra_configure_args
=
5170 # If large-file support is disabled, make sure gnulib does the same.
5171 if test "$enable_largefile" = no
; then
5172 gnulib_extra_configure_args
="$gnulib_extra_configure_args --disable-largefile"
5175 # Configure gnulib. We need to build gnulib under some other
5176 # directory not "gnulib", to avoid the problem of both GDB and
5177 # GDBserver wanting to build it in the same directory, when building
5178 # in the source dir.
5181 in_build
="build-gnulib"
5182 in_extra_args
="$gnulib_extra_configure_args"
5184 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
5185 # so they do not pile up.
5186 ac_sub_configure_args
=
5188 eval "set x $ac_configure_args"
5192 if test -n "$ac_prev"; then
5197 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
5198 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
5199 ac_prev
=cache_file
;;
5200 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
5201 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
5204 --config-cache |
-C)
5206 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
5208 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
5210 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
5212 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
5214 --disable-option-checking)
5218 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5220 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
5224 # Always prepend --prefix to ensure using the same prefix
5225 # in subdir configurations.
5226 ac_arg
="--prefix=$prefix"
5228 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5230 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
5233 if test "$silent" = yes; then
5234 ac_sub_configure_args
="--silent $ac_sub_configure_args"
5237 # Always prepend --disable-option-checking to silence warnings, since
5238 # different subdirs can have different --enable and --with options.
5239 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
5244 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
5245 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
5246 $as_echo "$ac_msg" >&6
5247 as_dir
="$ac_dir"; as_fn_mkdir_p
5251 ac_srcdir
=$srcdir/$in_src ;;
5253 ac_srcdir
=..
/$srcdir/$in_src ;;
5258 ac_sub_configure
=$ac_srcdir/configure
5260 # Make the cache file name correct relative to the subdirectory.
5262 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
5264 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
5267 if test -n "$in_extra_args"; then
5268 # Add the extra args at the end.
5269 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
5272 { $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
5273 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
5274 # The eval makes quoting arguments work.
5275 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
5276 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
5277 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
5293 # If we haven't got the data from the intl directory,
5294 # assume NLS is disabled.
5303 if test -f ..
/intl
/config.intl
; then
5304 . ..
/intl
/config.intl
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5307 $as_echo_n "checking whether NLS is requested... " >&6; }
5308 if test x
"$USE_NLS" != xyes
; then
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5310 $as_echo "no" >&6; }
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5313 $as_echo "yes" >&6; }
5315 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
5319 $as_echo_n "checking for catalogs to be installed... " >&6; }
5320 # Look for .po and .gmo files in the source directory.
5323 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
5324 # If there aren't any .gmo files the shell will give us the
5325 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5327 case "$cat" in *\
**)
5330 # The quadruple backslash is collapsed to a double backslash
5331 # by the backticks, then collapsed again by the double quotes,
5332 # leaving us with one backslash in the sed expression (right
5333 # before the dot that mustn't act as a wildcard).
5334 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5335 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
5336 # The user is allowed to set LINGUAS to a list of languages to
5337 # install catalogs for. If it's empty that means "all of them."
5338 if test "x$LINGUAS" = x
; then
5339 CATALOGS
="$CATALOGS $cat"
5340 XLINGUAS
="$XLINGUAS $lang"
5342 case "$LINGUAS" in *$lang*)
5343 CATALOGS
="$CATALOGS $cat"
5344 XLINGUAS
="$XLINGUAS $lang"
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
5351 $as_echo "$LINGUAS" >&6; }
5364 localedir
='${datadir}/locale'
5367 if test x
"$USE_NLS" = xyes
; then
5368 CONFIG_ALL
="$CONFIG_ALL all-po"
5369 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
5370 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
5371 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
5374 GNULIB
=build-gnulib
/import
5376 # For Makefile dependencies.
5378 if test x
"$STDINT_H" != x
; then
5379 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
5385 cat >>confdefs.h
<<_ACEOF
5386 #define PACKAGE "$PACKAGE"
5391 # We never need to detect it in this sub-configure.
5392 # But preserve it for config.status --recheck.
5396 MAKEINFO_EXTRA_FLAGS
=""
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
5398 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
5399 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
5400 $as_echo_n "(cached) " >&6
5402 echo '@clicksequence{a @click{} b}' >conftest.texinfo
5403 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
5404 gdb_cv_have_makeinfo_click
=yes
5406 gdb_cv_have_makeinfo_click
=no
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
5410 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
5411 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
5412 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
5418 # Check whether --with-separate-debug-dir was given.
5419 if test "${with_separate_debug_dir+set}" = set; then :
5420 withval
=$with_separate_debug_dir;
5423 DEBUGDIR
=${libdir}/debug
5427 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5428 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5429 ac_define_dir
=`eval echo $DEBUGDIR`
5430 ac_define_dir
=`eval echo $ac_define_dir`
5432 cat >>confdefs.h
<<_ACEOF
5433 #define DEBUGDIR "$ac_define_dir"
5439 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
5440 if test "x$prefix" = xNONE
; then
5441 test_prefix
=/usr
/local
5446 test_prefix
=$exec_prefix
5449 case ${ac_define_dir} in
5450 "${test_prefix}"|
"${test_prefix}/"*|\
5451 '${exec_prefix}'|
'${exec_prefix}/'*)
5456 cat >>confdefs.h
<<_ACEOF
5457 #define DEBUGDIR_RELOCATABLE $value
5463 # We can't pass paths as command line arguments.
5464 # Mingw32 tries to be clever and will convert the paths for us.
5465 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
5466 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
5467 # This breaks GDB's relocatable path conversions since paths passed in
5468 # config.h would not get so translated, the path prefixes no longer match.
5470 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5471 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5472 ac_define_dir
=`eval echo $bindir`
5473 ac_define_dir
=`eval echo $ac_define_dir`
5475 cat >>confdefs.h
<<_ACEOF
5476 #define BINDIR "$ac_define_dir"
5481 # GDB's datadir relocation
5485 # Check whether --with-gdb-datadir was given.
5486 if test "${with_gdb_datadir+set}" = set; then :
5487 withval
=$with_gdb_datadir;
5488 GDB_DATADIR
=$withval
5490 GDB_DATADIR
=${datadir}/gdb
5494 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5495 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5496 ac_define_dir
=`eval echo $GDB_DATADIR`
5497 ac_define_dir
=`eval echo $ac_define_dir`
5499 cat >>confdefs.h
<<_ACEOF
5500 #define GDB_DATADIR "$ac_define_dir"
5506 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
5507 if test "x$prefix" = xNONE
; then
5508 test_prefix
=/usr
/local
5513 test_prefix
=$exec_prefix
5516 case ${ac_define_dir} in
5517 "${test_prefix}"|
"${test_prefix}/"*|\
5518 '${exec_prefix}'|
'${exec_prefix}/'*)
5523 cat >>confdefs.h
<<_ACEOF
5524 #define GDB_DATADIR_RELOCATABLE $value
5531 # Check whether --with-relocated-sources was given.
5532 if test "${with_relocated_sources+set}" = set; then :
5533 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
5535 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5536 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5537 ac_define_dir
=`eval echo $reloc_srcdir`
5538 ac_define_dir
=`eval echo $ac_define_dir`
5540 cat >>confdefs.h
<<_ACEOF
5541 #define RELOC_SRCDIR "$ac_define_dir"
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
5550 $as_echo_n "checking for default auto-load directory... " >&6; }
5552 # Check whether --with-auto-load-dir was given.
5553 if test "${with_auto_load_dir+set}" = set; then :
5554 withval
=$with_auto_load_dir;
5556 with_auto_load_dir
='$debugdir:$datadir/auto-load'
5559 escape_dir
=`echo $with_auto_load_dir | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5561 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5562 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5563 ac_define_dir
=`eval echo $escape_dir`
5564 ac_define_dir
=`eval echo $ac_define_dir`
5566 cat >>confdefs.h
<<_ACEOF
5567 #define AUTO_LOAD_DIR "$ac_define_dir"
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
5572 $as_echo "$with_auto_load_dir" >&6; }
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
5575 $as_echo_n "checking for default auto-load safe-path... " >&6; }
5577 # Check whether --with-auto-load-safe-path was given.
5578 if test "${with_auto_load_safe_path+set}" = set; then :
5579 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
5580 with_auto_load_safe_path
="/"
5583 with_auto_load_safe_path
="$with_auto_load_dir"
5586 escape_dir
=`echo $with_auto_load_safe_path | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5588 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5589 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5590 ac_define_dir
=`eval echo $escape_dir`
5591 ac_define_dir
=`eval echo $ac_define_dir`
5593 cat >>confdefs.h
<<_ACEOF
5594 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
5599 $as_echo "$with_auto_load_safe_path" >&6; }
5603 subdirs
="$subdirs testsuite"
5606 # Check whether to support alternative target configurations
5607 # Check whether --enable-targets was given.
5608 if test "${enable_targets+set}" = set; then :
5609 enableval
=$enable_targets; case "${enableval}" in
5610 yes |
"") as_fn_error
"enable-targets option must specify target names or 'all'" "$LINENO" 5
5612 no
) enable_targets
= ;;
5613 *) enable_targets
=$enableval ;;
5618 # Check whether to enable 64-bit support on 32-bit hosts
5619 # Check whether --enable-64-bit-bfd was given.
5620 if test "${enable_64_bit_bfd+set}" = set; then :
5621 enableval
=$enable_64_bit_bfd; case "${enableval}" in
5624 *) as_fn_error
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
5630 # Provide defaults for some variables set by the per-host and per-target
5632 gdb_host_obs
=posix-hdep.o
5634 if test "${target}" = "${host}"; then
5640 .
$srcdir/configure.
host
5642 # Add in the common host objects.
5643 .
$srcdir/common
/common.
host
5644 gdb_host_obs
="$gdb_host_obs $common_host_obs"
5646 # Accumulate some settings from configure.tgt over all enabled targets
5650 HAVE_NATIVE_GCORE_TARGET
=
5652 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5654 if test "$targ_alias" = "all"; then
5657 # Canonicalize the secondary target names.
5658 result
=`$ac_config_sub $targ_alias 2>/dev/null`
5659 if test -n "$result"; then
5665 .
${srcdir}/configure.tgt
5667 if test -z "${gdb_target_obs}"; then :
5668 as_fn_error
"configuration ${targ} is unsupported." "$LINENO" 5
5671 # Target-specific object files
5672 for i
in ${gdb_target_obs}; do
5673 case " $TARGET_OBS " in
5676 TARGET_OBS
="$TARGET_OBS ${i}"
5681 # Check whether this target needs 64-bit CORE_ADDR
5682 if test x
${want64} = xfalse
; then
5683 .
${srcdir}/..
/bfd
/config.bfd
5686 # Check whether this target is native and supports gcore.
5687 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
5688 && $gdb_have_gcore; then
5689 HAVE_NATIVE_GCORE_TARGET
=1
5694 if test x
${all_targets} = xtrue
; then
5696 # We want all 64-bit targets if we either:
5697 # - run on a 64-bit host or
5698 # - already require 64-bit support for some other target or
5699 # - the --enable-64-bit-bfd option was supplied
5700 # Otherwise we only support all 32-bit targets.
5702 # NOTE: This test must be in sync with the corresponding
5705 if test x
${want64} = xfalse
; then
5706 # The cast to long int works around a bug in the HP C Compiler
5707 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5708 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5709 # This bug is HP SR number 8606223364.
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5711 $as_echo_n "checking size of long... " >&6; }
5712 if test "${ac_cv_sizeof_long+set}" = set; then :
5713 $as_echo_n "(cached) " >&6
5715 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5718 if test "$ac_cv_type_long" = yes; then
5719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5721 { as_fn_set_status
77
5722 as_fn_error
"cannot compute sizeof (long)
5723 See \`config.log' for more details." "$LINENO" 5; }; }
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5731 $as_echo "$ac_cv_sizeof_long" >&6; }
5735 cat >>confdefs.h
<<_ACEOF
5736 #define SIZEOF_LONG $ac_cv_sizeof_long
5740 if test "x${ac_cv_sizeof_long}" = "x8"; then
5744 if test x
${want64} = xtrue
; then
5745 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
5747 TARGET_OBS
='$(ALL_TARGET_OBS)'
5754 # For other settings, only the main target counts.
5758 targ
=$target; .
${srcdir}/configure.tgt
5760 # Fetch the default architecture and default target vector from BFD.
5761 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
5763 # We only want the first architecture, so strip off the others if
5764 # there is more than one.
5765 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
5767 if test "x$targ_archs" != x
; then
5769 cat >>confdefs.h
<<_ACEOF
5770 #define DEFAULT_BFD_ARCH $targ_archs
5774 if test "x$targ_defvec" != x
; then
5776 cat >>confdefs.h
<<_ACEOF
5777 #define DEFAULT_BFD_VEC $targ_defvec
5782 # The CLI cannot be disabled yet, but may be in the future.
5785 # Check whether --enable-gdbcli was given.
5786 if test "${enable_gdbcli+set}" = set; then :
5787 enableval
=$enable_gdbcli; case $enableval in
5791 as_fn_error
"the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
5793 as_fn_error
"bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
5799 if test x
"$enable_gdbcli" = xyes
; then
5800 if test -d $srcdir/cli
; then
5801 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
5802 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
5803 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
5804 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
5809 # Check whether --enable-gdbmi was given.
5810 if test "${enable_gdbmi+set}" = set; then :
5811 enableval
=$enable_gdbmi; case $enableval in
5815 as_fn_error
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
5821 if test x
"$enable_gdbmi" = xyes
; then
5822 if test -d $srcdir/mi
; then
5823 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
5824 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
5825 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
5826 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
5831 # Check whether --enable-tui was given.
5832 if test "${enable_tui+set}" = set; then :
5833 enableval
=$enable_tui; case $enableval in
5837 as_fn_error
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
5845 # Check whether --enable-gdbtk was given.
5846 if test "${enable_gdbtk+set}" = set; then :
5847 enableval
=$enable_gdbtk; case $enableval in
5851 as_fn_error
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
5854 if test -d $srcdir/gdbtk
; then
5861 # We unconditionally disable gdbtk tests on selected platforms.
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
5865 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
5869 # Libunwind support for ia64.
5872 # Check whether --with-libunwind-ia64 was given.
5873 if test "${with_libunwind_ia64+set}" = set; then :
5874 withval
=$with_libunwind_ia64;
5876 with_libunwind_ia64
=auto
5880 # Backward compatibility option.
5881 if test "${with_libunwind+set}" = set; then
5882 if test x
"$with_libunwind_ia64" != xauto
; then
5883 as_fn_error
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
5886 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
5887 with_libunwind_ia64
="$with_libunwind"
5890 case "$with_libunwind_ia64" in
5894 for ac_header
in libunwind-ia64.h
5896 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5897 if test "x$ac_cv_header_libunwind_ia64_h" = x
""yes; then :
5898 cat >>confdefs.h
<<_ACEOF
5899 #define HAVE_LIBUNWIND_IA64_H 1
5906 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
5909 as_fn_error
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
5913 if test x
"$with_libunwind_ia64" = xyes
; then
5914 for ac_header
in libunwind-ia64.h
5916 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5917 if test "x$ac_cv_header_libunwind_ia64_h" = x
""yes; then :
5918 cat >>confdefs.h
<<_ACEOF
5919 #define HAVE_LIBUNWIND_IA64_H 1
5926 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
5927 as_fn_error
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
5929 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
5930 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
5931 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
5936 # Check whether --with-curses was given.
5937 if test "${with_curses+set}" = set; then :
5938 withval
=$with_curses; opt_curses
=$withval
5943 if test "$opt_curses" = "yes"; then
5947 # Profiling support.
5948 # Check whether --enable-profiling was given.
5949 if test "${enable_profiling+set}" = set; then :
5950 enableval
=$enable_profiling; case $enableval in
5954 as_fn_error
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
5961 for ac_func
in monstartup _mcleanup
5963 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5964 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5965 eval as_val
=\$
$as_ac_var
5966 if test "x$as_val" = x
""yes; then :
5967 cat >>confdefs.h
<<_ACEOF
5968 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
5975 $as_echo_n "checking for _etext... " >&6; }
5976 if test "${ac_cv_var__etext+set}" = set; then :
5977 $as_echo_n "(cached) " >&6
5979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5980 /* end confdefs.h. */
5992 if ac_fn_c_try_link
"$LINENO"; then :
5993 ac_cv_var__etext
=yes
5997 rm -f core conftest.err conftest.
$ac_objext \
5998 conftest
$ac_exeext conftest.
$ac_ext
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
6001 $as_echo "$ac_cv_var__etext" >&6; }
6002 if test $ac_cv_var__etext = yes; then
6004 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
6008 $as_echo_n "checking for etext... " >&6; }
6009 if test "${ac_cv_var_etext+set}" = set; then :
6010 $as_echo_n "(cached) " >&6
6012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6013 /* end confdefs.h. */
6025 if ac_fn_c_try_link
"$LINENO"; then :
6030 rm -f core conftest.err conftest.
$ac_objext \
6031 conftest
$ac_exeext conftest.
$ac_ext
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
6034 $as_echo "$ac_cv_var_etext" >&6; }
6035 if test $ac_cv_var_etext = yes; then
6037 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
6040 if test "$enable_profiling" = yes ; then
6041 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
6042 as_fn_error
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
6045 OLD_CFLAGS
="$CFLAGS"
6046 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
6049 $as_echo_n "checking whether $CC supports -pg... " >&6; }
6050 if test "${ac_cv_cc_supports_pg+set}" = set; then :
6051 $as_echo_n "(cached) " >&6
6053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6054 /* end confdefs.h. */
6064 if ac_fn_c_try_compile
"$LINENO"; then :
6065 ac_cv_cc_supports_pg
=yes
6067 ac_cv_cc_supports_pg
=no
6069 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
6072 $as_echo "$ac_cv_cc_supports_pg" >&6; }
6074 if test $ac_cv_cc_supports_pg = no
; then
6075 as_fn_error
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
6078 CFLAGS
="$OLD_CFLAGS"
6083 # Check whether --with-pkgversion was given.
6084 if test "${with_pkgversion+set}" = set; then :
6085 withval
=$with_pkgversion; case "$withval" in
6086 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
6088 *) PKGVERSION
="($withval) " ;;
6099 # Check whether --with-bugurl was given.
6100 if test "${with_bugurl+set}" = set; then :
6101 withval
=$with_bugurl; case "$withval" in
6102 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
6105 *) BUGURL
="$withval"
6109 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
6119 REPORT_BUGS_TO
="<$BUGURL>"
6120 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
6127 cat >>confdefs.h
<<_ACEOF
6128 #define PKGVERSION "$PKGVERSION"
6132 cat >>confdefs.h
<<_ACEOF
6133 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
6137 # --------------------- #
6138 # Checks for programs. #
6139 # --------------------- #
6141 for ac_prog
in gawk mawk nawk
awk
6143 # Extract the first word of "$ac_prog", so it can be a program name with args.
6144 set dummy
$ac_prog; ac_word
=$2
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6146 $as_echo_n "checking for $ac_word... " >&6; }
6147 if test "${ac_cv_prog_AWK+set}" = set; then :
6148 $as_echo_n "(cached) " >&6
6150 if test -n "$AWK"; then
6151 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
6153 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6157 test -z "$as_dir" && as_dir
=.
6158 for ac_exec_ext
in '' $ac_executable_extensions; do
6159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6160 ac_cv_prog_AWK
="$ac_prog"
6161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6171 if test -n "$AWK"; then
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6173 $as_echo "$AWK" >&6; }
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6176 $as_echo "no" >&6; }
6180 test -n "$AWK" && break
6183 # Find a good install program. We prefer a C program (faster),
6184 # so one script is as good as another. But avoid the broken or
6185 # incompatible versions:
6186 # SysV /etc/install, /usr/sbin/install
6187 # SunOS /usr/etc/install
6188 # IRIX /sbin/install
6190 # AmigaOS /C/install, which installs bootblocks on floppy discs
6191 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6192 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6193 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6194 # OS/2's system install, which has a completely different semantic
6195 # ./install, which can be erroneously created by make from ./install.sh.
6196 # Reject install programs that cannot install multiple files.
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6198 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6199 if test -z "$INSTALL"; then
6200 if test "${ac_cv_path_install+set}" = set; then :
6201 $as_echo_n "(cached) " >&6
6203 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6207 test -z "$as_dir" && as_dir
=.
6208 # Account for people who put trailing slashes in PATH elements.
6209 case $as_dir/ in #((
6210 .
/ | .
// |
/[cC
]/* | \
6211 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
6212 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
6215 # OSF1 and SCO ODT 3.0 have their own names for install.
6216 # Don't use installbsd from OSF since it installs stuff as root
6218 for ac_prog
in ginstall scoinst
install; do
6219 for ac_exec_ext
in '' $ac_executable_extensions; do
6220 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6221 if test $ac_prog = install &&
6222 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6223 # AIX install. It has an incompatible calling convention.
6225 elif test $ac_prog = install &&
6226 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6227 # program-specific install script used by HP pwplus--don't use.
6230 rm -rf conftest.one conftest.two conftest.dir
6231 echo one
> conftest.one
6232 echo two
> conftest.two
6234 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
6235 test -s conftest.one
&& test -s conftest.two
&&
6236 test -s conftest.dir
/conftest.one
&&
6237 test -s conftest.dir
/conftest.two
6239 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
6252 rm -rf conftest.one conftest.two conftest.dir
6255 if test "${ac_cv_path_install+set}" = set; then
6256 INSTALL
=$ac_cv_path_install
6258 # As a last resort, use the slow shell script. Don't cache a
6259 # value for INSTALL within a source directory, because that will
6260 # break other packages using the cache if that directory is
6261 # removed, or if the value is a relative name.
6262 INSTALL
=$ac_install_sh
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6266 $as_echo "$INSTALL" >&6; }
6268 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6269 # It thinks the first close brace ends the variable substitution.
6270 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
6272 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
6274 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6277 $as_echo_n "checking whether ln -s works... " >&6; }
6279 if test "$LN_S" = "ln -s"; then
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6281 $as_echo "yes" >&6; }
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6284 $as_echo "no, using $LN_S" >&6; }
6287 if test -n "$ac_tool_prefix"; then
6288 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6289 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6291 $as_echo_n "checking for $ac_word... " >&6; }
6292 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6293 $as_echo_n "(cached) " >&6
6295 if test -n "$RANLIB"; then
6296 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6298 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6302 test -z "$as_dir" && as_dir
=.
6303 for ac_exec_ext
in '' $ac_executable_extensions; do
6304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6305 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6315 RANLIB
=$ac_cv_prog_RANLIB
6316 if test -n "$RANLIB"; then
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6318 $as_echo "$RANLIB" >&6; }
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6321 $as_echo "no" >&6; }
6326 if test -z "$ac_cv_prog_RANLIB"; then
6327 ac_ct_RANLIB
=$RANLIB
6328 # Extract the first word of "ranlib", so it can be a program name with args.
6329 set dummy ranlib
; ac_word
=$2
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6331 $as_echo_n "checking for $ac_word... " >&6; }
6332 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6333 $as_echo_n "(cached) " >&6
6335 if test -n "$ac_ct_RANLIB"; then
6336 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6338 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6342 test -z "$as_dir" && as_dir
=.
6343 for ac_exec_ext
in '' $ac_executable_extensions; do
6344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6345 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6355 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6356 if test -n "$ac_ct_RANLIB"; then
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6358 $as_echo "$ac_ct_RANLIB" >&6; }
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6361 $as_echo "no" >&6; }
6364 if test "x$ac_ct_RANLIB" = x
; then
6367 case $cross_compiling:$ac_tool_warned in
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6371 ac_tool_warned
=yes ;;
6373 RANLIB
=$ac_ct_RANLIB
6376 RANLIB
="$ac_cv_prog_RANLIB"
6379 for ac_prog
in 'bison -y' byacc
6381 # Extract the first word of "$ac_prog", so it can be a program name with args.
6382 set dummy
$ac_prog; ac_word
=$2
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6384 $as_echo_n "checking for $ac_word... " >&6; }
6385 if test "${ac_cv_prog_YACC+set}" = set; then :
6386 $as_echo_n "(cached) " >&6
6388 if test -n "$YACC"; then
6389 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
6391 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6395 test -z "$as_dir" && as_dir
=.
6396 for ac_exec_ext
in '' $ac_executable_extensions; do
6397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6398 ac_cv_prog_YACC
="$ac_prog"
6399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6408 YACC
=$ac_cv_prog_YACC
6409 if test -n "$YACC"; then
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6411 $as_echo "$YACC" >&6; }
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6414 $as_echo "no" >&6; }
6418 test -n "$YACC" && break
6420 test -n "$YACC" || YACC
="yacc"
6423 if test -n "$ac_tool_prefix"; then
6424 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6425 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6427 $as_echo_n "checking for $ac_word... " >&6; }
6428 if test "${ac_cv_prog_AR+set}" = set; then :
6429 $as_echo_n "(cached) " >&6
6431 if test -n "$AR"; then
6432 ac_cv_prog_AR
="$AR" # Let the user override the test.
6434 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6438 test -z "$as_dir" && as_dir
=.
6439 for ac_exec_ext
in '' $ac_executable_extensions; do
6440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6441 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6452 if test -n "$AR"; then
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6454 $as_echo "$AR" >&6; }
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6457 $as_echo "no" >&6; }
6462 if test -z "$ac_cv_prog_AR"; then
6464 # Extract the first word of "ar", so it can be a program name with args.
6465 set dummy
ar; ac_word
=$2
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6467 $as_echo_n "checking for $ac_word... " >&6; }
6468 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6469 $as_echo_n "(cached) " >&6
6471 if test -n "$ac_ct_AR"; then
6472 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6474 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6478 test -z "$as_dir" && as_dir
=.
6479 for ac_exec_ext
in '' $ac_executable_extensions; do
6480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6481 ac_cv_prog_ac_ct_AR
="ar"
6482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6491 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6492 if test -n "$ac_ct_AR"; then
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6494 $as_echo "$ac_ct_AR" >&6; }
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6497 $as_echo "no" >&6; }
6500 if test "x$ac_ct_AR" = x
; then
6503 case $cross_compiling:$ac_tool_warned in
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6507 ac_tool_warned
=yes ;;
6515 if test -n "$ac_tool_prefix"; then
6516 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6517 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6519 $as_echo_n "checking for $ac_word... " >&6; }
6520 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6521 $as_echo_n "(cached) " >&6
6523 if test -n "$DLLTOOL"; then
6524 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
6526 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6530 test -z "$as_dir" && as_dir
=.
6531 for ac_exec_ext
in '' $ac_executable_extensions; do
6532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6533 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
6534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6543 DLLTOOL
=$ac_cv_prog_DLLTOOL
6544 if test -n "$DLLTOOL"; then
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6546 $as_echo "$DLLTOOL" >&6; }
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6549 $as_echo "no" >&6; }
6554 if test -z "$ac_cv_prog_DLLTOOL"; then
6555 ac_ct_DLLTOOL
=$DLLTOOL
6556 # Extract the first word of "dlltool", so it can be a program name with args.
6557 set dummy dlltool
; ac_word
=$2
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6559 $as_echo_n "checking for $ac_word... " >&6; }
6560 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6561 $as_echo_n "(cached) " >&6
6563 if test -n "$ac_ct_DLLTOOL"; then
6564 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
6566 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6570 test -z "$as_dir" && as_dir
=.
6571 for ac_exec_ext
in '' $ac_executable_extensions; do
6572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6573 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
6574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6583 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
6584 if test -n "$ac_ct_DLLTOOL"; then
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6586 $as_echo "$ac_ct_DLLTOOL" >&6; }
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6589 $as_echo "no" >&6; }
6592 if test "x$ac_ct_DLLTOOL" = x
; then
6595 case $cross_compiling:$ac_tool_warned in
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6599 ac_tool_warned
=yes ;;
6601 DLLTOOL
=$ac_ct_DLLTOOL
6604 DLLTOOL
="$ac_cv_prog_DLLTOOL"
6607 if test -n "$ac_tool_prefix"; then
6608 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6609 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6611 $as_echo_n "checking for $ac_word... " >&6; }
6612 if test "${ac_cv_prog_WINDRES+set}" = set; then :
6613 $as_echo_n "(cached) " >&6
6615 if test -n "$WINDRES"; then
6616 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
6618 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6622 test -z "$as_dir" && as_dir
=.
6623 for ac_exec_ext
in '' $ac_executable_extensions; do
6624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6625 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
6626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6635 WINDRES
=$ac_cv_prog_WINDRES
6636 if test -n "$WINDRES"; then
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6638 $as_echo "$WINDRES" >&6; }
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6641 $as_echo "no" >&6; }
6646 if test -z "$ac_cv_prog_WINDRES"; then
6647 ac_ct_WINDRES
=$WINDRES
6648 # Extract the first word of "windres", so it can be a program name with args.
6649 set dummy windres
; ac_word
=$2
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6651 $as_echo_n "checking for $ac_word... " >&6; }
6652 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
6653 $as_echo_n "(cached) " >&6
6655 if test -n "$ac_ct_WINDRES"; then
6656 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
6658 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6662 test -z "$as_dir" && as_dir
=.
6663 for ac_exec_ext
in '' $ac_executable_extensions; do
6664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6665 ac_cv_prog_ac_ct_WINDRES
="windres"
6666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
6676 if test -n "$ac_ct_WINDRES"; then
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6678 $as_echo "$ac_ct_WINDRES" >&6; }
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6681 $as_echo "no" >&6; }
6684 if test "x$ac_ct_WINDRES" = x
; then
6687 case $cross_compiling:$ac_tool_warned in
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6691 ac_tool_warned
=yes ;;
6693 WINDRES
=$ac_ct_WINDRES
6696 WINDRES
="$ac_cv_prog_WINDRES"
6702 # Needed for GNU Hurd hosts.
6703 if test -n "$ac_tool_prefix"; then
6704 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
6705 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6707 $as_echo_n "checking for $ac_word... " >&6; }
6708 if test "${ac_cv_prog_MIG+set}" = set; then :
6709 $as_echo_n "(cached) " >&6
6711 if test -n "$MIG"; then
6712 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
6714 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6718 test -z "$as_dir" && as_dir
=.
6719 for ac_exec_ext
in '' $ac_executable_extensions; do
6720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6721 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
6722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6732 if test -n "$MIG"; then
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
6734 $as_echo "$MIG" >&6; }
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6737 $as_echo "no" >&6; }
6742 if test -z "$ac_cv_prog_MIG"; then
6744 # Extract the first word of "mig", so it can be a program name with args.
6745 set dummy mig
; ac_word
=$2
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6747 $as_echo_n "checking for $ac_word... " >&6; }
6748 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
6749 $as_echo_n "(cached) " >&6
6751 if test -n "$ac_ct_MIG"; then
6752 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
6754 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6758 test -z "$as_dir" && as_dir
=.
6759 for ac_exec_ext
in '' $ac_executable_extensions; do
6760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6761 ac_cv_prog_ac_ct_MIG
="mig"
6762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6771 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
6772 if test -n "$ac_ct_MIG"; then
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
6774 $as_echo "$ac_ct_MIG" >&6; }
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6777 $as_echo "no" >&6; }
6780 if test "x$ac_ct_MIG" = x
; then
6783 case $cross_compiling:$ac_tool_warned in
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6787 ac_tool_warned
=yes ;;
6792 MIG
="$ac_cv_prog_MIG"
6795 if test x
"$MIG" = x
; then
6796 as_fn_error
"MIG not found but required for $host hosts" "$LINENO" 5
6801 # ---------------------- #
6802 # Checks for libraries. #
6803 # ---------------------- #
6805 # We might need to link with -lm; most simulators need it.
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6807 $as_echo_n "checking for main in -lm... " >&6; }
6808 if test "${ac_cv_lib_m_main+set}" = set; then :
6809 $as_echo_n "(cached) " >&6
6811 ac_check_lib_save_LIBS
=$LIBS
6813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6814 /* end confdefs.h. */
6825 if ac_fn_c_try_link
"$LINENO"; then :
6826 ac_cv_lib_m_main
=yes
6830 rm -f core conftest.err conftest.
$ac_objext \
6831 conftest
$ac_exeext conftest.
$ac_ext
6832 LIBS
=$ac_check_lib_save_LIBS
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
6835 $as_echo "$ac_cv_lib_m_main" >&6; }
6836 if test "x$ac_cv_lib_m_main" = x
""yes; then :
6837 cat >>confdefs.h
<<_ACEOF
6846 # We need to link with -lw to get `wctype' on Solaris before Solaris
6847 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
6848 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
6849 # is known to have this problem). Therefore we avoid libw if we can.
6850 ac_fn_c_check_func
"$LINENO" "wctype" "ac_cv_func_wctype"
6851 if test "x$ac_cv_func_wctype" = x
""yes; then :
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
6855 $as_echo_n "checking for wctype in -lw... " >&6; }
6856 if test "${ac_cv_lib_w_wctype+set}" = set; then :
6857 $as_echo_n "(cached) " >&6
6859 ac_check_lib_save_LIBS
=$LIBS
6861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6862 /* end confdefs.h. */
6864 /* Override any GCC internal prototype to avoid an error.
6865 Use char because int might match the return type of a GCC
6866 builtin and then its argument prototype would still apply. */
6879 if ac_fn_c_try_link
"$LINENO"; then :
6880 ac_cv_lib_w_wctype
=yes
6882 ac_cv_lib_w_wctype
=no
6884 rm -f core conftest.err conftest.
$ac_objext \
6885 conftest
$ac_exeext conftest.
$ac_ext
6886 LIBS
=$ac_check_lib_save_LIBS
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
6889 $as_echo "$ac_cv_lib_w_wctype" >&6; }
6890 if test "x$ac_cv_lib_w_wctype" = x
""yes; then :
6891 cat >>confdefs.h
<<_ACEOF
6902 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
6904 $as_echo_n "checking for library containing gethostbyname... " >&6; }
6905 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6906 $as_echo_n "(cached) " >&6
6908 ac_func_search_save_LIBS
=$LIBS
6909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6910 /* end confdefs.h. */
6912 /* Override any GCC internal prototype to avoid an error.
6913 Use char because int might match the return type of a GCC
6914 builtin and then its argument prototype would still apply. */
6918 char gethostbyname ();
6922 return gethostbyname ();
6927 for ac_lib
in '' nsl
; do
6928 if test -z "$ac_lib"; then
6929 ac_res
="none required"
6932 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6934 if ac_fn_c_try_link
"$LINENO"; then :
6935 ac_cv_search_gethostbyname
=$ac_res
6937 rm -f core conftest.err conftest.
$ac_objext \
6939 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6943 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6946 ac_cv_search_gethostbyname
=no
6949 LIBS
=$ac_func_search_save_LIBS
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
6952 $as_echo "$ac_cv_search_gethostbyname" >&6; }
6953 ac_res
=$ac_cv_search_gethostbyname
6954 if test "$ac_res" != no
; then :
6955 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6960 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
6962 $as_echo_n "checking for library containing socketpair... " >&6; }
6963 if test "${ac_cv_search_socketpair+set}" = set; then :
6964 $as_echo_n "(cached) " >&6
6966 ac_func_search_save_LIBS
=$LIBS
6967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6968 /* end confdefs.h. */
6970 /* Override any GCC internal prototype to avoid an error.
6971 Use char because int might match the return type of a GCC
6972 builtin and then its argument prototype would still apply. */
6980 return socketpair ();
6985 for ac_lib
in '' socket
; do
6986 if test -z "$ac_lib"; then
6987 ac_res
="none required"
6990 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6992 if ac_fn_c_try_link
"$LINENO"; then :
6993 ac_cv_search_socketpair
=$ac_res
6995 rm -f core conftest.err conftest.
$ac_objext \
6997 if test "${ac_cv_search_socketpair+set}" = set; then :
7001 if test "${ac_cv_search_socketpair+set}" = set; then :
7004 ac_cv_search_socketpair
=no
7007 LIBS
=$ac_func_search_save_LIBS
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
7010 $as_echo "$ac_cv_search_socketpair" >&6; }
7011 ac_res
=$ac_cv_search_socketpair
7012 if test "$ac_res" != no
; then :
7013 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7018 # Link in zlib if we can. This allows us to read compressed debug sections.
7020 # See if the user specified whether he wants zlib support or not.
7022 # Check whether --with-zlib was given.
7023 if test "${with_zlib+set}" = set; then :
7030 if test "$with_zlib" != "no"; then
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
7032 $as_echo_n "checking for library containing zlibVersion... " >&6; }
7033 if test "${ac_cv_search_zlibVersion+set}" = set; then :
7034 $as_echo_n "(cached) " >&6
7036 ac_func_search_save_LIBS
=$LIBS
7037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7038 /* end confdefs.h. */
7040 /* Override any GCC internal prototype to avoid an error.
7041 Use char because int might match the return type of a GCC
7042 builtin and then its argument prototype would still apply. */
7046 char zlibVersion ();
7050 return zlibVersion ();
7055 for ac_lib
in '' z
; do
7056 if test -z "$ac_lib"; then
7057 ac_res
="none required"
7060 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7062 if ac_fn_c_try_link
"$LINENO"; then :
7063 ac_cv_search_zlibVersion
=$ac_res
7065 rm -f core conftest.err conftest.
$ac_objext \
7067 if test "${ac_cv_search_zlibVersion+set}" = set; then :
7071 if test "${ac_cv_search_zlibVersion+set}" = set; then :
7074 ac_cv_search_zlibVersion
=no
7077 LIBS
=$ac_func_search_save_LIBS
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
7080 $as_echo "$ac_cv_search_zlibVersion" >&6; }
7081 ac_res
=$ac_cv_search_zlibVersion
7082 if test "$ac_res" != no
; then :
7083 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7084 for ac_header
in zlib.h
7086 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
7087 if test "x$ac_cv_header_zlib_h" = x
""yes; then :
7088 cat >>confdefs.h
<<_ACEOF
7089 #define HAVE_ZLIB_H 1
7098 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
7099 as_fn_error
"zlib (libz) library was explicitly requested but not found" "$LINENO" 5
7104 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
7106 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
7107 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7108 $as_echo_n "(cached) " >&6
7110 ac_func_search_save_LIBS
=$LIBS
7111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7112 /* end confdefs.h. */
7114 /* Override any GCC internal prototype to avoid an error.
7115 Use char because int might match the return type of a GCC
7116 builtin and then its argument prototype would still apply. */
7120 char kinfo_getvmmap ();
7124 return kinfo_getvmmap ();
7129 for ac_lib
in '' util
; do
7130 if test -z "$ac_lib"; then
7131 ac_res
="none required"
7134 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7136 if ac_fn_c_try_link
"$LINENO"; then :
7137 ac_cv_search_kinfo_getvmmap
=$ac_res
7139 rm -f core conftest.err conftest.
$ac_objext \
7141 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7145 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7148 ac_cv_search_kinfo_getvmmap
=no
7151 LIBS
=$ac_func_search_save_LIBS
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
7154 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
7155 ac_res
=$ac_cv_search_kinfo_getvmmap
7156 if test "$ac_res" != no
; then :
7157 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7159 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
7167 # Check whether --with-libiconv-prefix was given.
7168 if test "${with_libiconv_prefix+set}" = set; then :
7169 withval
=$with_libiconv_prefix;
7170 for dir
in `echo "$withval" | tr : ' '`; do
7171 if test -d $dir/include
; then LIBICONV_INCLUDE
="-I$dir/include"; fi
7172 if test -d $dir/lib
; then LIBICONV_LIBDIR
="-L$dir/lib"; fi
7178 BUILD_LIBICONV_LIBDIRS
="../libiconv/lib/.libs ../libiconv/lib/_libs"
7179 BUILD_LIBICONV_INCLUDE
="-I../libiconv/include"
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7182 $as_echo_n "checking for iconv... " >&6; }
7183 if test "${am_cv_func_iconv+set}" = set; then :
7184 $as_echo_n "(cached) " >&6
7187 am_cv_func_iconv
="no, consider installing GNU libiconv"
7189 am_cv_use_build_libiconv
=no
7190 am_cv_build_libiconv_path
=
7192 # If libiconv is part of the build tree, then try using it over
7194 if test -d ..
/libiconv
; then
7195 for lib_dir
in $BUILD_LIBICONV_LIBDIRS; do
7196 am_save_LIBS
="$LIBS"
7197 am_save_CPPFLAGS
="$CPPFLAGS"
7198 LIBS
="$LIBS $lib_dir/libiconv.a"
7199 CPPFLAGS
="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
7200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7201 /* end confdefs.h. */
7207 iconv_t cd = iconv_open("","");
7208 iconv(cd,NULL,NULL,NULL,NULL);
7214 if ac_fn_c_try_link
"$LINENO"; then :
7215 am_cv_use_build_libiconv
=yes
7216 am_cv_build_libiconv_path
=$lib_dir/libiconv.a
7218 am_cv_func_iconv
=yes
7220 rm -f core conftest.err conftest.
$ac_objext \
7221 conftest
$ac_exeext conftest.
$ac_ext
7222 LIBS
="$am_save_LIBS"
7223 CPPFLAGS
="$am_save_CPPFLAGS"
7224 if test "$am_cv_use_build_libiconv" = "yes"; then
7230 # Next, try to find iconv in libc.
7231 if test "$am_cv_func_iconv" != yes; then
7232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7233 /* end confdefs.h. */
7239 iconv_t cd = iconv_open("","");
7240 iconv(cd,NULL,NULL,NULL,NULL);
7246 if ac_fn_c_try_link
"$LINENO"; then :
7247 am_cv_func_iconv
=yes
7249 rm -f core conftest.err conftest.
$ac_objext \
7250 conftest
$ac_exeext conftest.
$ac_ext
7253 # If iconv was not in libc, try -liconv. In this case, arrange to
7254 # look in the libiconv prefix, if it was specified by the user.
7255 if test "$am_cv_func_iconv" != yes; then
7256 am_save_CPPFLAGS
="$CPPFLAGS"
7257 am_save_LIBS
="$LIBS"
7258 if test -n "$LIBICONV_INCLUDE"; then
7259 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
7260 LIBS
="$LIBS $LIBICONV_LIBDIR"
7262 LIBS
="$LIBS -liconv"
7263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7264 /* end confdefs.h. */
7270 iconv_t cd = iconv_open("","");
7271 iconv(cd,NULL,NULL,NULL,NULL);
7277 if ac_fn_c_try_link
"$LINENO"; then :
7279 am_cv_func_iconv
=yes
7281 rm -f core conftest.err conftest.
$ac_objext \
7282 conftest
$ac_exeext conftest.
$ac_ext
7283 LIBS
="$am_save_LIBS"
7284 CPPFLAGS
="$am_save_CPPFLAGS"
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7289 $as_echo "$am_cv_func_iconv" >&6; }
7291 # Set the various flags based on the cache variables. We can't rely
7292 # on the flags to remain set from the above code, due to caching.
7294 if test "$am_cv_lib_iconv" = yes; then
7300 if test "$am_cv_use_build_libiconv" = yes; then
7301 LIBICONV
="$am_cv_build_libiconv_path"
7303 LIBICONV_INCLUDE
="$BUILD_LIBICONV_INCLUDE"
7305 CPPFLAGS
="$CPPFLAGS $LIBICONV_INCLUDE"
7306 LIBS
="$LIBS $LIBICONV_LIBDIR $LIBICONV"
7308 if test "$am_cv_func_iconv" = yes; then
7310 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7313 $as_echo_n "checking for iconv declaration... " >&6; }
7314 if test "${am_cv_proto_iconv+set}" = set; then :
7315 $as_echo_n "(cached) " >&6
7318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7319 /* end confdefs.h. */
7327 #if defined(__STDC__) || defined(__cplusplus)
7328 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7341 if ac_fn_c_try_compile
"$LINENO"; then :
7342 am_cv_proto_iconv_arg1
=""
7344 am_cv_proto_iconv_arg1
="const"
7346 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7347 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);"
7350 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
7352 }$am_cv_proto_iconv" >&5
7354 }$am_cv_proto_iconv" >&6; }
7356 cat >>confdefs.h
<<_ACEOF
7357 #define ICONV_CONST $am_cv_proto_iconv_arg1
7363 # GDB may fork/exec the iconv program to get the list of supported character
7364 # sets. Allow the user to specify where to find it.
7365 # There are several factors affecting the choice of option name:
7366 # - There is already --with-libiconv-prefix but we can't use it, it specifies
7367 # the build-time location of libiconv files.
7368 # - The program we need to find is iconv, which comes with glibc. The user
7369 # doesn't necessarily have libiconv installed. Therefore naming this
7370 # --with-libiconv-foo feels wrong.
7371 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
7372 # defined to work on directories not files (though it really doesn't know
7374 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
7375 # with --with-libiconv-prefix.
7376 # Putting these together is why the option name is --with-iconv-bin.
7379 # Check whether --with-iconv-bin was given.
7380 if test "${with_iconv_bin+set}" = set; then :
7381 withval
=$with_iconv_bin; iconv_bin
="${withval}"
7383 cat >>confdefs.h
<<_ACEOF
7384 #define ICONV_BIN "${iconv_bin}"
7388 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
7389 if test "x$prefix" = xNONE
; then
7390 test_prefix
=/usr
/local
7395 test_prefix
=$exec_prefix
7398 case ${iconv_bin} in
7399 "${test_prefix}"|
"${test_prefix}/"*|\
7400 '${exec_prefix}'|
'${exec_prefix}/'*)
7405 cat >>confdefs.h
<<_ACEOF
7406 #define ICONV_BIN_RELOCATABLE $value
7414 # For the TUI, we need enhanced curses functionality.
7415 if test x
"$enable_tui" != xno
; then
7420 if test x
"$prefer_curses" = xyes
; then
7421 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
7422 # curses library because the latter might not provide all the
7423 # functionality we need. However, this leads to problems on systems
7424 # where the linker searches /usr/local/lib, but the compiler doesn't
7425 # search /usr/local/include, if ncurses is installed in /usr/local. A
7426 # default installation of ncurses on alpha*-dec-osf* will lead to such
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
7429 $as_echo_n "checking for library containing waddstr... " >&6; }
7430 if test "${ac_cv_search_waddstr+set}" = set; then :
7431 $as_echo_n "(cached) " >&6
7433 ac_func_search_save_LIBS
=$LIBS
7434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7435 /* end confdefs.h. */
7437 /* Override any GCC internal prototype to avoid an error.
7438 Use char because int might match the return type of a GCC
7439 builtin and then its argument prototype would still apply. */
7452 for ac_lib
in '' ncurses cursesX curses
; do
7453 if test -z "$ac_lib"; then
7454 ac_res
="none required"
7457 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7459 if ac_fn_c_try_link
"$LINENO"; then :
7460 ac_cv_search_waddstr
=$ac_res
7462 rm -f core conftest.err conftest.
$ac_objext \
7464 if test "${ac_cv_search_waddstr+set}" = set; then :
7468 if test "${ac_cv_search_waddstr+set}" = set; then :
7471 ac_cv_search_waddstr
=no
7474 LIBS
=$ac_func_search_save_LIBS
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
7477 $as_echo "$ac_cv_search_waddstr" >&6; }
7478 ac_res
=$ac_cv_search_waddstr
7479 if test "$ac_res" != no
; then :
7480 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7485 if test "$ac_cv_search_waddstr" != no
; then
7490 # Check whether we should enable the TUI, but only do so if we really
7492 if test x
"$enable_tui" != xno
; then
7493 if test -d $srcdir/tui
; then
7494 if test "$curses_found" != no
; then
7495 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
7496 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
7497 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
7498 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
7500 if test x
"$enable_tui" = xyes
; then
7501 as_fn_error
"no enhanced curses library found; disable TUI" "$LINENO" 5
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
7504 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
7510 # Since GDB uses Readline, we need termcap functionality. In many
7511 # cases this will be provided by the curses library, but some systems
7512 # have a seperate termcap library, or no curses library at all.
7516 if test -d $srcdir/libtermcap
; then
7517 LIBS
="../libtermcap/libtermcap.a $LIBS"
7518 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
7521 ac_cv_search_tgetent
="none required"
7524 if test x
"$curses_found" != xyes
; then
7525 ac_cv_search_tgetent
="none required"
7526 CONFIG_OBS
="$CONFIG_OBS stub-termcap.o"
7530 # These are the libraries checked by Readline.
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
7532 $as_echo_n "checking for library containing tgetent... " >&6; }
7533 if test "${ac_cv_search_tgetent+set}" = set; then :
7534 $as_echo_n "(cached) " >&6
7536 ac_func_search_save_LIBS
=$LIBS
7537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7538 /* end confdefs.h. */
7540 /* Override any GCC internal prototype to avoid an error.
7541 Use char because int might match the return type of a GCC
7542 builtin and then its argument prototype would still apply. */
7555 for ac_lib
in '' termcap tinfo curses ncurses
; do
7556 if test -z "$ac_lib"; then
7557 ac_res
="none required"
7560 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7562 if ac_fn_c_try_link
"$LINENO"; then :
7563 ac_cv_search_tgetent
=$ac_res
7565 rm -f core conftest.err conftest.
$ac_objext \
7567 if test "${ac_cv_search_tgetent+set}" = set; then :
7571 if test "${ac_cv_search_tgetent+set}" = set; then :
7574 ac_cv_search_tgetent
=no
7577 LIBS
=$ac_func_search_save_LIBS
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
7580 $as_echo "$ac_cv_search_tgetent" >&6; }
7581 ac_res
=$ac_cv_search_tgetent
7582 if test "$ac_res" != no
; then :
7583 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7588 if test "$ac_cv_search_tgetent" = no
; then
7589 as_fn_error
"no termcap library found" "$LINENO" 5
7593 # Check whether --with-system-readline was given.
7594 if test "${with_system_readline+set}" = set; then :
7595 withval
=$with_system_readline;
7599 if test "$with_system_readline" = yes; then
7603 READLINE_TEXI_INCFLAG
=
7605 READLINE
='$(READLINE_DIR)/libreadline.a'
7606 READLINE_DEPS
='$(READLINE)'
7607 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
7608 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
7615 # Generate jit-reader.h
7617 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
7620 # The cast to long int works around a bug in the HP C Compiler
7621 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7622 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7623 # This bug is HP SR number 8606223364.
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
7625 $as_echo_n "checking size of unsigned long long... " >&6; }
7626 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
7627 $as_echo_n "(cached) " >&6
7629 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
7632 if test "$ac_cv_type_unsigned_long_long" = yes; then
7633 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7635 { as_fn_set_status
77
7636 as_fn_error
"cannot compute sizeof (unsigned long long)
7637 See \`config.log' for more details." "$LINENO" 5; }; }
7639 ac_cv_sizeof_unsigned_long_long
=0
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
7645 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
7649 cat >>confdefs.h
<<_ACEOF
7650 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
7654 # The cast to long int works around a bug in the HP C Compiler
7655 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7656 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7657 # This bug is HP SR number 8606223364.
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
7659 $as_echo_n "checking size of unsigned long... " >&6; }
7660 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
7661 $as_echo_n "(cached) " >&6
7663 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
7666 if test "$ac_cv_type_unsigned_long" = yes; then
7667 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7669 { as_fn_set_status
77
7670 as_fn_error
"cannot compute sizeof (unsigned long)
7671 See \`config.log' for more details." "$LINENO" 5; }; }
7673 ac_cv_sizeof_unsigned_long
=0
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
7679 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
7683 cat >>confdefs.h
<<_ACEOF
7684 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7688 # The cast to long int works around a bug in the HP C Compiler
7689 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7690 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7691 # This bug is HP SR number 8606223364.
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
7693 $as_echo_n "checking size of unsigned __int128... " >&6; }
7694 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
7695 $as_echo_n "(cached) " >&6
7697 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
7700 if test "$ac_cv_type_unsigned___int128" = yes; then
7701 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7703 { as_fn_set_status
77
7704 as_fn_error
"cannot compute sizeof (unsigned __int128)
7705 See \`config.log' for more details." "$LINENO" 5; }; }
7707 ac_cv_sizeof_unsigned___int128
=0
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
7713 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
7717 cat >>confdefs.h
<<_ACEOF
7718 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
7723 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
7724 TARGET_PTR
="unsigned long"
7725 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
7726 TARGET_PTR
="unsigned long long"
7727 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
7728 TARGET_PTR
="unsigned __int128"
7730 TARGET_PTR
="unsigned long"
7734 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7738 $as_echo_n "checking for library containing dlopen... " >&6; }
7739 if test "${ac_cv_search_dlopen+set}" = set; then :
7740 $as_echo_n "(cached) " >&6
7742 ac_func_search_save_LIBS
=$LIBS
7743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7744 /* end confdefs.h. */
7746 /* Override any GCC internal prototype to avoid an error.
7747 Use char because int might match the return type of a GCC
7748 builtin and then its argument prototype would still apply. */
7761 for ac_lib
in '' dl
; do
7762 if test -z "$ac_lib"; then
7763 ac_res
="none required"
7766 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7768 if ac_fn_c_try_link
"$LINENO"; then :
7769 ac_cv_search_dlopen
=$ac_res
7771 rm -f core conftest.err conftest.
$ac_objext \
7773 if test "${ac_cv_search_dlopen+set}" = set; then :
7777 if test "${ac_cv_search_dlopen+set}" = set; then :
7780 ac_cv_search_dlopen
=no
7783 LIBS
=$ac_func_search_save_LIBS
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7786 $as_echo "$ac_cv_search_dlopen" >&6; }
7787 ac_res
=$ac_cv_search_dlopen
7788 if test "$ac_res" != no
; then :
7789 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7796 # Check whether --with-jit-reader-dir was given.
7797 if test "${with_jit_reader_dir+set}" = set; then :
7798 withval
=$with_jit_reader_dir;
7799 JIT_READER_DIR
=$withval
7801 JIT_READER_DIR
=${libdir}/gdb
7805 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7806 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7807 ac_define_dir
=`eval echo $JIT_READER_DIR`
7808 ac_define_dir
=`eval echo $ac_define_dir`
7810 cat >>confdefs.h
<<_ACEOF
7811 #define JIT_READER_DIR "$ac_define_dir"
7817 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
7818 if test "x$prefix" = xNONE
; then
7819 test_prefix
=/usr
/local
7824 test_prefix
=$exec_prefix
7827 case ${ac_define_dir} in
7828 "${test_prefix}"|
"${test_prefix}/"*|\
7829 '${exec_prefix}'|
'${exec_prefix}/'*)
7834 cat >>confdefs.h
<<_ACEOF
7835 #define JIT_READER_DIR_RELOCATABLE $value
7842 # Check whether --with-expat was given.
7843 if test "${with_expat+set}" = set; then :
7844 withval
=$with_expat;
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
7850 $as_echo_n "checking whether to use expat... " >&6; }
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
7852 $as_echo "$with_expat" >&6; }
7854 if test "${with_expat}" = no
; then
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
7856 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
7860 if test "X$prefix" = "XNONE"; then
7861 acl_final_prefix
="$ac_default_prefix"
7863 acl_final_prefix
="$prefix"
7865 if test "X$exec_prefix" = "XNONE"; then
7866 acl_final_exec_prefix
='${prefix}'
7868 acl_final_exec_prefix
="$exec_prefix"
7870 acl_save_prefix
="$prefix"
7871 prefix
="$acl_final_prefix"
7872 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
7873 prefix
="$acl_save_prefix"
7876 # Check whether --with-gnu-ld was given.
7877 if test "${with_gnu_ld+set}" = set; then :
7878 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
7883 # Prepare PATH_SEPARATOR.
7884 # The user is always right.
7885 if test "${PATH_SEPARATOR+set}" != set; then
7886 echo "#! /bin/sh" >conf$$.sh
7887 echo "exit 0" >>conf$$.sh
7889 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7897 if test "$GCC" = yes; then
7898 # Check if gcc -print-prog-name=ld gives a path.
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7900 $as_echo_n "checking for ld used by GCC... " >&6; }
7903 # gcc leaves a trailing carriage return which upsets mingw
7904 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7906 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
7909 # Accept absolute paths.
7910 [\\/]* |
[A-Za-z
]:[\\/]*)
7911 re_direlt
='/[^/][^/]*/\.\./'
7912 # Canonicalize the path of ld
7913 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
7914 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
7915 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
7917 test -z "$LD" && LD
="$ac_prog"
7920 # If it fails, then pretend we aren't using GCC.
7924 # If it is relative, then search for the first ld in PATH.
7928 elif test "$with_gnu_ld" = yes; then
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7930 $as_echo_n "checking for GNU ld... " >&6; }
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7933 $as_echo_n "checking for non-GNU ld... " >&6; }
7935 if test "${acl_cv_path_LD+set}" = set; then :
7936 $as_echo_n "(cached) " >&6
7938 if test -z "$LD"; then
7939 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7940 for ac_dir
in $PATH; do
7941 test -z "$ac_dir" && ac_dir
=.
7942 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
7943 acl_cv_path_LD
="$ac_dir/$ac_prog"
7944 # Check to see if the program is GNU ld. I'd rather use --version,
7945 # but apparently some GNU ld's only accept -v.
7946 # Break only if it was the GNU/non-GNU ld that we prefer.
7947 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
7948 test "$with_gnu_ld" != no
&& break
7950 test "$with_gnu_ld" != yes && break
7956 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
7960 LD
="$acl_cv_path_LD"
7961 if test -n "$LD"; then
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7963 $as_echo "$LD" >&6; }
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966 $as_echo "no" >&6; }
7968 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7970 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7971 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7972 $as_echo_n "(cached) " >&6
7974 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7975 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
7976 acl_cv_prog_gnu_ld
=yes
7978 acl_cv_prog_gnu_ld
=no
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7982 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7983 with_gnu_ld
=$acl_cv_prog_gnu_ld
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7988 $as_echo_n "checking for shared library run path origin... " >&6; }
7989 if test "${acl_cv_rpath+set}" = set; then :
7990 $as_echo_n "(cached) " >&6
7993 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
7994 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8001 $as_echo "$acl_cv_rpath" >&6; }
8003 libext
="$acl_cv_libext"
8004 shlibext
="$acl_cv_shlibext"
8005 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8006 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8007 hardcode_direct
="$acl_cv_hardcode_direct"
8008 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8009 # Check whether --enable-rpath was given.
8010 if test "${enable_rpath+set}" = set; then :
8011 enableval
=$enable_rpath; :
8027 acl_save_prefix
="$prefix"
8028 prefix
="$acl_final_prefix"
8029 acl_save_exec_prefix
="$exec_prefix"
8030 exec_prefix
="$acl_final_exec_prefix"
8032 eval additional_includedir
=\"$includedir\"
8033 eval additional_libdir
=\"$libdir\"
8035 exec_prefix
="$acl_save_exec_prefix"
8036 prefix
="$acl_save_prefix"
8039 # Check whether --with-libexpat-prefix was given.
8040 if test "${with_libexpat_prefix+set}" = set; then :
8041 withval
=$with_libexpat_prefix;
8042 if test "X$withval" = "Xno"; then
8045 if test "X$withval" = "X"; then
8047 acl_save_prefix
="$prefix"
8048 prefix
="$acl_final_prefix"
8049 acl_save_exec_prefix
="$exec_prefix"
8050 exec_prefix
="$acl_final_exec_prefix"
8052 eval additional_includedir
=\"$includedir\"
8053 eval additional_libdir
=\"$libdir\"
8055 exec_prefix
="$acl_save_exec_prefix"
8056 prefix
="$acl_save_prefix"
8059 additional_includedir
="$withval/include"
8060 additional_libdir
="$withval/lib"
8071 names_already_handled
=
8072 names_next_round
='expat '
8073 while test -n "$names_next_round"; do
8074 names_this_round
="$names_next_round"
8076 for name
in $names_this_round; do
8078 for n
in $names_already_handled; do
8079 if test "$n" = "$name"; then
8084 if test -z "$already_handled"; then
8085 names_already_handled
="$names_already_handled $name"
8086 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8087 eval value
=\"\
$HAVE_LIB$uppername\"
8088 if test -n "$value"; then
8089 if test "$value" = yes; then
8090 eval value
=\"\
$LIB$uppername\"
8091 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
8092 eval value
=\"\
$LTLIB$uppername\"
8093 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
8102 if test $use_additional = yes; then
8103 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8104 found_dir
="$additional_libdir"
8105 found_so
="$additional_libdir/lib$name.$shlibext"
8106 if test -f "$additional_libdir/lib$name.la"; then
8107 found_la
="$additional_libdir/lib$name.la"
8110 if test -f "$additional_libdir/lib$name.$libext"; then
8111 found_dir
="$additional_libdir"
8112 found_a
="$additional_libdir/lib$name.$libext"
8113 if test -f "$additional_libdir/lib$name.la"; then
8114 found_la
="$additional_libdir/lib$name.la"
8119 if test "X$found_dir" = "X"; then
8120 for x
in $LDFLAGS $LTLIBEXPAT; do
8122 acl_save_prefix
="$prefix"
8123 prefix
="$acl_final_prefix"
8124 acl_save_exec_prefix
="$exec_prefix"
8125 exec_prefix
="$acl_final_exec_prefix"
8127 exec_prefix
="$acl_save_exec_prefix"
8128 prefix
="$acl_save_prefix"
8132 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8133 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8135 found_so
="$dir/lib$name.$shlibext"
8136 if test -f "$dir/lib$name.la"; then
8137 found_la
="$dir/lib$name.la"
8140 if test -f "$dir/lib$name.$libext"; then
8142 found_a
="$dir/lib$name.$libext"
8143 if test -f "$dir/lib$name.la"; then
8144 found_la
="$dir/lib$name.la"
8150 if test "X$found_dir" != "X"; then
8155 if test "X$found_dir" != "X"; then
8156 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
8157 if test "X$found_so" != "X"; then
8158 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8159 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8162 for x
in $ltrpathdirs; do
8163 if test "X$x" = "X$found_dir"; then
8168 if test -z "$haveit"; then
8169 ltrpathdirs
="$ltrpathdirs $found_dir"
8171 if test "$hardcode_direct" = yes; then
8172 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8174 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8175 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8177 for x
in $rpathdirs; do
8178 if test "X$x" = "X$found_dir"; then
8183 if test -z "$haveit"; then
8184 rpathdirs
="$rpathdirs $found_dir"
8188 for x
in $LDFLAGS $LIBEXPAT; do
8190 acl_save_prefix
="$prefix"
8191 prefix
="$acl_final_prefix"
8192 acl_save_exec_prefix
="$exec_prefix"
8193 exec_prefix
="$acl_final_exec_prefix"
8195 exec_prefix
="$acl_save_exec_prefix"
8196 prefix
="$acl_save_prefix"
8198 if test "X$x" = "X-L$found_dir"; then
8203 if test -z "$haveit"; then
8204 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
8206 if test "$hardcode_minus_L" != no
; then
8207 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8209 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
8215 if test "X$found_a" != "X"; then
8216 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
8218 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
8221 additional_includedir
=
8222 case "$found_dir" in
8224 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8225 additional_includedir
="$basedir/include"
8228 if test "X$additional_includedir" != "X"; then
8229 if test "X$additional_includedir" != "X/usr/include"; then
8231 if test "X$additional_includedir" = "X/usr/local/include"; then
8232 if test -n "$GCC"; then
8234 linux
*) haveit
=yes;;
8238 if test -z "$haveit"; then
8239 for x
in $CPPFLAGS $INCEXPAT; do
8241 acl_save_prefix
="$prefix"
8242 prefix
="$acl_final_prefix"
8243 acl_save_exec_prefix
="$exec_prefix"
8244 exec_prefix
="$acl_final_exec_prefix"
8246 exec_prefix
="$acl_save_exec_prefix"
8247 prefix
="$acl_save_prefix"
8249 if test "X$x" = "X-I$additional_includedir"; then
8254 if test -z "$haveit"; then
8255 if test -d "$additional_includedir"; then
8256 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
8262 if test -n "$found_la"; then
8263 save_libdir
="$libdir"
8265 */* |
*\\*) .
"$found_la" ;;
8266 *) .
"./$found_la" ;;
8268 libdir
="$save_libdir"
8269 for dep
in $dependency_libs; do
8272 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8273 if test "X$additional_libdir" != "X/usr/lib"; then
8275 if test "X$additional_libdir" = "X/usr/local/lib"; then
8276 if test -n "$GCC"; then
8278 linux
*) haveit
=yes;;
8282 if test -z "$haveit"; then
8284 for x
in $LDFLAGS $LIBEXPAT; do
8286 acl_save_prefix
="$prefix"
8287 prefix
="$acl_final_prefix"
8288 acl_save_exec_prefix
="$exec_prefix"
8289 exec_prefix
="$acl_final_exec_prefix"
8291 exec_prefix
="$acl_save_exec_prefix"
8292 prefix
="$acl_save_prefix"
8294 if test "X$x" = "X-L$additional_libdir"; then
8299 if test -z "$haveit"; then
8300 if test -d "$additional_libdir"; then
8301 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
8305 for x
in $LDFLAGS $LTLIBEXPAT; do
8307 acl_save_prefix
="$prefix"
8308 prefix
="$acl_final_prefix"
8309 acl_save_exec_prefix
="$exec_prefix"
8310 exec_prefix
="$acl_final_exec_prefix"
8312 exec_prefix
="$acl_save_exec_prefix"
8313 prefix
="$acl_save_prefix"
8315 if test "X$x" = "X-L$additional_libdir"; then
8320 if test -z "$haveit"; then
8321 if test -d "$additional_libdir"; then
8322 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
8329 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8330 if test "$enable_rpath" != no
; then
8332 for x
in $rpathdirs; do
8333 if test "X$x" = "X$dir"; then
8338 if test -z "$haveit"; then
8339 rpathdirs
="$rpathdirs $dir"
8342 for x
in $ltrpathdirs; do
8343 if test "X$x" = "X$dir"; then
8348 if test -z "$haveit"; then
8349 ltrpathdirs
="$ltrpathdirs $dir"
8354 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8357 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8360 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
8361 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
8367 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
8368 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
8374 if test "X$rpathdirs" != "X"; then
8375 if test -n "$hardcode_libdir_separator"; then
8377 for found_dir
in $rpathdirs; do
8378 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8380 acl_save_libdir
="$libdir"
8382 eval flag
=\"$hardcode_libdir_flag_spec\"
8383 libdir
="$acl_save_libdir"
8384 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
8386 for found_dir
in $rpathdirs; do
8387 acl_save_libdir
="$libdir"
8389 eval flag
=\"$hardcode_libdir_flag_spec\"
8390 libdir
="$acl_save_libdir"
8391 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
8395 if test "X$ltrpathdirs" != "X"; then
8396 for found_dir
in $ltrpathdirs; do
8397 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
8402 ac_save_CPPFLAGS
="$CPPFLAGS"
8404 for element
in $INCEXPAT; do
8406 for x
in $CPPFLAGS; do
8408 acl_save_prefix
="$prefix"
8409 prefix
="$acl_final_prefix"
8410 acl_save_exec_prefix
="$exec_prefix"
8411 exec_prefix
="$acl_final_exec_prefix"
8413 exec_prefix
="$acl_save_exec_prefix"
8414 prefix
="$acl_save_prefix"
8416 if test "X$x" = "X$element"; then
8421 if test -z "$haveit"; then
8422 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
8428 $as_echo_n "checking for libexpat... " >&6; }
8429 if test "${ac_cv_libexpat+set}" = set; then :
8430 $as_echo_n "(cached) " >&6
8433 ac_save_LIBS
="$LIBS"
8434 LIBS
="$LIBS $LIBEXPAT"
8435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8436 /* end confdefs.h. */
8441 XML_Parser p = XML_ParserCreate (0);
8446 if ac_fn_c_try_link
"$LINENO"; then :
8451 rm -f core conftest.err conftest.
$ac_objext \
8452 conftest
$ac_exeext conftest.
$ac_ext
8453 LIBS
="$ac_save_LIBS"
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
8457 $as_echo "$ac_cv_libexpat" >&6; }
8458 if test "$ac_cv_libexpat" = yes; then
8461 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
8464 $as_echo_n "checking how to link with libexpat... " >&6; }
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
8466 $as_echo "$LIBEXPAT" >&6; }
8469 CPPFLAGS
="$ac_save_CPPFLAGS"
8479 if test "$HAVE_LIBEXPAT" != yes; then
8480 if test "$with_expat" = yes; then
8481 as_fn_error
"expat is missing or unusable" "$LINENO" 5
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
8484 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
8488 LIBS
="$LIBS $LIBEXPAT"
8489 for ac_func
in XML_StopParser
8491 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
8492 if test "x$ac_cv_func_XML_StopParser" = x
""yes; then :
8493 cat >>confdefs.h
<<_ACEOF
8494 #define HAVE_XML_STOPPARSER 1
8504 # --------------------- #
8505 # Check for libpython. #
8506 # --------------------- #
8513 # Check whether --with-python was given.
8514 if test "${with_python+set}" = set; then :
8515 withval
=$with_python;
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
8521 $as_echo_n "checking whether to use python... " >&6; }
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
8523 $as_echo "$with_python" >&6; }
8525 if test "${with_python}" = no
; then
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
8527 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
8530 case "${with_python}" in
8532 if test -d ${with_python}; then
8533 # Assume the python binary is ${with_python}/bin/python.
8534 python_prog
="${with_python}/bin/python"
8536 # If python does not exit ${with_python}/bin, then try in
8537 # ${with_python}. On Windows/MinGW, this is where the Python
8539 if test ! -x "${python_prog}"; then
8540 python_prog
="${with_python}/python"
8543 if test ! -x "${python_prog}"; then
8544 # Fall back to gdb 7.0/7.1 behaviour.
8546 python_prefix
=${with_python}
8548 elif test -x "${with_python}"; then
8549 # While we can't run python compiled for $host (unless host == build),
8550 # the user could write a script that provides the needed information,
8551 # so we support that.
8552 python_prog
=${with_python}
8555 as_fn_error
"invalid value for --with-python" "$LINENO" 5
8559 # Disallow --with-python=foo/bar.
8560 as_fn_error
"invalid value for --with-python" "$LINENO" 5
8563 # The user has either specified auto, yes, or the name of the python
8564 # program assumed to be in $PATH.
8566 case "${with_python}" in
8568 if test ${build} = ${host}; then
8569 # Extract the first word of "python", so it can be a program name with args.
8570 set dummy python
; ac_word
=$2
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8572 $as_echo_n "checking for $ac_word... " >&6; }
8573 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8574 $as_echo_n "(cached) " >&6
8576 case $python_prog_path in
8578 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
8581 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8585 test -z "$as_dir" && as_dir
=.
8586 for ac_exec_ext
in '' $ac_executable_extensions; do
8587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8588 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
8589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8596 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
8600 python_prog_path
=$ac_cv_path_python_prog_path
8601 if test -n "$python_prog_path"; then
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8603 $as_echo "$python_prog_path" >&6; }
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8606 $as_echo "no" >&6; }
8610 if test "${python_prog_path}" = missing
; then
8613 python_prog
=${python_prog_path}
8616 # Not much we can do except assume the cross-compiler will find the
8622 # While we can't run python compiled for $host (unless host == build),
8623 # the user could write a script that provides the needed information,
8624 # so we support that.
8625 python_prog
="${with_python}"
8626 # Extract the first word of "${python_prog}", so it can be a program name with args.
8627 set dummy
${python_prog}; ac_word
=$2
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8629 $as_echo_n "checking for $ac_word... " >&6; }
8630 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8631 $as_echo_n "(cached) " >&6
8633 case $python_prog_path in
8635 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
8638 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8642 test -z "$as_dir" && as_dir
=.
8643 for ac_exec_ext
in '' $ac_executable_extensions; do
8644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8645 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
8646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8653 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
8657 python_prog_path
=$ac_cv_path_python_prog_path
8658 if test -n "$python_prog_path"; then
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8660 $as_echo "$python_prog_path" >&6; }
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8663 $as_echo "no" >&6; }
8667 if test "${python_prog_path}" = missing
; then
8668 as_fn_error
"unable to find python program ${python_prog}" "$LINENO" 5
8674 if test "${python_prog}" != missing
; then
8675 # We have a python program to use, but it may be too old.
8676 # Don't flag an error for --with-python=auto (the default).
8677 have_python_config
=yes
8678 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
8679 if test $?
!= 0; then
8680 have_python_config
=failed
8681 if test "${with_python}" != auto
; then
8682 as_fn_error
"failure running python-config --includes" "$LINENO" 5
8685 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
8686 if test $?
!= 0; then
8687 have_python_config
=failed
8688 if test "${with_python}" != auto
; then
8689 as_fn_error
"failure running python-config --ldflags" "$LINENO" 5
8692 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
8693 if test $?
!= 0; then
8694 have_python_config
=failed
8695 if test "${with_python}" != auto
; then
8696 as_fn_error
"failure running python-config --exec-prefix" "$LINENO" 5
8700 # We do not have a python executable we can use to determine where
8701 # to find the Python headers and libs. We cannot guess the include
8702 # path from the python_prefix either, because that include path
8703 # depends on the Python version. So, there is nothing much we can
8704 # do except assume that the compiler will be able to find those files.
8707 have_python_config
=no
8710 # If we have python-config, only try the configuration it provides.
8711 # Otherwise fallback on the old way of trying different versions of
8715 if test "${have_python_config}" = yes; then
8716 # Determine the Python version by extracting "-lpython<version>"
8717 # part of the python_libs. <version> is usually X.Y with X and Y
8718 # being decimal numbers, but can also be XY (seen on Windows).
8720 # The extraction is performed using sed with a regular expression.
8721 # Initially, the regexp used was using the '?' quantifier to make
8722 # the dot in the version number optional. Unfortunately, this
8723 # does not work with non-GNU versions of sed because, because of
8724 # what looks like a limitation (the '?' quantifier does not work
8725 # with back-references). We work around this limitation by using
8726 # the '*' quantifier instead. It means that, in theory, we might
8727 # match unexpected version strings such as "-lpython2..7", but
8728 # this seems unlikely in practice. And even if that happens,
8729 # an error will be triggered later on, when checking that version
8731 python_version
=`echo " ${python_libs} " \
8732 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
8733 case "${python_version}" in
8736 version
=${python_version}
8738 new_CPPFLAGS
=${python_includes}
8739 new_LIBS
=${python_libs}
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8741 $as_echo_n "checking for ${version}... " >&6; }
8742 save_CPPFLAGS
=$CPPFLAGS
8744 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8745 LIBS
="$LIBS $new_LIBS"
8746 found_usable_python
=no
8747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8748 /* end confdefs.h. */
8758 if ac_fn_c_try_link
"$LINENO"; then :
8759 have_libpython
=${version}
8760 found_usable_python
=yes
8761 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8762 PYTHON_LIBS
=$new_LIBS
8764 rm -f core conftest.err conftest.
$ac_objext \
8765 conftest
$ac_exeext conftest.
$ac_ext
8766 CPPFLAGS
=$save_CPPFLAGS
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8769 $as_echo "${found_usable_python}" >&6; }
8773 as_fn_error
"unable to determine python version from ${python_libs}" "$LINENO" 5
8776 elif test "${have_python_config}" != failed
; then
8777 if test "${have_libpython}" = no
; then
8781 new_CPPFLAGS
=${python_includes}
8782 new_LIBS
="${python_libs} -lpython2.7"
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8784 $as_echo_n "checking for ${version}... " >&6; }
8785 save_CPPFLAGS
=$CPPFLAGS
8787 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8788 LIBS
="$LIBS $new_LIBS"
8789 found_usable_python
=no
8790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8791 /* end confdefs.h. */
8801 if ac_fn_c_try_link
"$LINENO"; then :
8802 have_libpython
=${version}
8803 found_usable_python
=yes
8804 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8805 PYTHON_LIBS
=$new_LIBS
8807 rm -f core conftest.err conftest.
$ac_objext \
8808 conftest
$ac_exeext conftest.
$ac_ext
8809 CPPFLAGS
=$save_CPPFLAGS
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8812 $as_echo "${found_usable_python}" >&6; }
8815 if test "${have_libpython}" = no
; then
8819 new_CPPFLAGS
=${python_includes}
8820 new_LIBS
="${python_libs} -lpython2.6"
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8822 $as_echo_n "checking for ${version}... " >&6; }
8823 save_CPPFLAGS
=$CPPFLAGS
8825 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8826 LIBS
="$LIBS $new_LIBS"
8827 found_usable_python
=no
8828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8829 /* end confdefs.h. */
8839 if ac_fn_c_try_link
"$LINENO"; then :
8840 have_libpython
=${version}
8841 found_usable_python
=yes
8842 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8843 PYTHON_LIBS
=$new_LIBS
8845 rm -f core conftest.err conftest.
$ac_objext \
8846 conftest
$ac_exeext conftest.
$ac_ext
8847 CPPFLAGS
=$save_CPPFLAGS
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8850 $as_echo "${found_usable_python}" >&6; }
8853 if test ${have_libpython} = no
; then
8857 new_CPPFLAGS
=${python_includes}
8858 new_LIBS
="${python_libs} -lpython2.5"
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8860 $as_echo_n "checking for ${version}... " >&6; }
8861 save_CPPFLAGS
=$CPPFLAGS
8863 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8864 LIBS
="$LIBS $new_LIBS"
8865 found_usable_python
=no
8866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8867 /* end confdefs.h. */
8877 if ac_fn_c_try_link
"$LINENO"; then :
8878 have_libpython
=${version}
8879 found_usable_python
=yes
8880 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8881 PYTHON_LIBS
=$new_LIBS
8883 rm -f core conftest.err conftest.
$ac_objext \
8884 conftest
$ac_exeext conftest.
$ac_ext
8885 CPPFLAGS
=$save_CPPFLAGS
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8888 $as_echo "${found_usable_python}" >&6; }
8891 if test ${have_libpython} = no
; then
8895 new_CPPFLAGS
=${python_includes}
8896 new_LIBS
="${python_libs} -lpython2.4"
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8898 $as_echo_n "checking for ${version}... " >&6; }
8899 save_CPPFLAGS
=$CPPFLAGS
8901 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
8902 LIBS
="$LIBS $new_LIBS"
8903 found_usable_python
=no
8904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8905 /* end confdefs.h. */
8915 if ac_fn_c_try_link
"$LINENO"; then :
8916 have_libpython
=${version}
8917 found_usable_python
=yes
8918 PYTHON_CPPFLAGS
=$new_CPPFLAGS
8919 PYTHON_LIBS
=$new_LIBS
8921 rm -f core conftest.err conftest.
$ac_objext \
8922 conftest
$ac_exeext conftest.
$ac_ext
8923 CPPFLAGS
=$save_CPPFLAGS
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8926 $as_echo "${found_usable_python}" >&6; }
8930 if test "${have_libpython}" = python2.7
-o "${have_libpython}" = python27
; then
8932 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
8934 elif test "${have_libpython}" = python2.6
-o "${have_libpython}" = python26
; then
8936 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
8938 elif test "${have_libpython}" = python2.5
-o "${have_libpython}" = python25
; then
8940 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
8942 elif test "${have_libpython}" = python2.4
-o "${have_libpython}" = python24
; then
8944 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
8948 if test "${have_libpython}" = no
; then
8949 case "${with_python}" in
8951 as_fn_error
"python is missing or unusable" "$LINENO" 5
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
8955 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
8958 as_fn_error
"no usable python found at ${with_python}" "$LINENO" 5
8962 if test -n "${python_prefix}"; then
8964 cat >>confdefs.h
<<_ACEOF
8965 #define WITH_PYTHON_PATH "${python_prefix}"
8969 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
8970 if test "x$prefix" = xNONE
; then
8971 test_prefix
=/usr
/local
8976 test_prefix
=$exec_prefix
8979 case ${python_prefix} in
8980 "${test_prefix}"|
"${test_prefix}/"*|\
8981 '${exec_prefix}'|
'${exec_prefix}/'*)
8986 cat >>confdefs.h
<<_ACEOF
8987 #define PYTHON_PATH_RELOCATABLE $value
8995 if test "${have_libpython}" != no
; then
8997 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
8999 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
9000 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
9001 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
9002 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
9003 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
9005 # Flags needed to compile Python code (taken from python-config --cflags).
9006 # We cannot call python-config directly because it will output whatever was
9007 # used when compiling the Python interpreter itself, including flags which
9008 # would make the python-related objects be compiled differently from the
9009 # rest of GDB (e.g., -O2 and -fPIC).
9010 if test "${GCC}" = yes; then
9011 tentative_python_cflags
="-fno-strict-aliasing -DNDEBUG -fwrapv"
9014 if test "x${tentative_python_cflags}" != x
; then
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
9016 $as_echo_n "checking compiler flags for python code... " >&6; }
9017 for flag
in ${tentative_python_cflags}; do
9018 # Check that the compiler accepts it
9019 saved_CFLAGS
="$CFLAGS"
9020 CFLAGS
="$CFLAGS $flag"
9021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9022 /* end confdefs.h. */
9032 if ac_fn_c_try_compile
"$LINENO"; then :
9033 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
9035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9036 CFLAGS
="$saved_CFLAGS"
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
9039 $as_echo "${PYTHON_CFLAGS}" >&6; }
9042 # On x64 Windows, Python's include headers, and pyconfig.h in
9043 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
9044 # version of Windows. Unfortunately, MS_WIN64 is only defined if
9045 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
9046 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
9047 # The issue was reported to the Python community, but still isn't
9048 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
9052 if test "${GCC}" = yes; then
9053 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
9058 # Note that "python -m threading" cannot be used to check for
9059 # threading support due to a bug in Python 2.7.3
9060 # (http://bugs.python.org/issue15567).
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
9062 $as_echo_n "checking whether python supports threads... " >&6; }
9063 saved_CPPFLAGS
="${CPPFLAGS}"
9064 CPPFLAGS
="${PYTHON_CPPFLAGS}"
9065 # Note that the test is reversed so that python_has_threads=yes on
9066 # unexpected failures.
9067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9068 /* end confdefs.h. */
9076 if ac_fn_c_try_cpp
"$LINENO"; then :
9077 python_has_threads
=no
9079 python_has_threads
=yes
9081 rm -f conftest.err conftest.
$ac_ext
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
9083 $as_echo "${python_has_threads}" >&6; }
9084 CPPFLAGS
="${saved_CPPFLAGS}"
9086 # Even if Python support is not compiled in, we need to have this file
9087 # included so that the "python" command, et.al., still exists.
9088 CONFIG_OBS
="$CONFIG_OBS python.o"
9089 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
9094 if test "${have_libpython}" != no
; then
9096 HAVE_PYTHON_FALSE
='#'
9098 HAVE_PYTHON_TRUE
='#'
9103 # -------------------- #
9104 # Check for libguile. #
9105 # -------------------- #
9112 # Check whether --with-guile was given.
9113 if test "${with_guile+set}" = set; then :
9114 withval
=$with_guile;
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
9120 $as_echo_n "checking whether to use guile... " >&6; }
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
9122 $as_echo "$with_guile" >&6; }
9124 # Extract the first word of "pkg-config", so it can be a program name with args.
9125 set dummy pkg-config
; ac_word
=$2
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9127 $as_echo_n "checking for $ac_word... " >&6; }
9128 if test "${ac_cv_path_pkg_config_prog_path+set}" = set; then :
9129 $as_echo_n "(cached) " >&6
9131 case $pkg_config_prog_path in
9133 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
9136 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9140 test -z "$as_dir" && as_dir
=.
9141 for ac_exec_ext
in '' $ac_executable_extensions; do
9142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9143 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
9144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9151 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
9155 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
9156 if test -n "$pkg_config_prog_path"; then
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
9158 $as_echo "$pkg_config_prog_path" >&6; }
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9161 $as_echo "no" >&6; }
9166 try_guile_versions
="guile-2.2 guile-2.0"
9168 case "${with_guile}" in
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
9171 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
9174 if test "${pkg_config_prog_path}" = "missing"; then
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
9176 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
9179 pkg_config
=${pkg_config_prog_path}
9180 guile_version_list
=${try_guile_versions}
9183 found_usable_guile
=checking
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9185 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9186 for guile_version
in ${guile_version_list}; do
9187 ${pkg_config} --exists ${guile_version} 2>/dev
/null
9188 if test $?
!= 0; then
9191 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
9192 if test $?
!= 0; then
9193 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9195 new_LIBS
=`${pkg_config} --libs ${guile_version}`
9196 if test $?
!= 0; then
9197 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9199 found_usable_guile
=${guile_version}
9202 if test "${found_usable_guile}" = "checking"; then
9203 if test "${flag_errors}" = "yes"; then
9204 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9206 found_usable_guile
=no
9209 if test "${found_usable_guile}" != no
; then
9210 save_CPPFLAGS
=$CPPFLAGS
9212 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9213 LIBS
="$LIBS $new_LIBS"
9214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9215 /* end confdefs.h. */
9216 #include "libguile.h"
9225 if ac_fn_c_try_link
"$LINENO"; then :
9227 GUILE_CPPFLAGS
=$new_CPPFLAGS
9228 GUILE_LIBS
=$new_LIBS
9230 found_usable_guile
=no
9232 rm -f core conftest.err conftest.
$ac_objext \
9233 conftest
$ac_exeext conftest.
$ac_ext
9234 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9235 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
9237 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9242 CPPFLAGS
=$save_CPPFLAGS
9244 if test "${found_usable_guile}" = no
; then
9245 if test "${flag_errors}" = yes; then
9246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9248 as_fn_error
"linking guile version ${guile_version} test program failed
9249 See \`config.log' for more details." "$LINENO" 5; }
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9254 $as_echo "${found_usable_guile}" >&6; }
9259 if test "${pkg_config_prog_path}" = "missing"; then
9260 as_fn_error
"pkg-config not found" "$LINENO" 5
9263 pkg_config
=${pkg_config_prog_path}
9264 guile_version_list
=${try_guile_versions}
9267 found_usable_guile
=checking
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9269 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9270 for guile_version
in ${guile_version_list}; do
9271 ${pkg_config} --exists ${guile_version} 2>/dev
/null
9272 if test $?
!= 0; then
9275 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
9276 if test $?
!= 0; then
9277 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9279 new_LIBS
=`${pkg_config} --libs ${guile_version}`
9280 if test $?
!= 0; then
9281 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9283 found_usable_guile
=${guile_version}
9286 if test "${found_usable_guile}" = "checking"; then
9287 if test "${flag_errors}" = "yes"; then
9288 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9290 found_usable_guile
=no
9293 if test "${found_usable_guile}" != no
; then
9294 save_CPPFLAGS
=$CPPFLAGS
9296 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9297 LIBS
="$LIBS $new_LIBS"
9298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9299 /* end confdefs.h. */
9300 #include "libguile.h"
9309 if ac_fn_c_try_link
"$LINENO"; then :
9311 GUILE_CPPFLAGS
=$new_CPPFLAGS
9312 GUILE_LIBS
=$new_LIBS
9314 found_usable_guile
=no
9316 rm -f core conftest.err conftest.
$ac_objext \
9317 conftest
$ac_exeext conftest.
$ac_ext
9318 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9319 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
9321 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9326 CPPFLAGS
=$save_CPPFLAGS
9328 if test "${found_usable_guile}" = no
; then
9329 if test "${flag_errors}" = yes; then
9330 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9332 as_fn_error
"linking guile version ${guile_version} test program failed
9333 See \`config.log' for more details." "$LINENO" 5; }
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9338 $as_echo "${found_usable_guile}" >&6; }
9342 if test -x "${with_guile}"; then
9344 pkg_config
=${with_guile}
9345 guile_version_list
=${try_guile_versions}
9348 found_usable_guile
=checking
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9350 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9351 for guile_version
in ${guile_version_list}; do
9352 ${pkg_config} --exists ${guile_version} 2>/dev
/null
9353 if test $?
!= 0; then
9356 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
9357 if test $?
!= 0; then
9358 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9360 new_LIBS
=`${pkg_config} --libs ${guile_version}`
9361 if test $?
!= 0; then
9362 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9364 found_usable_guile
=${guile_version}
9367 if test "${found_usable_guile}" = "checking"; then
9368 if test "${flag_errors}" = "yes"; then
9369 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9371 found_usable_guile
=no
9374 if test "${found_usable_guile}" != no
; then
9375 save_CPPFLAGS
=$CPPFLAGS
9377 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9378 LIBS
="$LIBS $new_LIBS"
9379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9380 /* end confdefs.h. */
9381 #include "libguile.h"
9390 if ac_fn_c_try_link
"$LINENO"; then :
9392 GUILE_CPPFLAGS
=$new_CPPFLAGS
9393 GUILE_LIBS
=$new_LIBS
9395 found_usable_guile
=no
9397 rm -f core conftest.err conftest.
$ac_objext \
9398 conftest
$ac_exeext conftest.
$ac_ext
9399 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9400 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
9402 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9407 CPPFLAGS
=$save_CPPFLAGS
9409 if test "${found_usable_guile}" = no
; then
9410 if test "${flag_errors}" = yes; then
9411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9413 as_fn_error
"linking guile version ${guile_version} test program failed
9414 See \`config.log' for more details." "$LINENO" 5; }
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9419 $as_echo "${found_usable_guile}" >&6; }
9422 as_fn_error
"Guile config program not executable: ${with_guile}" "$LINENO" 5
9426 # Disallow --with=guile="" and --with-guile=foo/bar.
9427 as_fn_error
"invalid value for --with-guile" "$LINENO" 5
9430 # A space separate list of guile versions to try, in order.
9431 if test "${pkg_config_prog_path}" = "missing"; then
9432 as_fn_error
"pkg-config not found" "$LINENO" 5
9435 pkg_config
=${pkg_config_prog_path}
9436 guile_version_list
=${with_guile}
9439 found_usable_guile
=checking
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9441 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9442 for guile_version
in ${guile_version_list}; do
9443 ${pkg_config} --exists ${guile_version} 2>/dev
/null
9444 if test $?
!= 0; then
9447 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
9448 if test $?
!= 0; then
9449 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9451 new_LIBS
=`${pkg_config} --libs ${guile_version}`
9452 if test $?
!= 0; then
9453 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9455 found_usable_guile
=${guile_version}
9458 if test "${found_usable_guile}" = "checking"; then
9459 if test "${flag_errors}" = "yes"; then
9460 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9462 found_usable_guile
=no
9465 if test "${found_usable_guile}" != no
; then
9466 save_CPPFLAGS
=$CPPFLAGS
9468 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9469 LIBS
="$LIBS $new_LIBS"
9470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9471 /* end confdefs.h. */
9472 #include "libguile.h"
9481 if ac_fn_c_try_link
"$LINENO"; then :
9483 GUILE_CPPFLAGS
=$new_CPPFLAGS
9484 GUILE_LIBS
=$new_LIBS
9486 found_usable_guile
=no
9488 rm -f core conftest.err conftest.
$ac_objext \
9489 conftest
$ac_exeext conftest.
$ac_ext
9490 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9491 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
9493 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9498 CPPFLAGS
=$save_CPPFLAGS
9500 if test "${found_usable_guile}" = no
; then
9501 if test "${flag_errors}" = yes; then
9502 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9503 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9504 as_fn_error
"linking guile version ${guile_version} test program failed
9505 See \`config.log' for more details." "$LINENO" 5; }
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9510 $as_echo "${found_usable_guile}" >&6; }
9515 if test "${have_libguile}" != no
; then
9516 case "${with_guile}" in
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
9520 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
9521 if test "${ac_cv_guild_program_name+set}" = set; then :
9522 $as_echo_n "(cached) " >&6
9524 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
9526 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
9527 # the 'guild' and 'bindir' variables. In that case, try to guess
9528 # what the program name is, at the risk of getting it wrong if
9529 # Guile was configured with '--program-suffix' or similar.
9530 if test "x$ac_cv_guild_program_name" = "x"; then
9531 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
9532 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
9537 $as_echo "$ac_cv_guild_program_name" >&6; }
9539 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
9540 as_fn_error
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
9543 GUILD
="$ac_cv_guild_program_name"
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
9550 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
9551 if test "${ac_cv_guild_program_name+set}" = set; then :
9552 $as_echo_n "(cached) " >&6
9554 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
9556 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
9557 # the 'guild' and 'bindir' variables. In that case, try to guess
9558 # what the program name is, at the risk of getting it wrong if
9559 # Guile was configured with '--program-suffix' or similar.
9560 if test "x$ac_cv_guild_program_name" = "x"; then
9561 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
9562 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
9567 $as_echo "$ac_cv_guild_program_name" >&6; }
9569 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
9570 as_fn_error
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
9573 GUILD
="$ac_cv_guild_program_name"
9580 if test "$cross_compiling" = no
; then
9583 GUILD_TARGET_FLAG
="--target=$host"
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
9590 $as_echo_n "checking whether guild supports this host... " >&6; }
9591 if test "${ac_cv_guild_ok+set}" = set; then :
9592 $as_echo_n "(cached) " >&6
9594 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
9595 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
9602 $as_echo "$ac_cv_guild_ok" >&6; }
9604 if test "$ac_cv_guild_ok" = no
; then
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
9607 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
9611 if test "${have_libguile}" != no
; then
9613 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
9615 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
9616 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
9617 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
9618 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
9619 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
9622 save_CPPFLAGS
="$CPPFLAGS"
9624 CPPFLAGS
="$GUILE_CPPFLAGS"
9625 for ac_func
in scm_new_smob
9627 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
9628 if test "x$ac_cv_func_scm_new_smob" = x
""yes; then :
9629 cat >>confdefs.h
<<_ACEOF
9630 #define HAVE_SCM_NEW_SMOB 1
9637 CPPFLAGS
="$save_CPPFLAGS"
9639 # Even if Guile support is not compiled in, we need to have these files
9641 CONFIG_OBS
="$CONFIG_OBS guile.o"
9642 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
9646 if test "${have_libguile}" != no
; then
9648 HAVE_GUILE_FALSE
='#'
9655 # --------------------- #
9656 # Check for libmcheck. #
9657 # --------------------- #
9659 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
9660 # but turn it off if Python is enabled with threads, since -lmcheck is
9661 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
9663 if test \
( "${have_libpython}" = "no" -o "${python_has_threads}" = "no" \
) \
9664 && $development; then
9665 libmcheck_default
=yes
9667 libmcheck_default
=no
9670 # Check whether --enable-libmcheck was given.
9671 if test "${enable_libmcheck+set}" = set; then :
9672 enableval
=$enable_libmcheck; case "${enableval}" in
9673 yes | y
) ENABLE_LIBMCHECK
="yes" ;;
9674 no | n
) ENABLE_LIBMCHECK
="no" ;;
9675 *) as_fn_error
"bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
9680 if test -z "${ENABLE_LIBMCHECK}"; then
9681 ENABLE_LIBMCHECK
=${libmcheck_default}
9684 if test "$ENABLE_LIBMCHECK" = "yes" ; then
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
9686 $as_echo_n "checking for main in -lmcheck... " >&6; }
9687 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
9688 $as_echo_n "(cached) " >&6
9690 ac_check_lib_save_LIBS
=$LIBS
9691 LIBS
="-lmcheck $LIBS"
9692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9693 /* end confdefs.h. */
9704 if ac_fn_c_try_link
"$LINENO"; then :
9705 ac_cv_lib_mcheck_main
=yes
9707 ac_cv_lib_mcheck_main
=no
9709 rm -f core conftest.err conftest.
$ac_objext \
9710 conftest
$ac_exeext conftest.
$ac_ext
9711 LIBS
=$ac_check_lib_save_LIBS
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
9714 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
9715 if test "x$ac_cv_lib_mcheck_main" = x
""yes; then :
9716 cat >>confdefs.h
<<_ACEOF
9717 #define HAVE_LIBMCHECK 1
9720 LIBS
="-lmcheck $LIBS"
9727 if test "$ENABLE_LIBMCHECK" = "yes" \
9728 -a "${have_libpython}" != "no" \
9729 -a "${python_has_threads}" = "yes" ; then
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
9731 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
9734 # ------------------------- #
9735 # Checks for header files. #
9736 # ------------------------- #
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9739 $as_echo_n "checking for ANSI C header files... " >&6; }
9740 if test "${ac_cv_header_stdc+set}" = set; then :
9741 $as_echo_n "(cached) " >&6
9743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9744 /* end confdefs.h. */
9758 if ac_fn_c_try_compile
"$LINENO"; then :
9759 ac_cv_header_stdc
=yes
9761 ac_cv_header_stdc
=no
9763 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9765 if test $ac_cv_header_stdc = yes; then
9766 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9768 /* end confdefs.h. */
9772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9773 $EGREP "memchr" >/dev
/null
2>&1; then :
9776 ac_cv_header_stdc
=no
9782 if test $ac_cv_header_stdc = yes; then
9783 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9785 /* end confdefs.h. */
9789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9790 $EGREP "free" >/dev
/null
2>&1; then :
9793 ac_cv_header_stdc
=no
9799 if test $ac_cv_header_stdc = yes; then
9800 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9801 if test "$cross_compiling" = yes; then :
9804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9805 /* end confdefs.h. */
9808 #if ((' ' & 0x0FF) == 0x020)
9809 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9810 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9812 # define ISLOWER(c) \
9813 (('a' <= (c) && (c) <= 'i') \
9814 || ('j' <= (c) && (c) <= 'r') \
9815 || ('s' <= (c) && (c) <= 'z'))
9816 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9819 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9824 for (i = 0; i < 256; i++)
9825 if (XOR (islower (i), ISLOWER (i))
9826 || toupper (i) != TOUPPER (i))
9831 if ac_fn_c_try_run
"$LINENO"; then :
9834 ac_cv_header_stdc
=no
9836 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9837 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9843 $as_echo "$ac_cv_header_stdc" >&6; }
9844 if test $ac_cv_header_stdc = yes; then
9846 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9850 # elf_hp.h is for HP/UX 64-bit shared library support.
9851 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
9854 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
9855 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
9856 sys
/reg.h sys
/debugreg.h sys
/select.h sys
/syscall.h \
9857 termios.h termio.h \
9861 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9862 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9863 eval as_val
=\$
$as_ac_Header
9864 if test "x$as_val" = x
""yes; then :
9865 cat >>confdefs.h
<<_ACEOF
9866 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9873 for ac_header
in sys
/proc.h
9875 ac_fn_c_check_header_compile
"$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
9876 # include <sys/param.h>
9880 if test "x$ac_cv_header_sys_proc_h" = x
""yes; then :
9881 cat >>confdefs.h
<<_ACEOF
9882 #define HAVE_SYS_PROC_H 1
9889 for ac_header
in sys
/user.h
9891 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
9892 # include <sys/param.h>
9896 if test "x$ac_cv_header_sys_user_h" = x
""yes; then :
9897 cat >>confdefs.h
<<_ACEOF
9898 #define HAVE_SYS_USER_H 1
9906 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
9907 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
9908 # think that we don't have <curses.h> if we're using GCC.
9911 if test "$GCC" = yes; then
9913 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
9917 for ac_header
in curses.h cursesX.h ncurses.h ncurses
/ncurses.h ncurses
/term.h
9919 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9920 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9921 eval as_val
=\$
$as_ac_Header
9922 if test "x$as_val" = x
""yes; then :
9923 cat >>confdefs.h
<<_ACEOF
9924 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9931 for ac_header
in term.h
9933 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
9934 # include <curses.h>
9938 if test "x$ac_cv_header_term_h" = x
""yes; then :
9939 cat >>confdefs.h
<<_ACEOF
9940 #define HAVE_TERM_H 1
9948 # ------------------------- #
9949 # Checks for declarations. #
9950 # ------------------------- #
9953 # Check for presence and size of long long.
9954 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
9955 if test "x$ac_cv_type_long_long" = x
""yes; then :
9957 cat >>confdefs.h
<<_ACEOF
9958 #define HAVE_LONG_LONG 1
9961 # The cast to long int works around a bug in the HP C Compiler
9962 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9963 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9964 # This bug is HP SR number 8606223364.
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
9966 $as_echo_n "checking size of long long... " >&6; }
9967 if test "${ac_cv_sizeof_long_long+set}" = set; then :
9968 $as_echo_n "(cached) " >&6
9970 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
9973 if test "$ac_cv_type_long_long" = yes; then
9974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9976 { as_fn_set_status
77
9977 as_fn_error
"cannot compute sizeof (long long)
9978 See \`config.log' for more details." "$LINENO" 5; }; }
9980 ac_cv_sizeof_long_long
=0
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
9986 $as_echo "$ac_cv_sizeof_long_long" >&6; }
9990 cat >>confdefs.h
<<_ACEOF
9991 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9998 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
9999 if test "x$ac_cv_have_decl_basename_char_p_" = x
""yes; then :
10005 cat >>confdefs.h
<<_ACEOF
10006 #define HAVE_DECL_BASENAME $ac_have_decl
10008 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
10009 if test "x$ac_cv_have_decl_ffs" = x
""yes; then :
10015 cat >>confdefs.h
<<_ACEOF
10016 #define HAVE_DECL_FFS $ac_have_decl
10018 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
10019 if test "x$ac_cv_have_decl_asprintf" = x
""yes; then :
10025 cat >>confdefs.h
<<_ACEOF
10026 #define HAVE_DECL_ASPRINTF $ac_have_decl
10028 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
10029 if test "x$ac_cv_have_decl_vasprintf" = x
""yes; then :
10035 cat >>confdefs.h
<<_ACEOF
10036 #define HAVE_DECL_VASPRINTF $ac_have_decl
10038 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
10039 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
10045 cat >>confdefs.h
<<_ACEOF
10046 #define HAVE_DECL_SNPRINTF $ac_have_decl
10048 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
10049 if test "x$ac_cv_have_decl_vsnprintf" = x
""yes; then :
10055 cat >>confdefs.h
<<_ACEOF
10056 #define HAVE_DECL_VSNPRINTF $ac_have_decl
10059 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
10060 if test "x$ac_cv_have_decl_strtol" = x
""yes; then :
10066 cat >>confdefs.h
<<_ACEOF
10067 #define HAVE_DECL_STRTOL $ac_have_decl
10069 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
10070 if test "x$ac_cv_have_decl_strtoul" = x
""yes; then :
10076 cat >>confdefs.h
<<_ACEOF
10077 #define HAVE_DECL_STRTOUL $ac_have_decl
10079 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
10080 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
10086 cat >>confdefs.h
<<_ACEOF
10087 #define HAVE_DECL_STRTOLL $ac_have_decl
10089 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
10090 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
10096 cat >>confdefs.h
<<_ACEOF
10097 #define HAVE_DECL_STRTOULL $ac_have_decl
10100 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
10101 if test "x$ac_cv_have_decl_strverscmp" = x
""yes; then :
10107 cat >>confdefs.h
<<_ACEOF
10108 #define HAVE_DECL_STRVERSCMP $ac_have_decl
10113 ac_fn_c_check_decl
"$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
10114 if test "x$ac_cv_have_decl_free" = x
""yes; then :
10120 cat >>confdefs.h
<<_ACEOF
10121 #define HAVE_DECL_FREE $ac_have_decl
10123 ac_fn_c_check_decl
"$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
10124 if test "x$ac_cv_have_decl_malloc" = x
""yes; then :
10130 cat >>confdefs.h
<<_ACEOF
10131 #define HAVE_DECL_MALLOC $ac_have_decl
10133 ac_fn_c_check_decl
"$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
10134 if test "x$ac_cv_have_decl_realloc" = x
""yes; then :
10140 cat >>confdefs.h
<<_ACEOF
10141 #define HAVE_DECL_REALLOC $ac_have_decl
10143 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
10144 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
10150 cat >>confdefs.h
<<_ACEOF
10151 #define HAVE_DECL_SNPRINTF $ac_have_decl
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10156 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10157 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10158 $as_echo_n "(cached) " >&6
10160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10161 /* end confdefs.h. */
10162 #include <locale.h>
10171 if ac_fn_c_try_link
"$LINENO"; then :
10172 am_cv_val_LC_MESSAGES
=yes
10174 am_cv_val_LC_MESSAGES
=no
10176 rm -f core conftest.err conftest.
$ac_objext \
10177 conftest
$ac_exeext conftest.
$ac_ext
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10180 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10181 if test $am_cv_val_LC_MESSAGES = yes; then
10183 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10188 # ----------------------- #
10189 # Checks for structures. #
10190 # ----------------------- #
10192 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
10193 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then :
10195 cat >>confdefs.h
<<_ACEOF
10196 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10201 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
10202 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then :
10204 cat >>confdefs.h
<<_ACEOF
10205 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10212 # ------------------ #
10213 # Checks for types. #
10214 # ------------------ #
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
10217 $as_echo_n "checking return type of signal handlers... " >&6; }
10218 if test "${ac_cv_type_signal+set}" = set; then :
10219 $as_echo_n "(cached) " >&6
10221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10222 /* end confdefs.h. */
10223 #include <sys/types.h>
10224 #include <signal.h>
10229 return *(signal (0, 0)) (0) == 1;
10234 if ac_fn_c_try_compile
"$LINENO"; then :
10235 ac_cv_type_signal
=int
10237 ac_cv_type_signal
=void
10239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
10242 $as_echo "$ac_cv_type_signal" >&6; }
10244 cat >>confdefs.h
<<_ACEOF
10245 #define RETSIGTYPE $ac_cv_type_signal
10249 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
10250 #include <sys/socket.h>
10253 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
10255 cat >>confdefs.h
<<_ACEOF
10256 #define HAVE_SOCKLEN_T 1
10263 # ------------------------------------- #
10264 # Checks for compiler characteristics. #
10265 # ------------------------------------- #
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
10268 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
10269 if test "${ac_cv_c_const+set}" = set; then :
10270 $as_echo_n "(cached) " >&6
10272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10273 /* end confdefs.h. */
10278 /* FIXME: Include the comments suggested by Paul. */
10279 #ifndef __cplusplus
10280 /* Ultrix mips cc rejects this. */
10281 typedef int charset[2];
10283 /* SunOS 4.1.1 cc rejects this. */
10284 char const *const *pcpcc;
10286 /* NEC SVR4.0.2 mips cc rejects this. */
10287 struct point {int x, y;};
10288 static struct point const zero = {0,0};
10289 /* AIX XL C 1.02.0.0 rejects this.
10290 It does not let you subtract one const X* pointer from another in
10291 an arm of an if-expression whose if-part is not a constant
10293 const char *g = "string";
10294 pcpcc = &g + (g ? g-g : 0);
10295 /* HPUX 7.0 cc rejects these. */
10297 ppc = (char**) pcpcc;
10298 pcpcc = (char const *const *) ppc;
10299 { /* SCO 3.2v4 cc rejects this. */
10301 char const *s = 0 ? (char *) 0 : (char const *) 0;
10306 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10307 int x[] = {25, 17};
10308 const int *foo = &x[0];
10311 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10312 typedef const int *iptr;
10316 { /* AIX XL C 1.02.0.0 rejects this saying
10317 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10318 struct s { int j; const int *ap[3]; };
10319 struct s *b; b->j = 5;
10321 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10322 const int foo = 10;
10323 if (!foo) return 0;
10325 return !cs[0] && !zero.x;
10332 if ac_fn_c_try_compile
"$LINENO"; then :
10337 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10340 $as_echo "$ac_cv_c_const" >&6; }
10341 if test $ac_cv_c_const = no
; then
10343 $as_echo "#define const /**/" >>confdefs.h
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10348 $as_echo_n "checking for inline... " >&6; }
10349 if test "${ac_cv_c_inline+set}" = set; then :
10350 $as_echo_n "(cached) " >&6
10353 for ac_kw
in inline __inline__ __inline
; do
10354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10355 /* end confdefs.h. */
10356 #ifndef __cplusplus
10358 static $ac_kw foo_t static_foo () {return 0; }
10359 $ac_kw foo_t foo () {return 0; }
10363 if ac_fn_c_try_compile
"$LINENO"; then :
10364 ac_cv_c_inline
=$ac_kw
10366 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10367 test "$ac_cv_c_inline" != no
&& break
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10372 $as_echo "$ac_cv_c_inline" >&6; }
10374 case $ac_cv_c_inline in
10377 case $ac_cv_c_inline in
10379 *) ac_val
=$ac_cv_c_inline;;
10381 cat >>confdefs.h
<<_ACEOF
10382 #ifndef __cplusplus
10383 #define inline $ac_val
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10390 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10391 if test "${ac_cv_c_bigendian+set}" = set; then :
10392 $as_echo_n "(cached) " >&6
10394 ac_cv_c_bigendian
=unknown
10395 # See if we're dealing with a universal compiler.
10396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10397 /* end confdefs.h. */
10398 #ifndef __APPLE_CC__
10399 not a universal capable compiler
10404 if ac_fn_c_try_compile
"$LINENO"; then :
10406 # Check for potential -arch flags. It is not universal unless
10407 # there are at least two -arch flags with different values.
10410 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10411 if test -n "$ac_prev"; then
10413 i?
86 | x86_64 | ppc | ppc64
)
10414 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
10417 ac_cv_c_bigendian
=universal
10423 elif test "x$ac_word" = "x-arch"; then
10428 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10429 if test $ac_cv_c_bigendian = unknown
; then
10430 # See if sys/param.h defines the BYTE_ORDER macro.
10431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10432 /* end confdefs.h. */
10433 #include <sys/types.h>
10434 #include <sys/param.h>
10439 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10440 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10442 bogus endian macros
10449 if ac_fn_c_try_compile
"$LINENO"; then :
10450 # It does; now see whether it defined to BIG_ENDIAN or not.
10451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10452 /* end confdefs.h. */
10453 #include <sys/types.h>
10454 #include <sys/param.h>
10459 #if BYTE_ORDER != BIG_ENDIAN
10467 if ac_fn_c_try_compile
"$LINENO"; then :
10468 ac_cv_c_bigendian
=yes
10470 ac_cv_c_bigendian
=no
10472 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10474 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10476 if test $ac_cv_c_bigendian = unknown
; then
10477 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10479 /* end confdefs.h. */
10480 #include <limits.h>
10485 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10486 bogus endian macros
10493 if ac_fn_c_try_compile
"$LINENO"; then :
10494 # It does; now see whether it defined to _BIG_ENDIAN or not.
10495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10496 /* end confdefs.h. */
10497 #include <limits.h>
10502 #ifndef _BIG_ENDIAN
10510 if ac_fn_c_try_compile
"$LINENO"; then :
10511 ac_cv_c_bigendian
=yes
10513 ac_cv_c_bigendian
=no
10515 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10517 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10519 if test $ac_cv_c_bigendian = unknown
; then
10520 # Compile a test program.
10521 if test "$cross_compiling" = yes; then :
10522 # Try to guess by grepping values from an object file.
10523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10524 /* end confdefs.h. */
10525 short int ascii_mm[] =
10526 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10527 short int ascii_ii[] =
10528 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10529 int use_ascii (int i) {
10530 return ascii_mm[i] + ascii_ii[i];
10532 short int ebcdic_ii[] =
10533 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10534 short int ebcdic_mm[] =
10535 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10536 int use_ebcdic (int i) {
10537 return ebcdic_mm[i] + ebcdic_ii[i];
10544 return use_ascii (foo) == use_ebcdic (foo);
10549 if ac_fn_c_try_compile
"$LINENO"; then :
10550 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
10551 ac_cv_c_bigendian
=yes
10553 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
10554 if test "$ac_cv_c_bigendian" = unknown
; then
10555 ac_cv_c_bigendian
=no
10557 # finding both strings is unlikely to happen, but who knows?
10558 ac_cv_c_bigendian
=unknown
10562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10565 /* end confdefs.h. */
10566 $ac_includes_default
10571 /* Are we little or big endian? From Harbison&Steele. */
10575 char c[sizeof (long int)];
10578 return u.c[sizeof (long int) - 1] == 1;
10584 if ac_fn_c_try_run
"$LINENO"; then :
10585 ac_cv_c_bigendian
=no
10587 ac_cv_c_bigendian
=yes
10589 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10590 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10596 $as_echo "$ac_cv_c_bigendian" >&6; }
10597 case $ac_cv_c_bigendian in #(
10599 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10605 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10609 as_fn_error
"unknown endianness
10610 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10614 # ------------------------------ #
10615 # Checks for library functions. #
10616 # ------------------------------ #
10618 for ac_header
in stdlib.h unistd.h
10620 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10621 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10622 eval as_val
=\$
$as_ac_Header
10623 if test "x$as_val" = x
""yes; then :
10624 cat >>confdefs.h
<<_ACEOF
10625 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10632 for ac_func
in getpagesize
10634 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10635 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
10636 cat >>confdefs.h
<<_ACEOF
10637 #define HAVE_GETPAGESIZE 1
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10644 $as_echo_n "checking for working mmap... " >&6; }
10645 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10646 $as_echo_n "(cached) " >&6
10648 if test "$cross_compiling" = yes; then :
10649 ac_cv_func_mmap_fixed_mapped
=no
10651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10652 /* end confdefs.h. */
10653 $ac_includes_default
10654 /* malloc might have been renamed as rpl_malloc. */
10657 /* Thanks to Mike Haertel and Jim Avera for this test.
10658 Here is a matrix of mmap possibilities:
10659 mmap private not fixed
10660 mmap private fixed at somewhere currently unmapped
10661 mmap private fixed at somewhere already mapped
10662 mmap shared not fixed
10663 mmap shared fixed at somewhere currently unmapped
10664 mmap shared fixed at somewhere already mapped
10665 For private mappings, we should verify that changes cannot be read()
10666 back from the file, nor mmap's back from the file at a different
10667 address. (There have been systems where private was not correctly
10668 implemented like the infamous i386 svr4.0, and systems where the
10669 VM page cache was not coherent with the file system buffer cache
10670 like early versions of FreeBSD and possibly contemporary NetBSD.)
10671 For shared mappings, we should conversely verify that changes get
10672 propagated back to all the places they're supposed to be.
10674 Grep wants private fixed already mapped.
10675 The main things grep needs to know about mmap are:
10676 * does it exist and is it safe to write into the mmap'd area
10677 * how to use it (BSD variants) */
10680 #include <sys/mman.h>
10682 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10686 /* This mess was copied from the GNU getpagesize.h. */
10687 #ifndef HAVE_GETPAGESIZE
10688 /* Assume that all systems that can run configure have sys/param.h. */
10689 # ifndef HAVE_SYS_PARAM_H
10690 # define HAVE_SYS_PARAM_H 1
10693 # ifdef _SC_PAGESIZE
10694 # define getpagesize() sysconf(_SC_PAGESIZE)
10695 # else /* no _SC_PAGESIZE */
10696 # ifdef HAVE_SYS_PARAM_H
10697 # include <sys/param.h>
10698 # ifdef EXEC_PAGESIZE
10699 # define getpagesize() EXEC_PAGESIZE
10700 # else /* no EXEC_PAGESIZE */
10702 # define getpagesize() NBPG * CLSIZE
10705 # endif /* no CLSIZE */
10706 # else /* no NBPG */
10708 # define getpagesize() NBPC
10709 # else /* no NBPC */
10711 # define getpagesize() PAGESIZE
10712 # endif /* PAGESIZE */
10713 # endif /* no NBPC */
10714 # endif /* no NBPG */
10715 # endif /* no EXEC_PAGESIZE */
10716 # else /* no HAVE_SYS_PARAM_H */
10717 # define getpagesize() 8192 /* punt totally */
10718 # endif /* no HAVE_SYS_PARAM_H */
10719 # endif /* no _SC_PAGESIZE */
10721 #endif /* no HAVE_GETPAGESIZE */
10726 char *data, *data2, *data3;
10730 pagesize = getpagesize ();
10732 /* First, make a file with some known garbage in it. */
10733 data = (char *) malloc (pagesize);
10736 for (i = 0; i < pagesize; ++i)
10737 *(data + i) = rand ();
10739 fd = creat ("conftest.mmap", 0600);
10742 if (write (fd, data, pagesize) != pagesize)
10746 /* Next, try to mmap the file at a fixed address which already has
10747 something else allocated at it. If we can, also make sure that
10748 we see the same garbage. */
10749 fd = open ("conftest.mmap", O_RDWR);
10752 data2 = (char *) malloc (2 * pagesize);
10755 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10756 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10757 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10759 for (i = 0; i < pagesize; ++i)
10760 if (*(data + i) != *(data2 + i))
10763 /* Finally, make sure that changes to the mapped area do not
10764 percolate back to the file as seen by read(). (This is a bug on
10765 some variants of i386 svr4.0.) */
10766 for (i = 0; i < pagesize; ++i)
10767 *(data2 + i) = *(data2 + i) + 1;
10768 data3 = (char *) malloc (pagesize);
10771 if (read (fd, data3, pagesize) != pagesize)
10773 for (i = 0; i < pagesize; ++i)
10774 if (*(data + i) != *(data3 + i))
10780 if ac_fn_c_try_run
"$LINENO"; then :
10781 ac_cv_func_mmap_fixed_mapped
=yes
10783 ac_cv_func_mmap_fixed_mapped
=no
10785 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10786 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10791 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10792 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10794 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10797 rm -f conftest.mmap
10799 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10800 if test "x$ac_cv_type_pid_t" = x
""yes; then :
10804 cat >>confdefs.h
<<_ACEOF
10810 for ac_header
in vfork.h
10812 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
10813 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
10814 cat >>confdefs.h
<<_ACEOF
10815 #define HAVE_VFORK_H 1
10822 for ac_func
in fork vfork
10824 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10825 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10826 eval as_val
=\$
$as_ac_var
10827 if test "x$as_val" = x
""yes; then :
10828 cat >>confdefs.h
<<_ACEOF
10829 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10835 if test "x$ac_cv_func_fork" = xyes
; then
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10837 $as_echo_n "checking for working fork... " >&6; }
10838 if test "${ac_cv_func_fork_works+set}" = set; then :
10839 $as_echo_n "(cached) " >&6
10841 if test "$cross_compiling" = yes; then :
10842 ac_cv_func_fork_works
=cross
10844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10845 /* end confdefs.h. */
10846 $ac_includes_default
10851 /* By Ruediger Kuhlmann. */
10852 return fork () < 0;
10858 if ac_fn_c_try_run
"$LINENO"; then :
10859 ac_cv_func_fork_works
=yes
10861 ac_cv_func_fork_works
=no
10863 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10864 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10869 $as_echo "$ac_cv_func_fork_works" >&6; }
10872 ac_cv_func_fork_works
=$ac_cv_func_fork
10874 if test "x$ac_cv_func_fork_works" = xcross
; then
10876 *-*-amigaos* |
*-*-msdosdjgpp*)
10877 # Override, as these systems have only a dummy fork() stub
10878 ac_cv_func_fork_works
=no
10881 ac_cv_func_fork_works
=yes
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10885 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10887 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10888 if test "x$ac_cv_func_vfork" = xyes
; then
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10890 $as_echo_n "checking for working vfork... " >&6; }
10891 if test "${ac_cv_func_vfork_works+set}" = set; then :
10892 $as_echo_n "(cached) " >&6
10894 if test "$cross_compiling" = yes; then :
10895 ac_cv_func_vfork_works
=cross
10897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10898 /* end confdefs.h. */
10899 /* Thanks to Paul Eggert for this test. */
10900 $ac_includes_default
10901 #include <sys/wait.h>
10902 #ifdef HAVE_VFORK_H
10903 # include <vfork.h>
10905 /* On some sparc systems, changes by the child to local and incoming
10906 argument registers are propagated back to the parent. The compiler
10907 is told about this with #include <vfork.h>, but some compilers
10908 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10909 static variable whose address is put into a register that is
10910 clobbered by the vfork. */
10913 sparc_address_test (int arg)
10915 sparc_address_test (arg) int arg;
10918 static pid_t child;
10936 pid_t parent = getpid ();
10939 sparc_address_test (0);
10944 /* Here is another test for sparc vfork register problems. This
10945 test uses lots of local variables, at least as many local
10946 variables as main has allocated so far including compiler
10947 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10948 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10949 reuse the register of parent for one of the local variables,
10950 since it will think that parent can't possibly be used any more
10951 in this routine. Assigning to the local variable will thus
10952 munge parent in the parent process. */
10954 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10955 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10956 /* Convince the compiler that p..p7 are live; otherwise, it might
10957 use the same hardware register for all 8 local variables. */
10958 if (p != p1 || p != p2 || p != p3 || p != p4
10959 || p != p5 || p != p6 || p != p7)
10962 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10963 from child file descriptors. If the child closes a descriptor
10964 before it execs or exits, this munges the parent's descriptor
10965 as well. Test for this by closing stdout in the child. */
10966 _exit(close(fileno(stdout)) != 0);
10971 while (wait(&status) != child)
10974 /* Was there some problem with vforking? */
10977 /* Did the child fail? (This shouldn't happen.) */
10980 /* Did the vfork/compiler bug occur? */
10981 || parent != getpid()
10983 /* Did the file descriptor bug occur? */
10984 || fstat(fileno(stdout), &st) != 0
10989 if ac_fn_c_try_run
"$LINENO"; then :
10990 ac_cv_func_vfork_works
=yes
10992 ac_cv_func_vfork_works
=no
10994 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10995 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11000 $as_echo "$ac_cv_func_vfork_works" >&6; }
11003 if test "x$ac_cv_func_fork_works" = xcross
; then
11004 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11006 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11009 if test "x$ac_cv_func_vfork_works" = xyes
; then
11011 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11015 $as_echo "#define vfork fork" >>confdefs.h
11018 if test "x$ac_cv_func_fork_works" = xyes
; then
11020 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11024 for ac_func
in getauxval getrusage getuid getgid \
11025 pipe poll pread pread64 pwrite resize_term \
11026 sbrk setpgid setpgrp setsid \
11027 sigaction sigprocmask sigsetmask socketpair \
11028 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
11029 setrlimit getrlimit posix_madvise waitpid \
11030 ptrace64 sigaltstack mkdtemp
11032 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11033 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11034 eval as_val
=\$
$as_ac_var
11035 if test "x$as_val" = x
""yes; then :
11036 cat >>confdefs.h
<<_ACEOF
11037 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11045 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11046 if test "${am_cv_langinfo_codeset+set}" = set; then :
11047 $as_echo_n "(cached) " >&6
11049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11050 /* end confdefs.h. */
11051 #include <langinfo.h>
11055 char* cs = nl_langinfo(CODESET);
11060 if ac_fn_c_try_link
"$LINENO"; then :
11061 am_cv_langinfo_codeset
=yes
11063 am_cv_langinfo_codeset
=no
11065 rm -f core conftest.err conftest.
$ac_objext \
11066 conftest
$ac_exeext conftest.
$ac_ext
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11070 $as_echo "$am_cv_langinfo_codeset" >&6; }
11071 if test $am_cv_langinfo_codeset = yes; then
11073 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11079 $as_echo_n "checking for ANSI C header files... " >&6; }
11080 if test "${ac_cv_header_stdc+set}" = set; then :
11081 $as_echo_n "(cached) " >&6
11083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11084 /* end confdefs.h. */
11085 #include <stdlib.h>
11086 #include <stdarg.h>
11087 #include <string.h>
11098 if ac_fn_c_try_compile
"$LINENO"; then :
11099 ac_cv_header_stdc
=yes
11101 ac_cv_header_stdc
=no
11103 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11105 if test $ac_cv_header_stdc = yes; then
11106 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11108 /* end confdefs.h. */
11109 #include <string.h>
11112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11113 $EGREP "memchr" >/dev
/null
2>&1; then :
11116 ac_cv_header_stdc
=no
11122 if test $ac_cv_header_stdc = yes; then
11123 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11125 /* end confdefs.h. */
11126 #include <stdlib.h>
11129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11130 $EGREP "free" >/dev
/null
2>&1; then :
11133 ac_cv_header_stdc
=no
11139 if test $ac_cv_header_stdc = yes; then
11140 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11141 if test "$cross_compiling" = yes; then :
11144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11145 /* end confdefs.h. */
11147 #include <stdlib.h>
11148 #if ((' ' & 0x0FF) == 0x020)
11149 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11150 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11152 # define ISLOWER(c) \
11153 (('a' <= (c) && (c) <= 'i') \
11154 || ('j' <= (c) && (c) <= 'r') \
11155 || ('s' <= (c) && (c) <= 'z'))
11156 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11159 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11164 for (i = 0; i < 256; i++)
11165 if (XOR (islower (i), ISLOWER (i))
11166 || toupper (i) != TOUPPER (i))
11171 if ac_fn_c_try_run
"$LINENO"; then :
11174 ac_cv_header_stdc
=no
11176 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11177 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11183 $as_echo "$ac_cv_header_stdc" >&6; }
11184 if test $ac_cv_header_stdc = yes; then
11186 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11190 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11191 # for constant arguments. Useless!
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11193 $as_echo_n "checking for working alloca.h... " >&6; }
11194 if test "${ac_cv_working_alloca_h+set}" = set; then :
11195 $as_echo_n "(cached) " >&6
11197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11198 /* end confdefs.h. */
11199 #include <alloca.h>
11203 char *p = (char *) alloca (2 * sizeof (int));
11209 if ac_fn_c_try_link
"$LINENO"; then :
11210 ac_cv_working_alloca_h
=yes
11212 ac_cv_working_alloca_h
=no
11214 rm -f core conftest.err conftest.
$ac_objext \
11215 conftest
$ac_exeext conftest.
$ac_ext
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11218 $as_echo "$ac_cv_working_alloca_h" >&6; }
11219 if test $ac_cv_working_alloca_h = yes; then
11221 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11226 $as_echo_n "checking for alloca... " >&6; }
11227 if test "${ac_cv_func_alloca_works+set}" = set; then :
11228 $as_echo_n "(cached) " >&6
11230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11231 /* end confdefs.h. */
11233 # define alloca __builtin_alloca
11236 # include <malloc.h>
11237 # define alloca _alloca
11239 # ifdef HAVE_ALLOCA_H
11240 # include <alloca.h>
11245 # ifndef alloca /* predefined by HP cc +Olibcalls */
11256 char *p = (char *) alloca (1);
11262 if ac_fn_c_try_link
"$LINENO"; then :
11263 ac_cv_func_alloca_works
=yes
11265 ac_cv_func_alloca_works
=no
11267 rm -f core conftest.err conftest.
$ac_objext \
11268 conftest
$ac_exeext conftest.
$ac_ext
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11271 $as_echo "$ac_cv_func_alloca_works" >&6; }
11273 if test $ac_cv_func_alloca_works = yes; then
11275 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11278 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11279 # that cause trouble. Some versions do not even contain alloca or
11280 # contain a buggy version. If you still want to use their alloca,
11281 # use ar to extract alloca.o from them instead of compiling alloca.c.
11283 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
11285 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11289 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11290 if test "${ac_cv_os_cray+set}" = set; then :
11291 $as_echo_n "(cached) " >&6
11293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11294 /* end confdefs.h. */
11295 #if defined CRAY && ! defined CRAY2
11302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11303 $EGREP "webecray" >/dev
/null
2>&1; then :
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11312 $as_echo "$ac_cv_os_cray" >&6; }
11313 if test $ac_cv_os_cray = yes; then
11314 for ac_func
in _getb67 GETB67 getb67
; do
11315 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11316 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11317 eval as_val
=\$
$as_ac_var
11318 if test "x$as_val" = x
""yes; then :
11320 cat >>confdefs.h
<<_ACEOF
11321 #define CRAY_STACKSEG_END $ac_func
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11331 $as_echo_n "checking stack direction for C alloca... " >&6; }
11332 if test "${ac_cv_c_stack_direction+set}" = set; then :
11333 $as_echo_n "(cached) " >&6
11335 if test "$cross_compiling" = yes; then :
11336 ac_cv_c_stack_direction
=0
11338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11339 /* end confdefs.h. */
11340 $ac_includes_default
11342 find_stack_direction ()
11344 static char *addr = 0;
11349 return find_stack_direction ();
11352 return (&dummy > addr) ? 1 : -1;
11358 return find_stack_direction () < 0;
11361 if ac_fn_c_try_run
"$LINENO"; then :
11362 ac_cv_c_stack_direction
=1
11364 ac_cv_c_stack_direction
=-1
11366 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11367 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11372 $as_echo "$ac_cv_c_stack_direction" >&6; }
11373 cat >>confdefs.h
<<_ACEOF
11374 #define STACK_DIRECTION $ac_cv_c_stack_direction
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11383 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11384 if test "${am_cv_langinfo_codeset+set}" = set; then :
11385 $as_echo_n "(cached) " >&6
11387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11388 /* end confdefs.h. */
11389 #include <langinfo.h>
11393 char* cs = nl_langinfo(CODESET);
11398 if ac_fn_c_try_link
"$LINENO"; then :
11399 am_cv_langinfo_codeset
=yes
11401 am_cv_langinfo_codeset
=no
11403 rm -f core conftest.err conftest.
$ac_objext \
11404 conftest
$ac_exeext conftest.
$ac_ext
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11408 $as_echo "$am_cv_langinfo_codeset" >&6; }
11409 if test $am_cv_langinfo_codeset = yes; then
11411 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11416 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
11418 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11419 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11420 eval as_val
=\$
$as_ac_Header
11421 if test "x$as_val" = x
""yes; then :
11422 cat >>confdefs.h
<<_ACEOF
11423 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11431 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair
11433 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11434 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11435 eval as_val
=\$
$as_ac_var
11436 if test "x$as_val" = x
""yes; then :
11437 cat >>confdefs.h
<<_ACEOF
11438 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11445 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
11446 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
11452 cat >>confdefs.h
<<_ACEOF
11453 #define HAVE_DECL_STRERROR $ac_have_decl
11455 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
11456 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
11462 cat >>confdefs.h
<<_ACEOF
11463 #define HAVE_DECL_STRSTR $ac_have_decl
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
11468 $as_echo_n "checking for sigsetjmp... " >&6; }
11469 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
11470 $as_echo_n "(cached) " >&6
11472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11473 /* end confdefs.h. */
11475 #include <setjmp.h>
11480 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
11485 if ac_fn_c_try_compile
"$LINENO"; then :
11486 gdb_cv_func_sigsetjmp
=yes
11488 gdb_cv_func_sigsetjmp
=no
11490 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
11493 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
11494 if test $gdb_cv_func_sigsetjmp = yes; then
11496 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
11501 # Check the return and argument types of ptrace. No canned test for
11502 # this, so roll our own.
11503 gdb_ptrace_headers
='
11504 #include <sys/types.h>
11505 #if HAVE_SYS_PTRACE_H
11506 # include <sys/ptrace.h>
11509 # include <unistd.h>
11512 # There is no point in checking if we don't have a prototype.
11513 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
11515 if test "x$ac_cv_have_decl_ptrace" = x
""yes; then :
11521 cat >>confdefs.h
<<_ACEOF
11522 #define HAVE_DECL_PTRACE $ac_have_decl
11524 if test $ac_have_decl = 1; then :
11528 : ${gdb_cv_func_ptrace_ret='int'}
11529 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
11533 # Check return type. Varargs (used on GNU/Linux) conflict with the
11534 # empty argument list, so check for that explicitly.
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
11536 $as_echo_n "checking return type of ptrace... " >&6; }
11537 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
11538 $as_echo_n "(cached) " >&6
11540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11541 /* end confdefs.h. */
11542 $gdb_ptrace_headers
11546 extern long ptrace (enum __ptrace_request, ...);
11551 if ac_fn_c_try_compile
"$LINENO"; then :
11552 gdb_cv_func_ptrace_ret
='long'
11554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11555 /* end confdefs.h. */
11556 $gdb_ptrace_headers
11560 extern int ptrace ();
11565 if ac_fn_c_try_compile
"$LINENO"; then :
11566 gdb_cv_func_ptrace_ret
='int'
11568 gdb_cv_func_ptrace_ret
='long'
11570 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11572 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
11575 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
11577 cat >>confdefs.h
<<_ACEOF
11578 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
11581 # Check argument types.
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
11583 $as_echo_n "checking types of arguments for ptrace... " >&6; }
11584 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
11585 $as_echo_n "(cached) " >&6
11588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11589 /* end confdefs.h. */
11590 $gdb_ptrace_headers
11594 extern long ptrace (enum __ptrace_request, ...);
11599 if ac_fn_c_try_compile
"$LINENO"; then :
11600 gdb_cv_func_ptrace_args
='int,int,long,long'
11603 for gdb_arg1
in 'int' 'long'; do
11604 for gdb_arg2
in 'pid_t' 'int' 'long'; do
11605 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
11606 for gdb_arg4
in 'int' 'long' 'void *'; do
11607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11608 /* end confdefs.h. */
11609 $gdb_ptrace_headers
11614 extern $gdb_cv_func_ptrace_ret
11615 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
11621 if ac_fn_c_try_compile
"$LINENO"; then :
11622 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
11625 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11626 for gdb_arg5
in 'int *' 'int' 'long'; do
11627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11628 /* end confdefs.h. */
11629 $gdb_ptrace_headers
11634 extern $gdb_cv_func_ptrace_ret
11635 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
11641 if ac_fn_c_try_compile
"$LINENO"; then :
11643 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
11646 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11652 # Provide a safe default value.
11653 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
11656 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
11659 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
11660 ac_save_IFS
=$IFS; IFS
=','
11661 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
11665 cat >>confdefs.h
<<_ACEOF
11666 #define PTRACE_TYPE_ARG3 $3
11670 cat >>confdefs.h
<<_ACEOF
11671 #define PTRACE_TYPE_ARG4 $4
11674 if test -n "$5"; then
11676 cat >>confdefs.h
<<_ACEOF
11677 #define PTRACE_TYPE_ARG5 $5
11682 if test "$cross_compiling" = no
; then
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
11684 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
11685 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
11686 $as_echo_n "(cached) " >&6
11688 if test "$cross_compiling" = yes; then :
11689 as_fn_error
"cannot check setpgrp when cross compiling" "$LINENO" 5
11691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11692 /* end confdefs.h. */
11693 $ac_includes_default
11697 /* If this system has a BSD-style setpgrp which takes arguments,
11698 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
11699 exit successfully. */
11700 return setpgrp (1,1) != -1;
11705 if ac_fn_c_try_run
"$LINENO"; then :
11706 ac_cv_func_setpgrp_void
=no
11708 ac_cv_func_setpgrp_void
=yes
11710 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11711 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
11716 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
11717 if test $ac_cv_func_setpgrp_void = yes; then
11719 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
11725 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
11726 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
11727 $as_echo_n "(cached) " >&6
11729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11730 /* end confdefs.h. */
11732 #include <unistd.h>
11738 if (setpgrp(1,1) == -1)
11747 if ac_fn_c_try_compile
"$LINENO"; then :
11748 ac_cv_func_setpgrp_void
=no
11750 ac_cv_func_setpgrp_void
=yes
11752 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
11755 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
11756 if test $ac_cv_func_setpgrp_void = yes; then
11757 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
11762 # Assume we'll default to using the included libiberty regex.
11763 gdb_use_included_regex
=yes
11765 # However, if the system regex is GNU regex, then default to *not*
11766 # using the included regex.
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
11768 $as_echo_n "checking for GNU regex... " >&6; }
11769 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
11770 $as_echo_n "(cached) " >&6
11772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11773 /* end confdefs.h. */
11774 #include <gnu-versions.h>
11778 #define REGEX_INTERFACE_VERSION 1
11779 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
11780 # error "Version mismatch"
11786 if ac_fn_c_try_compile
"$LINENO"; then :
11787 gdb_cv_have_gnu_regex
=yes
11789 gdb_cv_have_gnu_regex
=no
11791 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
11794 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
11795 if test $gdb_cv_have_gnu_regex = yes; then
11796 gdb_use_included_regex
=no
11800 # Check whether --with-included-regex was given.
11801 if test "${with_included_regex+set}" = set; then :
11802 withval
=$with_included_regex; gdb_with_regex
=$withval
11804 gdb_with_regex
=$gdb_use_included_regex
11807 if test "$gdb_with_regex" = yes; then
11809 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
11813 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
11814 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
11815 #include <sys/proc.h>
11818 if test "x$ac_cv_member_struct_thread_td_pcb" = x
""yes; then :
11820 cat >>confdefs.h
<<_ACEOF
11821 #define HAVE_STRUCT_THREAD_TD_PCB 1
11828 # See if <sys/lwp.h> defines `struct lwp`.
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
11830 $as_echo_n "checking for struct lwp... " >&6; }
11831 if test "${gdb_cv_struct_lwp+set}" = set; then :
11832 $as_echo_n "(cached) " >&6
11834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11835 /* end confdefs.h. */
11836 #include <sys/param.h>
11837 #include <sys/lwp.h>
11846 if ac_fn_c_try_compile
"$LINENO"; then :
11847 gdb_cv_struct_lwp
=yes
11849 gdb_cv_struct_lwp
=no
11851 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
11854 $as_echo "$gdb_cv_struct_lwp" >&6; }
11855 if test $gdb_cv_struct_lwp = yes; then
11857 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
11861 # See if <machine/reg.h> degines `struct reg'.
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
11863 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
11864 if test "${gdb_cv_struct_reg+set}" = set; then :
11865 $as_echo_n "(cached) " >&6
11867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11868 /* end confdefs.h. */
11869 #include <sys/types.h>
11870 #include <machine/reg.h>
11879 if ac_fn_c_try_compile
"$LINENO"; then :
11880 gdb_cv_struct_reg
=yes
11882 gdb_cv_struct_reg
=no
11884 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
11887 $as_echo "$gdb_cv_struct_reg" >&6; }
11888 if test $gdb_cv_struct_reg = yes; then
11890 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
11894 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
11895 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
11896 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
11898 if test "x$ac_cv_member_struct_reg_r_fs" = x
""yes; then :
11900 cat >>confdefs.h
<<_ACEOF
11901 #define HAVE_STRUCT_REG_R_FS 1
11906 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
11908 if test "x$ac_cv_member_struct_reg_r_gs" = x
""yes; then :
11910 cat >>confdefs.h
<<_ACEOF
11911 #define HAVE_STRUCT_REG_R_GS 1
11918 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
11919 # Older amd64 Linux's don't have the fs_base and gs_base members of
11920 # `struct user_regs_struct'.
11921 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>
11923 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = x
""yes; then :
11925 cat >>confdefs.h
<<_ACEOF
11926 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
11931 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>
11933 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = x
""yes; then :
11935 cat >>confdefs.h
<<_ACEOF
11936 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
11943 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
11945 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
11946 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
11947 $as_echo_n "(cached) " >&6
11949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11950 /* end confdefs.h. */
11951 #include <sys/ptrace.h>
11960 if ac_fn_c_try_compile
"$LINENO"; then :
11961 gdb_cv_have_ptrace_getregs
=yes
11963 gdb_cv_have_ptrace_getregs
=no
11965 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
11969 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
11970 if test $gdb_cv_have_ptrace_getregs = yes; then
11972 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
11976 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
11978 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
11979 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
11980 $as_echo_n "(cached) " >&6
11982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11983 /* end confdefs.h. */
11984 #include <sys/ptrace.h>
11993 if ac_fn_c_try_compile
"$LINENO"; then :
11994 gdb_cv_have_ptrace_getfpxregs
=yes
11996 gdb_cv_have_ptrace_getfpxregs
=no
11998 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
12002 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
12003 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
12005 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
12009 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
12011 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
12012 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
12013 $as_echo_n "(cached) " >&6
12015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12016 /* end confdefs.h. */
12017 #include <sys/types.h>
12018 #include <sys/ptrace.h>
12027 if ac_fn_c_try_compile
"$LINENO"; then :
12028 gdb_cv_have_pt_getdbregs
=yes
12030 gdb_cv_have_pt_getdbregs
=no
12032 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
12036 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
12037 if test $gdb_cv_have_pt_getdbregs = yes; then
12039 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
12043 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
12045 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
12046 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
12047 $as_echo_n "(cached) " >&6
12049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12050 /* end confdefs.h. */
12051 #include <sys/types.h>
12052 #include <sys/ptrace.h>
12061 if ac_fn_c_try_compile
"$LINENO"; then :
12062 gdb_cv_have_pt_getxmmregs
=yes
12064 gdb_cv_have_pt_getxmmregs
=no
12066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
12070 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
12071 if test $gdb_cv_have_pt_getxmmregs = yes; then
12073 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
12077 # Detect which type of /proc is in use, such as for Solaris.
12079 if test "${target}" = "${host}"; then
12081 *-*-sysv4.2
* |
*-*-sysv5* )
12083 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
12086 *-*-solaris2.
[6789] |
*-*-solaris2.1
[0-9]*)
12088 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
12092 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
12094 $as_echo "#define _KMEMUSER 1" >>confdefs.h
12100 if test "$ac_cv_header_sys_procfs_h" = yes; then
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
12102 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
12103 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
12104 $as_echo_n "(cached) " >&6
12106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12107 /* end confdefs.h. */
12110 /* Needed for new procfs interface on sparc-solaris. */
12111 #define _STRUCTURED_PROC 1
12112 #include <sys/procfs.h>
12121 if ac_fn_c_try_compile
"$LINENO"; then :
12122 bfd_cv_have_sys_procfs_type_gregset_t
=yes
12124 bfd_cv_have_sys_procfs_type_gregset_t
=no
12127 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12130 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
12132 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
12136 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
12139 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
12140 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
12141 $as_echo_n "(cached) " >&6
12143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12144 /* end confdefs.h. */
12147 /* Needed for new procfs interface on sparc-solaris. */
12148 #define _STRUCTURED_PROC 1
12149 #include <sys/procfs.h>
12158 if ac_fn_c_try_compile
"$LINENO"; then :
12159 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
12161 bfd_cv_have_sys_procfs_type_fpregset_t
=no
12164 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12167 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
12169 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
12173 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
12176 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
12177 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
12178 $as_echo_n "(cached) " >&6
12180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12181 /* end confdefs.h. */
12184 /* Needed for new procfs interface on sparc-solaris. */
12185 #define _STRUCTURED_PROC 1
12186 #include <sys/procfs.h>
12195 if ac_fn_c_try_compile
"$LINENO"; then :
12196 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
12198 bfd_cv_have_sys_procfs_type_prgregset_t
=no
12201 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12204 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
12206 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
12210 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
12213 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
12214 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
12215 $as_echo_n "(cached) " >&6
12217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12218 /* end confdefs.h. */
12221 /* Needed for new procfs interface on sparc-solaris. */
12222 #define _STRUCTURED_PROC 1
12223 #include <sys/procfs.h>
12232 if ac_fn_c_try_compile
"$LINENO"; then :
12233 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
12235 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
12238 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12241 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
12243 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
12247 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
12250 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
12251 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
12252 $as_echo_n "(cached) " >&6
12254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12255 /* end confdefs.h. */
12258 /* Needed for new procfs interface on sparc-solaris. */
12259 #define _STRUCTURED_PROC 1
12260 #include <sys/procfs.h>
12269 if ac_fn_c_try_compile
"$LINENO"; then :
12270 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
12272 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
12275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12278 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
12280 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
12284 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
12287 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
12288 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
12289 $as_echo_n "(cached) " >&6
12291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12292 /* end confdefs.h. */
12295 /* Needed for new procfs interface on sparc-solaris. */
12296 #define _STRUCTURED_PROC 1
12297 #include <sys/procfs.h>
12306 if ac_fn_c_try_compile
"$LINENO"; then :
12307 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
12309 bfd_cv_have_sys_procfs_type_lwpid_t
=no
12312 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12315 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
12317 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
12321 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
12324 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
12325 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
12326 $as_echo_n "(cached) " >&6
12328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12329 /* end confdefs.h. */
12332 /* Needed for new procfs interface on sparc-solaris. */
12333 #define _STRUCTURED_PROC 1
12334 #include <sys/procfs.h>
12343 if ac_fn_c_try_compile
"$LINENO"; then :
12344 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
12346 bfd_cv_have_sys_procfs_type_psaddr_t
=no
12349 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12352 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
12354 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
12358 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
12361 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
12362 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
12363 $as_echo_n "(cached) " >&6
12365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12366 /* end confdefs.h. */
12369 /* Needed for new procfs interface on sparc-solaris. */
12370 #define _STRUCTURED_PROC 1
12371 #include <sys/procfs.h>
12380 if ac_fn_c_try_compile
"$LINENO"; then :
12381 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
12383 bfd_cv_have_sys_procfs_type_prsysent_t
=no
12386 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12389 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
12391 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
12395 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
12398 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
12399 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
12400 $as_echo_n "(cached) " >&6
12402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12403 /* end confdefs.h. */
12406 /* Needed for new procfs interface on sparc-solaris. */
12407 #define _STRUCTURED_PROC 1
12408 #include <sys/procfs.h>
12417 if ac_fn_c_try_compile
"$LINENO"; then :
12418 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
12420 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
12423 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12426 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
12428 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
12432 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
12435 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
12436 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
12437 $as_echo_n "(cached) " >&6
12439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12440 /* end confdefs.h. */
12443 /* Needed for new procfs interface on sparc-solaris. */
12444 #define _STRUCTURED_PROC 1
12445 #include <sys/procfs.h>
12449 pr_sigaction64_t avar
12454 if ac_fn_c_try_compile
"$LINENO"; then :
12455 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
12457 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
12460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12463 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
12465 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
12469 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
12472 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
12473 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
12474 $as_echo_n "(cached) " >&6
12476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12477 /* end confdefs.h. */
12480 /* Needed for new procfs interface on sparc-solaris. */
12481 #define _STRUCTURED_PROC 1
12482 #include <sys/procfs.h>
12486 pr_siginfo64_t avar
12491 if ac_fn_c_try_compile
"$LINENO"; then :
12492 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
12494 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
12497 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12500 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
12502 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
12506 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
12512 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
12514 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
12515 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
12516 $as_echo_n "(cached) " >&6
12518 if test "$cross_compiling" = yes; then :
12519 gdb_cv_prfpregset_t_broken
=yes
12521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12522 /* end confdefs.h. */
12523 #include <sys/procfs.h>
12526 if (sizeof (prfpregset_t) == sizeof (void *))
12531 if ac_fn_c_try_run
"$LINENO"; then :
12532 gdb_cv_prfpregset_t_broken
=no
12534 gdb_cv_prfpregset_t_broken
=yes
12536 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12537 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
12543 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
12544 if test $gdb_cv_prfpregset_t_broken = yes; then
12546 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
12552 # Check if the compiler supports the `long long' type.
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
12555 $as_echo_n "checking for long long support in compiler... " >&6; }
12556 if test "${gdb_cv_c_long_long+set}" = set; then :
12557 $as_echo_n "(cached) " >&6
12559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12560 /* end confdefs.h. */
12561 extern long long foo;
12565 switch (foo & 2) { case 0: return 1; }
12570 if ac_fn_c_try_compile
"$LINENO"; then :
12571 gdb_cv_c_long_long
=yes
12573 gdb_cv_c_long_long
=no
12575 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
12578 $as_echo "$gdb_cv_c_long_long" >&6; }
12579 if test $gdb_cv_c_long_long != yes; then
12580 # libdecnumber requires long long.
12581 as_fn_error
"Compiler must support long long for GDB." "$LINENO" 5
12584 # Check if the compiler and runtime support printing long longs.
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
12587 $as_echo_n "checking for long long support in printf... " >&6; }
12588 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
12589 $as_echo_n "(cached) " >&6
12591 if test "$cross_compiling" = yes; then :
12592 gdb_cv_printf_has_long_long
=no
12594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12595 /* end confdefs.h. */
12596 $ac_includes_default
12602 l = (l << 16) + 0x0123;
12603 l = (l << 16) + 0x4567;
12604 l = (l << 16) + 0x89ab;
12605 l = (l << 16) + 0xcdef;
12606 sprintf (buf, "0x%016llx", l);
12607 return (strcmp ("0x0123456789abcdef", buf));
12612 if ac_fn_c_try_run
"$LINENO"; then :
12613 gdb_cv_printf_has_long_long
=yes
12615 gdb_cv_printf_has_long_long
=no
12617 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12618 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
12623 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
12624 if test $gdb_cv_printf_has_long_long = yes; then
12626 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
12630 # Check if the compiler and runtime support printing decfloats.
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
12633 $as_echo_n "checking for decfloat support in printf... " >&6; }
12634 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
12635 $as_echo_n "(cached) " >&6
12637 if test "$cross_compiling" = yes; then :
12638 gdb_cv_printf_has_decfloat
=no
12640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12641 /* end confdefs.h. */
12642 $ac_includes_default
12647 _Decimal32 d32 = 1.2345df;
12648 _Decimal64 d64 = 1.2345dd;
12649 _Decimal128 d128 = 1.2345dl;
12650 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
12651 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
12656 if ac_fn_c_try_run
"$LINENO"; then :
12657 gdb_cv_printf_has_decfloat
=yes
12659 gdb_cv_printf_has_decfloat
=no
12661 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12662 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
12667 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
12668 if test $gdb_cv_printf_has_decfloat = yes; then
12670 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
12674 # Check if the compiler supports the `long double' type. We can't use
12675 # AC_C_LONG_DOUBLE because that one does additional checks on the
12676 # constants defined in <float.h> that fail on some systems,
12677 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
12680 $as_echo_n "checking for long double support in compiler... " >&6; }
12681 if test "${gdb_cv_c_long_double+set}" = set; then :
12682 $as_echo_n "(cached) " >&6
12684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12685 /* end confdefs.h. */
12688 if ac_fn_c_try_compile
"$LINENO"; then :
12689 gdb_cv_c_long_double
=yes
12691 gdb_cv_c_long_double
=no
12693 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
12696 $as_echo "$gdb_cv_c_long_double" >&6; }
12697 if test $gdb_cv_c_long_double = yes; then
12699 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12703 # Check if the compiler and runtime support printing long doubles.
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
12706 $as_echo_n "checking for long double support in printf... " >&6; }
12707 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
12708 $as_echo_n "(cached) " >&6
12710 if test "$cross_compiling" = yes; then :
12711 gdb_cv_printf_has_long_double
=no
12713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12714 /* end confdefs.h. */
12715 $ac_includes_default
12720 long double f = 3.141592653;
12721 sprintf (buf, "%Lg", f);
12722 return (strncmp ("3.14159", buf, 7));
12727 if ac_fn_c_try_run
"$LINENO"; then :
12728 gdb_cv_printf_has_long_double
=yes
12730 gdb_cv_printf_has_long_double
=no
12732 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12733 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
12738 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
12739 if test $gdb_cv_printf_has_long_double = yes; then
12741 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
12745 # Check if the compiler and runtime support scanning long doubles.
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
12748 $as_echo_n "checking for long double support in scanf... " >&6; }
12749 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
12750 $as_echo_n "(cached) " >&6
12752 if test "$cross_compiling" = yes; then :
12753 gdb_cv_scanf_has_long_double
=no
12755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12756 /* end confdefs.h. */
12761 char *buf = "3.141592653";
12763 sscanf (buf, "%Lg", &f);
12764 return !(f > 3.14159 && f < 3.14160);
12769 if ac_fn_c_try_run
"$LINENO"; then :
12770 gdb_cv_scanf_has_long_double
=yes
12772 gdb_cv_scanf_has_long_double
=no
12774 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12775 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
12780 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
12781 if test $gdb_cv_scanf_has_long_double = yes; then
12783 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
12790 $as_echo_n "checking for -bbigtoc option... " >&6; }
12791 if test "${gdb_cv_bigtoc+set}" = set; then :
12792 $as_echo_n "(cached) " >&6
12795 SAVE_LDFLAGS
=$LDFLAGS
12798 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
12799 *) gdb_cv_bigtoc
=-bbigtoc ;;
12802 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
12803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12804 /* end confdefs.h. */
12814 if ac_fn_c_try_link
"$LINENO"; then :
12819 rm -f core conftest.err conftest.
$ac_objext \
12820 conftest
$ac_exeext conftest.
$ac_ext
12821 LDFLAGS
="${SAVE_LDFLAGS}"
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
12825 $as_echo "$gdb_cv_bigtoc" >&6; }
12826 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
12831 $as_echo_n "checking for the dynamic export flag... " >&6; }
12833 if test "${gdb_native}" = yes; then
12834 # The dynamically loaded libthread_db needs access to symbols in the gdb
12835 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
12836 # may not be supported there.
12837 old_LDFLAGS
="$LDFLAGS"
12838 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
12839 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
12840 LDFLAGS
="$LDFLAGS $RDYNAMIC"
12841 if test "${have_libpython}" = no
; then
12842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12843 /* end confdefs.h. */
12853 if ac_fn_c_try_link
"$LINENO"; then :
12856 rm -f core conftest.err conftest.
$ac_objext \
12857 conftest
$ac_exeext conftest.
$ac_ext
12859 # Workaround http://bugs.python.org/issue4434 where static
12860 # libpythonX.Y.a would get its symbols required for
12861 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
12862 # Problem does not happen for the recommended libpythonX.Y.so linkage.
12863 old_CFLAGS
="$CFLAGS"
12864 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
12866 LIBS
="$LIBS $PYTHON_LIBS"
12867 if test "$cross_compiling" = yes; then :
12870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12871 /* end confdefs.h. */
12872 #include "${have_libpython}/Python.h"
12878 err = PyRun_SimpleString ("import itertools\n");
12880 return err == 0 ? 0 : 1;
12885 if ac_fn_c_try_run
"$LINENO"; then :
12888 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12889 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12893 CFLAGS
="$old_CFLAGS"
12895 LDFLAGS
="$old_LDFLAGS"
12897 if $dynamic_list; then
12898 found
="-Wl,--dynamic-list"
12899 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
12902 RDYNAMIC
="-rdynamic"
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
12906 $as_echo "$found" >&6; }
12909 if test ${build} = ${host} -a ${host} = ${target} ; then
12912 # See if thread_db library is around for Solaris thread debugging.
12913 # Note that we must explicitly test for version 1 of the library
12914 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
12917 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
12918 if test -f /usr
/lib
/libthread_db.so
.1 ; then
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12920 $as_echo "yes" >&6; }
12922 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
12924 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
12925 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12927 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12928 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12929 $as_echo_n "(cached) " >&6
12931 ac_check_lib_save_LIBS
=$LIBS
12933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12934 /* end confdefs.h. */
12936 /* Override any GCC internal prototype to avoid an error.
12937 Use char because int might match the return type of a GCC
12938 builtin and then its argument prototype would still apply. */
12951 if ac_fn_c_try_link
"$LINENO"; then :
12952 ac_cv_lib_dl_dlopen
=yes
12954 ac_cv_lib_dl_dlopen
=no
12956 rm -f core conftest.err conftest.
$ac_objext \
12957 conftest
$ac_exeext conftest.
$ac_ext
12958 LIBS
=$ac_check_lib_save_LIBS
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12961 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12962 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
12963 cat >>confdefs.h
<<_ACEOF
12964 #define HAVE_LIBDL 1
12971 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} $RDYNAMIC"
12972 # Sun randomly tweaked the prototypes in <proc_service.h>
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
12975 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
12976 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
12977 $as_echo_n "(cached) " >&6
12980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12981 /* end confdefs.h. */
12983 #include <proc_service.h>
12984 ps_err_e ps_pdwrite
12985 (struct ps_prochandle*, psaddr_t, const void*, size_t);
12995 if ac_fn_c_try_compile
"$LINENO"; then :
12996 gdb_cv_proc_service_is_old
=no
12998 gdb_cv_proc_service_is_old
=yes
13000 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
13005 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
13006 if test $gdb_cv_proc_service_is_old = yes; then
13008 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13013 $as_echo "no" >&6; }
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
13018 $as_echo_n "checking for AiX thread debugging library... " >&6; }
13019 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
13020 $as_echo_n "(cached) " >&6
13022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13023 /* end confdefs.h. */
13024 #include <sys/pthdebug.h>
13028 #ifndef PTHDB_VERSION_3
13035 if ac_fn_c_try_compile
"$LINENO"; then :
13036 gdb_cv_have_aix_thread_debug
=yes
13038 gdb_cv_have_aix_thread_debug
=no
13040 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
13044 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
13045 if test $gdb_cv_have_aix_thread_debug = yes; then
13046 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
13047 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
13048 LIBS
="$LIBS -lpthdebug"
13050 # Older versions of AIX do not provide the declaration for
13051 # the getthrds function (it appears that it was introduced
13053 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
13055 if test "x$ac_cv_have_decl_getthrds" = x
""yes; then :
13061 cat >>confdefs.h
<<_ACEOF
13062 #define HAVE_DECL_GETTHRDS $ac_have_decl
13071 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
13073 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
13074 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
13075 $as_echo_n "(cached) " >&6
13077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13078 /* end confdefs.h. */
13079 #include <thread_db.h>
13083 int i = TD_NOTALLOC;
13088 if ac_fn_c_try_compile
"$LINENO"; then :
13089 gdb_cv_thread_db_h_has_td_notalloc
=yes
13091 gdb_cv_thread_db_h_has_td_notalloc
=no
13094 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
13098 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
13100 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
13101 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
13102 $as_echo_n "(cached) " >&6
13104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13105 /* end confdefs.h. */
13106 #include <thread_db.h>
13110 int i = TD_VERSION;
13115 if ac_fn_c_try_compile
"$LINENO"; then :
13116 gdb_cv_thread_db_h_has_td_version
=yes
13118 gdb_cv_thread_db_h_has_td_version
=no
13121 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
13125 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
13127 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
13128 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
13129 $as_echo_n "(cached) " >&6
13131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13132 /* end confdefs.h. */
13133 #include <thread_db.h>
13142 if ac_fn_c_try_compile
"$LINENO"; then :
13143 gdb_cv_thread_db_h_has_td_notls
=yes
13145 gdb_cv_thread_db_h_has_td_notls
=no
13148 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
13152 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
13154 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
13156 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
13159 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
13161 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
13164 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
13166 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
13170 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
13172 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
13173 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
13174 $as_echo_n "(cached) " >&6
13176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13177 /* end confdefs.h. */
13178 #include <sys/syscall.h>
13182 int i = __NR_tkill;
13187 if ac_fn_c_try_compile
"$LINENO"; then :
13188 gdb_cv_sys_syscall_h_has_tkill
=yes
13190 gdb_cv_sys_syscall_h_has_tkill
=no
13193 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
13197 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
13199 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes"; then
13200 ac_fn_c_check_func
"$LINENO" "syscall" "ac_cv_func_syscall"
13201 if test "x$ac_cv_func_syscall" = x
""yes; then :
13203 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
13210 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
13212 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
13218 cat >>confdefs.h
<<_ACEOF
13219 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
13223 if test "$cross_compiling" = yes; then :
13224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13225 /* end confdefs.h. */
13226 #include <sys/personality.h>
13231 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
13232 # define ADDR_NO_RANDOMIZE 0x0040000
13234 /* Test the flag could be set and stays set. */
13235 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13236 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13242 if ac_fn_c_try_link
"$LINENO"; then :
13243 have_personality
=true
13245 have_personality
=false
13247 rm -f core conftest.err conftest.
$ac_objext \
13248 conftest
$ac_exeext conftest.
$ac_ext
13250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13251 /* end confdefs.h. */
13252 #include <sys/personality.h>
13257 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
13258 # define ADDR_NO_RANDOMIZE 0x0040000
13260 /* Test the flag could be set and stays set. */
13261 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13262 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13268 if ac_fn_c_try_run
"$LINENO"; then :
13269 have_personality
=true
13271 have_personality
=false
13273 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13274 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13277 if $have_personality
13280 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
13293 cat >>confdefs.h
<<_ACEOF
13294 #define GDBINIT "$gdbinit"
13299 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
13300 # except that the argument to --with-sysroot is optional.
13301 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
13302 if test "x$with_sysroot" = xyes
; then
13303 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
13306 # Check whether --with-sysroot was given.
13307 if test "${with_sysroot+set}" = set; then :
13308 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
13310 TARGET_SYSTEM_ROOT
=
13314 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
13315 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13316 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
13317 ac_define_dir
=`eval echo $ac_define_dir`
13319 cat >>confdefs.h
<<_ACEOF
13320 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
13326 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
13327 if test "x$prefix" = xNONE
; then
13328 test_prefix
=/usr
/local
13330 test_prefix
=$prefix
13333 test_prefix
=$exec_prefix
13336 case ${ac_define_dir} in
13337 "${test_prefix}"|
"${test_prefix}/"*|\
13338 '${exec_prefix}'|
'${exec_prefix}/'*)
13343 cat >>confdefs.h
<<_ACEOF
13344 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
13351 # Check whether --with-system-gdbinit was given.
13352 if test "${with_system_gdbinit+set}" = set; then :
13353 withval
=$with_system_gdbinit;
13354 SYSTEM_GDBINIT
=$withval
13360 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
13361 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13362 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
13363 ac_define_dir
=`eval echo $ac_define_dir`
13365 cat >>confdefs.h
<<_ACEOF
13366 #define SYSTEM_GDBINIT "$ac_define_dir"
13372 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
13373 if test "x$prefix" = xNONE
; then
13374 test_prefix
=/usr
/local
13376 test_prefix
=$prefix
13379 test_prefix
=$exec_prefix
13382 case ${ac_define_dir} in
13383 "${test_prefix}"|
"${test_prefix}/"*|\
13384 '${exec_prefix}'|
'${exec_prefix}/'*)
13389 cat >>confdefs.h
<<_ACEOF
13390 #define SYSTEM_GDBINIT_RELOCATABLE $value
13396 # Check whether --enable-werror was given.
13397 if test "${enable_werror+set}" = set; then :
13398 enableval
=$enable_werror; case "${enableval}" in
13399 yes | y
) ERROR_ON_WARNING
="yes" ;;
13400 no | n
) ERROR_ON_WARNING
="no" ;;
13401 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
13406 # Enable -Werror by default when using gcc in C mode. Leave it off
13407 # for C++ until we're warning clean. Turn it off for releases.
13408 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" \
13409 && test x
"$enable_build_with_cxx" != x
"yes" \
13410 && $development; then
13411 ERROR_ON_WARNING
=yes
13415 if test "${ERROR_ON_WARNING}" = yes ; then
13416 WERROR_CFLAGS
="-Werror"
13419 # These options work in either C or C++ modes.
13420 build_warnings
="-Wall -Wpointer-arith \
13421 -Wno-unused -Wunused-value -Wunused-function \
13422 -Wno-switch -Wno-char-subscripts \
13425 # Now add in C and C++ specific options, depending on mode.
13426 if test "$enable_build_with_cxx" = "yes"; then
13427 build_warnings
="$build_warnings -Wno-sign-compare -Wno-write-strings \
13430 build_warnings
="$build_warnings -Wpointer-sign -Wmissing-prototypes \
13431 -Wdeclaration-after-statement -Wmissing-parameter-type \
13432 -Wold-style-declaration -Wold-style-definition"
13435 # Enable -Wno-format by default when using gcc on mingw since many
13436 # GCC versions complain about %I64.
13438 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
13439 *) build_warnings
="$build_warnings -Wformat-nonliteral" ;;
13442 # Check whether --enable-build-warnings was given.
13443 if test "${enable_build_warnings+set}" = set; then :
13444 enableval
=$enable_build_warnings; case "${enableval}" in
13446 no
) build_warnings
="-w";;
13447 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
13448 build_warnings
="${build_warnings} ${t}";;
13449 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
13450 build_warnings
="${t} ${build_warnings}";;
13451 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13453 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
13454 echo "Setting compiler warning flags = $build_warnings" 6>&1
13457 # Check whether --enable-gdb-build-warnings was given.
13458 if test "${enable_gdb_build_warnings+set}" = set; then :
13459 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
13461 no
) build_warnings
="-w";;
13462 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
13463 build_warnings
="${build_warnings} ${t}";;
13464 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
13465 build_warnings
="${t} ${build_warnings}";;
13466 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13468 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
13469 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
13473 # The set of warnings supported by a C++ compiler is not the same as
13474 # of the C compiler.
13475 if test "$enable_build_with_cxx" = "yes"; then
13477 ac_cpp
='$CXXCPP $CPPFLAGS'
13478 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13479 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13480 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
13485 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
13488 $as_echo_n "checking compiler warning flags... " >&6; }
13489 # Separate out the -Werror flag as some files just cannot be
13490 # compiled with it enabled.
13491 for w
in ${build_warnings}; do
13493 -Werr*) WERROR_CFLAGS
=-Werror ;;
13495 # Check whether GCC accepts it.
13496 saved_CFLAGS
="$CFLAGS"
13497 CFLAGS
="$CFLAGS $w"
13498 saved_CXXFLAGS
="$CXXFLAGS"
13499 CXXFLAGS
="$CXXFLAGS $w"
13501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13502 /* end confdefs.h. */
13512 if ac_fn_cxx_try_compile
"$LINENO"; then :
13513 WARN_CFLAGS
="${WARN_CFLAGS} $w"
13515 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13516 CFLAGS
="$saved_CFLAGS"
13517 CXXFLAGS
="$saved_CXXFLAGS"
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
13521 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
13526 if test "$enable_build_with_cxx" = "yes"; then
13528 ac_cpp='$CPP $CPPFLAGS'
13529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13535 # In the Cygwin environment, we need some additional flags.
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
13537 $as_echo_n "checking
for cygwin...
" >&6; }
13538 if test "${gdb_cv_os_cygwin+set}" = set; then :
13539 $as_echo_n "(cached
) " >&6
13541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13542 /* end confdefs.h. */
13544 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
13548 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
13549 $EGREP "^lose$
" >/dev/null 2>&1; then :
13550 gdb_cv_os_cygwin=yes
13552 gdb_cv_os_cygwin=no
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
13558 $as_echo "$gdb_cv_os_cygwin" >&6; }
13561 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
13563 *go32* ) SER_HARDWIRE=ser-go32.o ;;
13564 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
13565 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
13569 # libreadline needs libuser32.a in a cygwin environment
13571 if test x$gdb_cv_os_cygwin = xyes; then
13572 WIN32LIBS="-luser32"
13573 case "${target}" in
13574 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
13579 # The ser-tcp.c module requires sockets.
13583 $as_echo "#define USE_WIN32API 1" >>confdefs.h
13585 WIN32LIBS
="$WIN32LIBS -lws2_32"
13590 # Add ELF support to GDB, but only if BFD includes ELF support.
13593 OLD_LDFLAGS
=$LDFLAGS
13595 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
13596 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
13597 # always want our bfd.
13598 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
13599 LDFLAGS
="-L../bfd -L../libiberty $LDFLAGS"
13600 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
13601 LIBS
="-lbfd -liberty $intl $LIBS"
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
13603 $as_echo_n "checking for ELF support in BFD... " >&6; }
13604 if test "${gdb_cv_var_elf+set}" = set; then :
13605 $as_echo_n "(cached) " >&6
13607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13608 /* end confdefs.h. */
13609 #include <stdlib.h>
13611 #include "elf-bfd.h"
13616 return bfd_get_elf_phdr_upper_bound (NULL);
13621 if ac_fn_c_try_link
"$LINENO"; then :
13626 rm -f core conftest.err conftest.
$ac_objext \
13627 conftest
$ac_exeext conftest.
$ac_ext
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
13630 $as_echo "$gdb_cv_var_elf" >&6; }
13632 LDFLAGS
=$OLD_LDFLAGS
13634 if test $gdb_cv_var_elf = yes; then
13635 CONFIG_OBS
="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o"
13637 $as_echo "#define HAVE_ELF 1" >>confdefs.h
13639 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
13640 if test "$plugins" = "yes"; then
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13642 $as_echo_n "checking for library containing dlopen... " >&6; }
13643 if test "${ac_cv_search_dlopen+set}" = set; then :
13644 $as_echo_n "(cached) " >&6
13646 ac_func_search_save_LIBS
=$LIBS
13647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13648 /* end confdefs.h. */
13650 /* Override any GCC internal prototype to avoid an error.
13651 Use char because int might match the return type of a GCC
13652 builtin and then its argument prototype would still apply. */
13665 for ac_lib
in '' dl
; do
13666 if test -z "$ac_lib"; then
13667 ac_res
="none required"
13670 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13672 if ac_fn_c_try_link
"$LINENO"; then :
13673 ac_cv_search_dlopen
=$ac_res
13675 rm -f core conftest.err conftest.
$ac_objext \
13677 if test "${ac_cv_search_dlopen+set}" = set; then :
13681 if test "${ac_cv_search_dlopen+set}" = set; then :
13684 ac_cv_search_dlopen
=no
13686 rm conftest.
$ac_ext
13687 LIBS
=$ac_func_search_save_LIBS
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13690 $as_echo "$ac_cv_search_dlopen" >&6; }
13691 ac_res
=$ac_cv_search_dlopen
13692 if test "$ac_res" != no
; then :
13693 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13700 # Add macho support to GDB, but only if BFD includes it.
13703 OLD_LDFLAGS
=$LDFLAGS
13705 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
13706 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
13707 # always want our bfd.
13708 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
13709 LDFLAGS
="-L../bfd -L../libiberty $LDFLAGS"
13710 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
13711 LIBS
="-lbfd -liberty $intl $LIBS"
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
13713 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
13714 if test "${gdb_cv_var_macho+set}" = set; then :
13715 $as_echo_n "(cached) " >&6
13717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13718 /* end confdefs.h. */
13719 #include <stdlib.h>
13721 #include "mach-o.h"
13726 return bfd_mach_o_lookup_command (NULL, 0, NULL);
13731 if ac_fn_c_try_link
"$LINENO"; then :
13732 gdb_cv_var_macho
=yes
13734 gdb_cv_var_macho
=no
13736 rm -f core conftest.err conftest.
$ac_objext \
13737 conftest
$ac_exeext conftest.
$ac_ext
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
13740 $as_echo "$gdb_cv_var_macho" >&6; }
13742 LDFLAGS
=$OLD_LDFLAGS
13744 if test $gdb_cv_var_macho = yes; then
13745 CONFIG_OBS
="$CONFIG_OBS machoread.o"
13748 # Add any host-specific objects to GDB.
13749 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
13751 # If building on ELF, look for lzma support for embedded compressed debug info.
13752 if test $gdb_cv_var_elf = yes; then
13754 # Check whether --with-lzma was given.
13755 if test "${with_lzma+set}" = set; then :
13756 withval
=$with_lzma;
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
13762 $as_echo_n "checking whether to use lzma... " >&6; }
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
13764 $as_echo "$with_lzma" >&6; }
13766 if test "${with_lzma}" != no
; then
13777 acl_save_prefix
="$prefix"
13778 prefix
="$acl_final_prefix"
13779 acl_save_exec_prefix
="$exec_prefix"
13780 exec_prefix
="$acl_final_exec_prefix"
13782 eval additional_includedir
=\"$includedir\"
13783 eval additional_libdir
=\"$libdir\"
13785 exec_prefix
="$acl_save_exec_prefix"
13786 prefix
="$acl_save_prefix"
13789 # Check whether --with-liblzma-prefix was given.
13790 if test "${with_liblzma_prefix+set}" = set; then :
13791 withval
=$with_liblzma_prefix;
13792 if test "X$withval" = "Xno"; then
13795 if test "X$withval" = "X"; then
13797 acl_save_prefix
="$prefix"
13798 prefix
="$acl_final_prefix"
13799 acl_save_exec_prefix
="$exec_prefix"
13800 exec_prefix
="$acl_final_exec_prefix"
13802 eval additional_includedir
=\"$includedir\"
13803 eval additional_libdir
=\"$libdir\"
13805 exec_prefix
="$acl_save_exec_prefix"
13806 prefix
="$acl_save_prefix"
13809 additional_includedir
="$withval/include"
13810 additional_libdir
="$withval/lib"
13821 names_already_handled
=
13822 names_next_round
='lzma '
13823 while test -n "$names_next_round"; do
13824 names_this_round
="$names_next_round"
13826 for name
in $names_this_round; do
13828 for n
in $names_already_handled; do
13829 if test "$n" = "$name"; then
13830 already_handled
=yes
13834 if test -z "$already_handled"; then
13835 names_already_handled
="$names_already_handled $name"
13836 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13837 eval value
=\"\
$HAVE_LIB$uppername\"
13838 if test -n "$value"; then
13839 if test "$value" = yes; then
13840 eval value
=\"\
$LIB$uppername\"
13841 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
13842 eval value
=\"\
$LTLIB$uppername\"
13843 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
13852 if test $use_additional = yes; then
13853 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13854 found_dir
="$additional_libdir"
13855 found_so
="$additional_libdir/lib$name.$shlibext"
13856 if test -f "$additional_libdir/lib$name.la"; then
13857 found_la
="$additional_libdir/lib$name.la"
13860 if test -f "$additional_libdir/lib$name.$libext"; then
13861 found_dir
="$additional_libdir"
13862 found_a
="$additional_libdir/lib$name.$libext"
13863 if test -f "$additional_libdir/lib$name.la"; then
13864 found_la
="$additional_libdir/lib$name.la"
13869 if test "X$found_dir" = "X"; then
13870 for x
in $LDFLAGS $LTLIBLZMA; do
13872 acl_save_prefix
="$prefix"
13873 prefix
="$acl_final_prefix"
13874 acl_save_exec_prefix
="$exec_prefix"
13875 exec_prefix
="$acl_final_exec_prefix"
13877 exec_prefix
="$acl_save_exec_prefix"
13878 prefix
="$acl_save_prefix"
13882 dir
=`echo "X$x" | sed -e 's/^X-L//'`
13883 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13885 found_so
="$dir/lib$name.$shlibext"
13886 if test -f "$dir/lib$name.la"; then
13887 found_la
="$dir/lib$name.la"
13890 if test -f "$dir/lib$name.$libext"; then
13892 found_a
="$dir/lib$name.$libext"
13893 if test -f "$dir/lib$name.la"; then
13894 found_la
="$dir/lib$name.la"
13900 if test "X$found_dir" != "X"; then
13905 if test "X$found_dir" != "X"; then
13906 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
13907 if test "X$found_so" != "X"; then
13908 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
13909 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
13912 for x
in $ltrpathdirs; do
13913 if test "X$x" = "X$found_dir"; then
13918 if test -z "$haveit"; then
13919 ltrpathdirs
="$ltrpathdirs $found_dir"
13921 if test "$hardcode_direct" = yes; then
13922 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
13924 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
13925 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
13927 for x
in $rpathdirs; do
13928 if test "X$x" = "X$found_dir"; then
13933 if test -z "$haveit"; then
13934 rpathdirs
="$rpathdirs $found_dir"
13938 for x
in $LDFLAGS $LIBLZMA; do
13940 acl_save_prefix
="$prefix"
13941 prefix
="$acl_final_prefix"
13942 acl_save_exec_prefix
="$exec_prefix"
13943 exec_prefix
="$acl_final_exec_prefix"
13945 exec_prefix
="$acl_save_exec_prefix"
13946 prefix
="$acl_save_prefix"
13948 if test "X$x" = "X-L$found_dir"; then
13953 if test -z "$haveit"; then
13954 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
13956 if test "$hardcode_minus_L" != no
; then
13957 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
13959 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
13965 if test "X$found_a" != "X"; then
13966 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
13968 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
13971 additional_includedir
=
13972 case "$found_dir" in
13974 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13975 additional_includedir
="$basedir/include"
13978 if test "X$additional_includedir" != "X"; then
13979 if test "X$additional_includedir" != "X/usr/include"; then
13981 if test "X$additional_includedir" = "X/usr/local/include"; then
13982 if test -n "$GCC"; then
13984 linux
*) haveit
=yes;;
13988 if test -z "$haveit"; then
13989 for x
in $CPPFLAGS $INCLZMA; do
13991 acl_save_prefix
="$prefix"
13992 prefix
="$acl_final_prefix"
13993 acl_save_exec_prefix
="$exec_prefix"
13994 exec_prefix
="$acl_final_exec_prefix"
13996 exec_prefix
="$acl_save_exec_prefix"
13997 prefix
="$acl_save_prefix"
13999 if test "X$x" = "X-I$additional_includedir"; then
14004 if test -z "$haveit"; then
14005 if test -d "$additional_includedir"; then
14006 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
14012 if test -n "$found_la"; then
14013 save_libdir
="$libdir"
14014 case "$found_la" in
14015 */* |
*\\*) .
"$found_la" ;;
14016 *) .
"./$found_la" ;;
14018 libdir
="$save_libdir"
14019 for dep
in $dependency_libs; do
14022 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
14023 if test "X$additional_libdir" != "X/usr/lib"; then
14025 if test "X$additional_libdir" = "X/usr/local/lib"; then
14026 if test -n "$GCC"; then
14028 linux
*) haveit
=yes;;
14032 if test -z "$haveit"; then
14034 for x
in $LDFLAGS $LIBLZMA; do
14036 acl_save_prefix
="$prefix"
14037 prefix
="$acl_final_prefix"
14038 acl_save_exec_prefix
="$exec_prefix"
14039 exec_prefix
="$acl_final_exec_prefix"
14041 exec_prefix
="$acl_save_exec_prefix"
14042 prefix
="$acl_save_prefix"
14044 if test "X$x" = "X-L$additional_libdir"; then
14049 if test -z "$haveit"; then
14050 if test -d "$additional_libdir"; then
14051 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
14055 for x
in $LDFLAGS $LTLIBLZMA; do
14057 acl_save_prefix
="$prefix"
14058 prefix
="$acl_final_prefix"
14059 acl_save_exec_prefix
="$exec_prefix"
14060 exec_prefix
="$acl_final_exec_prefix"
14062 exec_prefix
="$acl_save_exec_prefix"
14063 prefix
="$acl_save_prefix"
14065 if test "X$x" = "X-L$additional_libdir"; then
14070 if test -z "$haveit"; then
14071 if test -d "$additional_libdir"; then
14072 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
14079 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
14080 if test "$enable_rpath" != no
; then
14082 for x
in $rpathdirs; do
14083 if test "X$x" = "X$dir"; then
14088 if test -z "$haveit"; then
14089 rpathdirs
="$rpathdirs $dir"
14092 for x
in $ltrpathdirs; do
14093 if test "X$x" = "X$dir"; then
14098 if test -z "$haveit"; then
14099 ltrpathdirs
="$ltrpathdirs $dir"
14104 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14107 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14110 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
14111 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
14117 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
14118 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
14124 if test "X$rpathdirs" != "X"; then
14125 if test -n "$hardcode_libdir_separator"; then
14127 for found_dir
in $rpathdirs; do
14128 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14130 acl_save_libdir
="$libdir"
14132 eval flag
=\"$hardcode_libdir_flag_spec\"
14133 libdir
="$acl_save_libdir"
14134 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
14136 for found_dir
in $rpathdirs; do
14137 acl_save_libdir
="$libdir"
14138 libdir
="$found_dir"
14139 eval flag
=\"$hardcode_libdir_flag_spec\"
14140 libdir
="$acl_save_libdir"
14141 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
14145 if test "X$ltrpathdirs" != "X"; then
14146 for found_dir
in $ltrpathdirs; do
14147 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
14152 ac_save_CPPFLAGS
="$CPPFLAGS"
14154 for element
in $INCLZMA; do
14156 for x
in $CPPFLAGS; do
14158 acl_save_prefix
="$prefix"
14159 prefix
="$acl_final_prefix"
14160 acl_save_exec_prefix
="$exec_prefix"
14161 exec_prefix
="$acl_final_exec_prefix"
14163 exec_prefix
="$acl_save_exec_prefix"
14164 prefix
="$acl_save_prefix"
14166 if test "X$x" = "X$element"; then
14171 if test -z "$haveit"; then
14172 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
14178 $as_echo_n "checking for liblzma... " >&6; }
14179 if test "${ac_cv_liblzma+set}" = set; then :
14180 $as_echo_n "(cached) " >&6
14183 ac_save_LIBS
="$LIBS"
14184 LIBS
="$LIBS $LIBLZMA"
14185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14186 /* end confdefs.h. */
14191 lzma_index_iter iter;
14192 lzma_index_iter_init (&iter, 0);
14193 lzma_mf_is_supported (LZMA_MF_HC3);
14198 if ac_fn_c_try_link
"$LINENO"; then :
14203 rm -f core conftest.err conftest.
$ac_objext \
14204 conftest
$ac_exeext conftest.
$ac_ext
14205 LIBS
="$ac_save_LIBS"
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
14209 $as_echo "$ac_cv_liblzma" >&6; }
14210 if test "$ac_cv_liblzma" = yes; then
14213 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
14216 $as_echo_n "checking how to link with liblzma... " >&6; }
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
14218 $as_echo "$LIBLZMA" >&6; }
14221 CPPFLAGS
="$ac_save_CPPFLAGS"
14231 if test "$HAVE_LIBLZMA" != yes; then
14232 if test "$with_lzma" = yes; then
14233 as_fn_error
"missing liblzma for --with-lzma" "$LINENO" 5
14239 LIBGUI
="../libgui/src/libgui.a"
14240 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
14249 *-*-cygwin* |
*-*-mingw* )
14258 if test "${enable_gdbtk}" = "yes"; then
14260 # Gdbtk must have an absolute path to srcdir in order to run
14261 # properly when not installed.
14264 GDBTK_SRC_DIR
=`pwd`
14269 # Ok, lets find the tcl configuration
14270 # First, look for one uninstalled.
14271 # the alternative search directory is invoked by --with-tcl
14274 if test x
"${no_tcl}" = x
; then
14275 # we reset no_tcl in case something fails here
14278 # Check whether --with-tcl was given.
14279 if test "${with_tcl+set}" = set; then :
14280 withval
=$with_tcl; with_tclconfig
=${withval}
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
14284 $as_echo_n "checking for Tcl configuration... " >&6; }
14285 if test "${ac_cv_c_tclconfig+set}" = set; then :
14286 $as_echo_n "(cached) " >&6
14290 # First check to see if --with-tcl was specified.
14292 *-*-cygwin*) platDir
="win" ;;
14293 *) platDir
="unix" ;;
14295 if test x
"${with_tclconfig}" != x
; then
14296 if test -f "${with_tclconfig}/tclConfig.sh" ; then
14297 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
14299 as_fn_error
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
14303 # then check for a private Tcl installation
14304 if test x
"${ac_cv_c_tclconfig}" = x
; then
14307 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14308 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
14309 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
14311 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14312 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
14313 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
14315 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14316 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
14317 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
14318 if test -f "$i/$platDir/tclConfig.sh" ; then
14319 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
14325 # on Darwin, check in Framework installation locations
14326 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
14327 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
14328 `ls -d /Library/Frameworks 2>/dev/null` \
14329 `ls -d /Network/Library/Frameworks 2>/dev/null` \
14330 `ls -d /System/Library/Frameworks 2>/dev/null` \
14332 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
14333 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
14339 # check in a few common install locations
14340 if test x
"${ac_cv_c_tclconfig}" = x
; then
14341 for i
in `ls -d ${libdir} 2>/dev/null` \
14342 `ls -d ${exec_prefix}/lib 2>/dev/null` \
14343 `ls -d ${prefix}/lib 2>/dev/null` \
14344 `ls -d /usr/local/lib 2>/dev/null` \
14345 `ls -d /usr/contrib/lib 2>/dev/null` \
14346 `ls -d /usr/lib 2>/dev/null` \
14348 if test -f "$i/tclConfig.sh" ; then
14349 ac_cv_c_tclconfig
=`(cd $i; pwd)`
14355 # check in a few other private locations
14356 if test x
"${ac_cv_c_tclconfig}" = x
; then
14359 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14360 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
14361 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
14362 if test -f "$i/$platDir/tclConfig.sh" ; then
14363 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
14372 if test x
"${ac_cv_c_tclconfig}" = x
; then
14373 TCL_BIN_DIR
="# no Tcl configs found"
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
14375 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
14378 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
14380 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
14385 # If $no_tk is nonempty, then we can't do Tk, and there is no
14386 # point to doing Tcl.
14389 # Ok, lets find the tk configuration
14390 # First, look for one uninstalled.
14391 # the alternative search directory is invoked by --with-tk
14394 if test x
"${no_tk}" = x
; then
14395 # we reset no_tk in case something fails here
14398 # Check whether --with-tk was given.
14399 if test "${with_tk+set}" = set; then :
14400 withval
=$with_tk; with_tkconfig
=${withval}
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
14404 $as_echo_n "checking for Tk configuration... " >&6; }
14405 if test "${ac_cv_c_tkconfig+set}" = set; then :
14406 $as_echo_n "(cached) " >&6
14410 # First check to see if --with-tkconfig was specified.
14411 if test x
"${with_tkconfig}" != x
; then
14412 if test -f "${with_tkconfig}/tkConfig.sh" ; then
14413 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
14415 as_fn_error
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
14419 # then check for a private Tk library
14421 *-*-cygwin*) platDir
="win" ;;
14422 *) platDir
="unix" ;;
14424 if test x
"${ac_cv_c_tkconfig}" = x
; then
14427 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14428 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
14429 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
14431 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14432 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
14433 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
14435 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14436 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
14437 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
14438 if test -f "$i/$platDir/tkConfig.sh" ; then
14439 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
14445 # on Darwin, check in Framework installation locations
14446 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
14447 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
14448 `ls -d /Library/Frameworks 2>/dev/null` \
14449 `ls -d /Network/Library/Frameworks 2>/dev/null` \
14450 `ls -d /System/Library/Frameworks 2>/dev/null` \
14452 if test -f "$i/Tk.framework/tkConfig.sh" ; then
14453 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
14459 # check in a few common install locations
14460 if test x
"${ac_cv_c_tkconfig}" = x
; then
14461 for i
in `ls -d ${libdir} 2>/dev/null` \
14462 `ls -d ${exec_prefix}/lib 2>/dev/null` \
14463 `ls -d ${prefix}/lib 2>/dev/null` \
14464 `ls -d /usr/local/lib 2>/dev/null` \
14465 `ls -d /usr/contrib/lib 2>/dev/null` \
14466 `ls -d /usr/lib 2>/dev/null` \
14468 if test -f "$i/tkConfig.sh" ; then
14469 ac_cv_c_tkconfig
=`(cd $i; pwd)`
14474 # check in a few other private locations
14475 if test x
"${ac_cv_c_tkconfig}" = x
; then
14478 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14479 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
14480 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
14481 if test -f "$i/$platDir/tkConfig.sh" ; then
14482 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
14491 if test x
"${ac_cv_c_tkconfig}" = x
; then
14492 TK_BIN_DIR
="# no Tk configs found"
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
14494 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
14497 TK_BIN_DIR
=${ac_cv_c_tkconfig}
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
14499 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
14504 if test -z "${no_tcl}" -a -z "${no_tk}"; then
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
14507 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
14509 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
14511 $as_echo "loading" >&6; }
14512 .
${TCL_BIN_DIR}/tclConfig.sh
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
14515 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
14518 # eval is required to do the TCL_DBGX substitution
14519 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
14520 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
14522 # If the TCL_BIN_DIR is the build directory (not the install directory),
14523 # then set the common variable name to the value of the build variables.
14524 # For example, the variable TCL_LIB_SPEC will be set to the value
14525 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
14526 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
14527 # installed and uninstalled version of Tcl.
14528 if test -f "${TCL_BIN_DIR}/Makefile" ; then
14529 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
14530 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
14531 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
14532 elif test "`uname -s`" = "Darwin"; then
14533 # If Tcl was built as a framework, attempt to use the libraries
14534 # from the framework at the given location so that linking works
14535 # against Tcl.framework installed in an arbitrary location.
14536 case ${TCL_DEFS} in
14538 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
14539 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
14540 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
14541 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
14542 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
14547 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
14548 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
14549 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
14555 # eval is required to do the TCL_DBGX substitution
14556 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
14557 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
14558 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
14559 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
14575 # Check for in-tree tcl
14582 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
14586 # Find Tcl private headers
14587 if test x
"${intree}" = xno
; then
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
14590 $as_echo_n "checking for Tcl private headers... " >&6; }
14592 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
14593 if test -f ${dir}/tclInt.h
; then
14597 if test x
"${private_dir}" = x
; then
14598 as_fn_error
"could not find private Tcl headers" "$LINENO" 5
14600 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
14602 $as_echo "${private_dir}" >&6; }
14605 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
14606 TCL_LIBRARY
="${TCL_LIB_SPEC}"
14609 # If building tcl in the same src tree, private headers
14610 # are not needed, but we need to be sure to use the right
14612 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
14613 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
14614 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
14622 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
14624 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
14626 $as_echo "loading" >&6; }
14627 .
${TK_BIN_DIR}/tkConfig.sh
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
14630 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
14633 # eval is required to do the TK_DBGX substitution
14634 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
14635 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
14637 # If the TK_BIN_DIR is the build directory (not the install directory),
14638 # then set the common variable name to the value of the build variables.
14639 # For example, the variable TK_LIB_SPEC will be set to the value
14640 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
14641 # instead of TK_BUILD_LIB_SPEC since it will work with both an
14642 # installed and uninstalled version of Tcl.
14643 if test -f "${TK_BIN_DIR}/Makefile" ; then
14644 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
14645 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
14646 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
14647 elif test "`uname -s`" = "Darwin"; then
14648 # If Tk was built as a framework, attempt to use the libraries
14649 # from the framework at the given location so that linking works
14650 # against Tk.framework installed in an arbitrary location.
14653 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
14654 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
14655 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
14656 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
14657 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
14662 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
14663 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
14664 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
14670 # eval is required to do the TK_DBGX substitution
14671 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
14672 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
14673 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
14674 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
14689 # Check for in-tree Tk
14691 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
14695 # Find Tk private headers
14696 if test x
"${intree}" = xno
; then
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
14699 $as_echo_n "checking for Tk private headers... " >&6; }
14701 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
14702 if test -f ${dir}/tkInt.h
; then
14706 if test x
"${private_dir}" = x
; then
14707 as_fn_error
"could not find Tk private headers" "$LINENO" 5
14709 TK_PRIVATE_INCLUDE
="-I${private_dir}"
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
14711 $as_echo "${private_dir}" >&6; }
14714 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
14715 TK_LIBRARY
=${TK_LIB_SPEC}
14718 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
14719 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
14720 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
14727 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
14729 # Include some libraries that Tcl and Tk want.
14730 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
14731 # Yes, the ordering seems wrong here. But it isn't.
14732 # TK_LIBS is the list of libraries that need to be linked
14733 # after Tcl/Tk. Note that this isn't put into LIBS. If it
14734 # were in LIBS then any link tests after this point would
14735 # try to include things like `$(LIBGUI)', which wouldn't work.
14736 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
14738 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
14739 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
14740 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
14741 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
14742 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
14743 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
14744 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
14746 if test x
$gdb_cv_os_cygwin = xyes
; then
14747 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
14748 WIN32LDAPP
="-Wl,--subsystem,console"
14749 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
14752 subdirs
="$subdirs gdbtk"
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14765 $as_echo_n "checking for X... " >&6; }
14768 # Check whether --with-x was given.
14769 if test "${with_x+set}" = set; then :
14773 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14774 if test "x$with_x" = xno
; then
14775 # The user explicitly disabled X.
14778 case $x_includes,$x_libraries in #(
14779 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
14780 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
14781 $as_echo_n "(cached) " >&6
14783 # One or both of the vars are not set, and there is no cached value.
14784 ac_x_includes
=no ac_x_libraries
=no
14785 rm -f -r conftest.dir
14786 if mkdir conftest.dir
; then
14788 cat >Imakefile
<<'_ACEOF'
14790 @echo incroot='${INCROOT}'
14792 @echo usrlibdir='${USRLIBDIR}'
14794 @echo libdir='${LIBDIR}'
14796 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
14797 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
14798 for ac_var
in incroot usrlibdir libdir
; do
14799 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14801 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14802 for ac_extension
in a so sl dylib la dll
; do
14803 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14804 test -f "$ac_im_libdir/libX11.$ac_extension"; then
14805 ac_im_usrlibdir
=$ac_im_libdir; break
14808 # Screen out bogus values from the imake configuration. They are
14809 # bogus both because they are the default anyway, and because
14810 # using them would break gcc on systems where it needs fixed includes.
14811 case $ac_im_incroot in
14812 /usr
/include
) ac_x_includes
= ;;
14813 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
14815 case $ac_im_usrlibdir in
14816 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
14817 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
14821 rm -f -r conftest.dir
14824 # Standard set of common directories for X headers.
14825 # Check X11 before X11Rn because it is often a symlink to the current release.
14839 /usr/local/X11/include
14840 /usr/local/X11R7/include
14841 /usr/local/X11R6/include
14842 /usr/local/X11R5/include
14843 /usr/local/X11R4/include
14845 /usr/local/include/X11
14846 /usr/local/include/X11R7
14847 /usr/local/include/X11R6
14848 /usr/local/include/X11R5
14849 /usr/local/include/X11R4
14853 /usr/XFree86/include/X11
14857 /usr/unsupported/include
14858 /usr/athena/include
14859 /usr/local/x11r5/include
14860 /usr/lpp/Xamples/include
14862 /usr/openwin/include
14863 /usr/openwin/share/include'
14865 if test "$ac_x_includes" = no
; then
14866 # Guess where to find include files, by looking for Xlib.h.
14867 # First, try using that file with no special directory specified.
14868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14869 /* end confdefs.h. */
14870 #include <X11/Xlib.h>
14872 if ac_fn_c_try_cpp
"$LINENO"; then :
14873 # We can compile using X headers with no special include directory.
14876 for ac_dir
in $ac_x_header_dirs; do
14877 if test -r "$ac_dir/X11/Xlib.h"; then
14878 ac_x_includes
=$ac_dir
14883 rm -f conftest.err conftest.
$ac_ext
14884 fi # $ac_x_includes = no
14886 if test "$ac_x_libraries" = no
; then
14887 # Check for the libraries.
14888 # See if we find them without any special options.
14889 # Don't add to $LIBS permanently.
14892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14893 /* end confdefs.h. */
14894 #include <X11/Xlib.h>
14903 if ac_fn_c_try_link
"$LINENO"; then :
14905 # We can link X programs with no special library path.
14909 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14911 # Don't even attempt the hair of trying to link an X program!
14912 for ac_extension
in a so sl dylib la dll
; do
14913 if test -r "$ac_dir/libX11.$ac_extension"; then
14914 ac_x_libraries
=$ac_dir
14920 rm -f core conftest.err conftest.
$ac_objext \
14921 conftest
$ac_exeext conftest.
$ac_ext
14922 fi # $ac_x_libraries = no
14924 case $ac_x_includes,$ac_x_libraries in #(
14925 no
,* |
*,no |
*\'*)
14926 # Didn't find X, or a directory has "'" in its name.
14927 ac_cv_have_x
="have_x=no";; #(
14929 # Record where we found X for the cache.
14930 ac_cv_have_x
="have_x=yes\
14931 ac_x_includes='$ac_x_includes'\
14932 ac_x_libraries='$ac_x_libraries'"
14938 eval "$ac_cv_have_x"
14941 if test "$have_x" != yes; then
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14943 $as_echo "$have_x" >&6; }
14946 # If each of the values was on the command line, it overrides each guess.
14947 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
14948 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
14949 # Update the cache value to reflect the command line values.
14950 ac_cv_have_x
="have_x=yes\
14951 ac_x_includes='$x_includes'\
14952 ac_x_libraries='$x_libraries'"
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14954 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14958 # Unlike the sim directory, whether a simulator is linked is controlled by
14959 # presence of a gdb_sim definition in the target configure.tgt entry.
14960 # This code just checks for a few cases where we'd like to ignore those
14961 # definitions, even when they're present in the '.mt' file. These cases
14962 # are when --disable-sim is specified, or if the simulator directory is
14963 # not part of the source tree.
14965 # Check whether --enable-sim was given.
14966 if test "${enable_sim+set}" = set; then :
14967 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
14968 echo "enableval = ${enableval}";
14969 case "${enableval}" in
14970 yes) ignore_sim
=false
;;
14971 no
) ignore_sim
=true
;;
14972 *) ignore_sim
=false
;;
14979 if test ! -d "${srcdir}/../sim"; then
14985 if test "${ignore_sim}" = "false"; then
14986 if test x
"${gdb_sim}" != x
; then
14988 SIM_OBS
="remote-sim.o"
14990 $as_echo "#define WITH_SIM 1" >>confdefs.h
15008 # List of host floatformats.
15010 cat >>confdefs.h
<<_ACEOF
15011 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
15015 cat >>confdefs.h
<<_ACEOF
15016 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
15020 cat >>confdefs.h
<<_ACEOF
15021 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
15025 # target_subdir is used by the testsuite to find the target libraries.
15027 if test "${host}" != "${target}"; then
15028 target_subdir
="${target_alias}/"
15033 if test "${gdb_native}" = "yes"; then
15034 host_makefile_frag
=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
15035 if test ! -f ${host_makefile_frag}; then
15036 as_fn_error
"\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
15038 frags
="$frags $host_makefile_frag"
15040 host_makefile_frag
=/dev
/null
15046 if test "${gdb_native}" = "yes"; then
15047 # We pick this up from the host configuration file (.mh) because we
15048 # do not have a native configuration Makefile fragment.
15049 nativefile
=`sed -n '
15050 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
15051 ' ${host_makefile_frag}`
15055 if test x
"${gdb_osabi}" != x
; then
15057 cat >>confdefs.h
<<_ACEOF
15058 #define GDB_OSABI_DEFAULT $gdb_osabi
15063 # Enable multi-ice-gdb-server.
15064 # Check whether --enable-multi-ice was given.
15065 if test "${enable_multi_ice+set}" = set; then :
15066 enableval
=$enable_multi_ice; case $enableval in
15069 *) as_fn_error
"bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
15073 if test "x$enable_multi_ice" = xyes
; then
15074 subdirs
="$subdirs multi-ice"
15078 # Check whether --enable-gdbserver was given.
15079 if test "${enable_gdbserver+set}" = set; then :
15080 enableval
=$enable_gdbserver; case "${enableval}" in
15082 *) as_fn_error
"bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
15085 enable_gdbserver
=auto
15089 # We only build gdbserver automatically in a native configuration, and
15090 # only if the user did not explicitly disable its build.
15091 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
15092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
15093 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
15094 if test "x$build_gdbserver" = xyes
; then
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15096 $as_echo "yes" >&6; }
15097 subdirs
="$subdirs gdbserver"
15099 gdbserver_build_enabled
=yes
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15102 $as_echo "no" >&6; }
15106 # If the user explicitly request the gdbserver to be built, verify that
15107 # we were in fact able to enable it.
15108 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
15109 as_fn_error
"Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
15112 # Check for babeltrace and babeltrace-ctf
15114 # Check whether --with-babeltrace was given.
15115 if test "${with_babeltrace+set}" = set; then :
15116 withval
=$with_babeltrace;
15118 with_babeltrace
=auto
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
15122 $as_echo_n "checking whether to use babeltrace... " >&6; }
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
15124 $as_echo "$with_babeltrace" >&6; }
15126 if test "x$with_babeltrace" = "xno"; then
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
15128 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
15130 # Append -Werror to CFLAGS so that configure can catch the warning
15131 # "assignment from incompatible pointer type", which is related to
15132 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
15133 # in GDB, while babeltrace 1.0.3 is broken.
15134 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
15135 # safe to save and restore CFLAGS here.
15136 saved_CFLAGS
=$CFLAGS
15137 CFLAGS
="$CFLAGS -Werror"
15148 acl_save_prefix
="$prefix"
15149 prefix
="$acl_final_prefix"
15150 acl_save_exec_prefix
="$exec_prefix"
15151 exec_prefix
="$acl_final_exec_prefix"
15153 eval additional_includedir
=\"$includedir\"
15154 eval additional_libdir
=\"$libdir\"
15156 exec_prefix
="$acl_save_exec_prefix"
15157 prefix
="$acl_save_prefix"
15160 # Check whether --with-libbabeltrace-prefix was given.
15161 if test "${with_libbabeltrace_prefix+set}" = set; then :
15162 withval
=$with_libbabeltrace_prefix;
15163 if test "X$withval" = "Xno"; then
15166 if test "X$withval" = "X"; then
15168 acl_save_prefix
="$prefix"
15169 prefix
="$acl_final_prefix"
15170 acl_save_exec_prefix
="$exec_prefix"
15171 exec_prefix
="$acl_final_exec_prefix"
15173 eval additional_includedir
=\"$includedir\"
15174 eval additional_libdir
=\"$libdir\"
15176 exec_prefix
="$acl_save_exec_prefix"
15177 prefix
="$acl_save_prefix"
15180 additional_includedir
="$withval/include"
15181 additional_libdir
="$withval/lib"
15192 names_already_handled
=
15193 names_next_round
='babeltrace babeltrace-ctf'
15194 while test -n "$names_next_round"; do
15195 names_this_round
="$names_next_round"
15197 for name
in $names_this_round; do
15199 for n
in $names_already_handled; do
15200 if test "$n" = "$name"; then
15201 already_handled
=yes
15205 if test -z "$already_handled"; then
15206 names_already_handled
="$names_already_handled $name"
15207 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15208 eval value
=\"\
$HAVE_LIB$uppername\"
15209 if test -n "$value"; then
15210 if test "$value" = yes; then
15211 eval value
=\"\
$LIB$uppername\"
15212 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
15213 eval value
=\"\
$LTLIB$uppername\"
15214 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
15223 if test $use_additional = yes; then
15224 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15225 found_dir
="$additional_libdir"
15226 found_so
="$additional_libdir/lib$name.$shlibext"
15227 if test -f "$additional_libdir/lib$name.la"; then
15228 found_la
="$additional_libdir/lib$name.la"
15231 if test -f "$additional_libdir/lib$name.$libext"; then
15232 found_dir
="$additional_libdir"
15233 found_a
="$additional_libdir/lib$name.$libext"
15234 if test -f "$additional_libdir/lib$name.la"; then
15235 found_la
="$additional_libdir/lib$name.la"
15240 if test "X$found_dir" = "X"; then
15241 for x
in $LDFLAGS $LTLIBBABELTRACE; do
15243 acl_save_prefix
="$prefix"
15244 prefix
="$acl_final_prefix"
15245 acl_save_exec_prefix
="$exec_prefix"
15246 exec_prefix
="$acl_final_exec_prefix"
15248 exec_prefix
="$acl_save_exec_prefix"
15249 prefix
="$acl_save_prefix"
15253 dir
=`echo "X$x" | sed -e 's/^X-L//'`
15254 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15256 found_so
="$dir/lib$name.$shlibext"
15257 if test -f "$dir/lib$name.la"; then
15258 found_la
="$dir/lib$name.la"
15261 if test -f "$dir/lib$name.$libext"; then
15263 found_a
="$dir/lib$name.$libext"
15264 if test -f "$dir/lib$name.la"; then
15265 found_la
="$dir/lib$name.la"
15271 if test "X$found_dir" != "X"; then
15276 if test "X$found_dir" != "X"; then
15277 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
15278 if test "X$found_so" != "X"; then
15279 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
15280 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
15283 for x
in $ltrpathdirs; do
15284 if test "X$x" = "X$found_dir"; then
15289 if test -z "$haveit"; then
15290 ltrpathdirs
="$ltrpathdirs $found_dir"
15292 if test "$hardcode_direct" = yes; then
15293 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
15295 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
15296 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
15298 for x
in $rpathdirs; do
15299 if test "X$x" = "X$found_dir"; then
15304 if test -z "$haveit"; then
15305 rpathdirs
="$rpathdirs $found_dir"
15309 for x
in $LDFLAGS $LIBBABELTRACE; do
15311 acl_save_prefix
="$prefix"
15312 prefix
="$acl_final_prefix"
15313 acl_save_exec_prefix
="$exec_prefix"
15314 exec_prefix
="$acl_final_exec_prefix"
15316 exec_prefix
="$acl_save_exec_prefix"
15317 prefix
="$acl_save_prefix"
15319 if test "X$x" = "X-L$found_dir"; then
15324 if test -z "$haveit"; then
15325 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
15327 if test "$hardcode_minus_L" != no
; then
15328 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
15330 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
15336 if test "X$found_a" != "X"; then
15337 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
15339 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
15342 additional_includedir
=
15343 case "$found_dir" in
15345 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15346 additional_includedir
="$basedir/include"
15349 if test "X$additional_includedir" != "X"; then
15350 if test "X$additional_includedir" != "X/usr/include"; then
15352 if test "X$additional_includedir" = "X/usr/local/include"; then
15353 if test -n "$GCC"; then
15355 linux
*) haveit
=yes;;
15359 if test -z "$haveit"; then
15360 for x
in $CPPFLAGS $INCBABELTRACE; do
15362 acl_save_prefix
="$prefix"
15363 prefix
="$acl_final_prefix"
15364 acl_save_exec_prefix
="$exec_prefix"
15365 exec_prefix
="$acl_final_exec_prefix"
15367 exec_prefix
="$acl_save_exec_prefix"
15368 prefix
="$acl_save_prefix"
15370 if test "X$x" = "X-I$additional_includedir"; then
15375 if test -z "$haveit"; then
15376 if test -d "$additional_includedir"; then
15377 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
15383 if test -n "$found_la"; then
15384 save_libdir
="$libdir"
15385 case "$found_la" in
15386 */* |
*\\*) .
"$found_la" ;;
15387 *) .
"./$found_la" ;;
15389 libdir
="$save_libdir"
15390 for dep
in $dependency_libs; do
15393 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
15394 if test "X$additional_libdir" != "X/usr/lib"; then
15396 if test "X$additional_libdir" = "X/usr/local/lib"; then
15397 if test -n "$GCC"; then
15399 linux
*) haveit
=yes;;
15403 if test -z "$haveit"; then
15405 for x
in $LDFLAGS $LIBBABELTRACE; do
15407 acl_save_prefix
="$prefix"
15408 prefix
="$acl_final_prefix"
15409 acl_save_exec_prefix
="$exec_prefix"
15410 exec_prefix
="$acl_final_exec_prefix"
15412 exec_prefix
="$acl_save_exec_prefix"
15413 prefix
="$acl_save_prefix"
15415 if test "X$x" = "X-L$additional_libdir"; then
15420 if test -z "$haveit"; then
15421 if test -d "$additional_libdir"; then
15422 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
15426 for x
in $LDFLAGS $LTLIBBABELTRACE; do
15428 acl_save_prefix
="$prefix"
15429 prefix
="$acl_final_prefix"
15430 acl_save_exec_prefix
="$exec_prefix"
15431 exec_prefix
="$acl_final_exec_prefix"
15433 exec_prefix
="$acl_save_exec_prefix"
15434 prefix
="$acl_save_prefix"
15436 if test "X$x" = "X-L$additional_libdir"; then
15441 if test -z "$haveit"; then
15442 if test -d "$additional_libdir"; then
15443 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
15450 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
15451 if test "$enable_rpath" != no
; then
15453 for x
in $rpathdirs; do
15454 if test "X$x" = "X$dir"; then
15459 if test -z "$haveit"; then
15460 rpathdirs
="$rpathdirs $dir"
15463 for x
in $ltrpathdirs; do
15464 if test "X$x" = "X$dir"; then
15469 if test -z "$haveit"; then
15470 ltrpathdirs
="$ltrpathdirs $dir"
15475 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15478 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15481 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
15482 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
15488 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
15489 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
15495 if test "X$rpathdirs" != "X"; then
15496 if test -n "$hardcode_libdir_separator"; then
15498 for found_dir
in $rpathdirs; do
15499 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15501 acl_save_libdir
="$libdir"
15503 eval flag
=\"$hardcode_libdir_flag_spec\"
15504 libdir
="$acl_save_libdir"
15505 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
15507 for found_dir
in $rpathdirs; do
15508 acl_save_libdir
="$libdir"
15509 libdir
="$found_dir"
15510 eval flag
=\"$hardcode_libdir_flag_spec\"
15511 libdir
="$acl_save_libdir"
15512 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
15516 if test "X$ltrpathdirs" != "X"; then
15517 for found_dir
in $ltrpathdirs; do
15518 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
15523 ac_save_CPPFLAGS
="$CPPFLAGS"
15525 for element
in $INCBABELTRACE; do
15527 for x
in $CPPFLAGS; do
15529 acl_save_prefix
="$prefix"
15530 prefix
="$acl_final_prefix"
15531 acl_save_exec_prefix
="$exec_prefix"
15532 exec_prefix
="$acl_final_exec_prefix"
15534 exec_prefix
="$acl_save_exec_prefix"
15535 prefix
="$acl_save_prefix"
15537 if test "X$x" = "X$element"; then
15542 if test -z "$haveit"; then
15543 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
15549 $as_echo_n "checking for libbabeltrace... " >&6; }
15550 if test "${ac_cv_libbabeltrace+set}" = set; then :
15551 $as_echo_n "(cached) " >&6
15554 ac_save_LIBS
="$LIBS"
15555 LIBS
="$LIBS $LIBBABELTRACE"
15556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15557 /* end confdefs.h. */
15558 #include <babeltrace/babeltrace.h>
15559 #include <babeltrace/ctf/events.h>
15560 #include <babeltrace/ctf/iterator.h>
15564 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
15565 struct bt_ctf_event *event = NULL;
15566 const struct bt_definition *scope;
15568 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
15569 scope = bt_ctf_get_top_level_scope (event,
15570 BT_STREAM_EVENT_HEADER);
15571 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
15577 if ac_fn_c_try_link
"$LINENO"; then :
15578 ac_cv_libbabeltrace
=yes
15580 ac_cv_libbabeltrace
=no
15582 rm -f core conftest.err conftest.
$ac_objext \
15583 conftest
$ac_exeext conftest.
$ac_ext
15584 LIBS
="$ac_save_LIBS"
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
15588 $as_echo "$ac_cv_libbabeltrace" >&6; }
15589 if test "$ac_cv_libbabeltrace" = yes; then
15590 HAVE_LIBBABELTRACE
=yes
15592 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
15594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
15595 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
15597 $as_echo "$LIBBABELTRACE" >&6; }
15599 HAVE_LIBBABELTRACE
=no
15600 CPPFLAGS
="$ac_save_CPPFLAGS"
15610 CFLAGS
=$saved_CFLAGS
15612 if test "$HAVE_LIBBABELTRACE" != yes; then
15613 if test "$with_babeltrace" = yes; then
15614 as_fn_error
"babeltrace is missing or unusable" "$LINENO" 5
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
15617 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
15622 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
15623 # to an empty version.
15629 if test "${nativefile}" != ""; then
15630 case "${nativefile}" in
15631 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
15632 * ) GDB_NM_FILE
="${nativefile}"
15634 files
="${files} ${GDB_NM_FILE}"
15635 links
="${links} nm.h"
15637 cat >>confdefs.h
<<_ACEOF
15638 #define GDB_NM_FILE "${GDB_NM_FILE}"
15644 ac_sources
="$files"
15646 while test -n "$ac_sources"; do
15647 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
15648 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
15649 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
15651 ac_config_links
="$ac_config_links $ac_config_links_1"
15657 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
15661 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
15662 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
15663 if test "x$GDB_TRANSFORM_NAME" = x
; then
15664 GDB_TRANSFORM_NAME
=gdb
15669 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
15670 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
15671 if test "x$GCORE_TRANSFORM_NAME" = x
; then
15672 GCORE_TRANSFORM_NAME
=gcore
15676 ac_config_files
="$ac_config_files gcore"
15679 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"
15681 ac_config_commands
="$ac_config_commands default"
15683 cat >confcache
<<\_ACEOF
15684 # This file is a shell script that caches the results of configure
15685 # tests run on this system so they can be shared between configure
15686 # scripts and configure runs, see configure's option --config-cache.
15687 # It is not useful on other systems. If it contains results you don't
15688 # want to keep, you may remove or edit it.
15690 # config.status only pays attention to the cache file if you give it
15691 # the --recheck option to rerun configure.
15693 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15694 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15695 # following values.
15699 # The following way of writing the cache mishandles newlines in values,
15700 # but we know of no workaround that is simple, portable, and efficient.
15701 # So, we kill variables containing newlines.
15702 # Ultrix sh set writes to stderr and can't be redirected directly,
15703 # and sets the high bit in the cache file unless we assign to the vars.
15705 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15706 eval ac_val
=\$
$ac_var
15710 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15711 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15714 _ | IFS | as_nl
) ;; #(
15715 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15716 *) { eval $ac_var=; unset $ac_var;} ;;
15722 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15723 *${as_nl}ac_space
=\
*)
15724 # `set' does not quote correctly, so add quotes: double-quote
15725 # substitution turns \\\\ into \\, and sed turns \\ into \.
15728 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15731 # `set' quotes correctly as required by POSIX, so do not add quotes.
15732 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15741 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15743 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15745 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15746 if test -w "$cache_file"; then
15747 test "x$cache_file" != "x/dev/null" &&
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15749 $as_echo "$as_me: updating cache $cache_file" >&6;}
15750 cat confcache
>$cache_file
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15753 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15758 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15759 # Let make expand exec_prefix.
15760 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15762 DEFS
=-DHAVE_CONFIG_H
15766 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15767 # 1. Remove the extension, and $U if already installed.
15768 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15769 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15770 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15771 # will be set to the directory where LIBOBJS objects are built.
15772 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15773 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15775 LIBOBJS
=$ac_libobjs
15777 LTLIBOBJS
=$ac_ltlibobjs
15780 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15781 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
15782 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15784 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
15785 as_fn_error
"conditional \"GMAKE\" was never defined.
15786 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15788 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
15789 as_fn_error
"conditional \"HAVE_PYTHON\" was never defined.
15790 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15792 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
15793 as_fn_error
"conditional \"HAVE_GUILE\" was never defined.
15794 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15798 : ${CONFIG_STATUS=./config.status}
15800 ac_clean_files_save
=$ac_clean_files
15801 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15803 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15805 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15807 # Generated by $as_me.
15808 # Run this file to recreate the current configuration.
15809 # Compiler output produced by configure, useful for debugging
15810 # configure, is in config.log if it exists.
15813 ac_cs_recheck=false
15816 SHELL=\${CONFIG_SHELL-$SHELL}
15819 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15820 ## -------------------- ##
15821 ## M4sh Initialization. ##
15822 ## -------------------- ##
15824 # Be more Bourne compatible
15825 DUALCASE
=1; export DUALCASE
# for MKS sh
15826 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15829 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15830 # is contrary to our usage. Disable this feature.
15831 alias -g '${1+"$@"}'='"$@"'
15832 setopt NO_GLOB_SUBST
15834 case `(set -o) 2>/dev/null` in #(
15846 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15847 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15848 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15849 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15850 # Prefer a ksh shell builtin over an external printf program on Solaris,
15851 # but without wasting forks for bash or zsh.
15852 if test -z "$BASH_VERSION$ZSH_VERSION" \
15853 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15854 as_echo='print
-r --'
15855 as_echo_n='print
-rn --'
15856 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15857 as_echo='printf %s
\n'
15858 as_echo_n='printf %s
'
15860 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15861 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15862 as_echo_n='/usr
/ucb
/echo -n'
15864 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15865 as_echo_n_body='eval
15869 expr "X$arg" : "X\\(.*\\)$as_nl";
15870 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15872 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15874 export as_echo_n_body
15875 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15877 export as_echo_body
15878 as_echo='sh
-c $as_echo_body as_echo
'
15881 # The user is always right.
15882 if test "${PATH_SEPARATOR+set}" != set; then
15884 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15885 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15892 # We need space, tab and new line, in precisely that order. Quoting is
15893 # there to prevent editors from complaining about space-tab.
15894 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15895 # splitting by setting IFS to empty value.)
15898 # Find who we are. Look in the path if we contain no directory separator.
15900 *[\\/]* ) as_myself=$0 ;;
15901 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15902 for as_dir in $PATH
15905 test -z "$as_dir" && as_dir=.
15906 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15912 # We did not find ourselves, most probably we were run as `sh COMMAND'
15913 # in which case we are not to be found in the path.
15914 if test "x$as_myself" = x
; then
15917 if test ! -f "$as_myself"; then
15918 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15922 # Unset variables that we do not need and which cause bugs (e.g. in
15923 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15924 # suppresses any "Segmentation fault" message there. '((' could
15925 # trigger a bug in pdksh 5.2.14.
15926 for as_var
in BASH_ENV ENV MAIL MAILPATH
15927 do eval test x\
${$as_var+set} = xset \
15928 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15941 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15944 # as_fn_error ERROR [LINENO LOG_FD]
15945 # ---------------------------------
15946 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15947 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15948 # script with status $?, using 1 if that was 0.
15951 as_status
=$?
; test $as_status -eq 0 && as_status
=1
15953 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15954 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15956 $as_echo "$as_me: error: $1" >&2
15957 as_fn_exit
$as_status
15961 # as_fn_set_status STATUS
15962 # -----------------------
15963 # Set $? to STATUS, without forking.
15964 as_fn_set_status
()
15967 } # as_fn_set_status
15969 # as_fn_exit STATUS
15970 # -----------------
15971 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15975 as_fn_set_status
$1
15981 # Portably unset VAR.
15984 { eval $1=; unset $1;}
15986 as_unset
=as_fn_unset
15987 # as_fn_append VAR VALUE
15988 # ----------------------
15989 # Append the text in VALUE to the end of the definition contained in VAR. Take
15990 # advantage of any shell optimizations that allow amortized linear growth over
15991 # repeated appends, instead of the typical quadratic growth present in naive
15993 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15994 eval 'as_fn_append ()
16005 # as_fn_arith ARG...
16006 # ------------------
16007 # Perform arithmetic evaluation on the ARGs, and store the result in the
16008 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16009 # must be portable across $(()) and expr.
16010 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
16011 eval 'as_fn_arith ()
16018 as_val
=`expr "$@" || test $? -eq 1`
16023 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16024 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16030 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16031 as_basename
=basename
16036 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16042 as_me
=`$as_basename -- "$0" ||
16043 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16044 X"$0" : 'X\(//\)$' \| \
16045 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16047 sed '/^.*\/\([^/][^/]*\)\/*$/{
16061 # Avoid depending upon Character Ranges.
16062 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16063 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16064 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16065 as_cr_digits
='0123456789'
16066 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16068 ECHO_C
= ECHO_N
= ECHO_T
=
16069 case `echo -n x` in #(((((
16071 case `echo 'xy\c'` in
16072 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16074 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16081 rm -f conf$$ conf$$.exe conf$$.
file
16082 if test -d conf$$.dir
; then
16083 rm -f conf$$.dir
/conf$$.
file
16086 mkdir conf$$.dir
2>/dev
/null
16088 if (echo >conf$$.
file) 2>/dev
/null
; then
16089 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16091 # ... but there are two gotchas:
16092 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16093 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16094 # In both cases, we have to default to `cp -p'.
16095 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16097 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16105 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16106 rmdir conf$$.dir
2>/dev
/null
16111 # Create "$as_dir" as a directory, including parents if necessary.
16116 -*) as_dir
=.
/$as_dir;;
16118 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16122 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16123 *) as_qdir
=$as_dir;;
16125 as_dirs
="'$as_qdir' $as_dirs"
16126 as_dir
=`$as_dirname -- "$as_dir" ||
16127 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16128 X"$as_dir" : 'X\(//\)[^/]' \| \
16129 X"$as_dir" : 'X\(//\)$' \| \
16130 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16131 $as_echo X"$as_dir" |
16132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16136 /^X\(\/\/\)[^/].*/{
16149 test -d "$as_dir" && break
16151 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16152 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
16156 if mkdir
-p .
2>/dev
/null
; then
16157 as_mkdir_p
='mkdir -p "$as_dir"'
16159 test -d .
/-p && rmdir .
/-p
16163 if test -x / >/dev
/null
2>&1; then
16164 as_test_x
='test -x'
16166 if ls -dL / >/dev
/null
2>&1; then
16173 if test -d "$1"; then
16179 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16180 ???[sx]*):;;*)false;;esac;fi
16184 as_executable_p
=$as_test_x
16186 # Sed expression to map a string onto a valid CPP name.
16187 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16189 # Sed expression to map a string onto a valid variable name.
16190 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16194 ## ----------------------------------- ##
16195 ## Main body of $CONFIG_STATUS script. ##
16196 ## ----------------------------------- ##
16198 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16201 # Save the log message, to keep $0 and so on meaningful, and to
16202 # report actual input values of CONFIG_FILES etc. instead of their
16203 # values after options handling.
16205 This file was extended by $as_me, which was
16206 generated by GNU Autoconf 2.64. Invocation command line was
16208 CONFIG_FILES = $CONFIG_FILES
16209 CONFIG_HEADERS = $CONFIG_HEADERS
16210 CONFIG_LINKS = $CONFIG_LINKS
16211 CONFIG_COMMANDS = $CONFIG_COMMANDS
16214 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16219 case $ac_config_files in *"
16220 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16223 case $ac_config_headers in *"
16224 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16229 # Files that config.status was made for.
16230 config_files="$ac_config_files"
16231 config_headers="$ac_config_headers"
16232 config_links="$ac_config_links"
16233 config_commands="$ac_config_commands"
16237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16239 \`$as_me' instantiates files and other configuration actions
16240 from templates according to the current configuration. Unless the files
16241 and actions are specified as TAGs, all are instantiated by default.
16243 Usage: $0 [OPTION]... [TAG]...
16245 -h, --help print this help, then exit
16246 -V, --version print version number and configuration settings, then exit
16247 -q, --quiet, --silent
16248 do not print progress messages
16249 -d, --debug don't remove temporary files
16250 --recheck update $as_me by reconfiguring in the same conditions
16251 --file=FILE[:TEMPLATE]
16252 instantiate the configuration file FILE
16253 --header=FILE[:TEMPLATE]
16254 instantiate the configuration header FILE
16256 Configuration files:
16259 Configuration headers:
16262 Configuration links:
16265 Configuration commands:
16268 Report bugs to the package provider."
16271 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16274 configured by $0, generated by GNU Autoconf 2.64,
16275 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16277 Copyright (C) 2009 Free Software Foundation, Inc.
16278 This config.status script is free software; the Free Software Foundation
16279 gives unlimited permission to copy, distribute and modify it."
16285 test -n "\$AWK" || AWK=awk
16288 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16289 # The default lists apply if the user does not specify any file.
16295 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16296 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16307 # Handling of the options.
16308 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16310 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16311 $as_echo "$ac_cs_version"; exit ;;
16312 --debug |
--debu |
--deb |
--de |
--d |
-d )
16314 --file |
--fil |
--fi |
--f )
16317 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16319 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16320 ac_need_defaults
=false
;;
16321 --header |
--heade |
--head |
--hea )
16324 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16326 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
16327 ac_need_defaults
=false
;;
16329 # Conflict between --help and --header
16330 as_fn_error
"ambiguous option: \`$1'
16331 Try \`$0 --help' for more information.";;
16332 --help |
--hel |
-h )
16333 $as_echo "$ac_cs_usage"; exit ;;
16334 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16335 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16338 # This is an error.
16339 -*) as_fn_error
"unrecognized option: \`$1'
16340 Try \`$0 --help' for more information." ;;
16342 *) as_fn_append ac_config_targets
" $1"
16343 ac_need_defaults
=false
;;
16349 ac_configure_extra_args
=
16351 if $ac_cs_silent; then
16353 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16358 if \$ac_cs_recheck; then
16359 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16361 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16362 CONFIG_SHELL='$SHELL'
16363 export CONFIG_SHELL
16368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16372 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16373 ## Running $as_me. ##
16379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16383 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16389 # Handling of arguments.
16390 for ac_config_target
in $ac_config_targets
16392 case $ac_config_target in
16393 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
16394 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
16395 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
16396 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
16397 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
16398 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16399 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
16400 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
16401 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
16402 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
16404 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16409 # If the user did not use the arguments to specify the items to instantiate,
16410 # then the envvar interface is used. Set only those that are not.
16411 # We use the long form for the default assignment because of an extremely
16412 # bizarre bug on SunOS 4.1.3.
16413 if $ac_need_defaults; then
16414 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16415 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16416 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
16417 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16420 # Have a temporary directory for convenience. Make it in the build tree
16421 # simply because there is no reason against having it here, and in addition,
16422 # creating and moving files from /tmp can sometimes cause problems.
16423 # Hook for its removal unless debugging.
16424 # Note that there is a small window in which the directory will not be cleaned:
16425 # after its creation but before its name has been assigned to `$tmp'.
16429 trap 'exit_status=$?
16430 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16432 trap 'as_fn_exit 1' 1 2 13 15
16434 # Create a (secure) tmp directory for tmp files.
16437 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16438 test -n "$tmp" && test -d "$tmp"
16441 tmp
=.
/conf$$
-$RANDOM
16442 (umask 077 && mkdir
"$tmp")
16443 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
16445 # Set up the scripts for CONFIG_FILES section.
16446 # No need to generate them if there are no CONFIG_FILES.
16447 # This happens for instance with `./config.status config.h'.
16448 if test -n "$CONFIG_FILES"; then
16450 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
16451 ac_cs_awk_getline
=:
16452 ac_cs_awk_pipe_init
=
16453 ac_cs_awk_read_file
='
16454 while ((getline aline < (F[key])) > 0)
16457 ac_cs_awk_pipe_fini
=
16459 ac_cs_awk_getline
=false
16460 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
16461 ac_cs_awk_read_file
='
16463 print "cat " F[key] " &&"
16464 '$ac_cs_awk_pipe_init
16465 # The final `:' finishes the AND list.
16466 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
16468 ac_cr
=`echo X | tr X '\015'`
16469 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16470 # But we know of no other shell where ac_cr would be empty at this
16471 # point, so we can use a bashism as a fallback.
16472 if test "x$ac_cr" = x
; then
16473 eval ac_cr
=\$
\'\\r
\'
16475 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16476 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16479 ac_cs_awk_cr
=$ac_cr
16482 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16485 # Create commands to substitute file output variables.
16487 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16488 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16489 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
16492 } >conf$
$files.sh
&&
16493 . .
/conf$
$files.sh ||
16494 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
16495 rm -f conf$
$files.sh
16498 echo "cat >conf$$subs.awk <<_ACEOF" &&
16499 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16501 } >conf$$subs.sh ||
16502 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16503 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16505 for ac_last_try in false false false false false :; do
16506 . ./conf$$subs.sh ||
16507 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16509 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16510 if test $ac_delim_n = $ac_delim_num; then
16512 elif $ac_last_try; then
16513 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
16515 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16518 rm -f conf$$subs.sh
16520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16521 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
16525 s/^/S["/; s
/!.
*/"]=/
16535 s/\(.\{148\}\).*/\1/
16537 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16542 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16549 s/\(.\{148\}\).*/\1/
16551 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16555 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16560 ' <conf$$subs.awk | sed '
16565 ' >>$CONFIG_STATUS || ac_write_fail=1
16566 rm -f conf$$subs.awk
16567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16569 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
16570 for (key in S) S_is_set[key] = 1
16572 \$ac_cs_awk_pipe_init
16576 nfields = split(line, field, "@
")
16578 len = length(field[1])
16579 for (i = 2; i < nfields; i++) {
16581 keylen = length(key)
16582 if (S_is_set[key]) {
16584 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16585 len += length(value) + length(field[++i])
16590 if (nfields == 3 && !substed) {
16592 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16593 \$ac_cs_awk_read_file
16599 \$ac_cs_awk_pipe_fini
16602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16603 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16604 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16607 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
16608 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
16611 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16612 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
16613 # trailing colons and then remove the whole line if VPATH becomes empty
16614 # (actually we leave an empty line to preserve line numbers).
16615 if test "x
$srcdir" = x.; then
16616 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16617 s/:*\$(srcdir):*/:/
16618 s/:*\${srcdir}:*/:/
16620 s/^\([^=]*=[ ]*\):*/\1/
16626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16627 fi # test -n "$CONFIG_FILES"
16629 # Set up the scripts for CONFIG_HEADERS section.
16630 # No need to generate them if there are no CONFIG_HEADERS.
16631 # This happens for instance with `./config.status Makefile'.
16632 if test -n "$CONFIG_HEADERS"; then
16633 cat >"$tmp/defines.
awk" <<\_ACAWK ||
16637 # Transform confdefs.h into an awk script `defines.awk', embedded as
16638 # here-document in config.status, that substitutes the proper values into
16639 # config.h.in to produce config.h.
16641 # Create a delimiter string that does not exist in confdefs.h, to ease
16642 # handling of long lines.
16644 for ac_last_try in false false :; do
16645 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
16646 if test -z "$ac_t"; then
16648 elif $ac_last_try; then
16649 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
16651 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16655 # For the awk script, D is an array of macro values keyed by name,
16656 # likewise P contains macro parameters if any. Preserve backslash
16657 # newline sequences.
16659 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16661 s/.\{148\}/&'"$ac_delim"'/g
16664 s/^[ ]*#[ ]*define[ ][ ]*/ /
16671 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16673 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16677 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16678 D["\
1"]=" \
3\\\\\\n
"\\/p
16680 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16685 s/.\{148\}/&'"$ac_delim"'/g
16690 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16693 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16695 ' <confdefs.h | sed '
16696 s/'"$ac_delim"'/"\\\
16697 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16700 for (key in D) D_is_set[key] = 1
16703 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16705 split(line, arg, " ")
16706 if (arg[1] == "#") {
16710 defundef
= substr
(arg
[1], 2)
16713 split(mac1
, mac2
, "(") #)
16715 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16716 if (D_is_set
[macro
]) {
16717 # Preserve the white space surrounding the "#".
16718 print prefix
"define", macro P
[macro
] D
[macro
]
16721 # Replace #undef with comments. This is necessary, for example,
16722 # in the case of _POSIX_SOURCE, which is predefined and required
16723 # on some systems where configure will not decide to define it.
16724 if (defundef
== "undef") {
16725 print
"/*", prefix defundef
, macro
, "*/"
16733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16734 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
16735 fi # test -n "$CONFIG_HEADERS"
16738 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16743 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16745 case $ac_mode$ac_tag in
16747 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16748 :[FH
]-) ac_tag
=-:-;;
16749 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16766 -) ac_f
="$tmp/stdin";;
16767 *) # Look for the file first in the build tree, then in the source tree
16768 # (if the path is not absolute). The absolute path cannot be DOS-style,
16769 # because $ac_f cannot contain `:'.
16773 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16775 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
16777 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16778 as_fn_append ac_file_inputs
" '$ac_f'"
16781 # Let's still pretend it is `configure' which instantiates (i.e., don't
16782 # use $as_me), people would be surprised to read:
16783 # /* config.h. Generated by config.status. */
16784 configure_input
='Generated from '`
16785 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16787 if test x
"$ac_file" != x-
; then
16788 configure_input
="$ac_file. $configure_input"
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16790 $as_echo "$as_me: creating $ac_file" >&6;}
16792 # Neutralize special characters interpreted by sed in replacement strings.
16793 case $configure_input in #(
16794 *\
&* |
*\|
* |
*\\* )
16795 ac_sed_conf_input
=`$as_echo "$configure_input" |
16796 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16797 *) ac_sed_conf_input
=$configure_input;;
16801 *:-:* |
*:-) cat >"$tmp/stdin" \
16802 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
16807 ac_dir
=`$as_dirname -- "$ac_file" ||
16808 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16809 X"$ac_file" : 'X\(//\)[^/]' \| \
16810 X"$ac_file" : 'X\(//\)$' \| \
16811 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16812 $as_echo X"$ac_file" |
16813 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16817 /^X\(\/\/\)[^/].*/{
16830 as_dir
="$ac_dir"; as_fn_mkdir_p
16834 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16836 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16837 # A ".." for each directory in $ac_dir_suffix.
16838 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16839 case $ac_top_builddir_sub in
16840 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16841 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16844 ac_abs_top_builddir
=$ac_pwd
16845 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16846 # for backward compatibility:
16847 ac_top_builddir
=$ac_top_build_prefix
16850 .
) # We are building in place.
16852 ac_top_srcdir
=$ac_top_builddir_sub
16853 ac_abs_top_srcdir
=$ac_pwd ;;
16854 [\\/]* | ?
:[\\/]* ) # Absolute name.
16855 ac_srcdir
=$srcdir$ac_dir_suffix;
16856 ac_top_srcdir
=$srcdir
16857 ac_abs_top_srcdir
=$srcdir ;;
16858 *) # Relative name.
16859 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16860 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16861 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16863 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16873 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
16874 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
16878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16879 # If the template does not know about datarootdir, expand it.
16880 # FIXME: This hack should be removed a few years after 2.60.
16881 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16892 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16893 *datarootdir
*) ac_datarootdir_seen
=yes;;
16894 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16896 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16899 ac_datarootdir_hack='
16900 s&@datadir@&$datadir&g
16901 s&@docdir@&$docdir&g
16902 s&@infodir@&$infodir&g
16903 s&@localedir@&$localedir&g
16904 s&@mandir@&$mandir&g
16905 s&\\\${datarootdir}&$datarootdir&g' ;;
16909 # Neutralize VPATH when `$srcdir' = `.'.
16910 # Shell code in configure.ac might set extrasub.
16911 # FIXME: do we really want to maintain this feature?
16912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16913 ac_sed_extra="$ac_vpsub
16916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16918 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16919 s|@configure_input@|
$ac_sed_conf_input|
;t t
16920 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16921 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16922 s
&@srcdir@
&$ac_srcdir&;t t
16923 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16924 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16925 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16926 s
&@builddir@
&$ac_builddir&;t t
16927 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16928 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16929 s
&@INSTALL@
&$ac_INSTALL&;t t
16930 $ac_datarootdir_hack
16932 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16933 if $ac_cs_awk_getline; then
16934 $AWK -f "$tmp/subs.
awk"
16936 $AWK -f "$tmp/subs.
awk" | $SHELL
16938 || as_fn_error "could not create
$ac_file" "$LINENO" 5
16940 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16941 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
16942 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16944 which seems to be undefined. Please make sure it is defined." >&5
16945 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16946 which seems to be undefined. Please make sure it is defined." >&2;}
16950 -) cat "$tmp/out" && rm -f "$tmp/out";;
16951 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16953 || as_fn_error "could not create $ac_file" "$LINENO" 5
16959 if test x"$ac_file" != x-; then
16961 $as_echo "/* $configure_input */" \
16962 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16963 } >"$tmp/config.h" \
16964 || as_fn_error "could not create $ac_file" "$LINENO" 5
16965 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16967 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16970 mv "$tmp/config.h" "$ac_file" \
16971 || as_fn_error "could not create $ac_file" "$LINENO" 5
16974 $as_echo "/* $configure_input */" \
16975 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16976 || as_fn_error "could not create -" "$LINENO" 5
16984 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
16987 # Prefer the file from the source tree if names are identical.
16988 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16989 ac_source=$srcdir/$ac_source
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16993 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16995 if test ! -r "$ac_source"; then
16996 as_fn_error "$ac_source: file not found" "$LINENO" 5
17000 # Try a relative symlink, then a hard link, then a copy.
17002 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17003 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17005 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17006 ln "$ac_source" "$ac_file" 2>/dev/null ||
17007 cp -p "$ac_source" "$ac_file" ||
17008 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17011 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17012 $as_echo "$as_me: executing $ac_file commands" >&6;}
17017 case $ac_file$ac_mode in
17018 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
17019 "gcore":F) chmod +x gcore ;;
17021 case x$CONFIG_HEADERS in
17022 xconfig.h:config.in)
17033 ac_clean_files=$ac_clean_files_save
17035 test $ac_write_fail = 0 ||
17036 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17039 # configure is writing to config.log, and then calls config.status.
17040 # config.status does its own redirection, appending to config.log.
17041 # Unfortunately, on DOS this fails, as config.log is still kept open
17042 # by configure, so config.status won't be able to
write to it
; its
17043 # output is simply discarded. So we exec the FD to /dev/null,
17044 # effectively closing config.log, so it can be properly (re)opened and
17045 # appended to by config.status. When coming back to configure, we
17046 # need to make the FD available again.
17047 if test "$no_create" != yes; then
17049 ac_config_status_args
=
17050 test "$silent" = yes &&
17051 ac_config_status_args
="$ac_config_status_args --quiet"
17053 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17055 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17056 # would make configure fail if this is the last instruction.
17057 $ac_cs_success || as_fn_exit $?
17061 # CONFIG_SUBDIRS section.
17063 if test "$no_recursion" != yes; then
17065 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17066 # so they do not pile up.
17067 ac_sub_configure_args
=
17069 eval "set x $ac_configure_args"
17073 if test -n "$ac_prev"; then
17078 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
17079 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
17080 ac_prev
=cache_file
;;
17081 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
17082 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
17085 --config-cache |
-C)
17087 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
17089 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
17091 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
17093 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
17095 --disable-option-checking)
17099 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17101 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
17105 # Always prepend --prefix to ensure using the same prefix
17106 # in subdir configurations.
17107 ac_arg
="--prefix=$prefix"
17109 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17111 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
17114 if test "$silent" = yes; then
17115 ac_sub_configure_args
="--silent $ac_sub_configure_args"
17118 # Always prepend --disable-option-checking to silence warnings, since
17119 # different subdirs can have different --enable and --with options.
17120 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
17123 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
17125 # Do not complain, so a configure script can configure whichever
17126 # parts of a large source tree are present.
17127 test -d "$srcdir/$ac_dir" ||
continue
17129 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17130 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17131 $as_echo "$ac_msg" >&6
17132 as_dir
="$ac_dir"; as_fn_mkdir_p
17136 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17138 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17139 # A ".." for each directory in $ac_dir_suffix.
17140 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17141 case $ac_top_builddir_sub in
17142 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17143 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17146 ac_abs_top_builddir
=$ac_pwd
17147 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17148 # for backward compatibility:
17149 ac_top_builddir
=$ac_top_build_prefix
17152 .
) # We are building in place.
17154 ac_top_srcdir
=$ac_top_builddir_sub
17155 ac_abs_top_srcdir
=$ac_pwd ;;
17156 [\\/]* | ?
:[\\/]* ) # Absolute name.
17157 ac_srcdir
=$srcdir$ac_dir_suffix;
17158 ac_top_srcdir
=$srcdir
17159 ac_abs_top_srcdir
=$srcdir ;;
17160 *) # Relative name.
17161 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17162 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17163 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17165 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17170 # Check for guested configure; otherwise get Cygnus style configure.
17171 if test -f "$ac_srcdir/configure.gnu"; then
17172 ac_sub_configure
=$ac_srcdir/configure.gnu
17173 elif test -f "$ac_srcdir/configure"; then
17174 ac_sub_configure
=$ac_srcdir/configure
17175 elif test -f "$ac_srcdir/configure.in"; then
17176 # This should be Cygnus configure.
17177 ac_sub_configure
=$ac_aux_dir/configure
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17180 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17184 # The recursion is here.
17185 if test -n "$ac_sub_configure"; then
17186 # Make the cache file name correct relative to the subdirectory.
17187 case $cache_file in
17188 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
17189 *) # Relative name.
17190 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
17193 { $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
17194 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17195 # The eval makes quoting arguments work.
17196 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17197 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17198 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17204 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17206 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}