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
601 HAVE_NATIVE_GCORE_HOST
690 READLINE_TEXI_INCFLAG
713 HAVE_NATIVE_GCORE_TARGET
740 INSTALL_STRIP_PROGRAM
769 MAINTAINER_MODE_FALSE
798 program_transform_name
809 ac_subst_files
='nat_extra_makefile_frag'
811 enable_option_checking
812 enable_maintainer_mode
815 with_separate_debug_dir
817 with_relocated_sources
819 with_auto_load_safe_path
849 enable_build_warnings
850 enable_gdb_build_warnings
860 with_libbabeltrace_prefix
862 ac_precious_vars
='build_alias
879 ac_subdirs_all
='testsuite
884 # Initialize some variables set by options.
886 ac_init_version
=false
887 ac_unrecognized_opts
=
889 # The variables have the same names as the options, with
890 # dashes changed to underlines.
898 program_transform_name
=s
,x
,x
,
906 # Installation directory options.
907 # These are left unexpanded so users can "make install exec_prefix=/foo"
908 # and all the variables that are supposed to be based on exec_prefix
909 # by default will actually change.
910 # Use braces instead of parens because sh, perl, etc. also accept them.
911 # (The list follows the same order as the GNU Coding Standards.)
912 bindir
='${exec_prefix}/bin'
913 sbindir
='${exec_prefix}/sbin'
914 libexecdir
='${exec_prefix}/libexec'
915 datarootdir
='${prefix}/share'
916 datadir
='${datarootdir}'
917 sysconfdir
='${prefix}/etc'
918 sharedstatedir
='${prefix}/com'
919 localstatedir
='${prefix}/var'
920 includedir
='${prefix}/include'
921 oldincludedir
='/usr/include'
922 docdir
='${datarootdir}/doc/${PACKAGE}'
923 infodir
='${datarootdir}/info'
928 libdir
='${exec_prefix}/lib'
929 localedir
='${datarootdir}/locale'
930 mandir
='${datarootdir}/man'
936 # If the previous option needs an argument, assign it.
937 if test -n "$ac_prev"; then
938 eval $ac_prev=\
$ac_option
944 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
948 # Accept the important Cygnus configure options, so we can diagnose typos.
950 case $ac_dashdash$ac_option in
954 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
956 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
959 -build |
--build |
--buil |
--bui |
--bu)
960 ac_prev
=build_alias
;;
961 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
962 build_alias
=$ac_optarg ;;
964 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
965 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
966 ac_prev
=cache_file
;;
967 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
968 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
969 cache_file
=$ac_optarg ;;
972 cache_file
=config.cache
;;
974 -datadir |
--datadir |
--datadi |
--datad)
976 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
977 datadir
=$ac_optarg ;;
979 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
980 |
--dataroo |
--dataro |
--datar)
981 ac_prev
=datarootdir
;;
982 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
983 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
984 datarootdir
=$ac_optarg ;;
986 -disable-* |
--disable-*)
987 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
988 # Reject names that are not valid shell variable names.
989 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
990 as_fn_error
"invalid feature name: $ac_useropt"
991 ac_useropt_orig
=$ac_useropt
992 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
993 case $ac_user_opts in
997 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
998 ac_unrecognized_sep
=', ';;
1000 eval enable_
$ac_useropt=no
;;
1002 -docdir |
--docdir |
--docdi |
--doc |
--do)
1004 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1005 docdir
=$ac_optarg ;;
1007 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1009 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1010 dvidir
=$ac_optarg ;;
1012 -enable-* |
--enable-*)
1013 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1014 # Reject names that are not valid shell variable names.
1015 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1016 as_fn_error
"invalid feature name: $ac_useropt"
1017 ac_useropt_orig
=$ac_useropt
1018 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1019 case $ac_user_opts in
1021 "enable_
$ac_useropt"
1023 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1024 ac_unrecognized_sep
=', ';;
1026 eval enable_
$ac_useropt=\
$ac_optarg ;;
1028 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1029 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1030 |
--exec |
--exe |
--ex)
1031 ac_prev
=exec_prefix
;;
1032 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1033 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1034 |
--exec=* |
--exe=* |
--ex=*)
1035 exec_prefix
=$ac_optarg ;;
1037 -gas |
--gas |
--ga |
--g)
1038 # Obsolete; use --with-gas.
1041 -help |
--help |
--hel |
--he |
-h)
1042 ac_init_help
=long
;;
1043 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1044 ac_init_help
=recursive
;;
1045 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1046 ac_init_help
=short
;;
1048 -host |
--host |
--hos |
--ho)
1049 ac_prev
=host_alias
;;
1050 -host=* |
--host=* |
--hos=* |
--ho=*)
1051 host_alias
=$ac_optarg ;;
1053 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1055 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1057 htmldir
=$ac_optarg ;;
1059 -includedir |
--includedir |
--includedi |
--included |
--include \
1060 |
--includ |
--inclu |
--incl |
--inc)
1061 ac_prev
=includedir
;;
1062 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1063 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1064 includedir
=$ac_optarg ;;
1066 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1068 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1069 infodir
=$ac_optarg ;;
1071 -libdir |
--libdir |
--libdi |
--libd)
1073 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1074 libdir
=$ac_optarg ;;
1076 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1077 |
--libexe |
--libex |
--libe)
1078 ac_prev
=libexecdir
;;
1079 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1080 |
--libexe=* |
--libex=* |
--libe=*)
1081 libexecdir
=$ac_optarg ;;
1083 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1084 ac_prev
=localedir
;;
1085 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1086 localedir
=$ac_optarg ;;
1088 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1089 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1090 ac_prev
=localstatedir
;;
1091 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1092 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1093 localstatedir
=$ac_optarg ;;
1095 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1097 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1098 mandir
=$ac_optarg ;;
1100 -nfp |
--nfp |
--nf)
1101 # Obsolete; use --without-fp.
1104 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1105 |
--no-cr |
--no-c |
-n)
1108 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1109 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1112 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1113 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1114 |
--oldin |
--oldi |
--old |
--ol |
--o)
1115 ac_prev
=oldincludedir
;;
1116 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1117 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1118 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1119 oldincludedir
=$ac_optarg ;;
1121 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1123 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1124 prefix
=$ac_optarg ;;
1126 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1127 |
--program-pre |
--program-pr |
--program-p)
1128 ac_prev
=program_prefix
;;
1129 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1130 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1131 program_prefix
=$ac_optarg ;;
1133 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1134 |
--program-suf |
--program-su |
--program-s)
1135 ac_prev
=program_suffix
;;
1136 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1137 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1138 program_suffix
=$ac_optarg ;;
1140 -program-transform-name |
--program-transform-name \
1141 |
--program-transform-nam |
--program-transform-na \
1142 |
--program-transform-n |
--program-transform- \
1143 |
--program-transform |
--program-transfor \
1144 |
--program-transfo |
--program-transf \
1145 |
--program-trans |
--program-tran \
1146 |
--progr-tra |
--program-tr |
--program-t)
1147 ac_prev
=program_transform_name
;;
1148 -program-transform-name=* |
--program-transform-name=* \
1149 |
--program-transform-nam=* |
--program-transform-na=* \
1150 |
--program-transform-n=* |
--program-transform-=* \
1151 |
--program-transform=* |
--program-transfor=* \
1152 |
--program-transfo=* |
--program-transf=* \
1153 |
--program-trans=* |
--program-tran=* \
1154 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1155 program_transform_name
=$ac_optarg ;;
1157 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1159 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1160 pdfdir
=$ac_optarg ;;
1162 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1164 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1167 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1168 |
-silent |
--silent |
--silen |
--sile |
--sil)
1171 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1173 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1175 sbindir
=$ac_optarg ;;
1177 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1178 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1179 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1181 ac_prev
=sharedstatedir
;;
1182 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1183 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1184 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1186 sharedstatedir
=$ac_optarg ;;
1188 -site |
--site |
--sit)
1190 -site=* |
--site=* |
--sit=*)
1193 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1195 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1196 srcdir
=$ac_optarg ;;
1198 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1199 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1200 ac_prev
=sysconfdir
;;
1201 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1202 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1203 sysconfdir
=$ac_optarg ;;
1205 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1206 ac_prev
=target_alias
;;
1207 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1208 target_alias
=$ac_optarg ;;
1210 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1213 -version |
--version |
--versio |
--versi |
--vers |
-V)
1214 ac_init_version
=: ;;
1217 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1220 as_fn_error
"invalid package name: $ac_useropt"
1221 ac_useropt_orig
=$ac_useropt
1222 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223 case $ac_user_opts in
1227 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1228 ac_unrecognized_sep
=', ';;
1230 eval with_
$ac_useropt=\
$ac_optarg ;;
1232 -without-* |
--without-*)
1233 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1236 as_fn_error
"invalid package name: $ac_useropt"
1237 ac_useropt_orig
=$ac_useropt
1238 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1239 case $ac_user_opts in
1243 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1244 ac_unrecognized_sep
=', ';;
1246 eval with_
$ac_useropt=no
;;
1249 # Obsolete; use --with-x.
1252 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1253 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1254 ac_prev
=x_includes
;;
1255 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1256 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1257 x_includes
=$ac_optarg ;;
1259 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1260 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1261 ac_prev
=x_libraries
;;
1262 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1263 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1264 x_libraries
=$ac_optarg ;;
1266 -*) as_fn_error
"unrecognized option: \`$ac_option'
1267 Try \`$0 --help' for more information."
1271 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1272 # Reject names that are not valid shell variable names.
1273 case $ac_envvar in #(
1274 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1275 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1277 eval $ac_envvar=\
$ac_optarg
1278 export $ac_envvar ;;
1281 # FIXME: should be removed in autoconf 3.0.
1282 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1283 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1284 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1285 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1291 if test -n "$ac_prev"; then
1292 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1293 as_fn_error
"missing argument to $ac_option"
1296 if test -n "$ac_unrecognized_opts"; then
1297 case $enable_option_checking in
1299 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1300 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1304 # Check all directory arguments for consistency.
1305 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1306 datadir sysconfdir sharedstatedir localstatedir includedir \
1307 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1308 libdir localedir mandir
1310 eval ac_val
=\$
$ac_var
1311 # Remove trailing slashes.
1314 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1315 eval $ac_var=\
$ac_val;;
1317 # Be sure to have absolute directory names.
1319 [\\/$
]* | ?
:[\\/]* ) continue;;
1320 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1322 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1325 # There might be people who depend on the old broken behavior: `$host'
1326 # used to hold the argument of --host etc.
1327 # FIXME: To remove some day.
1330 target
=$target_alias
1332 # FIXME: To remove some day.
1333 if test "x$host_alias" != x
; then
1334 if test "x$build_alias" = x
; then
1335 cross_compiling
=maybe
1336 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1337 If a cross compiler is detected then cross compile mode will be used." >&2
1338 elif test "x$build_alias" != "x$host_alias"; then
1344 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1346 test "$silent" = yes && exec 6>/dev
/null
1349 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1350 ac_ls_di
=`ls -di .` &&
1351 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1352 as_fn_error
"working directory cannot be determined"
1353 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1354 as_fn_error
"pwd does not report name of working directory"
1357 # Find the source files, if location was not specified.
1358 if test -z "$srcdir"; then
1359 ac_srcdir_defaulted
=yes
1360 # Try the directory containing this script, then the parent directory.
1361 ac_confdir
=`$as_dirname -- "$as_myself" ||
1362 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1363 X"$as_myself" : 'X\(//\)[^/]' \| \
1364 X"$as_myself" : 'X\(//\)$' \| \
1365 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1366 $as_echo X"$as_myself" |
1367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1385 if test ! -r "$srcdir/$ac_unique_file"; then
1389 ac_srcdir_defaulted
=no
1391 if test ! -r "$srcdir/$ac_unique_file"; then
1392 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1393 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1395 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1397 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1399 # When building in place, set srcdir=.
1400 if test "$ac_abs_confdir" = "$ac_pwd"; then
1403 # Remove unnecessary trailing slashes from srcdir.
1404 # Double slashes in file names in object file debugging info
1405 # mess up M-x gdb in Emacs.
1407 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1409 for ac_var
in $ac_precious_vars; do
1410 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1411 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1412 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1413 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1417 # Report the --help message.
1419 if test "$ac_init_help" = "long"; then
1420 # Omit some internal or obsolete options to make the list less imposing.
1421 # This message is too long to be a string in the A/UX 3.1 sh.
1423 \`configure' configures this package to adapt to many kinds of systems.
1425 Usage: $0 [OPTION]... [VAR=VALUE]...
1427 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1428 VAR=VALUE. See below for descriptions of some of the useful variables.
1430 Defaults for the options are specified in brackets.
1433 -h, --help display this help and exit
1434 --help=short display options specific to this package
1435 --help=recursive display the short help of all the included packages
1436 -V, --version display version information and exit
1437 -q, --quiet, --silent do not print \`checking...' messages
1438 --cache-file=FILE cache test results in FILE [disabled]
1439 -C, --config-cache alias for \`--cache-file=config.cache'
1440 -n, --no-create do not create output files
1441 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1443 Installation directories:
1444 --prefix=PREFIX install architecture-independent files in PREFIX
1445 [$ac_default_prefix]
1446 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1449 By default, \`make install' will install all the files in
1450 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1451 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1452 for instance \`--prefix=\$HOME'.
1454 For better control, use the options below.
1456 Fine tuning of the installation directories:
1457 --bindir=DIR user executables [EPREFIX/bin]
1458 --sbindir=DIR system admin executables [EPREFIX/sbin]
1459 --libexecdir=DIR program executables [EPREFIX/libexec]
1460 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1461 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1462 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1463 --libdir=DIR object code libraries [EPREFIX/lib]
1464 --includedir=DIR C header files [PREFIX/include]
1465 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1466 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1467 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1468 --infodir=DIR info documentation [DATAROOTDIR/info]
1469 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1470 --mandir=DIR man documentation [DATAROOTDIR/man]
1471 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1472 --htmldir=DIR html documentation [DOCDIR]
1473 --dvidir=DIR dvi documentation [DOCDIR]
1474 --pdfdir=DIR pdf documentation [DOCDIR]
1475 --psdir=DIR ps documentation [DOCDIR]
1481 --program-prefix=PREFIX prepend PREFIX to installed program names
1482 --program-suffix=SUFFIX append SUFFIX to installed program names
1483 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1486 --x-includes=DIR X include files are
in DIR
1487 --x-libraries=DIR X library files are
in DIR
1490 --build=BUILD configure
for building on BUILD
[guessed
]
1491 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1492 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1496 if test -n "$ac_init_help"; then
1501 --disable-option-checking ignore unrecognized
--enable/--with options
1502 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1503 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1504 --enable-maintainer-mode enable make rules and dependencies not useful
1505 (and sometimes confusing
) to the casual installer
1506 --enable-plugins Enable support
for plugins
1507 --disable-largefile omit support
for large files
1508 --enable-targets=TARGETS
1509 alternative target configurations
1510 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1511 --disable-gdbcli disable command-line interface
(CLI
)
1512 --disable-gdbmi disable machine-interface
(MI
)
1513 --enable-tui enable full-screen terminal user interface
(TUI
)
1514 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1515 --enable-profiling enable profiling of GDB
1516 --disable-rpath do not hardcode runtime library paths
1517 --enable-libmcheck Try linking with
-lmcheck if available
1518 --enable-werror treat compile warnings as errors
1519 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1520 --enable-gdb-build-warnings
1521 enable GDB specific build-time compiler warnings
if
1523 --enable-sim link gdb with simulator
1524 --enable-multi-ice build the multi-ice-gdb-server
1525 --enable-gdbserver automatically build gdbserver
(yes
/no
/auto
, default
1529 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1530 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1531 --with-separate-debug-dir=PATH
1532 look for global separate debug info
in this path
1534 --with-gdb-datadir=PATH
look for global separate data files
in this path
1536 --with-relocated-sources=PATH
1537 automatically relocate this path
for source files
1538 --with-auto-load-dir=PATH
1539 directories from
which to load auto-loaded scripts
1540 [$debugdir:$datadir/auto-load
]
1541 --with-auto-load-safe-path=PATH
1542 directories safe to hold auto-loaded files
1543 [--with-auto-load-dir]
1544 --without-auto-load-safe-path
1545 do not restrict auto-loaded files locations
1546 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1547 --with-curses use the curses library instead of the termcap
1549 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1550 --with-bugurl=URL Direct users to URL to report a bug
1551 --with-system-zlib use installed libz
1552 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1553 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1554 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1555 --with-iconv-bin=PATH specify where to find the iconv program
1556 --with-system-readline use installed readline library
1557 --with-jit-reader-dir=PATH
1558 directory to load the JIT readers from
1559 --with-expat include expat support (auto/yes/no)
1560 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1561 --without-libexpat-prefix don't search
for libexpat
in includedir and libdir
1562 --with-python[=PYTHON
] include python support
1563 (auto
/yes
/no
/<python-program
>)
1564 --with-guile[=GUILE
] include guile support
1565 (auto
/yes
/no
/<guile-version
>/<pkg-config-program
>)
1566 --with-intel-pt include Intel Processor Trace support
(auto
/yes
/no
)
1567 --with-libipt-prefix[=DIR
] search
for libipt
in DIR
/include and DIR
/lib
1568 --without-libipt-prefix don
't search for libipt in includedir and libdir
1569 --without-included-regex
1570 don't use included regex
; this is the default on
1571 systems with version
2 of the GNU C library
(use
1572 with caution on other system
)
1573 --with-sysroot[=DIR
] search
for usr
/lib et al within DIR
1574 --with-system-gdbinit=PATH
1575 automatically load a system-wide gdbinit
file
1576 --with-lzma support lzma compression
(auto
/yes
/no
)
1577 --with-liblzma-prefix[=DIR
] search
for liblzma
in DIR
/include and DIR
/lib
1578 --without-liblzma-prefix don
't search for liblzma in includedir and libdir
1579 --with-tcl directory containing tcl configuration (tclConfig.sh)
1580 --with-tk directory containing tk configuration (tkConfig.sh)
1581 --with-x use the X Window System
1582 --with-babeltrace include babeltrace support (auto/yes/no)
1583 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1584 --without-libbabeltrace-prefix don't search
for libbabeltrace
in includedir and libdir
1586 Some influential environment variables
:
1587 CC C compiler
command
1588 CFLAGS C compiler flags
1589 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1590 nonstandard directory
<lib dir
>
1591 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1592 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1593 you have headers
in a nonstandard directory
<include dir
>
1594 CXX C
++ compiler
command
1595 CXXFLAGS C
++ compiler flags
1597 MAKEINFO Parent configure detects
if it is of sufficient version.
1599 Parameters
for MAKEINFO.
1600 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1601 the first program found out of: `bison
-y', `byacc', `yacc'.
1602 YFLAGS The list of arguments that will be passed by default to $YACC.
1603 This script will default YFLAGS to the empty string to avoid a
1604 default value of `-d' given by some make applications.
1605 XMKMF Path to xmkmf, Makefile generator for X Window System
1607 Use these variables to override the choices made by `configure' or to
help
1608 it to
find libraries and programs with nonstandard names
/locations.
1610 Report bugs to the package provider.
1615 if test "$ac_init_help" = "recursive"; then
1616 # If there are subdirs, report their specific --help.
1617 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1618 test -d "$ac_dir" ||
1619 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1624 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1626 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1627 # A ".." for each directory in $ac_dir_suffix.
1628 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1629 case $ac_top_builddir_sub in
1630 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1631 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1634 ac_abs_top_builddir
=$ac_pwd
1635 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1636 # for backward compatibility:
1637 ac_top_builddir
=$ac_top_build_prefix
1640 .
) # We are building in place.
1642 ac_top_srcdir
=$ac_top_builddir_sub
1643 ac_abs_top_srcdir
=$ac_pwd ;;
1644 [\\/]* | ?
:[\\/]* ) # Absolute name.
1645 ac_srcdir
=$srcdir$ac_dir_suffix;
1646 ac_top_srcdir
=$srcdir
1647 ac_abs_top_srcdir
=$srcdir ;;
1649 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1650 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1651 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1653 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1655 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1656 # Check for guested configure.
1657 if test -f "$ac_srcdir/configure.gnu"; then
1659 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1660 elif test -f "$ac_srcdir/configure"; then
1662 $SHELL "$ac_srcdir/configure" --help=recursive
1664 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1666 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1670 test -n "$ac_init_help" && exit $ac_status
1671 if $ac_init_version; then
1674 generated by GNU Autoconf
2.64
1676 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1677 This configure
script is free software
; the Free Software Foundation
1678 gives unlimited permission to copy
, distribute and modify it.
1683 ## ------------------------ ##
1684 ## Autoconf initialization. ##
1685 ## ------------------------ ##
1687 # ac_fn_c_try_compile LINENO
1688 # --------------------------
1689 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1690 ac_fn_c_try_compile
()
1692 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1693 rm -f conftest.
$ac_objext
1694 if { { ac_try
="$ac_compile"
1696 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_compile") 2>conftest.err
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } && {
1710 test -z "$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1712 } && test -s conftest.$ac_objext; then :
1715 $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1720 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1723 } # ac_fn_c_try_compile
1725 # ac_fn_cxx_try_compile LINENO
1726 # ----------------------------
1727 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1728 ac_fn_cxx_try_compile ()
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 rm -f conftest.$ac_objext
1732 if { { ac_try="$ac_compile"
1734 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1735 *) ac_try_echo
=$ac_try;;
1737 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_compile") 2>conftest.err
1741 if test -s conftest.err
; then
1742 grep -v '^ *+' conftest.err
>conftest.er1
1743 cat conftest.er1
>&5
1744 mv -f conftest.er1 conftest.err
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } && {
1748 test -z "$ac_cxx_werror_flag" ||
1749 test ! -s conftest.err
1750 } && test -s conftest.
$ac_objext; then :
1753 $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.
$ac_ext >&5
1758 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1761 } # ac_fn_cxx_try_compile
1763 # ac_fn_c_try_cpp LINENO
1764 # ----------------------
1765 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1768 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1769 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1771 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } >/dev/null && {
1785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1790 $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1795 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1800 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1801 # -------------------------------------------------------
1802 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1803 # the include files in INCLUDES and setting the cache variable VAR
1805 ac_fn_c_check_header_mongrel ()
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810 $as_echo_n "checking for $2... " >&6; }
1811 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1812 $as_echo_n "(cached) " >&6
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 $as_echo "$ac_res" >&6; }
1818 # Is the header compilable?
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1820 $as_echo_n "checking $2 usability... " >&6; }
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1826 if ac_fn_c_try_compile "$LINENO"; then :
1827 ac_header_compiler=yes
1829 ac_header_compiler=no
1831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1833 $as_echo "$ac_header_compiler" >&6; }
1835 # Is the header present?
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1837 $as_echo_n "checking $2 presence... " >&6; }
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h. */
1842 if ac_fn_c_try_cpp "$LINENO"; then :
1843 ac_header_preproc=yes
1845 ac_header_preproc=no
1847 rm -f conftest.err conftest.$ac_ext
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1849 $as_echo "$ac_header_preproc" >&6; }
1851 # So? What about this header?
1852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1855 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1857 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1861 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1863 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1865 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1867 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1869 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1873 $as_echo_n "checking for $2... " >&6; }
1874 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1875 $as_echo_n "(cached) " >&6
1877 eval "$3=\$ac_header_compiler"
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1881 $as_echo "$ac_res" >&6; }
1883 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1885 } # ac_fn_c_check_header_mongrel
1887 # ac_fn_c_try_run LINENO
1888 # ----------------------
1889 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1890 # that executables *can* be run.
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 if { { ac_try="$ac_link"
1896 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1897 *) ac_try_echo
=$ac_try;;
1899 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900 $as_echo "$ac_try_echo"; } >&5
1901 (eval "$ac_link") 2>&5
1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1905 { { case "(($ac_try" in
1906 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1907 *) ac_try_echo=$ac_try;;
1909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910 $as_echo "$ac_try_echo"; } >&5
1911 (eval "$ac_try") 2>&5
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; }; }; then :
1917 $as_echo "$as_me: program exited with status $ac_status" >&5
1918 $as_echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.$ac_ext >&5
1921 ac_retval=$ac_status
1923 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1924 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1929 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1930 # -------------------------------------------------------
1931 # Tests whether HEADER exists and can be compiled using the include files in
1932 # INCLUDES, setting the cache variable VAR accordingly.
1933 ac_fn_c_check_header_compile ()
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1937 $as_echo_n "checking for $2... " >&6; }
1938 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1939 $as_echo_n "(cached) " >&6
1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h. */
1946 if ac_fn_c_try_compile "$LINENO"; then :
1951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955 $as_echo "$ac_res" >&6; }
1956 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1958 } # ac_fn_c_check_header_compile
1960 # ac_fn_c_try_link LINENO
1961 # -----------------------
1962 # Try to link conftest.$ac_ext, and return whether this succeeded.
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 rm -f conftest.$ac_objext conftest$ac_exeext
1967 if { { ac_try="$ac_link"
1969 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1970 *) ac_try_echo
=$ac_try;;
1972 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1973 $as_echo "$ac_try_echo"; } >&5
1974 (eval "$ac_link") 2>conftest.err
1976 if test -s conftest.err
; then
1977 grep -v '^ *+' conftest.err
>conftest.er1
1978 cat conftest.er1
>&5
1979 mv -f conftest.er1 conftest.err
1981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1982 test $ac_status = 0; } && {
1983 test -z "$ac_c_werror_flag" ||
1984 test ! -s conftest.err
1985 } && test -s conftest
$ac_exeext && {
1986 test "$cross_compiling" = yes ||
1987 $as_test_x conftest
$ac_exeext
1991 $as_echo "$as_me: failed program was:" >&5
1992 sed 's/^/| /' conftest.
$ac_ext >&5
1996 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1997 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1998 # interfere with the next link command; also delete a directory that is
1999 # left behind by Apple's compiler. We do this before executing the actions.
2000 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2001 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2004 } # ac_fn_c_try_link
2006 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2007 # --------------------------------------------
2008 # Tries to find the compile-time value of EXPR in a program that includes
2009 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2011 ac_fn_c_compute_int
()
2013 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2014 if test "$cross_compiling" = yes; then
2015 # Depending upon the size, compute the lo and hi bounds.
2016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2022 static int test_array [1 - 2 * !(($2) >= 0)];
2029 if ac_fn_c_try_compile
"$LINENO"; then :
2032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2038 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2045 if ac_fn_c_try_compile
"$LINENO"; then :
2046 ac_hi
=$ac_mid; break
2048 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2049 if test $ac_lo -le $ac_mid; then
2053 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2055 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h. */
2064 static int test_array [1 - 2 * !(($2) < 0)];
2071 if ac_fn_c_try_compile
"$LINENO"; then :
2074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2075 /* end confdefs.h. */
2080 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2087 if ac_fn_c_try_compile
"$LINENO"; then :
2088 ac_lo
=$ac_mid; break
2090 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2091 if test $ac_mid -le $ac_hi; then
2095 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2104 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2105 # Binary search between lo and hi bounds.
2106 while test "x$ac_lo" != "x$ac_hi"; do
2107 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2114 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2121 if ac_fn_c_try_compile
"$LINENO"; then :
2124 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2129 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2136 static long int longval () { return $2; }
2137 static unsigned long int ulongval () { return $2; }
2144 FILE *f = fopen ("conftest.val", "w");
2149 long int i = longval ();
2152 fprintf (f, "%ld", i);
2156 unsigned long int i = ulongval ();
2159 fprintf (f, "%lu", i);
2161 /* Do not output a trailing newline, as this causes \r\n confusion
2162 on some platforms. */
2163 return ferror (f) || fclose (f) != 0;
2169 if ac_fn_c_try_run
"$LINENO"; then :
2170 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2174 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2175 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2179 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2182 } # ac_fn_c_compute_int
2184 # ac_fn_c_check_func LINENO FUNC VAR
2185 # ----------------------------------
2186 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2187 ac_fn_c_check_func
()
2189 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2191 $as_echo_n "checking for $2... " >&6; }
2192 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2193 $as_echo_n "(cached) " >&6
2195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2196 /* end confdefs.h. */
2197 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2199 #define $2 innocuous_$2
2201 /* System header to define __stub macros and hopefully few prototypes,
2202 which can conflict with char $2 (); below.
2203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2204 <limits.h> exists even on freestanding compilers. */
2207 # include <limits.h>
2209 # include <assert.h>
2214 /* Override any GCC internal prototype to avoid an error.
2215 Use char because int might match the return type of a GCC
2216 builtin and then its argument prototype would still apply. */
2221 /* The GNU C library defines this for functions which it implements
2222 to always fail with ENOSYS. Some functions are actually named
2223 something starting with __ and the normal name is an alias. */
2224 #if defined __stub_$2 || defined __stub___$2
2236 if ac_fn_c_try_link
"$LINENO"; then :
2241 rm -f core conftest.err conftest.
$ac_objext \
2242 conftest
$ac_exeext conftest.
$ac_ext
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2246 $as_echo "$ac_res" >&6; }
2247 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2249 } # ac_fn_c_check_func
2251 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2252 # -------------------------------------------
2253 # Tests whether TYPE exists after having included INCLUDES, setting cache
2254 # variable VAR accordingly.
2255 ac_fn_c_check_type
()
2257 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2259 $as_echo_n "checking for $2... " >&6; }
2260 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2261 $as_echo_n "(cached) " >&6
2264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h. */
2276 if ac_fn_c_try_compile
"$LINENO"; then :
2277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2278 /* end confdefs.h. */
2289 if ac_fn_c_try_compile
"$LINENO"; then :
2294 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2300 $as_echo "$ac_res" >&6; }
2301 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2303 } # ac_fn_c_check_type
2305 # ac_fn_c_check_decl LINENO SYMBOL VAR
2306 # ------------------------------------
2307 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2308 ac_fn_c_check_decl
()
2310 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2311 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2312 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2314 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2315 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2316 $as_echo_n "(cached) " >&6
2318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2319 /* end confdefs.h. */
2324 #ifndef $as_decl_name
2326 (void) $as_decl_use;
2328 (void) $as_decl_name;
2336 if ac_fn_c_try_compile
"$LINENO"; then :
2341 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2345 $as_echo "$ac_res" >&6; }
2346 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2348 } # ac_fn_c_check_decl
2350 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2351 # ----------------------------------------------------
2352 # Tries to find if the field MEMBER exists in type AGGR, after including
2353 # INCLUDES, setting cache variable VAR accordingly.
2354 ac_fn_c_check_member
()
2356 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2358 $as_echo_n "checking for $2.$3... " >&6; }
2359 if { as_var
=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2360 $as_echo_n "(cached) " >&6
2362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2363 /* end confdefs.h. */
2375 if ac_fn_c_try_compile
"$LINENO"; then :
2378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2379 /* end confdefs.h. */
2385 if (sizeof ac_aggr.$3)
2391 if ac_fn_c_try_compile
"$LINENO"; then :
2396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2398 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2402 $as_echo "$ac_res" >&6; }
2403 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2405 } # ac_fn_c_check_member
2406 cat >config.log
<<_ACEOF
2407 This file contains any messages produced by compilers while
2408 running configure, to aid debugging if configure makes a mistake.
2410 It was created by $as_me, which was
2411 generated by GNU Autoconf 2.64. Invocation command line was
2423 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2424 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2425 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2426 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2427 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2429 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2430 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2432 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2433 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2434 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2435 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2436 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2437 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2438 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2442 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2446 test -z "$as_dir" && as_dir
=.
2447 $as_echo "PATH: $as_dir"
2463 # Keep a trace of the command line.
2464 # Strip out --no-create and --no-recursion so they do not pile up.
2465 # Strip out --silent because we don't want to record it for future runs.
2466 # Also quote any args containing shell meta-characters.
2467 # Make two passes to allow for proper duplicate-argument suppression.
2471 ac_must_keep_next
=false
2477 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2478 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2479 |
-silent |
--silent |
--silen |
--sile |
--sil)
2482 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2485 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2487 as_fn_append ac_configure_args1
" '$ac_arg'"
2488 if test $ac_must_keep_next = true
; then
2489 ac_must_keep_next
=false
# Got value, back to normal.
2492 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2493 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2494 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2495 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2496 case "$ac_configure_args0 " in
2497 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2500 -* ) ac_must_keep_next
=true
;;
2503 as_fn_append ac_configure_args
" '$ac_arg'"
2508 { ac_configure_args0
=; unset ac_configure_args0
;}
2509 { ac_configure_args1
=; unset ac_configure_args1
;}
2511 # When interrupted or exit'd, cleanup temporary files, and complete
2512 # config.log. We remove comments because anyway the quotes in there
2513 # would cause problems or look ugly.
2514 # WARNING: Use '\'' to represent an apostrophe within the trap.
2515 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2516 trap 'exit_status=$?
2517 # Save into config.log some information that might help in debugging.
2522 ## ---------------- ##
2523 ## Cache variables. ##
2524 ## ---------------- ##
2527 # The following way of writing the cache mishandles newlines in values,
2529 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2530 eval ac_val=\$$ac_var
2534 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2535 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2538 _ | IFS | as_nl) ;; #(
2539 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2540 *) { eval $ac_var=; unset $ac_var;} ;;
2545 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2546 *${as_nl}ac_space=\ *)
2548 "s/'\''/'\''\\\\'\'''\''/g;
2549 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2552 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2560 ## ----------------- ##
2561 ## Output variables. ##
2562 ## ----------------- ##
2565 for ac_var in $ac_subst_vars
2567 eval ac_val=\$$ac_var
2569 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2571 $as_echo "$ac_var='\''$ac_val'\''"
2575 if test -n "$ac_subst_files"; then
2577 ## ------------------- ##
2578 ## File substitutions. ##
2579 ## ------------------- ##
2582 for ac_var
in $ac_subst_files
2584 eval ac_val
=\$
$ac_var
2586 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2588 $as_echo "$ac_var='\''$ac_val'\''"
2593 if test -s confdefs.h; then
2603 test "$ac_signal" != 0 &&
2604 $as_echo "$as_me: caught signal $ac_signal"
2605 $as_echo "$as_me: exit $exit_status"
2607 rm -f core *.core core.conftest.* &&
2608 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2611 for ac_signal
in 1 2 13 15; do
2612 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2616 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2617 rm -f -r conftest
* confdefs.h
2619 $as_echo "/* confdefs.h */" > confdefs.h
2621 # Predefined preprocessor variables.
2623 cat >>confdefs.h
<<_ACEOF
2624 #define PACKAGE_NAME "$PACKAGE_NAME"
2627 cat >>confdefs.h
<<_ACEOF
2628 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2631 cat >>confdefs.h
<<_ACEOF
2632 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2635 cat >>confdefs.h
<<_ACEOF
2636 #define PACKAGE_STRING "$PACKAGE_STRING"
2639 cat >>confdefs.h
<<_ACEOF
2640 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2643 cat >>confdefs.h
<<_ACEOF
2644 #define PACKAGE_URL "$PACKAGE_URL"
2648 # Let the site file select an alternate cache file if it wants to.
2649 # Prefer an explicitly selected file to automatically selected ones.
2652 if test -n "$CONFIG_SITE"; then
2653 ac_site_file1
=$CONFIG_SITE
2654 elif test "x$prefix" != xNONE
; then
2655 ac_site_file1
=$prefix/share
/config.site
2656 ac_site_file2
=$prefix/etc
/config.site
2658 ac_site_file1
=$ac_default_prefix/share
/config.site
2659 ac_site_file2
=$ac_default_prefix/etc
/config.site
2661 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2663 test "x$ac_site_file" = xNONE
&& continue
2664 if test -r "$ac_site_file"; then
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2666 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2667 sed 's/^/| /' "$ac_site_file" >&5
2672 if test -r "$cache_file"; then
2673 # Some versions of bash will fail to source /dev/null (special
2674 # files actually), so we avoid doing that.
2675 if test -f "$cache_file"; then
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2677 $as_echo "$as_me: loading cache $cache_file" >&6;}
2679 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2680 *) .
"./$cache_file";;
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2685 $as_echo "$as_me: creating cache $cache_file" >&6;}
2689 # Check that the precious variables saved in the cache have kept the same
2691 ac_cache_corrupted
=false
2692 for ac_var
in $ac_precious_vars; do
2693 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2694 eval ac_new_set
=\
$ac_env_${ac_var}_set
2695 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2696 eval ac_new_val
=\
$ac_env_${ac_var}_value
2697 case $ac_old_set,$ac_new_set in
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2700 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2701 ac_cache_corrupted
=: ;;
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2704 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2705 ac_cache_corrupted
=: ;;
2708 if test "x$ac_old_val" != "x$ac_new_val"; then
2709 # differences in whitespace do not lead to failure.
2710 ac_old_val_w
=`echo x $ac_old_val`
2711 ac_new_val_w
=`echo x $ac_new_val`
2712 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2714 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2715 ac_cache_corrupted
=:
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2718 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2719 eval $ac_var=\
$ac_old_val
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2722 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2724 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2727 # Pass precious variables to config.status.
2728 if test "$ac_new_set" = set; then
2730 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2731 *) ac_arg
=$ac_var=$ac_new_val ;;
2733 case " $ac_configure_args " in
2734 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2735 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2739 if $ac_cache_corrupted; then
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2743 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2744 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2746 ## -------------------- ##
2747 ## Main body of script. ##
2748 ## -------------------- ##
2751 ac_cpp
='$CPP $CPPFLAGS'
2752 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2753 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2754 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2760 ac_config_headers
="$ac_config_headers config.h:config.in"
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2764 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2765 # Check whether --enable-maintainer-mode was given.
2766 if test "${enable_maintainer_mode+set}" = set; then :
2767 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2769 USE_MAINTAINER_MODE
=no
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2773 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2774 if test $USE_MAINTAINER_MODE = yes; then
2775 MAINTAINER_MODE_TRUE
=
2776 MAINTAINER_MODE_FALSE
='#'
2778 MAINTAINER_MODE_TRUE
='#'
2779 MAINTAINER_MODE_FALSE
=
2782 MAINT
=$MAINTAINER_MODE_TRUE
2786 # Set the 'development' global.
2787 .
$srcdir/..
/bfd
/development.sh
2790 ac_cpp
='$CPP $CPPFLAGS'
2791 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2792 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2793 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2794 if test -n "$ac_tool_prefix"; then
2795 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2796 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2798 $as_echo_n "checking for $ac_word... " >&6; }
2799 if test "${ac_cv_prog_CC+set}" = set; then :
2800 $as_echo_n "(cached) " >&6
2802 if test -n "$CC"; then
2803 ac_cv_prog_CC
="$CC" # Let the user override the test.
2805 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2809 test -z "$as_dir" && as_dir
=.
2810 for ac_exec_ext
in '' $ac_executable_extensions; do
2811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2812 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 if test -n "$CC"; then
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2825 $as_echo "$CC" >&6; }
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2828 $as_echo "no" >&6; }
2833 if test -z "$ac_cv_prog_CC"; then
2835 # Extract the first word of "gcc", so it can be a program name with args.
2836 set dummy gcc
; ac_word
=$2
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2838 $as_echo_n "checking for $ac_word... " >&6; }
2839 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2840 $as_echo_n "(cached) " >&6
2842 if test -n "$ac_ct_CC"; then
2843 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2845 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2849 test -z "$as_dir" && as_dir
=.
2850 for ac_exec_ext
in '' $ac_executable_extensions; do
2851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2852 ac_cv_prog_ac_ct_CC
="gcc"
2853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2863 if test -n "$ac_ct_CC"; then
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2865 $as_echo "$ac_ct_CC" >&6; }
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868 $as_echo "no" >&6; }
2871 if test "x$ac_ct_CC" = x
; then
2874 case $cross_compiling:$ac_tool_warned in
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2878 ac_tool_warned
=yes ;;
2886 if test -z "$CC"; then
2887 if test -n "$ac_tool_prefix"; then
2888 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2889 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2891 $as_echo_n "checking for $ac_word... " >&6; }
2892 if test "${ac_cv_prog_CC+set}" = set; then :
2893 $as_echo_n "(cached) " >&6
2895 if test -n "$CC"; then
2896 ac_cv_prog_CC
="$CC" # Let the user override the test.
2898 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2902 test -z "$as_dir" && as_dir
=.
2903 for ac_exec_ext
in '' $ac_executable_extensions; do
2904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2905 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2916 if test -n "$CC"; then
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2918 $as_echo "$CC" >&6; }
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921 $as_echo "no" >&6; }
2927 if test -z "$CC"; then
2928 # Extract the first word of "cc", so it can be a program name with args.
2929 set dummy cc
; ac_word
=$2
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931 $as_echo_n "checking for $ac_word... " >&6; }
2932 if test "${ac_cv_prog_CC+set}" = set; then :
2933 $as_echo_n "(cached) " >&6
2935 if test -n "$CC"; then
2936 ac_cv_prog_CC
="$CC" # Let the user override the test.
2939 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2943 test -z "$as_dir" && as_dir
=.
2944 for ac_exec_ext
in '' $ac_executable_extensions; do
2945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2946 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2947 ac_prog_rejected
=yes
2951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2958 if test $ac_prog_rejected = yes; then
2959 # We found a bogon in the path, so make sure we never use it.
2960 set dummy
$ac_cv_prog_CC
2962 if test $# != 0; then
2963 # We chose a different compiler from the bogus one.
2964 # However, it has the same basename, so the bogon will be chosen
2965 # first if we set CC to just the basename; use the full file name.
2967 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2973 if test -n "$CC"; then
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2975 $as_echo "$CC" >&6; }
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978 $as_echo "no" >&6; }
2983 if test -z "$CC"; then
2984 if test -n "$ac_tool_prefix"; then
2985 for ac_prog
in cl.exe
2987 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2988 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990 $as_echo_n "checking for $ac_word... " >&6; }
2991 if test "${ac_cv_prog_CC+set}" = set; then :
2992 $as_echo_n "(cached) " >&6
2994 if test -n "$CC"; then
2995 ac_cv_prog_CC
="$CC" # Let the user override the test.
2997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3001 test -z "$as_dir" && as_dir
=.
3002 for ac_exec_ext
in '' $ac_executable_extensions; do
3003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3004 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3015 if test -n "$CC"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3017 $as_echo "$CC" >&6; }
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 $as_echo "no" >&6; }
3024 test -n "$CC" && break
3027 if test -z "$CC"; then
3029 for ac_prog
in cl.exe
3031 # Extract the first word of "$ac_prog", so it can be a program name with args.
3032 set dummy
$ac_prog; ac_word
=$2
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3034 $as_echo_n "checking for $ac_word... " >&6; }
3035 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3036 $as_echo_n "(cached) " >&6
3038 if test -n "$ac_ct_CC"; then
3039 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3041 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3045 test -z "$as_dir" && as_dir
=.
3046 for ac_exec_ext
in '' $ac_executable_extensions; do
3047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3048 ac_cv_prog_ac_ct_CC
="$ac_prog"
3049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3058 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3059 if test -n "$ac_ct_CC"; then
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3061 $as_echo "$ac_ct_CC" >&6; }
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3064 $as_echo "no" >&6; }
3068 test -n "$ac_ct_CC" && break
3071 if test "x$ac_ct_CC" = x
; then
3074 case $cross_compiling:$ac_tool_warned in
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3078 ac_tool_warned
=yes ;;
3087 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3089 as_fn_error
"no acceptable C compiler found in \$PATH
3090 See \`config.log' for more details." "$LINENO" 5; }
3092 # Provide some information about the compiler.
3093 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3096 for ac_option
in --version -v -V -qversion; do
3097 { { ac_try
="$ac_compiler $ac_option >&5"
3099 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3103 $as_echo "$ac_try_echo"; } >&5
3104 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3106 if test -s conftest.err; then
3108 ... rest of stderr output deleted ...
3109 10q' conftest.err >conftest.er1
3110 cat conftest.er1 >&5
3111 rm -f conftest.er1 conftest.err
3113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3114 test $ac_status = 0; }
3117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3118 /* end confdefs.h. */
3128 ac_clean_files_save=$ac_clean_files
3129 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3130 # Try to create an executable without -o first, disregard a.out.
3131 # It will help us diagnose broken compilers, and finding out an intuition
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3134 $as_echo_n "checking for C compiler default output file name... " >&6; }
3135 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3137 # The possible output files:
3138 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3141 for ac_file in $ac_files
3144 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3145 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3150 if { { ac_try="$ac_link_default"
3152 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3153 *) ac_try_echo
=$ac_try;;
3155 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3156 $as_echo "$ac_try_echo"; } >&5
3157 (eval "$ac_link_default") 2>&5
3159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3160 test $ac_status = 0; }; then :
3161 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3162 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3163 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3164 # so that the user can short-circuit this test for compilers unknown to
3166 for ac_file
in $ac_files ''
3168 test -f "$ac_file" ||
continue
3170 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3173 # We found the default executable, but exeext='' is most
3177 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3179 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3181 # We set ac_cv_exeext here because the later test for it is not
3182 # safe: cross compilers may not add the suffix if given an `-o'
3183 # argument, so we may need to know it at that point already.
3184 # Even if this section looks crufty: it has the advantage of
3191 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3197 $as_echo "$ac_file" >&6; }
3198 if test -z "$ac_file"; then :
3199 $as_echo "$as_me: failed program was:" >&5
3200 sed 's/^/| /' conftest.
$ac_ext >&5
3202 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3204 { as_fn_set_status
77
3205 as_fn_error
"C compiler cannot create executables
3206 See \`config.log' for more details." "$LINENO" 5; }; }
3208 ac_exeext
=$ac_cv_exeext
3210 # Check that the compiler produces executables we can run. If not, either
3211 # the compiler is broken, or we cross compile.
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3213 $as_echo_n "checking whether the C compiler works... " >&6; }
3214 # If not cross compiling, check that we can run a simple program.
3215 if test "$cross_compiling" != yes; then
3216 if { ac_try
='./$ac_file'
3217 { { case "(($ac_try" in
3218 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3219 *) ac_try_echo=$ac_try;;
3221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3222 $as_echo "$ac_try_echo"; } >&5
3223 (eval "$ac_try") 2>&5
3225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3226 test $ac_status = 0; }; }; then
3229 if test "$cross_compiling" = maybe; then
3232 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3234 as_fn_error "cannot run C compiled programs.
3235 If you meant to cross compile
, use \
`--host'.
3236 See \`config.log
' for more details." "$LINENO" 5; }
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3241 $as_echo "yes" >&6; }
3243 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3244 ac_clean_files=$ac_clean_files_save
3245 # Check that the compiler produces executables we can run. If not, either
3246 # the compiler is broken, or we cross compile.
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3248 $as_echo_n "checking whether we are cross compiling... " >&6; }
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3250 $as_echo "$cross_compiling" >&6; }
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3253 $as_echo_n "checking for suffix of executables... " >&6; }
3254 if { { ac_try="$ac_link"
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3260 $as_echo "$ac_try_echo"; } >&5
3261 (eval "$ac_link") 2>&5
3263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3264 test $ac_status = 0; }; then :
3265 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3266 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3267 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3269 for ac_file
in conftest.exe conftest conftest.
*; do
3270 test -f "$ac_file" ||
continue
3272 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3273 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3281 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3282 See \`config.log' for more details." "$LINENO" 5; }
3284 rm -f conftest
$ac_cv_exeext
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3286 $as_echo "$ac_cv_exeext" >&6; }
3288 rm -f conftest.
$ac_ext
3289 EXEEXT
=$ac_cv_exeext
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3292 $as_echo_n "checking for suffix of object files... " >&6; }
3293 if test "${ac_cv_objext+set}" = set; then :
3294 $as_echo_n "(cached) " >&6
3296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3297 /* end confdefs.h. */
3307 rm -f conftest.o conftest.obj
3308 if { { ac_try
="$ac_compile"
3310 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3314 $as_echo "$ac_try_echo"; } >&5
3315 (eval "$ac_compile") 2>&5
3317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3318 test $ac_status = 0; }; then :
3319 for ac_file in conftest.o conftest.obj conftest.*; do
3320 test -f "$ac_file" || continue;
3322 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3323 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3328 $as_echo "$as_me: failed program was:" >&5
3329 sed 's/^/| /' conftest.$ac_ext >&5
3331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3333 as_fn_error "cannot compute suffix of object files
: cannot compile
3334 See \
`config.log' for more details." "$LINENO" 5; }
3336 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3339 $as_echo "$ac_cv_objext" >&6; }
3340 OBJEXT=$ac_cv_objext
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3343 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3344 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3345 $as_echo_n "(cached) " >&6
3347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3348 /* end confdefs.h. */
3361 if ac_fn_c_try_compile "$LINENO"; then :
3366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3367 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3371 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3372 if test $ac_compiler_gnu = yes; then
3377 ac_test_CFLAGS=${CFLAGS+set}
3378 ac_save_CFLAGS=$CFLAGS
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3380 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3381 if test "${ac_cv_prog_cc_g+set}" = set; then :
3382 $as_echo_n "(cached) " >&6
3384 ac_save_c_werror_flag=$ac_c_werror_flag
3385 ac_c_werror_flag=yes
3388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3389 /* end confdefs.h. */
3399 if ac_fn_c_try_compile "$LINENO"; then :
3403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404 /* end confdefs.h. */
3414 if ac_fn_c_try_compile "$LINENO"; then :
3417 ac_c_werror_flag=$ac_save_c_werror_flag
3419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420 /* end confdefs.h. */
3430 if ac_fn_c_try_compile "$LINENO"; then :
3433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3438 ac_c_werror_flag=$ac_save_c_werror_flag
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3441 $as_echo "$ac_cv_prog_cc_g" >&6; }
3442 if test "$ac_test_CFLAGS" = set; then
3443 CFLAGS=$ac_save_CFLAGS
3444 elif test $ac_cv_prog_cc_g = yes; then
3445 if test "$GCC" = yes; then
3451 if test "$GCC" = yes; then
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3458 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3459 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3460 $as_echo_n "(cached) " >&6
3462 ac_cv_prog_cc_c89=no
3464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3465 /* end confdefs.h. */
3468 #include <sys/types.h>
3469 #include <sys/stat.h>
3470 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3471 struct buf { int x; };
3472 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3473 static char *e (p, i)
3479 static char *f (char * (*g) (char **, int), char **p, ...)
3484 s = g (p, va_arg (v,int));
3489 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3490 function prototypes and stuff, but not '\xHH' hex character constants.
3491 These don't provoke an error unfortunately, instead are silently treated
3492 as 'x'. The following induces an error, until -std is added to get
3493 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3494 array size at least. It's necessary to write '\x00'==0 to get something
3495 that's true only with -std. */
3496 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3498 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3499 inside strings and character constants. */
3501 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3503 int test (int i, double x);
3504 struct s1 {int (*f) (int a);};
3505 struct s2 {int (*f) (double a);};
3506 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3512 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3517 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3518 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3520 CC="$ac_save_CC $ac_arg"
3521 if ac_fn_c_try_compile "$LINENO"; then :
3522 ac_cv_prog_cc_c89=$ac_arg
3524 rm -f core conftest.err conftest.$ac_objext
3525 test "x$ac_cv_prog_cc_c89" != "xno" && break
3527 rm -f conftest.$ac_ext
3532 case "x$ac_cv_prog_cc_c89" in
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3535 $as_echo "none needed" >&6; } ;;
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3538 $as_echo "unsupported" >&6; } ;;
3540 CC="$CC $ac_cv_prog_cc_c89"
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3542 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3544 if test "x$ac_cv_prog_cc_c89" != xno; then :
3549 ac_cpp='$CPP $CPPFLAGS'
3550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3555 ac_cpp='$CXXCPP $CPPFLAGS'
3556 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3557 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3558 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3559 if test -z "$CXX"; then
3560 if test -n "$CCC"; then
3563 if test -n "$ac_tool_prefix"; then
3564 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3566 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3567 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3569 $as_echo_n "checking for $ac_word... " >&6; }
3570 if test "${ac_cv_prog_CXX+set}" = set; then :
3571 $as_echo_n "(cached) " >&6
3573 if test -n "$CXX"; then
3574 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580 test -z "$as_dir" && as_dir=.
3581 for ac_exec_ext in '' $ac_executable_extensions; do
3582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3583 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3594 if test -n "$CXX"; then
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3596 $as_echo "$CXX" >&6; }
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3599 $as_echo "no" >&6; }
3603 test -n "$CXX" && break
3606 if test -z "$CXX"; then
3608 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3610 # Extract the first word of "$ac_prog", so it can be a program name with args.
3611 set dummy $ac_prog; ac_word=$2
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3613 $as_echo_n "checking for $ac_word... " >&6; }
3614 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3615 $as_echo_n "(cached) " >&6
3617 if test -n "$ac_ct_CXX"; then
3618 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624 test -z "$as_dir" && as_dir=.
3625 for ac_exec_ext in '' $ac_executable_extensions; do
3626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3627 ac_cv_prog_ac_ct_CXX="$ac_prog"
3628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3637 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3638 if test -n "$ac_ct_CXX"; then
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3640 $as_echo "$ac_ct_CXX" >&6; }
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3643 $as_echo "no" >&6; }
3647 test -n "$ac_ct_CXX" && break
3650 if test "x$ac_ct_CXX" = x; then
3653 case $cross_compiling:$ac_tool_warned in
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3657 ac_tool_warned=yes ;;
3665 # Provide some information about the compiler.
3666 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3669 for ac_option in --version -v -V -qversion; do
3670 { { ac_try="$ac_compiler $ac_option >&5"
3672 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3673 *) ac_try_echo
=$ac_try;;
3675 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3676 $as_echo "$ac_try_echo"; } >&5
3677 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3679 if test -s conftest.err
; then
3681 ... rest of stderr output deleted ...
3682 10q' conftest.err
>conftest.er1
3683 cat conftest.er1
>&5
3684 rm -f conftest.er1 conftest.err
3686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3687 test $ac_status = 0; }
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3691 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3692 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3693 $as_echo_n "(cached) " >&6
3695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3709 if ac_fn_cxx_try_compile
"$LINENO"; then :
3714 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3715 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3719 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3720 if test $ac_compiler_gnu = yes; then
3725 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3726 ac_save_CXXFLAGS
=$CXXFLAGS
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3728 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3729 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3730 $as_echo_n "(cached) " >&6
3732 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3733 ac_cxx_werror_flag
=yes
3736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h. */
3747 if ac_fn_cxx_try_compile
"$LINENO"; then :
3748 ac_cv_prog_cxx_g
=yes
3751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3752 /* end confdefs.h. */
3762 if ac_fn_cxx_try_compile
"$LINENO"; then :
3765 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3768 /* end confdefs.h. */
3778 if ac_fn_cxx_try_compile
"$LINENO"; then :
3779 ac_cv_prog_cxx_g
=yes
3781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3783 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3785 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3786 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3789 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3790 if test "$ac_test_CXXFLAGS" = set; then
3791 CXXFLAGS
=$ac_save_CXXFLAGS
3792 elif test $ac_cv_prog_cxx_g = yes; then
3793 if test "$GXX" = yes; then
3799 if test "$GXX" = yes; then
3806 ac_cpp
='$CPP $CPPFLAGS'
3807 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3808 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3809 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3814 ac_cpp
='$CPP $CPPFLAGS'
3815 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3816 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3817 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3819 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3820 # On Suns, sometimes $CPP names a directory.
3821 if test -n "$CPP" && test -d "$CPP"; then
3824 if test -z "$CPP"; then
3825 if test "${ac_cv_prog_CPP+set}" = set; then :
3826 $as_echo_n "(cached) " >&6
3828 # Double quotes because CPP needs to be expanded
3829 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3832 for ac_c_preproc_warn_flag
in '' yes
3834 # Use a header file that comes with gcc, so configuring glibc
3835 # with a fresh cross-compiler works.
3836 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3837 # <limits.h> exists even on freestanding compilers.
3838 # On the NeXT, cc -E runs the code through the compiler's parser,
3839 # not just through cpp. "Syntax error" is here to catch this case.
3840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3843 # include <limits.h>
3845 # include <assert.h>
3849 if ac_fn_c_try_cpp
"$LINENO"; then :
3852 # Broken: fails on valid input.
3855 rm -f conftest.err conftest.
$ac_ext
3857 # OK, works on sane cases. Now check whether nonexistent headers
3858 # can be detected and how.
3859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3860 /* end confdefs.h. */
3861 #include <ac_nonexistent.h>
3863 if ac_fn_c_try_cpp
"$LINENO"; then :
3864 # Broken: success on invalid input.
3867 # Passes both tests.
3871 rm -f conftest.err conftest.
$ac_ext
3874 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3875 rm -f conftest.err conftest.
$ac_ext
3876 if $ac_preproc_ok; then :
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3889 $as_echo "$CPP" >&6; }
3891 for ac_c_preproc_warn_flag
in '' yes
3893 # Use a header file that comes with gcc, so configuring glibc
3894 # with a fresh cross-compiler works.
3895 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3896 # <limits.h> exists even on freestanding compilers.
3897 # On the NeXT, cc -E runs the code through the compiler's parser,
3898 # not just through cpp. "Syntax error" is here to catch this case.
3899 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3900 /* end confdefs.h. */
3902 # include <limits.h>
3904 # include <assert.h>
3908 if ac_fn_c_try_cpp
"$LINENO"; then :
3911 # Broken: fails on valid input.
3914 rm -f conftest.err conftest.
$ac_ext
3916 # OK, works on sane cases. Now check whether nonexistent headers
3917 # can be detected and how.
3918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h. */
3920 #include <ac_nonexistent.h>
3922 if ac_fn_c_try_cpp
"$LINENO"; then :
3923 # Broken: success on invalid input.
3926 # Passes both tests.
3930 rm -f conftest.err conftest.
$ac_ext
3933 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3934 rm -f conftest.err conftest.
$ac_ext
3935 if $ac_preproc_ok; then :
3938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3940 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
3941 See \`config.log' for more details." "$LINENO" 5; }
3945 ac_cpp
='$CPP $CPPFLAGS'
3946 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3947 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3948 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3952 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3953 if test "${ac_cv_path_GREP+set}" = set; then :
3954 $as_echo_n "(cached) " >&6
3956 if test -z "$GREP"; then
3957 ac_path_GREP_found
=false
3958 # Loop through the user's path and test for each of PROGNAME-LIST
3959 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3960 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3963 test -z "$as_dir" && as_dir
=.
3964 for ac_prog
in grep ggrep
; do
3965 for ac_exec_ext
in '' $ac_executable_extensions; do
3966 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3967 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3968 # Check for GNU ac_path_GREP and select it if it is found.
3969 # Check for GNU $ac_path_GREP
3970 case `"$ac_path_GREP" --version 2>&1` in
3972 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3975 $as_echo_n 0123456789 >"conftest.in"
3978 cat "conftest.in" "conftest.in" >"conftest.tmp"
3979 mv "conftest.tmp" "conftest.in"
3980 cp "conftest.in" "conftest.nl"
3981 $as_echo 'GREP' >> "conftest.nl"
3982 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3983 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3984 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3985 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3986 # Best one so far, save it but keep looking for a better one
3987 ac_cv_path_GREP
="$ac_path_GREP"
3988 ac_path_GREP_max
=$ac_count
3990 # 10*(2^10) chars as input seems more than enough
3991 test $ac_count -gt 10 && break
3993 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3996 $ac_path_GREP_found && break 3
4001 if test -z "$ac_cv_path_GREP"; then
4002 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4005 ac_cv_path_GREP
=$GREP
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4010 $as_echo "$ac_cv_path_GREP" >&6; }
4011 GREP
="$ac_cv_path_GREP"
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4015 $as_echo_n "checking for egrep... " >&6; }
4016 if test "${ac_cv_path_EGREP+set}" = set; then :
4017 $as_echo_n "(cached) " >&6
4019 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4020 then ac_cv_path_EGREP
="$GREP -E"
4022 if test -z "$EGREP"; then
4023 ac_path_EGREP_found
=false
4024 # Loop through the user's path and test for each of PROGNAME-LIST
4025 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4026 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4029 test -z "$as_dir" && as_dir
=.
4030 for ac_prog
in egrep; do
4031 for ac_exec_ext
in '' $ac_executable_extensions; do
4032 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4033 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4034 # Check for GNU ac_path_EGREP and select it if it is found.
4035 # Check for GNU $ac_path_EGREP
4036 case `"$ac_path_EGREP" --version 2>&1` in
4038 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4041 $as_echo_n 0123456789 >"conftest.in"
4044 cat "conftest.in" "conftest.in" >"conftest.tmp"
4045 mv "conftest.tmp" "conftest.in"
4046 cp "conftest.in" "conftest.nl"
4047 $as_echo 'EGREP' >> "conftest.nl"
4048 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4049 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4050 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4051 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4052 # Best one so far, save it but keep looking for a better one
4053 ac_cv_path_EGREP
="$ac_path_EGREP"
4054 ac_path_EGREP_max
=$ac_count
4056 # 10*(2^10) chars as input seems more than enough
4057 test $ac_count -gt 10 && break
4059 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4062 $ac_path_EGREP_found && break 3
4067 if test -z "$ac_cv_path_EGREP"; then
4068 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4071 ac_cv_path_EGREP
=$EGREP
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4077 $as_echo "$ac_cv_path_EGREP" >&6; }
4078 EGREP
="$ac_cv_path_EGREP"
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4082 $as_echo_n "checking for ANSI C header files... " >&6; }
4083 if test "${ac_cv_header_stdc+set}" = set; then :
4084 $as_echo_n "(cached) " >&6
4086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4101 if ac_fn_c_try_compile
"$LINENO"; then :
4102 ac_cv_header_stdc
=yes
4104 ac_cv_header_stdc
=no
4106 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4108 if test $ac_cv_header_stdc = yes; then
4109 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4116 $EGREP "memchr" >/dev
/null
2>&1; then :
4119 ac_cv_header_stdc
=no
4125 if test $ac_cv_header_stdc = yes; then
4126 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4133 $EGREP "free" >/dev
/null
2>&1; then :
4136 ac_cv_header_stdc
=no
4142 if test $ac_cv_header_stdc = yes; then
4143 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4144 if test "$cross_compiling" = yes; then :
4147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4151 #if ((' ' & 0x0FF) == 0x020)
4152 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4153 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4155 # define ISLOWER(c) \
4156 (('a' <= (c) && (c) <= 'i') \
4157 || ('j' <= (c) && (c) <= 'r') \
4158 || ('s' <= (c) && (c) <= 'z'))
4159 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4162 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4167 for (i = 0; i < 256; i++)
4168 if (XOR (islower (i), ISLOWER (i))
4169 || toupper (i) != TOUPPER (i))
4174 if ac_fn_c_try_run
"$LINENO"; then :
4177 ac_cv_header_stdc
=no
4179 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4180 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4186 $as_echo "$ac_cv_header_stdc" >&6; }
4187 if test $ac_cv_header_stdc = yes; then
4189 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4193 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4194 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4195 inttypes.h stdint.h unistd.h
4197 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4198 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4200 eval as_val
=\$
$as_ac_Header
4201 if test "x$as_val" = x
""yes; then :
4202 cat >>confdefs.h
<<_ACEOF
4203 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4212 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4213 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4220 if test "$MINIX" = yes; then
4222 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4225 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4228 $as_echo "#define _MINIX 1" >>confdefs.h
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4234 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4235 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4236 $as_echo_n "(cached) " >&6
4238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h. */
4241 # define __EXTENSIONS__ 1
4242 $ac_includes_default
4251 if ac_fn_c_try_compile
"$LINENO"; then :
4252 ac_cv_safe_to_define___extensions__
=yes
4254 ac_cv_safe_to_define___extensions__
=no
4256 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4259 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4260 test $ac_cv_safe_to_define___extensions__ = yes &&
4261 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4263 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4265 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4267 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4269 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4273 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4274 for ac_t
in install-sh
install.sh shtool
; do
4275 if test -f "$ac_dir/$ac_t"; then
4277 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4282 if test -z "$ac_aux_dir"; then
4283 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4286 # These three variables are undocumented and unsupported,
4287 # and are intended to be withdrawn in a future Autoconf release.
4288 # They can cause serious problems if a builder's source tree is in a directory
4289 # whose full name contains unusual characters.
4290 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4291 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4292 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4295 # Make sure we can run config.sub.
4296 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4297 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4300 $as_echo_n "checking build system type... " >&6; }
4301 if test "${ac_cv_build+set}" = set; then :
4302 $as_echo_n "(cached) " >&6
4304 ac_build_alias
=$build_alias
4305 test "x$ac_build_alias" = x
&&
4306 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4307 test "x$ac_build_alias" = x
&&
4308 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4309 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4310 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4314 $as_echo "$ac_cv_build" >&6; }
4315 case $ac_cv_build in
4317 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4320 ac_save_IFS
=$IFS; IFS
='-'
4326 # Remember, the first character of IFS is used to create $*,
4327 # except with old shells:
4330 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4334 $as_echo_n "checking host system type... " >&6; }
4335 if test "${ac_cv_host+set}" = set; then :
4336 $as_echo_n "(cached) " >&6
4338 if test "x$host_alias" = x
; then
4339 ac_cv_host
=$ac_cv_build
4341 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4342 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4347 $as_echo "$ac_cv_host" >&6; }
4350 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4353 ac_save_IFS
=$IFS; IFS
='-'
4359 # Remember, the first character of IFS is used to create $*,
4360 # except with old shells:
4363 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4367 $as_echo_n "checking target system type... " >&6; }
4368 if test "${ac_cv_target+set}" = set; then :
4369 $as_echo_n "(cached) " >&6
4371 if test "x$target_alias" = x
; then
4372 ac_cv_target
=$ac_cv_host
4374 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4375 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4380 $as_echo "$ac_cv_target" >&6; }
4381 case $ac_cv_target in
4383 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
4385 target
=$ac_cv_target
4386 ac_save_IFS
=$IFS; IFS
='-'
4392 # Remember, the first character of IFS is used to create $*,
4393 # except with old shells:
4396 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4399 # The aliases save the names the user supplied, while $host etc.
4400 # will get canonicalized.
4401 test -n "$target_alias" &&
4402 test "$program_prefix$program_suffix$program_transform_name" = \
4404 program_prefix
=${target_alias}-
4406 # The tests for host and target for $enable_largefile require
4411 # As the $enable_largefile decision depends on --enable-plugins we must set it
4412 # even in directories otherwise not depending on the $plugins option.
4416 for ac_header
in dlfcn.h
4418 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4420 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then :
4421 cat >>confdefs.h
<<_ACEOF
4422 #define HAVE_DLFCN_H 1
4429 for ac_header
in windows.h
4431 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4433 if test "x$ac_cv_header_windows_h" = x
""yes; then :
4434 cat >>confdefs.h
<<_ACEOF
4435 #define HAVE_WINDOWS_H 1
4443 # Check whether --enable-plugins was given.
4444 if test "${enable_plugins+set}" = set; then :
4445 enableval
=$enable_plugins; case "${enableval}" in
4448 if test "$maybe_plugins" != "yes" ; then
4449 as_fn_error
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4453 plugins
=$maybe_plugins
4457 if test "$plugins" = "yes"; then
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
4459 $as_echo_n "checking for library containing dlopen... " >&6; }
4460 if test "${ac_cv_search_dlopen+set}" = set; then :
4461 $as_echo_n "(cached) " >&6
4463 ac_func_search_save_LIBS
=$LIBS
4464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4465 /* end confdefs.h. */
4467 /* Override any GCC internal prototype to avoid an error.
4468 Use char because int might match the return type of a GCC
4469 builtin and then its argument prototype would still apply. */
4482 for ac_lib
in '' dl
; do
4483 if test -z "$ac_lib"; then
4484 ac_res
="none required"
4487 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4489 if ac_fn_c_try_link
"$LINENO"; then :
4490 ac_cv_search_dlopen
=$ac_res
4492 rm -f core conftest.err conftest.
$ac_objext \
4494 if test "${ac_cv_search_dlopen+set}" = set; then :
4498 if test "${ac_cv_search_dlopen+set}" = set; then :
4501 ac_cv_search_dlopen
=no
4504 LIBS
=$ac_func_search_save_LIBS
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
4507 $as_echo "$ac_cv_search_dlopen" >&6; }
4508 ac_res
=$ac_cv_search_dlopen
4509 if test "$ac_res" != no
; then :
4510 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4518 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4519 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4520 # are mutually exclusive; and without procfs support, the bfd/ elf module
4521 # cannot provide certain routines such as elfcore_write_prpsinfo
4522 # or elfcore_write_prstatus. So unless the user explicitly requested
4523 # large-file support through the --enable-largefile switch, disable
4524 # large-file support in favor of procfs support.
4525 test "${target}" = "${host}" -a "x$plugins" = xno \
4526 && : ${enable_largefile="no"}
4530 # Check whether --enable-largefile was given.
4531 if test "${enable_largefile+set}" = set; then :
4532 enableval
=$enable_largefile;
4535 if test "$enable_largefile" != no
; then
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4538 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4539 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4540 $as_echo_n "(cached) " >&6
4542 ac_cv_sys_largefile_CC
=no
4543 if test "$GCC" != yes; then
4546 # IRIX 6.2 and later do not support large files by default,
4547 # so use the C compiler's -n32 option if that helps.
4548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4549 /* end confdefs.h. */
4550 #include <sys/types.h>
4551 /* Check that off_t can represent 2**63 - 1 correctly.
4552 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4553 since some C++ compilers masquerading as C compilers
4554 incorrectly reject 9223372036854775807. */
4555 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4556 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4557 && LARGE_OFF_T % 2147483647 == 1)
4567 if ac_fn_c_try_compile
"$LINENO"; then :
4570 rm -f core conftest.err conftest.
$ac_objext
4572 if ac_fn_c_try_compile
"$LINENO"; then :
4573 ac_cv_sys_largefile_CC
=' -n32'; break
4575 rm -f core conftest.err conftest.
$ac_objext
4579 rm -f conftest.
$ac_ext
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4583 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4584 if test "$ac_cv_sys_largefile_CC" != no
; then
4585 CC
=$CC$ac_cv_sys_largefile_CC
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4589 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4590 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4591 $as_echo_n "(cached) " >&6
4594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h. */
4596 #include <sys/types.h>
4597 /* Check that off_t can represent 2**63 - 1 correctly.
4598 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4599 since some C++ compilers masquerading as C compilers
4600 incorrectly reject 9223372036854775807. */
4601 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4602 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4603 && LARGE_OFF_T % 2147483647 == 1)
4613 if ac_fn_c_try_compile
"$LINENO"; then :
4614 ac_cv_sys_file_offset_bits
=no
; break
4616 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4618 /* end confdefs.h. */
4619 #define _FILE_OFFSET_BITS 64
4620 #include <sys/types.h>
4621 /* Check that off_t can represent 2**63 - 1 correctly.
4622 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4623 since some C++ compilers masquerading as C compilers
4624 incorrectly reject 9223372036854775807. */
4625 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4626 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4627 && LARGE_OFF_T % 2147483647 == 1)
4637 if ac_fn_c_try_compile
"$LINENO"; then :
4638 ac_cv_sys_file_offset_bits
=64; break
4640 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4641 ac_cv_sys_file_offset_bits
=unknown
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4646 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4647 case $ac_cv_sys_file_offset_bits in #(
4650 cat >>confdefs.h
<<_ACEOF
4651 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4656 if test $ac_cv_sys_file_offset_bits = unknown
; then
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4658 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4659 if test "${ac_cv_sys_large_files+set}" = set; then :
4660 $as_echo_n "(cached) " >&6
4663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4664 /* end confdefs.h. */
4665 #include <sys/types.h>
4666 /* Check that off_t can represent 2**63 - 1 correctly.
4667 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4668 since some C++ compilers masquerading as C compilers
4669 incorrectly reject 9223372036854775807. */
4670 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4671 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4672 && LARGE_OFF_T % 2147483647 == 1)
4682 if ac_fn_c_try_compile
"$LINENO"; then :
4683 ac_cv_sys_large_files
=no
; break
4685 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4687 /* end confdefs.h. */
4688 #define _LARGE_FILES 1
4689 #include <sys/types.h>
4690 /* Check that off_t can represent 2**63 - 1 correctly.
4691 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4692 since some C++ compilers masquerading as C compilers
4693 incorrectly reject 9223372036854775807. */
4694 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4695 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4696 && LARGE_OFF_T % 2147483647 == 1)
4706 if ac_fn_c_try_compile
"$LINENO"; then :
4707 ac_cv_sys_large_files
=1; break
4709 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4710 ac_cv_sys_large_files
=unknown
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4715 $as_echo "$ac_cv_sys_large_files" >&6; }
4716 case $ac_cv_sys_large_files in #(
4719 cat >>confdefs.h
<<_ACEOF
4720 #define _LARGE_FILES $ac_cv_sys_large_files
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4733 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4734 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4735 $as_echo_n "(cached) " >&6
4737 am_cv_prog_cc_stdc
=no
4739 # Don't try gcc -ansi; that turns off useful extensions and
4740 # breaks some systems' header files.
4741 # AIX -qlanglvl=ansi
4742 # Ultrix and OSF/1 -std1
4743 # HP-UX 10.20 and later -Ae
4744 # HP-UX older versions -Aa -D_HPUX_SOURCE
4745 # SVR4 -Xc -D__EXTENSIONS__
4746 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4748 CC
="$ac_save_CC $ac_arg"
4749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4750 /* end confdefs.h. */
4753 #include <sys/types.h>
4754 #include <sys/stat.h>
4755 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4756 struct buf { int x; };
4757 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4758 static char *e (p, i)
4764 static char *f (char * (*g) (char **, int), char **p, ...)
4769 s = g (p, va_arg (v,int));
4773 int test (int i, double x);
4774 struct s1 {int (*f) (int a);};
4775 struct s2 {int (*f) (double a);};
4776 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4784 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4790 if ac_fn_c_try_compile
"$LINENO"; then :
4791 am_cv_prog_cc_stdc
="$ac_arg"; break
4793 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4799 if test -z "$am_cv_prog_cc_stdc"; then
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4801 $as_echo "none needed" >&6; }
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4804 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4806 case "x$am_cv_prog_cc_stdc" in
4808 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4811 # expand $ac_aux_dir to an absolute path
4812 am_aux_dir
=`cd $ac_aux_dir && pwd`
4814 if test x
"${install_sh}" != xset
; then
4817 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
4819 install_sh
="\${SHELL} $am_aux_dir/install-sh"
4823 # Installed binaries are usually stripped using `strip' when the user
4824 # run `make install-strip'. However `strip' might not be the right
4825 # tool to use in cross-compilation environments, therefore Automake
4826 # will honor the `STRIP' environment variable to overrule this program.
4827 if test "$cross_compiling" != no
; then
4828 if test -n "$ac_tool_prefix"; then
4829 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4830 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4832 $as_echo_n "checking for $ac_word... " >&6; }
4833 if test "${ac_cv_prog_STRIP+set}" = set; then :
4834 $as_echo_n "(cached) " >&6
4836 if test -n "$STRIP"; then
4837 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4839 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4843 test -z "$as_dir" && as_dir
=.
4844 for ac_exec_ext
in '' $ac_executable_extensions; do
4845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4846 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4856 STRIP
=$ac_cv_prog_STRIP
4857 if test -n "$STRIP"; then
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4859 $as_echo "$STRIP" >&6; }
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4862 $as_echo "no" >&6; }
4867 if test -z "$ac_cv_prog_STRIP"; then
4869 # Extract the first word of "strip", so it can be a program name with args.
4870 set dummy strip
; ac_word
=$2
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4872 $as_echo_n "checking for $ac_word... " >&6; }
4873 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4874 $as_echo_n "(cached) " >&6
4876 if test -n "$ac_ct_STRIP"; then
4877 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
4879 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4883 test -z "$as_dir" && as_dir
=.
4884 for ac_exec_ext
in '' $ac_executable_extensions; do
4885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4886 ac_cv_prog_ac_ct_STRIP
="strip"
4887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4896 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4897 if test -n "$ac_ct_STRIP"; then
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4899 $as_echo "$ac_ct_STRIP" >&6; }
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4902 $as_echo "no" >&6; }
4905 if test "x$ac_ct_STRIP" = x
; then
4908 case $cross_compiling:$ac_tool_warned in
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4912 ac_tool_warned
=yes ;;
4917 STRIP
="$ac_cv_prog_STRIP"
4921 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
4925 for ac_dir
in ..
"$srcdir"/..
; do
4926 for ac_t
in install-sh
install.sh shtool
; do
4927 if test -f "$ac_dir/$ac_t"; then
4929 ac_install_sh
="$ac_aux_dir/$ac_t -c"
4934 if test -z "$ac_aux_dir"; then
4935 as_fn_error
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4938 # These three variables are undocumented and unsupported,
4939 # and are intended to be withdrawn in a future Autoconf release.
4940 # They can cause serious problems if a builder's source tree is in a directory
4941 # whose full name contains unusual characters.
4942 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4943 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4944 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4948 test "$program_prefix" != NONE
&&
4949 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4950 # Use a double $ so make ignores it.
4951 test "$program_suffix" != NONE
&&
4952 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4953 # Double any \ or $.
4954 # By default was `s,x,x', remove it if useless.
4955 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4956 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4959 # We require a C++11 compiler. Check if one is available, and if
4960 # necessary, set CXX_DIALECT to some -std=xxx switch.
4962 ax_cxx_compile_cxx11_required
=true
4964 ac_cpp
='$CXXCPP $CPPFLAGS'
4965 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4966 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4967 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
4971 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
4972 if test "${ax_cv_cxx_compile_cxx11+set}" = set; then :
4973 $as_echo_n "(cached) " >&6
4975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4976 /* end confdefs.h. */
4979 // If the compiler admits that it is not ready for C++11, why torture it?
4980 // Hopefully, this will speed up the test.
4984 #error "This is not a C++ compiler"
4986 #elif __cplusplus < 201103L
4988 #error "This is not a C++11 compiler"
4995 namespace test_static_assert
4998 template <typename T>
5001 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5006 namespace test_final_override
5014 struct Derived : public Base
5016 virtual void f() override {}
5021 namespace test_double_right_angle_brackets
5024 template < typename T >
5027 typedef check<void> single_type;
5028 typedef check<check<void>> double_type;
5029 typedef check<check<check<void>>> triple_type;
5030 typedef check<check<check<check<void>>>> quadruple_type;
5034 namespace test_decltype
5047 namespace test_type_deduction
5050 template < typename T1, typename T2 >
5053 static const bool value = false;
5056 template < typename T >
5057 struct is_same<T, T>
5059 static const bool value = true;
5062 template < typename T1, typename T2 >
5064 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5070 test(const int c, volatile int v)
5072 static_assert(is_same<int, decltype(0)>::value == true, "");
5073 static_assert(is_same<int, decltype(c)>::value == false, "");
5074 static_assert(is_same<int, decltype(v)>::value == false, "");
5077 auto sumi = ac + av + 'x';
5078 auto sumf = ac + av + 1.0;
5079 static_assert(is_same<int, decltype(ac)>::value == true, "");
5080 static_assert(is_same<int, decltype(av)>::value == true, "");
5081 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5082 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5083 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5084 return (sumf > 0.0) ? sumi : add(c, v);
5089 namespace test_noexcept
5092 int f() { return 0; }
5093 int g() noexcept { return 0; }
5095 static_assert(noexcept(f()) == false, "");
5096 static_assert(noexcept(g()) == true, "");
5100 namespace test_constexpr
5103 template < typename CharT >
5104 unsigned long constexpr
5105 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5107 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5110 template < typename CharT >
5111 unsigned long constexpr
5112 strlen_c(const CharT *const s) noexcept
5114 return strlen_c_r(s, 0UL);
5117 static_assert(strlen_c("") == 0UL, "");
5118 static_assert(strlen_c("1") == 1UL, "");
5119 static_assert(strlen_c("example") == 7UL, "");
5120 static_assert(strlen_c("another\0example") == 7UL, "");
5124 namespace test_rvalue_references
5130 static constexpr int value = N;
5133 answer<1> f(int&) { return answer<1>(); }
5134 answer<2> f(const int&) { return answer<2>(); }
5135 answer<3> f(int&&) { return answer<3>(); }
5142 static_assert(decltype(f(i))::value == 1, "");
5143 static_assert(decltype(f(c))::value == 2, "");
5144 static_assert(decltype(f(0))::value == 3, "");
5149 namespace test_uniform_initialization
5154 static const int zero {};
5155 static const int one {1};
5158 static_assert(test::zero == 0, "");
5159 static_assert(test::one == 1, "");
5163 namespace test_lambdas
5169 auto lambda1 = [](){};
5170 auto lambda2 = lambda1;
5178 auto a = [](int i, int j){ return i + j; }(1, 2);
5179 auto b = []() -> int { return '0'; }();
5180 auto c = [=](){ return a + b; }();
5181 auto d = [&](){ return c; }();
5182 auto e = [a, &b](int x) mutable {
5183 const auto identity = [](int y){ return y; };
5184 for (auto i = 0; i < a; ++i)
5186 return x + identity(a + b);
5188 return a + b + c + d + e;
5194 const auto nullary = [](){ return 0; };
5195 const auto unary = [](int x){ return x; };
5196 using nullary_t = decltype(nullary);
5197 using unary_t = decltype(unary);
5198 const auto higher1st = [](nullary_t f){ return f(); };
5199 const auto higher2nd = [unary](nullary_t f1){
5200 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5202 return higher1st(nullary) + higher2nd(nullary)(unary);
5207 namespace test_variadic_templates
5213 template <int N0, int... N1toN>
5214 struct sum<N0, N1toN...>
5216 static constexpr auto value = N0 + sum<N1toN...>::value;
5222 static constexpr auto value = 0;
5225 static_assert(sum<>::value == 0, "");
5226 static_assert(sum<1>::value == 1, "");
5227 static_assert(sum<23>::value == 23, "");
5228 static_assert(sum<1, 2>::value == 3, "");
5229 static_assert(sum<5, 5, 11>::value == 21, "");
5230 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5234 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5235 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5237 namespace test_template_alias_sfinae
5242 template<typename T>
5243 using member = typename T::member_type;
5245 template<typename T>
5248 template<typename T>
5249 void func(member<T>*) {}
5253 void test() { func<foo>(0); }
5257 } // namespace cxx11
5259 #endif // __cplusplus >= 201103L
5264 if ac_fn_cxx_try_compile
"$LINENO"; then :
5265 ax_cv_cxx_compile_cxx11
=yes
5267 ax_cv_cxx_compile_cxx11
=no
5269 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5272 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5273 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
5277 if test x
$ac_success = xno
; then
5278 for switch
in -std=gnu
++11 -std=gnu
++0x
; do
5279 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5281 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5282 if { as_var
=$cachevar; eval "test \"\${$as_var+set}\" = set"; }; then :
5283 $as_echo_n "(cached) " >&6
5287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5288 /* end confdefs.h. */
5291 // If the compiler admits that it is not ready for C++11, why torture it?
5292 // Hopefully, this will speed up the test.
5296 #error "This is not a C++ compiler"
5298 #elif __cplusplus < 201103L
5300 #error "This is not a C++11 compiler"
5307 namespace test_static_assert
5310 template <typename T>
5313 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5318 namespace test_final_override
5326 struct Derived : public Base
5328 virtual void f() override {}
5333 namespace test_double_right_angle_brackets
5336 template < typename T >
5339 typedef check<void> single_type;
5340 typedef check<check<void>> double_type;
5341 typedef check<check<check<void>>> triple_type;
5342 typedef check<check<check<check<void>>>> quadruple_type;
5346 namespace test_decltype
5359 namespace test_type_deduction
5362 template < typename T1, typename T2 >
5365 static const bool value = false;
5368 template < typename T >
5369 struct is_same<T, T>
5371 static const bool value = true;
5374 template < typename T1, typename T2 >
5376 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5382 test(const int c, volatile int v)
5384 static_assert(is_same<int, decltype(0)>::value == true, "");
5385 static_assert(is_same<int, decltype(c)>::value == false, "");
5386 static_assert(is_same<int, decltype(v)>::value == false, "");
5389 auto sumi = ac + av + 'x';
5390 auto sumf = ac + av + 1.0;
5391 static_assert(is_same<int, decltype(ac)>::value == true, "");
5392 static_assert(is_same<int, decltype(av)>::value == true, "");
5393 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5394 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5395 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5396 return (sumf > 0.0) ? sumi : add(c, v);
5401 namespace test_noexcept
5404 int f() { return 0; }
5405 int g() noexcept { return 0; }
5407 static_assert(noexcept(f()) == false, "");
5408 static_assert(noexcept(g()) == true, "");
5412 namespace test_constexpr
5415 template < typename CharT >
5416 unsigned long constexpr
5417 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5419 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5422 template < typename CharT >
5423 unsigned long constexpr
5424 strlen_c(const CharT *const s) noexcept
5426 return strlen_c_r(s, 0UL);
5429 static_assert(strlen_c("") == 0UL, "");
5430 static_assert(strlen_c("1") == 1UL, "");
5431 static_assert(strlen_c("example") == 7UL, "");
5432 static_assert(strlen_c("another\0example") == 7UL, "");
5436 namespace test_rvalue_references
5442 static constexpr int value = N;
5445 answer<1> f(int&) { return answer<1>(); }
5446 answer<2> f(const int&) { return answer<2>(); }
5447 answer<3> f(int&&) { return answer<3>(); }
5454 static_assert(decltype(f(i))::value == 1, "");
5455 static_assert(decltype(f(c))::value == 2, "");
5456 static_assert(decltype(f(0))::value == 3, "");
5461 namespace test_uniform_initialization
5466 static const int zero {};
5467 static const int one {1};
5470 static_assert(test::zero == 0, "");
5471 static_assert(test::one == 1, "");
5475 namespace test_lambdas
5481 auto lambda1 = [](){};
5482 auto lambda2 = lambda1;
5490 auto a = [](int i, int j){ return i + j; }(1, 2);
5491 auto b = []() -> int { return '0'; }();
5492 auto c = [=](){ return a + b; }();
5493 auto d = [&](){ return c; }();
5494 auto e = [a, &b](int x) mutable {
5495 const auto identity = [](int y){ return y; };
5496 for (auto i = 0; i < a; ++i)
5498 return x + identity(a + b);
5500 return a + b + c + d + e;
5506 const auto nullary = [](){ return 0; };
5507 const auto unary = [](int x){ return x; };
5508 using nullary_t = decltype(nullary);
5509 using unary_t = decltype(unary);
5510 const auto higher1st = [](nullary_t f){ return f(); };
5511 const auto higher2nd = [unary](nullary_t f1){
5512 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5514 return higher1st(nullary) + higher2nd(nullary)(unary);
5519 namespace test_variadic_templates
5525 template <int N0, int... N1toN>
5526 struct sum<N0, N1toN...>
5528 static constexpr auto value = N0 + sum<N1toN...>::value;
5534 static constexpr auto value = 0;
5537 static_assert(sum<>::value == 0, "");
5538 static_assert(sum<1>::value == 1, "");
5539 static_assert(sum<23>::value == 23, "");
5540 static_assert(sum<1, 2>::value == 3, "");
5541 static_assert(sum<5, 5, 11>::value == 21, "");
5542 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5546 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5547 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5549 namespace test_template_alias_sfinae
5554 template<typename T>
5555 using member = typename T::member_type;
5557 template<typename T>
5560 template<typename T>
5561 void func(member<T>*) {}
5565 void test() { func<foo>(0); }
5569 } // namespace cxx11
5571 #endif // __cplusplus >= 201103L
5576 if ac_fn_cxx_try_compile
"$LINENO"; then :
5581 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5584 eval ac_res
=\$
$cachevar
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5586 $as_echo "$ac_res" >&6; }
5587 if eval test x\$
$cachevar = xyes
; then
5588 CXX_DIALECT
="$switch"
5595 if test x
$ac_success = xno
; then
5596 for switch
in -std=c
++11 -std=c
++0x
+std
=c
++11 "-h std=c++11"; do
5597 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5599 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5600 if { as_var
=$cachevar; eval "test \"\${$as_var+set}\" = set"; }; then :
5601 $as_echo_n "(cached) " >&6
5605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5606 /* end confdefs.h. */
5609 // If the compiler admits that it is not ready for C++11, why torture it?
5610 // Hopefully, this will speed up the test.
5614 #error "This is not a C++ compiler"
5616 #elif __cplusplus < 201103L
5618 #error "This is not a C++11 compiler"
5625 namespace test_static_assert
5628 template <typename T>
5631 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5636 namespace test_final_override
5644 struct Derived : public Base
5646 virtual void f() override {}
5651 namespace test_double_right_angle_brackets
5654 template < typename T >
5657 typedef check<void> single_type;
5658 typedef check<check<void>> double_type;
5659 typedef check<check<check<void>>> triple_type;
5660 typedef check<check<check<check<void>>>> quadruple_type;
5664 namespace test_decltype
5677 namespace test_type_deduction
5680 template < typename T1, typename T2 >
5683 static const bool value = false;
5686 template < typename T >
5687 struct is_same<T, T>
5689 static const bool value = true;
5692 template < typename T1, typename T2 >
5694 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5700 test(const int c, volatile int v)
5702 static_assert(is_same<int, decltype(0)>::value == true, "");
5703 static_assert(is_same<int, decltype(c)>::value == false, "");
5704 static_assert(is_same<int, decltype(v)>::value == false, "");
5707 auto sumi = ac + av + 'x';
5708 auto sumf = ac + av + 1.0;
5709 static_assert(is_same<int, decltype(ac)>::value == true, "");
5710 static_assert(is_same<int, decltype(av)>::value == true, "");
5711 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5712 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5713 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5714 return (sumf > 0.0) ? sumi : add(c, v);
5719 namespace test_noexcept
5722 int f() { return 0; }
5723 int g() noexcept { return 0; }
5725 static_assert(noexcept(f()) == false, "");
5726 static_assert(noexcept(g()) == true, "");
5730 namespace test_constexpr
5733 template < typename CharT >
5734 unsigned long constexpr
5735 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5737 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5740 template < typename CharT >
5741 unsigned long constexpr
5742 strlen_c(const CharT *const s) noexcept
5744 return strlen_c_r(s, 0UL);
5747 static_assert(strlen_c("") == 0UL, "");
5748 static_assert(strlen_c("1") == 1UL, "");
5749 static_assert(strlen_c("example") == 7UL, "");
5750 static_assert(strlen_c("another\0example") == 7UL, "");
5754 namespace test_rvalue_references
5760 static constexpr int value = N;
5763 answer<1> f(int&) { return answer<1>(); }
5764 answer<2> f(const int&) { return answer<2>(); }
5765 answer<3> f(int&&) { return answer<3>(); }
5772 static_assert(decltype(f(i))::value == 1, "");
5773 static_assert(decltype(f(c))::value == 2, "");
5774 static_assert(decltype(f(0))::value == 3, "");
5779 namespace test_uniform_initialization
5784 static const int zero {};
5785 static const int one {1};
5788 static_assert(test::zero == 0, "");
5789 static_assert(test::one == 1, "");
5793 namespace test_lambdas
5799 auto lambda1 = [](){};
5800 auto lambda2 = lambda1;
5808 auto a = [](int i, int j){ return i + j; }(1, 2);
5809 auto b = []() -> int { return '0'; }();
5810 auto c = [=](){ return a + b; }();
5811 auto d = [&](){ return c; }();
5812 auto e = [a, &b](int x) mutable {
5813 const auto identity = [](int y){ return y; };
5814 for (auto i = 0; i < a; ++i)
5816 return x + identity(a + b);
5818 return a + b + c + d + e;
5824 const auto nullary = [](){ return 0; };
5825 const auto unary = [](int x){ return x; };
5826 using nullary_t = decltype(nullary);
5827 using unary_t = decltype(unary);
5828 const auto higher1st = [](nullary_t f){ return f(); };
5829 const auto higher2nd = [unary](nullary_t f1){
5830 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5832 return higher1st(nullary) + higher2nd(nullary)(unary);
5837 namespace test_variadic_templates
5843 template <int N0, int... N1toN>
5844 struct sum<N0, N1toN...>
5846 static constexpr auto value = N0 + sum<N1toN...>::value;
5852 static constexpr auto value = 0;
5855 static_assert(sum<>::value == 0, "");
5856 static_assert(sum<1>::value == 1, "");
5857 static_assert(sum<23>::value == 23, "");
5858 static_assert(sum<1, 2>::value == 3, "");
5859 static_assert(sum<5, 5, 11>::value == 21, "");
5860 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5864 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5865 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5867 namespace test_template_alias_sfinae
5872 template<typename T>
5873 using member = typename T::member_type;
5875 template<typename T>
5878 template<typename T>
5879 void func(member<T>*) {}
5883 void test() { func<foo>(0); }
5887 } // namespace cxx11
5889 #endif // __cplusplus >= 201103L
5894 if ac_fn_cxx_try_compile
"$LINENO"; then :
5899 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5902 eval ac_res
=\$
$cachevar
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5904 $as_echo "$ac_res" >&6; }
5905 if eval test x\$
$cachevar = xyes
; then
5906 CXX_DIALECT
="$switch"
5913 ac_cpp
='$CPP $CPPFLAGS'
5914 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5915 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5916 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5918 if test x
$ax_cxx_compile_cxx11_required = xtrue
; then
5919 if test x
$ac_success = xno
; then
5920 as_fn_error
"*** A compiler with support for C++11 language features is required." "$LINENO" 5
5923 if test x
$ac_success = xno
; then
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
5926 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
5930 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
5937 # Dependency checking.
5938 rm -rf .tst
2>/dev
/null
5939 mkdir .tst
2>/dev
/null
5940 if test -d .tst
; then
5945 rmdir .tst
2>/dev
/null
5947 DEPDIR
="${am__leading_dot}deps"
5949 ac_config_commands
="$ac_config_commands depdir"
5952 depcc
="$CC" am_compiler_list
=
5954 am_depcomp
=$ac_aux_dir/depcomp
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5956 $as_echo_n "checking dependency style of $depcc... " >&6; }
5957 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5958 $as_echo_n "(cached) " >&6
5960 if test -f "$am_depcomp"; then
5961 # We make a subdir and do the tests there. Otherwise we can end up
5962 # making bogus files that we don't know about and never remove. For
5963 # instance it was reported that on HP-UX the gcc test will end up
5964 # making a dummy file named `D' -- because `-MD' means `put the output
5967 # Copy depcomp to subdir because otherwise we won't find it if we're
5968 # using a relative directory.
5969 cp "$am_depcomp" conftest.dir
5971 # We will build objects and dependencies in a subdirectory because
5972 # it helps to detect inapplicable dependency modes. For instance
5973 # both Tru64's cc and ICC support -MD to output dependencies as a
5974 # side effect of compilation, but ICC will put the dependencies in
5975 # the current directory while Tru64 will put them in the object
5979 am_cv_CC_dependencies_compiler_type
=none
5980 if test "$am_compiler_list" = ""; then
5981 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5983 for depmode
in $am_compiler_list; do
5984 if test $depmode = none
; then break; fi
5986 $as_echo "$as_me:$LINENO: trying $depmode" >&5
5987 # Setup a source with many dependencies, because some compilers
5988 # like to wrap large dependency lists on column 80 (with \), and
5989 # we should not choose a depcomp mode which is confused by this.
5991 # We need to recreate these files for each test, as the compiler may
5992 # overwrite some of them when testing with obscure command lines.
5993 # This happens at least with the AIX C compiler.
5995 for i
in 1 2 3 4 5 6; do
5996 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5997 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5998 # Solaris 8's {/usr,}/bin/sh.
5999 touch sub
/conftst
$i.h
6001 echo "include sub/conftest.Po" > confmf
6003 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6004 # mode. It turns out that the SunPro C++ compiler does not properly
6005 # handle `-M -o', and we need to detect this.
6006 depcmd
="depmode=$depmode \
6007 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6008 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6009 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6010 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
6011 if env
$depcmd > conftest.err
2>&1 &&
6012 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
6013 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
6014 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
6015 # icc doesn't choke on unknown options, it will just issue warnings
6016 # or remarks (even with -Werror). So we grep stderr for any message
6017 # that says an option was ignored or not supported.
6018 # When given -MP, icc 7.0 and 7.1 complain thusly:
6019 # icc: Command line warning: ignoring option '-M'; no argument required
6020 # The diagnosis changed in icc 8.0:
6021 # icc: Command line remark: option '-MP' not supported
6022 if (grep 'ignoring option' conftest.err ||
6023 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6024 am_cv_CC_dependencies_compiler_type
=$depmode
6025 $as_echo "$as_me:$LINENO: success" >&5
6029 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6030 sed -e 's/^/| /' < conftest.err
>&5
6036 am_cv_CC_dependencies_compiler_type
=none
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6041 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6042 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
6043 then as_fn_error
"no usable dependency style found" "$LINENO" 5
6044 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
6049 gnulib_extra_configure_args
=
6050 # If large-file support is disabled, make sure gnulib does the same.
6051 if test "$enable_largefile" = no
; then
6052 gnulib_extra_configure_args
="$gnulib_extra_configure_args --disable-largefile"
6055 # Configure gnulib. We need to build gnulib under some other
6056 # directory not "gnulib", to avoid the problem of both GDB and
6057 # GDBserver wanting to build it in the same directory, when building
6058 # in the source dir.
6061 in_build
="build-gnulib"
6062 in_extra_args
="$gnulib_extra_configure_args"
6064 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
6065 # so they do not pile up.
6066 ac_sub_configure_args
=
6068 eval "set x $ac_configure_args"
6072 if test -n "$ac_prev"; then
6077 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
6078 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
6079 ac_prev
=cache_file
;;
6080 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
6081 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
6084 --config-cache |
-C)
6086 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
6088 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
6090 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
6092 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
6094 --disable-option-checking)
6098 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6100 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
6104 # Always prepend --prefix to ensure using the same prefix
6105 # in subdir configurations.
6106 ac_arg
="--prefix=$prefix"
6108 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6110 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
6113 if test "$silent" = yes; then
6114 ac_sub_configure_args
="--silent $ac_sub_configure_args"
6117 # Always prepend --disable-option-checking to silence warnings, since
6118 # different subdirs can have different --enable and --with options.
6119 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
6124 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
6125 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
6126 $as_echo "$ac_msg" >&6
6127 as_dir
="$ac_dir"; as_fn_mkdir_p
6131 ac_srcdir
=$srcdir/$in_src ;;
6133 ac_srcdir
=..
/$srcdir/$in_src ;;
6138 ac_sub_configure
=$ac_srcdir/configure
6140 # Make the cache file name correct relative to the subdirectory.
6142 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
6144 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
6147 if test -n "$in_extra_args"; then
6148 # Add the extra args at the end.
6149 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
6152 { $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
6153 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6154 # The eval makes quoting arguments work.
6155 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
6156 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
6157 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
6173 # If we haven't got the data from the intl directory,
6174 # assume NLS is disabled.
6183 if test -f ..
/intl
/config.intl
; then
6184 . ..
/intl
/config.intl
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6187 $as_echo_n "checking whether NLS is requested... " >&6; }
6188 if test x
"$USE_NLS" != xyes
; then
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6190 $as_echo "no" >&6; }
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6193 $as_echo "yes" >&6; }
6195 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6199 $as_echo_n "checking for catalogs to be installed... " >&6; }
6200 # Look for .po and .gmo files in the source directory.
6203 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
6204 # If there aren't any .gmo files the shell will give us the
6205 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6207 case "$cat" in *\
**)
6210 # The quadruple backslash is collapsed to a double backslash
6211 # by the backticks, then collapsed again by the double quotes,
6212 # leaving us with one backslash in the sed expression (right
6213 # before the dot that mustn't act as a wildcard).
6214 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6215 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
6216 # The user is allowed to set LINGUAS to a list of languages to
6217 # install catalogs for. If it's empty that means "all of them."
6218 if test "x$LINGUAS" = x
; then
6219 CATALOGS
="$CATALOGS $cat"
6220 XLINGUAS
="$XLINGUAS $lang"
6222 case "$LINGUAS" in *$lang*)
6223 CATALOGS
="$CATALOGS $cat"
6224 XLINGUAS
="$XLINGUAS $lang"
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6231 $as_echo "$LINGUAS" >&6; }
6244 localedir
='${datadir}/locale'
6247 if test x
"$USE_NLS" = xyes
; then
6248 CONFIG_ALL
="$CONFIG_ALL all-po"
6249 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
6250 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
6251 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
6254 GNULIB
=build-gnulib
/import
6256 # For Makefile dependencies.
6258 if test x
"$STDINT_H" != x
; then
6259 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
6265 cat >>confdefs.h
<<_ACEOF
6266 #define PACKAGE "$PACKAGE"
6271 # We never need to detect it in this sub-configure.
6272 # But preserve it for config.status --recheck.
6276 MAKEINFO_EXTRA_FLAGS
=""
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
6278 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
6279 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
6280 $as_echo_n "(cached) " >&6
6282 echo '@clicksequence{a @click{} b}' >conftest.texinfo
6283 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
6284 gdb_cv_have_makeinfo_click
=yes
6286 gdb_cv_have_makeinfo_click
=no
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
6290 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
6291 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
6292 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
6298 # Check whether --with-separate-debug-dir was given.
6299 if test "${with_separate_debug_dir+set}" = set; then :
6300 withval
=$with_separate_debug_dir;
6303 DEBUGDIR
=${libdir}/debug
6307 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6308 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6309 ac_define_dir
=`eval echo $DEBUGDIR`
6310 ac_define_dir
=`eval echo $ac_define_dir`
6312 cat >>confdefs.h
<<_ACEOF
6313 #define DEBUGDIR "$ac_define_dir"
6319 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6320 if test "x$prefix" = xNONE
; then
6321 test_prefix
=/usr
/local
6326 test_prefix
=$exec_prefix
6329 case ${ac_define_dir} in
6330 "${test_prefix}"|
"${test_prefix}/"*|\
6331 '${exec_prefix}'|
'${exec_prefix}/'*)
6336 cat >>confdefs.h
<<_ACEOF
6337 #define DEBUGDIR_RELOCATABLE $value
6343 # We can't pass paths as command line arguments.
6344 # Mingw32 tries to be clever and will convert the paths for us.
6345 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
6346 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
6347 # This breaks GDB's relocatable path conversions since paths passed in
6348 # config.h would not get so translated, the path prefixes no longer match.
6350 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6351 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6352 ac_define_dir
=`eval echo $bindir`
6353 ac_define_dir
=`eval echo $ac_define_dir`
6355 cat >>confdefs.h
<<_ACEOF
6356 #define BINDIR "$ac_define_dir"
6361 # GDB's datadir relocation
6365 # Check whether --with-gdb-datadir was given.
6366 if test "${with_gdb_datadir+set}" = set; then :
6367 withval
=$with_gdb_datadir;
6368 GDB_DATADIR
=$withval
6370 GDB_DATADIR
=${datadir}/gdb
6374 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6375 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6376 ac_define_dir
=`eval echo $GDB_DATADIR`
6377 ac_define_dir
=`eval echo $ac_define_dir`
6379 cat >>confdefs.h
<<_ACEOF
6380 #define GDB_DATADIR "$ac_define_dir"
6386 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6387 if test "x$prefix" = xNONE
; then
6388 test_prefix
=/usr
/local
6393 test_prefix
=$exec_prefix
6396 case ${ac_define_dir} in
6397 "${test_prefix}"|
"${test_prefix}/"*|\
6398 '${exec_prefix}'|
'${exec_prefix}/'*)
6403 cat >>confdefs.h
<<_ACEOF
6404 #define GDB_DATADIR_RELOCATABLE $value
6411 # Check whether --with-relocated-sources was given.
6412 if test "${with_relocated_sources+set}" = set; then :
6413 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
6415 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6416 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6417 ac_define_dir
=`eval echo $reloc_srcdir`
6418 ac_define_dir
=`eval echo $ac_define_dir`
6420 cat >>confdefs.h
<<_ACEOF
6421 #define RELOC_SRCDIR "$ac_define_dir"
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
6430 $as_echo_n "checking for default auto-load directory... " >&6; }
6432 # Check whether --with-auto-load-dir was given.
6433 if test "${with_auto_load_dir+set}" = set; then :
6434 withval
=$with_auto_load_dir;
6436 with_auto_load_dir
='$debugdir:$datadir/auto-load'
6439 escape_dir
=`echo $with_auto_load_dir | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
6441 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6442 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6443 ac_define_dir
=`eval echo $escape_dir`
6444 ac_define_dir
=`eval echo $ac_define_dir`
6446 cat >>confdefs.h
<<_ACEOF
6447 #define AUTO_LOAD_DIR "$ac_define_dir"
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
6452 $as_echo "$with_auto_load_dir" >&6; }
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
6455 $as_echo_n "checking for default auto-load safe-path... " >&6; }
6457 # Check whether --with-auto-load-safe-path was given.
6458 if test "${with_auto_load_safe_path+set}" = set; then :
6459 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
6460 with_auto_load_safe_path
="/"
6463 with_auto_load_safe_path
="$with_auto_load_dir"
6466 escape_dir
=`echo $with_auto_load_safe_path | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
6468 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6469 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6470 ac_define_dir
=`eval echo $escape_dir`
6471 ac_define_dir
=`eval echo $ac_define_dir`
6473 cat >>confdefs.h
<<_ACEOF
6474 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
6479 $as_echo "$with_auto_load_safe_path" >&6; }
6483 subdirs
="$subdirs testsuite"
6486 # Check whether to support alternative target configurations
6487 # Check whether --enable-targets was given.
6488 if test "${enable_targets+set}" = set; then :
6489 enableval
=$enable_targets; case "${enableval}" in
6490 yes |
"") as_fn_error
"enable-targets option must specify target names or 'all'" "$LINENO" 5
6492 no
) enable_targets
= ;;
6493 *) enable_targets
=$enableval ;;
6498 # Check whether to enable 64-bit support on 32-bit hosts
6499 # Check whether --enable-64-bit-bfd was given.
6500 if test "${enable_64_bit_bfd+set}" = set; then :
6501 enableval
=$enable_64_bit_bfd; case "${enableval}" in
6504 *) as_fn_error
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
6510 # Provide defaults for some variables set by the per-host and per-target
6512 gdb_host_obs
=posix-hdep.o
6514 if test "${target}" = "${host}"; then
6520 .
$srcdir/configure.
host
6522 # Add in the common host objects.
6523 .
$srcdir/common
/common.
host
6524 gdb_host_obs
="$gdb_host_obs $common_host_obs"
6526 # Accumulate some settings from configure.tgt over all enabled targets
6530 HAVE_NATIVE_GCORE_TARGET
=
6532 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6534 if test "$targ_alias" = "all"; then
6537 # Canonicalize the secondary target names.
6538 result
=`$ac_config_sub $targ_alias 2>/dev/null`
6539 if test -n "$result"; then
6545 .
${srcdir}/configure.tgt
6547 if test -z "${gdb_target_obs}"; then :
6548 as_fn_error
"configuration ${targ} is unsupported." "$LINENO" 5
6551 # Target-specific object files
6552 for i
in ${gdb_target_obs}; do
6553 case " $TARGET_OBS " in
6556 TARGET_OBS
="$TARGET_OBS ${i}"
6561 # Check whether this target needs 64-bit CORE_ADDR
6562 if test x
${want64} = xfalse
; then
6563 .
${srcdir}/..
/bfd
/config.bfd
6566 # Check whether this target is native and supports gcore.
6567 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
6568 && $gdb_have_gcore; then
6569 HAVE_NATIVE_GCORE_TARGET
=1
6574 if test x
${all_targets} = xtrue
; then
6576 # We want all 64-bit targets if we either:
6577 # - run on a 64-bit host or
6578 # - already require 64-bit support for some other target or
6579 # - the --enable-64-bit-bfd option was supplied
6580 # Otherwise we only support all 32-bit targets.
6582 # NOTE: This test must be in sync with the corresponding
6585 if test x
${want64} = xfalse
; then
6586 # The cast to long int works around a bug in the HP C Compiler
6587 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6588 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6589 # This bug is HP SR number 8606223364.
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6591 $as_echo_n "checking size of long... " >&6; }
6592 if test "${ac_cv_sizeof_long+set}" = set; then :
6593 $as_echo_n "(cached) " >&6
6595 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6598 if test "$ac_cv_type_long" = yes; then
6599 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6601 { as_fn_set_status
77
6602 as_fn_error
"cannot compute sizeof (long)
6603 See \`config.log' for more details." "$LINENO" 5; }; }
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6611 $as_echo "$ac_cv_sizeof_long" >&6; }
6615 cat >>confdefs.h
<<_ACEOF
6616 #define SIZEOF_LONG $ac_cv_sizeof_long
6620 if test "x${ac_cv_sizeof_long}" = "x8"; then
6624 if test x
${want64} = xtrue
; then
6625 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
6627 TARGET_OBS
='$(ALL_TARGET_OBS)'
6634 # For other settings, only the main target counts.
6638 targ
=$target; .
${srcdir}/configure.tgt
6640 # Fetch the default architecture and default target vector from BFD.
6641 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
6643 # We only want the first architecture, so strip off the others if
6644 # there is more than one.
6645 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
6647 if test "x$targ_archs" != x
; then
6649 cat >>confdefs.h
<<_ACEOF
6650 #define DEFAULT_BFD_ARCH $targ_archs
6654 if test "x$targ_defvec" != x
; then
6656 cat >>confdefs.h
<<_ACEOF
6657 #define DEFAULT_BFD_VEC $targ_defvec
6662 # The CLI cannot be disabled yet, but may be in the future.
6665 # Check whether --enable-gdbcli was given.
6666 if test "${enable_gdbcli+set}" = set; then :
6667 enableval
=$enable_gdbcli; case $enableval in
6671 as_fn_error
"the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
6673 as_fn_error
"bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
6679 if test x
"$enable_gdbcli" = xyes
; then
6680 if test -d $srcdir/cli
; then
6681 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
6682 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
6683 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
6684 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
6689 # Check whether --enable-gdbmi was given.
6690 if test "${enable_gdbmi+set}" = set; then :
6691 enableval
=$enable_gdbmi; case $enableval in
6695 as_fn_error
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
6701 if test x
"$enable_gdbmi" = xyes
; then
6702 if test -d $srcdir/mi
; then
6703 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6704 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6705 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6706 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6711 # Check whether --enable-tui was given.
6712 if test "${enable_tui+set}" = set; then :
6713 enableval
=$enable_tui; case $enableval in
6717 as_fn_error
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
6725 # Check whether --enable-gdbtk was given.
6726 if test "${enable_gdbtk+set}" = set; then :
6727 enableval
=$enable_gdbtk; case $enableval in
6731 as_fn_error
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
6734 if test -d $srcdir/gdbtk
; then
6741 # We unconditionally disable gdbtk tests on selected platforms.
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
6745 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6749 # Libunwind support for ia64.
6752 # Check whether --with-libunwind-ia64 was given.
6753 if test "${with_libunwind_ia64+set}" = set; then :
6754 withval
=$with_libunwind_ia64;
6756 with_libunwind_ia64
=auto
6760 # Backward compatibility option.
6761 if test "${with_libunwind+set}" = set; then
6762 if test x
"$with_libunwind_ia64" != xauto
; then
6763 as_fn_error
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
6766 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
6767 with_libunwind_ia64
="$with_libunwind"
6770 case "$with_libunwind_ia64" in
6774 for ac_header
in libunwind-ia64.h
6776 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
6777 if test "x$ac_cv_header_libunwind_ia64_h" = x
""yes; then :
6778 cat >>confdefs.h
<<_ACEOF
6779 #define HAVE_LIBUNWIND_IA64_H 1
6786 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
6789 as_fn_error
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
6793 if test x
"$with_libunwind_ia64" = xyes
; then
6794 for ac_header
in libunwind-ia64.h
6796 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
6797 if test "x$ac_cv_header_libunwind_ia64_h" = x
""yes; then :
6798 cat >>confdefs.h
<<_ACEOF
6799 #define HAVE_LIBUNWIND_IA64_H 1
6806 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
6807 as_fn_error
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
6809 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
6810 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
6811 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
6816 # Check whether --with-curses was given.
6817 if test "${with_curses+set}" = set; then :
6818 withval
=$with_curses; opt_curses
=$withval
6823 if test "$opt_curses" = "yes"; then
6827 # Profiling support.
6828 # Check whether --enable-profiling was given.
6829 if test "${enable_profiling+set}" = set; then :
6830 enableval
=$enable_profiling; case $enableval in
6834 as_fn_error
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
6841 for ac_func
in monstartup _mcleanup
6843 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6844 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6845 eval as_val
=\$
$as_ac_var
6846 if test "x$as_val" = x
""yes; then :
6847 cat >>confdefs.h
<<_ACEOF
6848 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
6855 $as_echo_n "checking for _etext... " >&6; }
6856 if test "${ac_cv_var__etext+set}" = set; then :
6857 $as_echo_n "(cached) " >&6
6859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6860 /* end confdefs.h. */
6872 if ac_fn_c_try_link
"$LINENO"; then :
6873 ac_cv_var__etext
=yes
6877 rm -f core conftest.err conftest.
$ac_objext \
6878 conftest
$ac_exeext conftest.
$ac_ext
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
6881 $as_echo "$ac_cv_var__etext" >&6; }
6882 if test $ac_cv_var__etext = yes; then
6884 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
6888 $as_echo_n "checking for etext... " >&6; }
6889 if test "${ac_cv_var_etext+set}" = set; then :
6890 $as_echo_n "(cached) " >&6
6892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6893 /* end confdefs.h. */
6905 if ac_fn_c_try_link
"$LINENO"; then :
6910 rm -f core conftest.err conftest.
$ac_objext \
6911 conftest
$ac_exeext conftest.
$ac_ext
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
6914 $as_echo "$ac_cv_var_etext" >&6; }
6915 if test $ac_cv_var_etext = yes; then
6917 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
6920 if test "$enable_profiling" = yes ; then
6921 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
6922 as_fn_error
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
6925 OLD_CFLAGS
="$CFLAGS"
6926 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
6929 $as_echo_n "checking whether $CC supports -pg... " >&6; }
6930 if test "${ac_cv_cc_supports_pg+set}" = set; then :
6931 $as_echo_n "(cached) " >&6
6933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6934 /* end confdefs.h. */
6944 if ac_fn_c_try_compile
"$LINENO"; then :
6945 ac_cv_cc_supports_pg
=yes
6947 ac_cv_cc_supports_pg
=no
6949 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
6952 $as_echo "$ac_cv_cc_supports_pg" >&6; }
6954 if test $ac_cv_cc_supports_pg = no
; then
6955 as_fn_error
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
6958 CFLAGS
="$OLD_CFLAGS"
6963 # Check whether --with-pkgversion was given.
6964 if test "${with_pkgversion+set}" = set; then :
6965 withval
=$with_pkgversion; case "$withval" in
6966 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
6968 *) PKGVERSION
="($withval) " ;;
6979 # Check whether --with-bugurl was given.
6980 if test "${with_bugurl+set}" = set; then :
6981 withval
=$with_bugurl; case "$withval" in
6982 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
6985 *) BUGURL
="$withval"
6989 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
6999 REPORT_BUGS_TO
="<$BUGURL>"
7000 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7007 cat >>confdefs.h
<<_ACEOF
7008 #define PKGVERSION "$PKGVERSION"
7012 cat >>confdefs.h
<<_ACEOF
7013 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7017 # --------------------- #
7018 # Checks for programs. #
7019 # --------------------- #
7021 for ac_prog
in gawk mawk nawk
awk
7023 # Extract the first word of "$ac_prog", so it can be a program name with args.
7024 set dummy
$ac_prog; ac_word
=$2
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7026 $as_echo_n "checking for $ac_word... " >&6; }
7027 if test "${ac_cv_prog_AWK+set}" = set; then :
7028 $as_echo_n "(cached) " >&6
7030 if test -n "$AWK"; then
7031 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7033 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7037 test -z "$as_dir" && as_dir
=.
7038 for ac_exec_ext
in '' $ac_executable_extensions; do
7039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7040 ac_cv_prog_AWK
="$ac_prog"
7041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7051 if test -n "$AWK"; then
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7053 $as_echo "$AWK" >&6; }
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7056 $as_echo "no" >&6; }
7060 test -n "$AWK" && break
7063 # Find a good install program. We prefer a C program (faster),
7064 # so one script is as good as another. But avoid the broken or
7065 # incompatible versions:
7066 # SysV /etc/install, /usr/sbin/install
7067 # SunOS /usr/etc/install
7068 # IRIX /sbin/install
7070 # AmigaOS /C/install, which installs bootblocks on floppy discs
7071 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7072 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7073 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7074 # OS/2's system install, which has a completely different semantic
7075 # ./install, which can be erroneously created by make from ./install.sh.
7076 # Reject install programs that cannot install multiple files.
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7078 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7079 if test -z "$INSTALL"; then
7080 if test "${ac_cv_path_install+set}" = set; then :
7081 $as_echo_n "(cached) " >&6
7083 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7087 test -z "$as_dir" && as_dir
=.
7088 # Account for people who put trailing slashes in PATH elements.
7089 case $as_dir/ in #((
7090 .
/ | .
// |
/[cC
]/* | \
7091 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7092 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
7095 # OSF1 and SCO ODT 3.0 have their own names for install.
7096 # Don't use installbsd from OSF since it installs stuff as root
7098 for ac_prog
in ginstall scoinst
install; do
7099 for ac_exec_ext
in '' $ac_executable_extensions; do
7100 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7101 if test $ac_prog = install &&
7102 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7103 # AIX install. It has an incompatible calling convention.
7105 elif test $ac_prog = install &&
7106 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7107 # program-specific install script used by HP pwplus--don't use.
7110 rm -rf conftest.one conftest.two conftest.dir
7111 echo one
> conftest.one
7112 echo two
> conftest.two
7114 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
7115 test -s conftest.one
&& test -s conftest.two
&&
7116 test -s conftest.dir
/conftest.one
&&
7117 test -s conftest.dir
/conftest.two
7119 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7132 rm -rf conftest.one conftest.two conftest.dir
7135 if test "${ac_cv_path_install+set}" = set; then
7136 INSTALL
=$ac_cv_path_install
7138 # As a last resort, use the slow shell script. Don't cache a
7139 # value for INSTALL within a source directory, because that will
7140 # break other packages using the cache if that directory is
7141 # removed, or if the value is a relative name.
7142 INSTALL
=$ac_install_sh
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7146 $as_echo "$INSTALL" >&6; }
7148 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7149 # It thinks the first close brace ends the variable substitution.
7150 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7152 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7154 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7157 $as_echo_n "checking whether ln -s works... " >&6; }
7159 if test "$LN_S" = "ln -s"; then
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7161 $as_echo "yes" >&6; }
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7164 $as_echo "no, using $LN_S" >&6; }
7167 if test -n "$ac_tool_prefix"; then
7168 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7169 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7171 $as_echo_n "checking for $ac_word... " >&6; }
7172 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7173 $as_echo_n "(cached) " >&6
7175 if test -n "$RANLIB"; then
7176 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7178 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7182 test -z "$as_dir" && as_dir
=.
7183 for ac_exec_ext
in '' $ac_executable_extensions; do
7184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7185 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7195 RANLIB
=$ac_cv_prog_RANLIB
7196 if test -n "$RANLIB"; then
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7198 $as_echo "$RANLIB" >&6; }
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7201 $as_echo "no" >&6; }
7206 if test -z "$ac_cv_prog_RANLIB"; then
7207 ac_ct_RANLIB
=$RANLIB
7208 # Extract the first word of "ranlib", so it can be a program name with args.
7209 set dummy ranlib
; ac_word
=$2
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7211 $as_echo_n "checking for $ac_word... " >&6; }
7212 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7213 $as_echo_n "(cached) " >&6
7215 if test -n "$ac_ct_RANLIB"; then
7216 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7218 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7222 test -z "$as_dir" && as_dir
=.
7223 for ac_exec_ext
in '' $ac_executable_extensions; do
7224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7225 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7235 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7236 if test -n "$ac_ct_RANLIB"; then
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7238 $as_echo "$ac_ct_RANLIB" >&6; }
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7241 $as_echo "no" >&6; }
7244 if test "x$ac_ct_RANLIB" = x
; then
7247 case $cross_compiling:$ac_tool_warned in
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7251 ac_tool_warned
=yes ;;
7253 RANLIB
=$ac_ct_RANLIB
7256 RANLIB
="$ac_cv_prog_RANLIB"
7259 for ac_prog
in 'bison -y' byacc
7261 # Extract the first word of "$ac_prog", so it can be a program name with args.
7262 set dummy
$ac_prog; ac_word
=$2
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7264 $as_echo_n "checking for $ac_word... " >&6; }
7265 if test "${ac_cv_prog_YACC+set}" = set; then :
7266 $as_echo_n "(cached) " >&6
7268 if test -n "$YACC"; then
7269 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
7271 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7275 test -z "$as_dir" && as_dir
=.
7276 for ac_exec_ext
in '' $ac_executable_extensions; do
7277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7278 ac_cv_prog_YACC
="$ac_prog"
7279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7288 YACC
=$ac_cv_prog_YACC
7289 if test -n "$YACC"; then
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7291 $as_echo "$YACC" >&6; }
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7294 $as_echo "no" >&6; }
7298 test -n "$YACC" && break
7300 test -n "$YACC" || YACC
="yacc"
7303 if test -n "$ac_tool_prefix"; then
7304 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7305 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7307 $as_echo_n "checking for $ac_word... " >&6; }
7308 if test "${ac_cv_prog_AR+set}" = set; then :
7309 $as_echo_n "(cached) " >&6
7311 if test -n "$AR"; then
7312 ac_cv_prog_AR
="$AR" # Let the user override the test.
7314 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7318 test -z "$as_dir" && as_dir
=.
7319 for ac_exec_ext
in '' $ac_executable_extensions; do
7320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7321 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7332 if test -n "$AR"; then
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7334 $as_echo "$AR" >&6; }
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7337 $as_echo "no" >&6; }
7342 if test -z "$ac_cv_prog_AR"; then
7344 # Extract the first word of "ar", so it can be a program name with args.
7345 set dummy
ar; ac_word
=$2
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7347 $as_echo_n "checking for $ac_word... " >&6; }
7348 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7349 $as_echo_n "(cached) " >&6
7351 if test -n "$ac_ct_AR"; then
7352 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7354 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7358 test -z "$as_dir" && as_dir
=.
7359 for ac_exec_ext
in '' $ac_executable_extensions; do
7360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7361 ac_cv_prog_ac_ct_AR
="ar"
7362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7371 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7372 if test -n "$ac_ct_AR"; then
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7374 $as_echo "$ac_ct_AR" >&6; }
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377 $as_echo "no" >&6; }
7380 if test "x$ac_ct_AR" = x
; then
7383 case $cross_compiling:$ac_tool_warned in
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7387 ac_tool_warned
=yes ;;
7395 if test -n "$ac_tool_prefix"; then
7396 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7397 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7399 $as_echo_n "checking for $ac_word... " >&6; }
7400 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7401 $as_echo_n "(cached) " >&6
7403 if test -n "$DLLTOOL"; then
7404 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
7406 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7410 test -z "$as_dir" && as_dir
=.
7411 for ac_exec_ext
in '' $ac_executable_extensions; do
7412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7413 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
7414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7423 DLLTOOL
=$ac_cv_prog_DLLTOOL
7424 if test -n "$DLLTOOL"; then
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7426 $as_echo "$DLLTOOL" >&6; }
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7429 $as_echo "no" >&6; }
7434 if test -z "$ac_cv_prog_DLLTOOL"; then
7435 ac_ct_DLLTOOL
=$DLLTOOL
7436 # Extract the first word of "dlltool", so it can be a program name with args.
7437 set dummy dlltool
; ac_word
=$2
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7439 $as_echo_n "checking for $ac_word... " >&6; }
7440 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7441 $as_echo_n "(cached) " >&6
7443 if test -n "$ac_ct_DLLTOOL"; then
7444 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
7446 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7450 test -z "$as_dir" && as_dir
=.
7451 for ac_exec_ext
in '' $ac_executable_extensions; do
7452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7453 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
7454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7463 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
7464 if test -n "$ac_ct_DLLTOOL"; then
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7466 $as_echo "$ac_ct_DLLTOOL" >&6; }
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7469 $as_echo "no" >&6; }
7472 if test "x$ac_ct_DLLTOOL" = x
; then
7475 case $cross_compiling:$ac_tool_warned in
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7479 ac_tool_warned
=yes ;;
7481 DLLTOOL
=$ac_ct_DLLTOOL
7484 DLLTOOL
="$ac_cv_prog_DLLTOOL"
7487 if test -n "$ac_tool_prefix"; then
7488 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7489 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7491 $as_echo_n "checking for $ac_word... " >&6; }
7492 if test "${ac_cv_prog_WINDRES+set}" = set; then :
7493 $as_echo_n "(cached) " >&6
7495 if test -n "$WINDRES"; then
7496 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
7498 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7502 test -z "$as_dir" && as_dir
=.
7503 for ac_exec_ext
in '' $ac_executable_extensions; do
7504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7505 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
7506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7515 WINDRES
=$ac_cv_prog_WINDRES
7516 if test -n "$WINDRES"; then
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7518 $as_echo "$WINDRES" >&6; }
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7521 $as_echo "no" >&6; }
7526 if test -z "$ac_cv_prog_WINDRES"; then
7527 ac_ct_WINDRES
=$WINDRES
7528 # Extract the first word of "windres", so it can be a program name with args.
7529 set dummy windres
; ac_word
=$2
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7531 $as_echo_n "checking for $ac_word... " >&6; }
7532 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
7533 $as_echo_n "(cached) " >&6
7535 if test -n "$ac_ct_WINDRES"; then
7536 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
7538 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7542 test -z "$as_dir" && as_dir
=.
7543 for ac_exec_ext
in '' $ac_executable_extensions; do
7544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7545 ac_cv_prog_ac_ct_WINDRES
="windres"
7546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7555 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
7556 if test -n "$ac_ct_WINDRES"; then
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7558 $as_echo "$ac_ct_WINDRES" >&6; }
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7561 $as_echo "no" >&6; }
7564 if test "x$ac_ct_WINDRES" = x
; then
7567 case $cross_compiling:$ac_tool_warned in
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7571 ac_tool_warned
=yes ;;
7573 WINDRES
=$ac_ct_WINDRES
7576 WINDRES
="$ac_cv_prog_WINDRES"
7582 # Needed for GNU Hurd hosts.
7583 if test -n "$ac_tool_prefix"; then
7584 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7585 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7587 $as_echo_n "checking for $ac_word... " >&6; }
7588 if test "${ac_cv_prog_MIG+set}" = set; then :
7589 $as_echo_n "(cached) " >&6
7591 if test -n "$MIG"; then
7592 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
7594 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7598 test -z "$as_dir" && as_dir
=.
7599 for ac_exec_ext
in '' $ac_executable_extensions; do
7600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7601 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
7602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7612 if test -n "$MIG"; then
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
7614 $as_echo "$MIG" >&6; }
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7617 $as_echo "no" >&6; }
7622 if test -z "$ac_cv_prog_MIG"; then
7624 # Extract the first word of "mig", so it can be a program name with args.
7625 set dummy mig
; ac_word
=$2
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7627 $as_echo_n "checking for $ac_word... " >&6; }
7628 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
7629 $as_echo_n "(cached) " >&6
7631 if test -n "$ac_ct_MIG"; then
7632 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
7634 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7638 test -z "$as_dir" && as_dir
=.
7639 for ac_exec_ext
in '' $ac_executable_extensions; do
7640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7641 ac_cv_prog_ac_ct_MIG
="mig"
7642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7651 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
7652 if test -n "$ac_ct_MIG"; then
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
7654 $as_echo "$ac_ct_MIG" >&6; }
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7657 $as_echo "no" >&6; }
7660 if test "x$ac_ct_MIG" = x
; then
7663 case $cross_compiling:$ac_tool_warned in
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7667 ac_tool_warned
=yes ;;
7672 MIG
="$ac_cv_prog_MIG"
7675 if test x
"$MIG" = x
; then
7676 as_fn_error
"MIG not found but required for $host hosts" "$LINENO" 5
7681 # ---------------------- #
7682 # Checks for libraries. #
7683 # ---------------------- #
7685 # We might need to link with -lm; most simulators need it.
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7687 $as_echo_n "checking for main in -lm... " >&6; }
7688 if test "${ac_cv_lib_m_main+set}" = set; then :
7689 $as_echo_n "(cached) " >&6
7691 ac_check_lib_save_LIBS
=$LIBS
7693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7694 /* end confdefs.h. */
7705 if ac_fn_c_try_link
"$LINENO"; then :
7706 ac_cv_lib_m_main
=yes
7710 rm -f core conftest.err conftest.
$ac_objext \
7711 conftest
$ac_exeext conftest.
$ac_ext
7712 LIBS
=$ac_check_lib_save_LIBS
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7715 $as_echo "$ac_cv_lib_m_main" >&6; }
7716 if test "x$ac_cv_lib_m_main" = x
""yes; then :
7717 cat >>confdefs.h
<<_ACEOF
7726 # We need to link with -lw to get `wctype' on Solaris before Solaris
7727 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
7728 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
7729 # is known to have this problem). Therefore we avoid libw if we can.
7730 ac_fn_c_check_func
"$LINENO" "wctype" "ac_cv_func_wctype"
7731 if test "x$ac_cv_func_wctype" = x
""yes; then :
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
7735 $as_echo_n "checking for wctype in -lw... " >&6; }
7736 if test "${ac_cv_lib_w_wctype+set}" = set; then :
7737 $as_echo_n "(cached) " >&6
7739 ac_check_lib_save_LIBS
=$LIBS
7741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7742 /* end confdefs.h. */
7744 /* Override any GCC internal prototype to avoid an error.
7745 Use char because int might match the return type of a GCC
7746 builtin and then its argument prototype would still apply. */
7759 if ac_fn_c_try_link
"$LINENO"; then :
7760 ac_cv_lib_w_wctype
=yes
7762 ac_cv_lib_w_wctype
=no
7764 rm -f core conftest.err conftest.
$ac_objext \
7765 conftest
$ac_exeext conftest.
$ac_ext
7766 LIBS
=$ac_check_lib_save_LIBS
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
7769 $as_echo "$ac_cv_lib_w_wctype" >&6; }
7770 if test "x$ac_cv_lib_w_wctype" = x
""yes; then :
7771 cat >>confdefs.h
<<_ACEOF
7782 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
7784 $as_echo_n "checking for library containing gethostbyname... " >&6; }
7785 if test "${ac_cv_search_gethostbyname+set}" = set; then :
7786 $as_echo_n "(cached) " >&6
7788 ac_func_search_save_LIBS
=$LIBS
7789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7790 /* end confdefs.h. */
7792 /* Override any GCC internal prototype to avoid an error.
7793 Use char because int might match the return type of a GCC
7794 builtin and then its argument prototype would still apply. */
7798 char gethostbyname ();
7802 return gethostbyname ();
7807 for ac_lib
in '' nsl
; do
7808 if test -z "$ac_lib"; then
7809 ac_res
="none required"
7812 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7814 if ac_fn_c_try_link
"$LINENO"; then :
7815 ac_cv_search_gethostbyname
=$ac_res
7817 rm -f core conftest.err conftest.
$ac_objext \
7819 if test "${ac_cv_search_gethostbyname+set}" = set; then :
7823 if test "${ac_cv_search_gethostbyname+set}" = set; then :
7826 ac_cv_search_gethostbyname
=no
7829 LIBS
=$ac_func_search_save_LIBS
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
7832 $as_echo "$ac_cv_search_gethostbyname" >&6; }
7833 ac_res
=$ac_cv_search_gethostbyname
7834 if test "$ac_res" != no
; then :
7835 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7840 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
7842 $as_echo_n "checking for library containing socketpair... " >&6; }
7843 if test "${ac_cv_search_socketpair+set}" = set; then :
7844 $as_echo_n "(cached) " >&6
7846 ac_func_search_save_LIBS
=$LIBS
7847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7848 /* end confdefs.h. */
7850 /* Override any GCC internal prototype to avoid an error.
7851 Use char because int might match the return type of a GCC
7852 builtin and then its argument prototype would still apply. */
7860 return socketpair ();
7865 for ac_lib
in '' socket
; do
7866 if test -z "$ac_lib"; then
7867 ac_res
="none required"
7870 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7872 if ac_fn_c_try_link
"$LINENO"; then :
7873 ac_cv_search_socketpair
=$ac_res
7875 rm -f core conftest.err conftest.
$ac_objext \
7877 if test "${ac_cv_search_socketpair+set}" = set; then :
7881 if test "${ac_cv_search_socketpair+set}" = set; then :
7884 ac_cv_search_socketpair
=no
7887 LIBS
=$ac_func_search_save_LIBS
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
7890 $as_echo "$ac_cv_search_socketpair" >&6; }
7891 ac_res
=$ac_cv_search_socketpair
7892 if test "$ac_res" != no
; then :
7893 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7898 # Link in zlib if we can. This allows us to read compressed debug sections.
7900 # Use the system's zlib library.
7901 zlibdir
="-L\$(top_builddir)/../zlib"
7902 zlibinc
="-I\$(top_srcdir)/../zlib"
7904 # Check whether --with-system-zlib was given.
7905 if test "${with_system_zlib+set}" = set; then :
7906 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
7917 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
7918 # On GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
7920 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
7921 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7922 $as_echo_n "(cached) " >&6
7924 ac_func_search_save_LIBS
=$LIBS
7925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7926 /* end confdefs.h. */
7928 /* Override any GCC internal prototype to avoid an error.
7929 Use char because int might match the return type of a GCC
7930 builtin and then its argument prototype would still apply. */
7934 char kinfo_getvmmap ();
7938 return kinfo_getvmmap ();
7943 for ac_lib
in '' util util-freebsd
; do
7944 if test -z "$ac_lib"; then
7945 ac_res
="none required"
7948 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7950 if ac_fn_c_try_link
"$LINENO"; then :
7951 ac_cv_search_kinfo_getvmmap
=$ac_res
7953 rm -f core conftest.err conftest.
$ac_objext \
7955 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7959 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7962 ac_cv_search_kinfo_getvmmap
=no
7965 LIBS
=$ac_func_search_save_LIBS
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
7968 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
7969 ac_res
=$ac_cv_search_kinfo_getvmmap
7970 if test "$ac_res" != no
; then :
7971 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7973 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
7979 if test "X$prefix" = "XNONE"; then
7980 acl_final_prefix
="$ac_default_prefix"
7982 acl_final_prefix
="$prefix"
7984 if test "X$exec_prefix" = "XNONE"; then
7985 acl_final_exec_prefix
='${prefix}'
7987 acl_final_exec_prefix
="$exec_prefix"
7989 acl_save_prefix
="$prefix"
7990 prefix
="$acl_final_prefix"
7991 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
7992 prefix
="$acl_save_prefix"
7995 # Check whether --with-gnu-ld was given.
7996 if test "${with_gnu_ld+set}" = set; then :
7997 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8002 # Prepare PATH_SEPARATOR.
8003 # The user is always right.
8004 if test "${PATH_SEPARATOR+set}" != set; then
8005 echo "#! /bin/sh" >conf$$.sh
8006 echo "exit 0" >>conf$$.sh
8008 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8016 if test "$GCC" = yes; then
8017 # Check if gcc -print-prog-name=ld gives a path.
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8019 $as_echo_n "checking for ld used by GCC... " >&6; }
8022 # gcc leaves a trailing carriage return which upsets mingw
8023 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8025 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8028 # Accept absolute paths.
8029 [\\/]* |
[A-Za-z
]:[\\/]*)
8030 re_direlt
='/[^/][^/]*/\.\./'
8031 # Canonicalize the path of ld
8032 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8033 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8034 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8036 test -z "$LD" && LD
="$ac_prog"
8039 # If it fails, then pretend we aren't using GCC.
8043 # If it is relative, then search for the first ld in PATH.
8047 elif test "$with_gnu_ld" = yes; then
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8049 $as_echo_n "checking for GNU ld... " >&6; }
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8052 $as_echo_n "checking for non-GNU ld... " >&6; }
8054 if test "${acl_cv_path_LD+set}" = set; then :
8055 $as_echo_n "(cached) " >&6
8057 if test -z "$LD"; then
8058 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8059 for ac_dir
in $PATH; do
8060 test -z "$ac_dir" && ac_dir
=.
8061 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8062 acl_cv_path_LD
="$ac_dir/$ac_prog"
8063 # Check to see if the program is GNU ld. I'd rather use --version,
8064 # but apparently some GNU ld's only accept -v.
8065 # Break only if it was the GNU/non-GNU ld that we prefer.
8066 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
8067 test "$with_gnu_ld" != no
&& break
8069 test "$with_gnu_ld" != yes && break
8075 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8079 LD
="$acl_cv_path_LD"
8080 if test -n "$LD"; then
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8082 $as_echo "$LD" >&6; }
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8085 $as_echo "no" >&6; }
8087 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8089 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8090 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
8091 $as_echo_n "(cached) " >&6
8093 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8094 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8095 acl_cv_prog_gnu_ld
=yes
8097 acl_cv_prog_gnu_ld
=no
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8101 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8102 with_gnu_ld
=$acl_cv_prog_gnu_ld
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8107 $as_echo_n "checking for shared library run path origin... " >&6; }
8108 if test "${acl_cv_rpath+set}" = set; then :
8109 $as_echo_n "(cached) " >&6
8112 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8113 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8120 $as_echo "$acl_cv_rpath" >&6; }
8122 libext
="$acl_cv_libext"
8123 shlibext
="$acl_cv_shlibext"
8124 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8125 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8126 hardcode_direct
="$acl_cv_hardcode_direct"
8127 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8128 # Check whether --enable-rpath was given.
8129 if test "${enable_rpath+set}" = set; then :
8130 enableval
=$enable_rpath; :
8144 acl_save_prefix
="$prefix"
8145 prefix
="$acl_final_prefix"
8146 acl_save_exec_prefix
="$exec_prefix"
8147 exec_prefix
="$acl_final_exec_prefix"
8149 eval additional_includedir
=\"$includedir\"
8150 eval additional_libdir
=\"$libdir\"
8152 exec_prefix
="$acl_save_exec_prefix"
8153 prefix
="$acl_save_prefix"
8156 # Check whether --with-libiconv-prefix was given.
8157 if test "${with_libiconv_prefix+set}" = set; then :
8158 withval
=$with_libiconv_prefix;
8159 if test "X$withval" = "Xno"; then
8162 if test "X$withval" = "X"; then
8164 acl_save_prefix
="$prefix"
8165 prefix
="$acl_final_prefix"
8166 acl_save_exec_prefix
="$exec_prefix"
8167 exec_prefix
="$acl_final_exec_prefix"
8169 eval additional_includedir
=\"$includedir\"
8170 eval additional_libdir
=\"$libdir\"
8172 exec_prefix
="$acl_save_exec_prefix"
8173 prefix
="$acl_save_prefix"
8176 additional_includedir
="$withval/include"
8177 additional_libdir
="$withval/lib"
8188 names_already_handled
=
8189 names_next_round
='iconv '
8190 while test -n "$names_next_round"; do
8191 names_this_round
="$names_next_round"
8193 for name
in $names_this_round; do
8195 for n
in $names_already_handled; do
8196 if test "$n" = "$name"; then
8201 if test -z "$already_handled"; then
8202 names_already_handled
="$names_already_handled $name"
8203 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8204 eval value
=\"\
$HAVE_LIB$uppername\"
8205 if test -n "$value"; then
8206 if test "$value" = yes; then
8207 eval value
=\"\
$LIB$uppername\"
8208 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
8209 eval value
=\"\
$LTLIB$uppername\"
8210 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
8219 if test $use_additional = yes; then
8220 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8221 found_dir
="$additional_libdir"
8222 found_so
="$additional_libdir/lib$name.$shlibext"
8223 if test -f "$additional_libdir/lib$name.la"; then
8224 found_la
="$additional_libdir/lib$name.la"
8227 if test -f "$additional_libdir/lib$name.$libext"; then
8228 found_dir
="$additional_libdir"
8229 found_a
="$additional_libdir/lib$name.$libext"
8230 if test -f "$additional_libdir/lib$name.la"; then
8231 found_la
="$additional_libdir/lib$name.la"
8236 if test "X$found_dir" = "X"; then
8237 for x
in $LDFLAGS $LTLIBICONV; do
8239 acl_save_prefix
="$prefix"
8240 prefix
="$acl_final_prefix"
8241 acl_save_exec_prefix
="$exec_prefix"
8242 exec_prefix
="$acl_final_exec_prefix"
8244 exec_prefix
="$acl_save_exec_prefix"
8245 prefix
="$acl_save_prefix"
8249 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8250 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8252 found_so
="$dir/lib$name.$shlibext"
8253 if test -f "$dir/lib$name.la"; then
8254 found_la
="$dir/lib$name.la"
8257 if test -f "$dir/lib$name.$libext"; then
8259 found_a
="$dir/lib$name.$libext"
8260 if test -f "$dir/lib$name.la"; then
8261 found_la
="$dir/lib$name.la"
8267 if test "X$found_dir" != "X"; then
8272 if test "X$found_dir" != "X"; then
8273 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8274 if test "X$found_so" != "X"; then
8275 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8276 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8279 for x
in $ltrpathdirs; do
8280 if test "X$x" = "X$found_dir"; then
8285 if test -z "$haveit"; then
8286 ltrpathdirs
="$ltrpathdirs $found_dir"
8288 if test "$hardcode_direct" = yes; then
8289 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8291 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8292 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8294 for x
in $rpathdirs; do
8295 if test "X$x" = "X$found_dir"; then
8300 if test -z "$haveit"; then
8301 rpathdirs
="$rpathdirs $found_dir"
8305 for x
in $LDFLAGS $LIBICONV; 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$found_dir"; then
8320 if test -z "$haveit"; then
8321 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8323 if test "$hardcode_minus_L" != no
; then
8324 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8326 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8332 if test "X$found_a" != "X"; then
8333 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
8335 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8338 additional_includedir
=
8339 case "$found_dir" in
8341 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8342 additional_includedir
="$basedir/include"
8345 if test "X$additional_includedir" != "X"; then
8346 if test "X$additional_includedir" != "X/usr/include"; then
8348 if test "X$additional_includedir" = "X/usr/local/include"; then
8349 if test -n "$GCC"; then
8351 linux
*) haveit
=yes;;
8355 if test -z "$haveit"; then
8356 for x
in $CPPFLAGS $INCICONV; do
8358 acl_save_prefix
="$prefix"
8359 prefix
="$acl_final_prefix"
8360 acl_save_exec_prefix
="$exec_prefix"
8361 exec_prefix
="$acl_final_exec_prefix"
8363 exec_prefix
="$acl_save_exec_prefix"
8364 prefix
="$acl_save_prefix"
8366 if test "X$x" = "X-I$additional_includedir"; then
8371 if test -z "$haveit"; then
8372 if test -d "$additional_includedir"; then
8373 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8379 if test -n "$found_la"; then
8380 save_libdir
="$libdir"
8382 */* |
*\\*) .
"$found_la" ;;
8383 *) .
"./$found_la" ;;
8385 libdir
="$save_libdir"
8386 for dep
in $dependency_libs; do
8389 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8390 if test "X$additional_libdir" != "X/usr/lib"; then
8392 if test "X$additional_libdir" = "X/usr/local/lib"; then
8393 if test -n "$GCC"; then
8395 linux
*) haveit
=yes;;
8399 if test -z "$haveit"; then
8401 for x
in $LDFLAGS $LIBICONV; do
8403 acl_save_prefix
="$prefix"
8404 prefix
="$acl_final_prefix"
8405 acl_save_exec_prefix
="$exec_prefix"
8406 exec_prefix
="$acl_final_exec_prefix"
8408 exec_prefix
="$acl_save_exec_prefix"
8409 prefix
="$acl_save_prefix"
8411 if test "X$x" = "X-L$additional_libdir"; then
8416 if test -z "$haveit"; then
8417 if test -d "$additional_libdir"; then
8418 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8422 for x
in $LDFLAGS $LTLIBICONV; do
8424 acl_save_prefix
="$prefix"
8425 prefix
="$acl_final_prefix"
8426 acl_save_exec_prefix
="$exec_prefix"
8427 exec_prefix
="$acl_final_exec_prefix"
8429 exec_prefix
="$acl_save_exec_prefix"
8430 prefix
="$acl_save_prefix"
8432 if test "X$x" = "X-L$additional_libdir"; then
8437 if test -z "$haveit"; then
8438 if test -d "$additional_libdir"; then
8439 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8446 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8447 if test "$enable_rpath" != no
; then
8449 for x
in $rpathdirs; do
8450 if test "X$x" = "X$dir"; then
8455 if test -z "$haveit"; then
8456 rpathdirs
="$rpathdirs $dir"
8459 for x
in $ltrpathdirs; do
8460 if test "X$x" = "X$dir"; then
8465 if test -z "$haveit"; then
8466 ltrpathdirs
="$ltrpathdirs $dir"
8471 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8474 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8477 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
8478 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8484 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8485 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8491 if test "X$rpathdirs" != "X"; then
8492 if test -n "$hardcode_libdir_separator"; then
8494 for found_dir
in $rpathdirs; do
8495 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8497 acl_save_libdir
="$libdir"
8499 eval flag
=\"$hardcode_libdir_flag_spec\"
8500 libdir
="$acl_save_libdir"
8501 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8503 for found_dir
in $rpathdirs; do
8504 acl_save_libdir
="$libdir"
8506 eval flag
=\"$hardcode_libdir_flag_spec\"
8507 libdir
="$acl_save_libdir"
8508 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8512 if test "X$ltrpathdirs" != "X"; then
8513 for found_dir
in $ltrpathdirs; do
8514 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8525 $as_echo_n "checking for iconv... " >&6; }
8526 if test "${am_cv_func_iconv+set}" = set; then :
8527 $as_echo_n "(cached) " >&6
8530 am_cv_func_iconv
="no, consider installing GNU libiconv"
8532 am_save_CPPFLAGS
="$CPPFLAGS"
8533 CPPFLAGS
="$CPPFLAGS $INCICONV"
8534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8535 /* end confdefs.h. */
8541 iconv_t cd = iconv_open("","");
8542 iconv(cd,NULL,NULL,NULL,NULL);
8548 if ac_fn_c_try_link
"$LINENO"; then :
8549 am_cv_func_iconv
=yes
8551 rm -f core conftest.err conftest.
$ac_objext \
8552 conftest
$ac_exeext conftest.
$ac_ext
8553 CPPFLAGS
="$am_save_CPPFLAGS"
8555 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
8556 for _libs
in .libs _libs
; do
8557 am_save_CPPFLAGS
="$CPPFLAGS"
8558 am_save_LIBS
="$LIBS"
8559 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
8560 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
8561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8562 /* end confdefs.h. */
8568 iconv_t cd = iconv_open("","");
8569 iconv(cd,NULL,NULL,NULL,NULL);
8575 if ac_fn_c_try_link
"$LINENO"; then :
8576 INCICONV
="-I../libiconv/include"
8577 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
8578 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
8580 am_cv_func_iconv
=yes
8582 rm -f core conftest.err conftest.
$ac_objext \
8583 conftest
$ac_exeext conftest.
$ac_ext
8584 CPPFLAGS
="$am_save_CPPFLAGS"
8585 LIBS
="$am_save_LIBS"
8586 if test "$am_cv_func_iconv" = "yes"; then
8592 if test "$am_cv_func_iconv" != yes; then
8593 am_save_CPPFLAGS
="$CPPFLAGS"
8594 am_save_LIBS
="$LIBS"
8595 CPPFLAGS
="$LIBS $INCICONV"
8596 LIBS
="$LIBS $LIBICONV"
8597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8598 /* end confdefs.h. */
8604 iconv_t cd = iconv_open("","");
8605 iconv(cd,NULL,NULL,NULL,NULL);
8611 if ac_fn_c_try_link
"$LINENO"; then :
8613 am_cv_func_iconv
=yes
8615 rm -f core conftest.err conftest.
$ac_objext \
8616 conftest
$ac_exeext conftest.
$ac_ext
8617 CPPFLAGS
="$am_save_CPPFLAGS"
8618 LIBS
="$am_save_LIBS"
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8623 $as_echo "$am_cv_func_iconv" >&6; }
8624 if test "$am_cv_func_iconv" = yes; then
8626 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8629 if test "$am_cv_lib_iconv" = yes; then
8631 for element
in $INCICONV; do
8633 for x
in $CPPFLAGS; do
8635 acl_save_prefix
="$prefix"
8636 prefix
="$acl_final_prefix"
8637 acl_save_exec_prefix
="$exec_prefix"
8638 exec_prefix
="$acl_final_exec_prefix"
8640 exec_prefix
="$acl_save_exec_prefix"
8641 prefix
="$acl_save_prefix"
8643 if test "X$x" = "X$element"; then
8648 if test -z "$haveit"; then
8649 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8654 $as_echo_n "checking how to link with libiconv... " >&6; }
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8656 $as_echo "$LIBICONV" >&6; }
8664 if test "$am_cv_func_iconv" = yes; then
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8666 $as_echo_n "checking for iconv declaration... " >&6; }
8667 if test "${am_cv_proto_iconv+set}" = set; then :
8668 $as_echo_n "(cached) " >&6
8671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8672 /* end confdefs.h. */
8680 #if defined(__STDC__) || defined(__cplusplus)
8681 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8694 if ac_fn_c_try_compile
"$LINENO"; then :
8695 am_cv_proto_iconv_arg1
=""
8697 am_cv_proto_iconv_arg1
="const"
8699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8700 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);"
8703 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8705 }$am_cv_proto_iconv" >&5
8707 }$am_cv_proto_iconv" >&6; }
8709 cat >>confdefs.h
<<_ACEOF
8710 #define ICONV_CONST $am_cv_proto_iconv_arg1
8716 # GDB may fork/exec the iconv program to get the list of supported character
8717 # sets. Allow the user to specify where to find it.
8718 # There are several factors affecting the choice of option name:
8719 # - There is already --with-libiconv-prefix but we can't use it, it specifies
8720 # the build-time location of libiconv files.
8721 # - The program we need to find is iconv, which comes with glibc. The user
8722 # doesn't necessarily have libiconv installed. Therefore naming this
8723 # --with-libiconv-foo feels wrong.
8724 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
8725 # defined to work on directories not files (though it really doesn't know
8727 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
8728 # with --with-libiconv-prefix.
8729 # Putting these together is why the option name is --with-iconv-bin.
8732 # Check whether --with-iconv-bin was given.
8733 if test "${with_iconv_bin+set}" = set; then :
8734 withval
=$with_iconv_bin; iconv_bin
="${withval}"
8736 cat >>confdefs.h
<<_ACEOF
8737 #define ICONV_BIN "${iconv_bin}"
8741 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
8742 if test "x$prefix" = xNONE
; then
8743 test_prefix
=/usr
/local
8748 test_prefix
=$exec_prefix
8751 case ${iconv_bin} in
8752 "${test_prefix}"|
"${test_prefix}/"*|\
8753 '${exec_prefix}'|
'${exec_prefix}/'*)
8758 cat >>confdefs.h
<<_ACEOF
8759 #define ICONV_BIN_RELOCATABLE $value
8767 # For the TUI, we need enhanced curses functionality.
8768 if test x
"$enable_tui" != xno
; then
8773 if test x
"$prefer_curses" = xyes
; then
8774 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8775 # curses library because the latter might not provide all the
8776 # functionality we need. However, this leads to problems on systems
8777 # where the linker searches /usr/local/lib, but the compiler doesn't
8778 # search /usr/local/include, if ncurses is installed in /usr/local. A
8779 # default installation of ncurses on alpha*-dec-osf* will lead to such
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
8782 $as_echo_n "checking for library containing waddstr... " >&6; }
8783 if test "${ac_cv_search_waddstr+set}" = set; then :
8784 $as_echo_n "(cached) " >&6
8786 ac_func_search_save_LIBS
=$LIBS
8787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8788 /* end confdefs.h. */
8790 /* Override any GCC internal prototype to avoid an error.
8791 Use char because int might match the return type of a GCC
8792 builtin and then its argument prototype would still apply. */
8805 for ac_lib
in '' ncurses cursesX curses
; do
8806 if test -z "$ac_lib"; then
8807 ac_res
="none required"
8810 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8812 if ac_fn_c_try_link
"$LINENO"; then :
8813 ac_cv_search_waddstr
=$ac_res
8815 rm -f core conftest.err conftest.
$ac_objext \
8817 if test "${ac_cv_search_waddstr+set}" = set; then :
8821 if test "${ac_cv_search_waddstr+set}" = set; then :
8824 ac_cv_search_waddstr
=no
8827 LIBS
=$ac_func_search_save_LIBS
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
8830 $as_echo "$ac_cv_search_waddstr" >&6; }
8831 ac_res
=$ac_cv_search_waddstr
8832 if test "$ac_res" != no
; then :
8833 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8838 if test "$ac_cv_search_waddstr" != no
; then
8843 # Check whether we should enable the TUI, but only do so if we really
8845 if test x
"$enable_tui" != xno
; then
8846 if test -d $srcdir/tui
; then
8847 if test "$curses_found" != no
; then
8848 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
8849 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
8850 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
8851 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
8853 if test x
"$enable_tui" = xyes
; then
8854 as_fn_error
"no enhanced curses library found; disable TUI" "$LINENO" 5
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
8857 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
8863 # Since GDB uses Readline, we need termcap functionality. In many
8864 # cases this will be provided by the curses library, but some systems
8865 # have a separate termcap library, or no curses library at all.
8869 if test -d $srcdir/libtermcap
; then
8870 LIBS
="../libtermcap/libtermcap.a $LIBS"
8871 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
8874 ac_cv_search_tgetent
="none required"
8878 # These are the libraries checked by Readline.
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
8880 $as_echo_n "checking for library containing tgetent... " >&6; }
8881 if test "${ac_cv_search_tgetent+set}" = set; then :
8882 $as_echo_n "(cached) " >&6
8884 ac_func_search_save_LIBS
=$LIBS
8885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8886 /* end confdefs.h. */
8888 /* Override any GCC internal prototype to avoid an error.
8889 Use char because int might match the return type of a GCC
8890 builtin and then its argument prototype would still apply. */
8903 for ac_lib
in '' termcap tinfo curses ncurses
; do
8904 if test -z "$ac_lib"; then
8905 ac_res
="none required"
8908 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8910 if ac_fn_c_try_link
"$LINENO"; then :
8911 ac_cv_search_tgetent
=$ac_res
8913 rm -f core conftest.err conftest.
$ac_objext \
8915 if test "${ac_cv_search_tgetent+set}" = set; then :
8919 if test "${ac_cv_search_tgetent+set}" = set; then :
8922 ac_cv_search_tgetent
=no
8925 LIBS
=$ac_func_search_save_LIBS
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
8928 $as_echo "$ac_cv_search_tgetent" >&6; }
8929 ac_res
=$ac_cv_search_tgetent
8930 if test "$ac_res" != no
; then :
8931 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8936 if test "$ac_cv_search_tgetent" = no
; then
8937 CONFIG_OBS
="$CONFIG_OBS stub-termcap.o"
8941 # Check whether --with-system-readline was given.
8942 if test "${with_system_readline+set}" = set; then :
8943 withval
=$with_system_readline;
8947 if test "$with_system_readline" = yes; then
8951 READLINE_TEXI_INCFLAG
=
8953 READLINE
='$(READLINE_DIR)/libreadline.a'
8954 READLINE_DEPS
='$(READLINE)'
8955 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
8956 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
8963 # Generate jit-reader.h
8965 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
8968 # The cast to long int works around a bug in the HP C Compiler
8969 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8970 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8971 # This bug is HP SR number 8606223364.
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
8973 $as_echo_n "checking size of unsigned long long... " >&6; }
8974 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
8975 $as_echo_n "(cached) " >&6
8977 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
8980 if test "$ac_cv_type_unsigned_long_long" = yes; then
8981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8983 { as_fn_set_status
77
8984 as_fn_error
"cannot compute sizeof (unsigned long long)
8985 See \`config.log' for more details." "$LINENO" 5; }; }
8987 ac_cv_sizeof_unsigned_long_long
=0
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
8993 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
8997 cat >>confdefs.h
<<_ACEOF
8998 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
9002 # The cast to long int works around a bug in the HP C Compiler
9003 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9004 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9005 # This bug is HP SR number 8606223364.
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
9007 $as_echo_n "checking size of unsigned long... " >&6; }
9008 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
9009 $as_echo_n "(cached) " >&6
9011 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
9014 if test "$ac_cv_type_unsigned_long" = yes; then
9015 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9017 { as_fn_set_status
77
9018 as_fn_error
"cannot compute sizeof (unsigned long)
9019 See \`config.log' for more details." "$LINENO" 5; }; }
9021 ac_cv_sizeof_unsigned_long
=0
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
9027 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
9031 cat >>confdefs.h
<<_ACEOF
9032 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9036 # The cast to long int works around a bug in the HP C Compiler
9037 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9038 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9039 # This bug is HP SR number 8606223364.
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
9041 $as_echo_n "checking size of unsigned __int128... " >&6; }
9042 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
9043 $as_echo_n "(cached) " >&6
9045 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
9048 if test "$ac_cv_type_unsigned___int128" = yes; then
9049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9051 { as_fn_set_status
77
9052 as_fn_error
"cannot compute sizeof (unsigned __int128)
9053 See \`config.log' for more details." "$LINENO" 5; }; }
9055 ac_cv_sizeof_unsigned___int128
=0
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
9061 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
9065 cat >>confdefs.h
<<_ACEOF
9066 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
9071 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9072 TARGET_PTR
="unsigned long"
9073 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9074 TARGET_PTR
="unsigned long long"
9075 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
9076 TARGET_PTR
="unsigned __int128"
9078 TARGET_PTR
="unsigned long"
9082 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9086 $as_echo_n "checking for library containing dlopen... " >&6; }
9087 if test "${ac_cv_search_dlopen+set}" = set; then :
9088 $as_echo_n "(cached) " >&6
9090 ac_func_search_save_LIBS
=$LIBS
9091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9092 /* end confdefs.h. */
9094 /* Override any GCC internal prototype to avoid an error.
9095 Use char because int might match the return type of a GCC
9096 builtin and then its argument prototype would still apply. */
9109 for ac_lib
in '' dl
; do
9110 if test -z "$ac_lib"; then
9111 ac_res
="none required"
9114 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9116 if ac_fn_c_try_link
"$LINENO"; then :
9117 ac_cv_search_dlopen
=$ac_res
9119 rm -f core conftest.err conftest.
$ac_objext \
9121 if test "${ac_cv_search_dlopen+set}" = set; then :
9125 if test "${ac_cv_search_dlopen+set}" = set; then :
9128 ac_cv_search_dlopen
=no
9131 LIBS
=$ac_func_search_save_LIBS
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9134 $as_echo "$ac_cv_search_dlopen" >&6; }
9135 ac_res
=$ac_cv_search_dlopen
9136 if test "$ac_res" != no
; then :
9137 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9144 # Check whether --with-jit-reader-dir was given.
9145 if test "${with_jit_reader_dir+set}" = set; then :
9146 withval
=$with_jit_reader_dir;
9147 JIT_READER_DIR
=$withval
9149 JIT_READER_DIR
=${libdir}/gdb
9153 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9154 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9155 ac_define_dir
=`eval echo $JIT_READER_DIR`
9156 ac_define_dir
=`eval echo $ac_define_dir`
9158 cat >>confdefs.h
<<_ACEOF
9159 #define JIT_READER_DIR "$ac_define_dir"
9165 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9166 if test "x$prefix" = xNONE
; then
9167 test_prefix
=/usr
/local
9172 test_prefix
=$exec_prefix
9175 case ${ac_define_dir} in
9176 "${test_prefix}"|
"${test_prefix}/"*|\
9177 '${exec_prefix}'|
'${exec_prefix}/'*)
9182 cat >>confdefs.h
<<_ACEOF
9183 #define JIT_READER_DIR_RELOCATABLE $value
9190 # Check whether --with-expat was given.
9191 if test "${with_expat+set}" = set; then :
9192 withval
=$with_expat;
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9198 $as_echo_n "checking whether to use expat... " >&6; }
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9200 $as_echo "$with_expat" >&6; }
9202 if test "${with_expat}" = no
; then
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9204 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9217 acl_save_prefix
="$prefix"
9218 prefix
="$acl_final_prefix"
9219 acl_save_exec_prefix
="$exec_prefix"
9220 exec_prefix
="$acl_final_exec_prefix"
9222 eval additional_includedir
=\"$includedir\"
9223 eval additional_libdir
=\"$libdir\"
9225 exec_prefix
="$acl_save_exec_prefix"
9226 prefix
="$acl_save_prefix"
9229 # Check whether --with-libexpat-prefix was given.
9230 if test "${with_libexpat_prefix+set}" = set; then :
9231 withval
=$with_libexpat_prefix;
9232 if test "X$withval" = "Xno"; then
9235 if test "X$withval" = "X"; then
9237 acl_save_prefix
="$prefix"
9238 prefix
="$acl_final_prefix"
9239 acl_save_exec_prefix
="$exec_prefix"
9240 exec_prefix
="$acl_final_exec_prefix"
9242 eval additional_includedir
=\"$includedir\"
9243 eval additional_libdir
=\"$libdir\"
9245 exec_prefix
="$acl_save_exec_prefix"
9246 prefix
="$acl_save_prefix"
9249 additional_includedir
="$withval/include"
9250 additional_libdir
="$withval/lib"
9261 names_already_handled
=
9262 names_next_round
='expat '
9263 while test -n "$names_next_round"; do
9264 names_this_round
="$names_next_round"
9266 for name
in $names_this_round; do
9268 for n
in $names_already_handled; do
9269 if test "$n" = "$name"; then
9274 if test -z "$already_handled"; then
9275 names_already_handled
="$names_already_handled $name"
9276 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9277 eval value
=\"\
$HAVE_LIB$uppername\"
9278 if test -n "$value"; then
9279 if test "$value" = yes; then
9280 eval value
=\"\
$LIB$uppername\"
9281 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
9282 eval value
=\"\
$LTLIB$uppername\"
9283 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
9292 if test $use_additional = yes; then
9293 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9294 found_dir
="$additional_libdir"
9295 found_so
="$additional_libdir/lib$name.$shlibext"
9296 if test -f "$additional_libdir/lib$name.la"; then
9297 found_la
="$additional_libdir/lib$name.la"
9300 if test -f "$additional_libdir/lib$name.$libext"; then
9301 found_dir
="$additional_libdir"
9302 found_a
="$additional_libdir/lib$name.$libext"
9303 if test -f "$additional_libdir/lib$name.la"; then
9304 found_la
="$additional_libdir/lib$name.la"
9309 if test "X$found_dir" = "X"; then
9310 for x
in $LDFLAGS $LTLIBEXPAT; do
9312 acl_save_prefix
="$prefix"
9313 prefix
="$acl_final_prefix"
9314 acl_save_exec_prefix
="$exec_prefix"
9315 exec_prefix
="$acl_final_exec_prefix"
9317 exec_prefix
="$acl_save_exec_prefix"
9318 prefix
="$acl_save_prefix"
9322 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9323 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9325 found_so
="$dir/lib$name.$shlibext"
9326 if test -f "$dir/lib$name.la"; then
9327 found_la
="$dir/lib$name.la"
9330 if test -f "$dir/lib$name.$libext"; then
9332 found_a
="$dir/lib$name.$libext"
9333 if test -f "$dir/lib$name.la"; then
9334 found_la
="$dir/lib$name.la"
9340 if test "X$found_dir" != "X"; then
9345 if test "X$found_dir" != "X"; then
9346 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
9347 if test "X$found_so" != "X"; then
9348 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9349 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9352 for x
in $ltrpathdirs; do
9353 if test "X$x" = "X$found_dir"; then
9358 if test -z "$haveit"; then
9359 ltrpathdirs
="$ltrpathdirs $found_dir"
9361 if test "$hardcode_direct" = yes; then
9362 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9364 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9365 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9367 for x
in $rpathdirs; do
9368 if test "X$x" = "X$found_dir"; then
9373 if test -z "$haveit"; then
9374 rpathdirs
="$rpathdirs $found_dir"
9378 for x
in $LDFLAGS $LIBEXPAT; do
9380 acl_save_prefix
="$prefix"
9381 prefix
="$acl_final_prefix"
9382 acl_save_exec_prefix
="$exec_prefix"
9383 exec_prefix
="$acl_final_exec_prefix"
9385 exec_prefix
="$acl_save_exec_prefix"
9386 prefix
="$acl_save_prefix"
9388 if test "X$x" = "X-L$found_dir"; then
9393 if test -z "$haveit"; then
9394 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
9396 if test "$hardcode_minus_L" != no
; then
9397 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9399 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9405 if test "X$found_a" != "X"; then
9406 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
9408 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
9411 additional_includedir
=
9412 case "$found_dir" in
9414 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9415 additional_includedir
="$basedir/include"
9418 if test "X$additional_includedir" != "X"; then
9419 if test "X$additional_includedir" != "X/usr/include"; then
9421 if test "X$additional_includedir" = "X/usr/local/include"; then
9422 if test -n "$GCC"; then
9424 linux
*) haveit
=yes;;
9428 if test -z "$haveit"; then
9429 for x
in $CPPFLAGS $INCEXPAT; do
9431 acl_save_prefix
="$prefix"
9432 prefix
="$acl_final_prefix"
9433 acl_save_exec_prefix
="$exec_prefix"
9434 exec_prefix
="$acl_final_exec_prefix"
9436 exec_prefix
="$acl_save_exec_prefix"
9437 prefix
="$acl_save_prefix"
9439 if test "X$x" = "X-I$additional_includedir"; then
9444 if test -z "$haveit"; then
9445 if test -d "$additional_includedir"; then
9446 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
9452 if test -n "$found_la"; then
9453 save_libdir
="$libdir"
9455 */* |
*\\*) .
"$found_la" ;;
9456 *) .
"./$found_la" ;;
9458 libdir
="$save_libdir"
9459 for dep
in $dependency_libs; do
9462 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9463 if test "X$additional_libdir" != "X/usr/lib"; then
9465 if test "X$additional_libdir" = "X/usr/local/lib"; then
9466 if test -n "$GCC"; then
9468 linux
*) haveit
=yes;;
9472 if test -z "$haveit"; then
9474 for x
in $LDFLAGS $LIBEXPAT; do
9476 acl_save_prefix
="$prefix"
9477 prefix
="$acl_final_prefix"
9478 acl_save_exec_prefix
="$exec_prefix"
9479 exec_prefix
="$acl_final_exec_prefix"
9481 exec_prefix
="$acl_save_exec_prefix"
9482 prefix
="$acl_save_prefix"
9484 if test "X$x" = "X-L$additional_libdir"; then
9489 if test -z "$haveit"; then
9490 if test -d "$additional_libdir"; then
9491 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
9495 for x
in $LDFLAGS $LTLIBEXPAT; do
9497 acl_save_prefix
="$prefix"
9498 prefix
="$acl_final_prefix"
9499 acl_save_exec_prefix
="$exec_prefix"
9500 exec_prefix
="$acl_final_exec_prefix"
9502 exec_prefix
="$acl_save_exec_prefix"
9503 prefix
="$acl_save_prefix"
9505 if test "X$x" = "X-L$additional_libdir"; then
9510 if test -z "$haveit"; then
9511 if test -d "$additional_libdir"; then
9512 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
9519 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9520 if test "$enable_rpath" != no
; then
9522 for x
in $rpathdirs; do
9523 if test "X$x" = "X$dir"; then
9528 if test -z "$haveit"; then
9529 rpathdirs
="$rpathdirs $dir"
9532 for x
in $ltrpathdirs; do
9533 if test "X$x" = "X$dir"; then
9538 if test -z "$haveit"; then
9539 ltrpathdirs
="$ltrpathdirs $dir"
9544 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9547 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9550 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
9551 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
9557 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9558 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
9564 if test "X$rpathdirs" != "X"; then
9565 if test -n "$hardcode_libdir_separator"; then
9567 for found_dir
in $rpathdirs; do
9568 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9570 acl_save_libdir
="$libdir"
9572 eval flag
=\"$hardcode_libdir_flag_spec\"
9573 libdir
="$acl_save_libdir"
9574 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9576 for found_dir
in $rpathdirs; do
9577 acl_save_libdir
="$libdir"
9579 eval flag
=\"$hardcode_libdir_flag_spec\"
9580 libdir
="$acl_save_libdir"
9581 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9585 if test "X$ltrpathdirs" != "X"; then
9586 for found_dir
in $ltrpathdirs; do
9587 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9592 ac_save_CPPFLAGS
="$CPPFLAGS"
9594 for element
in $INCEXPAT; do
9596 for x
in $CPPFLAGS; do
9598 acl_save_prefix
="$prefix"
9599 prefix
="$acl_final_prefix"
9600 acl_save_exec_prefix
="$exec_prefix"
9601 exec_prefix
="$acl_final_exec_prefix"
9603 exec_prefix
="$acl_save_exec_prefix"
9604 prefix
="$acl_save_prefix"
9606 if test "X$x" = "X$element"; then
9611 if test -z "$haveit"; then
9612 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9618 $as_echo_n "checking for libexpat... " >&6; }
9619 if test "${ac_cv_libexpat+set}" = set; then :
9620 $as_echo_n "(cached) " >&6
9623 ac_save_LIBS
="$LIBS"
9624 LIBS
="$LIBS $LIBEXPAT"
9625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9626 /* end confdefs.h. */
9631 XML_Parser p = XML_ParserCreate (0);
9636 if ac_fn_c_try_link
"$LINENO"; then :
9641 rm -f core conftest.err conftest.
$ac_objext \
9642 conftest
$ac_exeext conftest.
$ac_ext
9643 LIBS
="$ac_save_LIBS"
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
9647 $as_echo "$ac_cv_libexpat" >&6; }
9648 if test "$ac_cv_libexpat" = yes; then
9651 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
9654 $as_echo_n "checking how to link with libexpat... " >&6; }
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
9656 $as_echo "$LIBEXPAT" >&6; }
9659 CPPFLAGS
="$ac_save_CPPFLAGS"
9669 if test "$HAVE_LIBEXPAT" != yes; then
9670 if test "$with_expat" = yes; then
9671 as_fn_error
"expat is missing or unusable" "$LINENO" 5
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
9674 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
9678 LIBS
="$LIBS $LIBEXPAT"
9679 for ac_func
in XML_StopParser
9681 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
9682 if test "x$ac_cv_func_XML_StopParser" = x
""yes; then :
9683 cat >>confdefs.h
<<_ACEOF
9684 #define HAVE_XML_STOPPARSER 1
9694 # --------------------- #
9695 # Check for libpython. #
9696 # --------------------- #
9703 # Check whether --with-python was given.
9704 if test "${with_python+set}" = set; then :
9705 withval
=$with_python;
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
9711 $as_echo_n "checking whether to use python... " >&6; }
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
9713 $as_echo "$with_python" >&6; }
9715 if test "${with_python}" = no
; then
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
9717 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
9720 case "${with_python}" in
9722 if test -d ${with_python}; then
9723 # Assume the python binary is ${with_python}/bin/python.
9724 python_prog
="${with_python}/bin/python"
9726 # If python does not exit ${with_python}/bin, then try in
9727 # ${with_python}. On Windows/MinGW, this is where the Python
9729 if test ! -x "${python_prog}"; then
9730 python_prog
="${with_python}/python"
9733 if test ! -x "${python_prog}"; then
9734 # Fall back to gdb 7.0/7.1 behaviour.
9736 python_prefix
=${with_python}
9738 elif test -x "${with_python}"; then
9739 # While we can't run python compiled for $host (unless host == build),
9740 # the user could write a script that provides the needed information,
9741 # so we support that.
9742 python_prog
=${with_python}
9745 as_fn_error
"invalid value for --with-python" "$LINENO" 5
9749 # Disallow --with-python=foo/bar.
9750 as_fn_error
"invalid value for --with-python" "$LINENO" 5
9753 # The user has either specified auto, yes, or the name of the python
9754 # program assumed to be in $PATH.
9756 case "${with_python}" in
9758 if test ${build} = ${host}; then
9759 # Extract the first word of "python", so it can be a program name with args.
9760 set dummy python
; ac_word
=$2
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9762 $as_echo_n "checking for $ac_word... " >&6; }
9763 if test "${ac_cv_path_python_prog_path+set}" = set; then :
9764 $as_echo_n "(cached) " >&6
9766 case $python_prog_path in
9768 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
9771 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9775 test -z "$as_dir" && as_dir
=.
9776 for ac_exec_ext
in '' $ac_executable_extensions; do
9777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9778 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
9779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9786 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
9790 python_prog_path
=$ac_cv_path_python_prog_path
9791 if test -n "$python_prog_path"; then
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
9793 $as_echo "$python_prog_path" >&6; }
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9796 $as_echo "no" >&6; }
9800 if test "${python_prog_path}" = missing
; then
9803 python_prog
=${python_prog_path}
9806 # Not much we can do except assume the cross-compiler will find the
9812 # While we can't run python compiled for $host (unless host == build),
9813 # the user could write a script that provides the needed information,
9814 # so we support that.
9815 python_prog
="${with_python}"
9816 # Extract the first word of "${python_prog}", so it can be a program name with args.
9817 set dummy
${python_prog}; ac_word
=$2
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9819 $as_echo_n "checking for $ac_word... " >&6; }
9820 if test "${ac_cv_path_python_prog_path+set}" = set; then :
9821 $as_echo_n "(cached) " >&6
9823 case $python_prog_path in
9825 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
9828 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9832 test -z "$as_dir" && as_dir
=.
9833 for ac_exec_ext
in '' $ac_executable_extensions; do
9834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9835 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
9836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9843 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
9847 python_prog_path
=$ac_cv_path_python_prog_path
9848 if test -n "$python_prog_path"; then
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
9850 $as_echo "$python_prog_path" >&6; }
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9853 $as_echo "no" >&6; }
9857 if test "${python_prog_path}" = missing
; then
9858 as_fn_error
"unable to find python program ${python_prog}" "$LINENO" 5
9864 if test "${python_prog}" != missing
; then
9865 # We have a python program to use, but it may be too old.
9866 # Don't flag an error for --with-python=auto (the default).
9867 have_python_config
=yes
9868 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
9869 if test $?
!= 0; then
9870 have_python_config
=failed
9871 if test "${with_python}" != auto
; then
9872 as_fn_error
"failure running python-config --includes" "$LINENO" 5
9875 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
9876 if test $?
!= 0; then
9877 have_python_config
=failed
9878 if test "${with_python}" != auto
; then
9879 as_fn_error
"failure running python-config --ldflags" "$LINENO" 5
9882 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
9883 if test $?
!= 0; then
9884 have_python_config
=failed
9885 if test "${with_python}" != auto
; then
9886 as_fn_error
"failure running python-config --exec-prefix" "$LINENO" 5
9890 # We do not have a python executable we can use to determine where
9891 # to find the Python headers and libs. We cannot guess the include
9892 # path from the python_prefix either, because that include path
9893 # depends on the Python version. So, there is nothing much we can
9894 # do except assume that the compiler will be able to find those files.
9897 have_python_config
=no
9900 # If we have python-config, only try the configuration it provides.
9901 # Otherwise fallback on the old way of trying different versions of
9905 if test "${have_python_config}" = yes; then
9906 # Determine the Python version by extracting "-lpython<version>"
9907 # part of the python_libs. <version> is usually X.Y with X and Y
9908 # being decimal numbers, but can also be XY (seen on Windows).
9910 # The extraction is performed using sed with a regular expression.
9911 # Initially, the regexp used was using the '?' quantifier to make
9912 # the dot in the version number optional. Unfortunately, this
9913 # does not work with non-GNU versions of sed because, because of
9914 # what looks like a limitation (the '?' quantifier does not work
9915 # with back-references). We work around this limitation by using
9916 # the '*' quantifier instead. It means that, in theory, we might
9917 # match unexpected version strings such as "-lpython2..7", but
9918 # this seems unlikely in practice. And even if that happens,
9919 # an error will be triggered later on, when checking that version
9921 python_version
=`echo " ${python_libs} " \
9922 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
9923 case "${python_version}" in
9926 version
=${python_version}
9928 new_CPPFLAGS
=${python_includes}
9929 new_LIBS
=${python_libs}
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9931 $as_echo_n "checking for ${version}... " >&6; }
9932 save_CPPFLAGS
=$CPPFLAGS
9934 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9935 LIBS
="$LIBS $new_LIBS"
9936 found_usable_python
=no
9937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9938 /* end confdefs.h. */
9948 if ac_fn_c_try_link
"$LINENO"; then :
9949 have_libpython
=${version}
9950 found_usable_python
=yes
9951 PYTHON_CPPFLAGS
=$new_CPPFLAGS
9952 PYTHON_LIBS
=$new_LIBS
9954 rm -f core conftest.err conftest.
$ac_objext \
9955 conftest
$ac_exeext conftest.
$ac_ext
9956 CPPFLAGS
=$save_CPPFLAGS
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
9959 $as_echo "${found_usable_python}" >&6; }
9963 as_fn_error
"unable to determine python version from ${python_libs}" "$LINENO" 5
9966 elif test "${have_python_config}" != failed
; then
9967 if test "${have_libpython}" = no
; then
9971 new_CPPFLAGS
=${python_includes}
9972 new_LIBS
="${python_libs} -lpython2.7"
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9974 $as_echo_n "checking for ${version}... " >&6; }
9975 save_CPPFLAGS
=$CPPFLAGS
9977 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
9978 LIBS
="$LIBS $new_LIBS"
9979 found_usable_python
=no
9980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9981 /* end confdefs.h. */
9991 if ac_fn_c_try_link
"$LINENO"; then :
9992 have_libpython
=${version}
9993 found_usable_python
=yes
9994 PYTHON_CPPFLAGS
=$new_CPPFLAGS
9995 PYTHON_LIBS
=$new_LIBS
9997 rm -f core conftest.err conftest.
$ac_objext \
9998 conftest
$ac_exeext conftest.
$ac_ext
9999 CPPFLAGS
=$save_CPPFLAGS
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10002 $as_echo "${found_usable_python}" >&6; }
10005 if test "${have_libpython}" = no
; then
10009 new_CPPFLAGS
=${python_includes}
10010 new_LIBS
="${python_libs} -lpython2.6"
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10012 $as_echo_n "checking for ${version}... " >&6; }
10013 save_CPPFLAGS
=$CPPFLAGS
10015 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10016 LIBS
="$LIBS $new_LIBS"
10017 found_usable_python
=no
10018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10019 /* end confdefs.h. */
10020 #include "Python.h"
10029 if ac_fn_c_try_link
"$LINENO"; then :
10030 have_libpython
=${version}
10031 found_usable_python
=yes
10032 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10033 PYTHON_LIBS
=$new_LIBS
10035 rm -f core conftest.err conftest.
$ac_objext \
10036 conftest
$ac_exeext conftest.
$ac_ext
10037 CPPFLAGS
=$save_CPPFLAGS
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10040 $as_echo "${found_usable_python}" >&6; }
10043 if test ${have_libpython} = no
; then
10047 new_CPPFLAGS
=${python_includes}
10048 new_LIBS
="${python_libs} -lpython2.5"
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10050 $as_echo_n "checking for ${version}... " >&6; }
10051 save_CPPFLAGS
=$CPPFLAGS
10053 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10054 LIBS
="$LIBS $new_LIBS"
10055 found_usable_python
=no
10056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10057 /* end confdefs.h. */
10058 #include "Python.h"
10067 if ac_fn_c_try_link
"$LINENO"; then :
10068 have_libpython
=${version}
10069 found_usable_python
=yes
10070 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10071 PYTHON_LIBS
=$new_LIBS
10073 rm -f core conftest.err conftest.
$ac_objext \
10074 conftest
$ac_exeext conftest.
$ac_ext
10075 CPPFLAGS
=$save_CPPFLAGS
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10078 $as_echo "${found_usable_python}" >&6; }
10081 if test ${have_libpython} = no
; then
10085 new_CPPFLAGS
=${python_includes}
10086 new_LIBS
="${python_libs} -lpython2.4"
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10088 $as_echo_n "checking for ${version}... " >&6; }
10089 save_CPPFLAGS
=$CPPFLAGS
10091 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10092 LIBS
="$LIBS $new_LIBS"
10093 found_usable_python
=no
10094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10095 /* end confdefs.h. */
10096 #include "Python.h"
10105 if ac_fn_c_try_link
"$LINENO"; then :
10106 have_libpython
=${version}
10107 found_usable_python
=yes
10108 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10109 PYTHON_LIBS
=$new_LIBS
10111 rm -f core conftest.err conftest.
$ac_objext \
10112 conftest
$ac_exeext conftest.
$ac_ext
10113 CPPFLAGS
=$save_CPPFLAGS
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10116 $as_echo "${found_usable_python}" >&6; }
10120 if test "${have_libpython}" = python2.7
-o "${have_libpython}" = python27
; then
10122 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
10124 elif test "${have_libpython}" = python2.6
-o "${have_libpython}" = python26
; then
10126 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
10128 elif test "${have_libpython}" = python2.5
-o "${have_libpython}" = python25
; then
10130 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
10132 elif test "${have_libpython}" = python2.4
-o "${have_libpython}" = python24
; then
10134 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
10138 if test "${have_libpython}" = no
; then
10139 case "${with_python}" in
10141 as_fn_error
"python is missing or unusable" "$LINENO" 5
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10145 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10148 as_fn_error
"no usable python found at ${with_python}" "$LINENO" 5
10152 if test -n "${python_prefix}"; then
10154 cat >>confdefs.h
<<_ACEOF
10155 #define WITH_PYTHON_PATH "${python_prefix}"
10159 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
10160 if test "x$prefix" = xNONE
; then
10161 test_prefix
=/usr
/local
10163 test_prefix
=$prefix
10166 test_prefix
=$exec_prefix
10169 case ${python_prefix} in
10170 "${test_prefix}"|
"${test_prefix}/"*|\
10171 '${exec_prefix}'|
'${exec_prefix}/'*)
10176 cat >>confdefs.h
<<_ACEOF
10177 #define PYTHON_PATH_RELOCATABLE $value
10185 if test "${have_libpython}" != no
; then
10187 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10189 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10190 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10191 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
10192 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
10193 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
10195 # Flags needed to compile Python code (taken from python-config --cflags).
10196 # We cannot call python-config directly because it will output whatever was
10197 # used when compiling the Python interpreter itself, including flags which
10198 # would make the python-related objects be compiled differently from the
10199 # rest of GDB (e.g., -O2 and -fPIC).
10200 if test "${GCC}" = yes; then
10201 tentative_python_cflags
="-fno-strict-aliasing -DNDEBUG -fwrapv"
10204 if test "x${tentative_python_cflags}" != x
; then
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10206 $as_echo_n "checking compiler flags for python code... " >&6; }
10207 for flag
in ${tentative_python_cflags}; do
10208 # Check that the compiler accepts it
10209 saved_CFLAGS
="$CFLAGS"
10210 CFLAGS
="$CFLAGS $flag"
10211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10212 /* end confdefs.h. */
10222 if ac_fn_c_try_compile
"$LINENO"; then :
10223 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
10225 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10226 CFLAGS
="$saved_CFLAGS"
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
10229 $as_echo "${PYTHON_CFLAGS}" >&6; }
10232 # On x64 Windows, Python's include headers, and pyconfig.h in
10233 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
10234 # version of Windows. Unfortunately, MS_WIN64 is only defined if
10235 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
10236 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
10237 # The issue was reported to the Python community, but still isn't
10238 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
10240 case "$gdb_host" in
10242 if test "${GCC}" = yes; then
10243 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
10248 # Note that "python -m threading" cannot be used to check for
10249 # threading support due to a bug in Python 2.7.3
10250 # (http://bugs.python.org/issue15567).
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
10252 $as_echo_n "checking whether python supports threads... " >&6; }
10253 saved_CPPFLAGS
="${CPPFLAGS}"
10254 CPPFLAGS
="${PYTHON_CPPFLAGS}"
10255 # Note that the test is reversed so that python_has_threads=yes on
10256 # unexpected failures.
10257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10258 /* end confdefs.h. */
10260 #include <Python.h>
10266 if ac_fn_c_try_cpp
"$LINENO"; then :
10267 python_has_threads
=no
10269 python_has_threads
=yes
10271 rm -f conftest.err conftest.
$ac_ext
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
10273 $as_echo "${python_has_threads}" >&6; }
10274 CPPFLAGS
="${saved_CPPFLAGS}"
10276 # Even if Python support is not compiled in, we need to have this file
10277 # included so that the "python" command, et.al., still exists.
10278 CONFIG_OBS
="$CONFIG_OBS python.o"
10279 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
10282 # Work around Python http://bugs.python.org/issue10112. See also
10283 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
10284 # no effect. Note that the only test after this that uses Python is
10285 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
10286 # run without -export-dynamic too.
10287 PYTHON_LIBS
=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
10292 if test "${have_libpython}" != no
; then
10294 HAVE_PYTHON_FALSE
='#'
10296 HAVE_PYTHON_TRUE
='#'
10301 # -------------------- #
10302 # Check for libguile. #
10303 # -------------------- #
10310 # Check whether --with-guile was given.
10311 if test "${with_guile+set}" = set; then :
10312 withval
=$with_guile;
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
10318 $as_echo_n "checking whether to use guile... " >&6; }
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
10320 $as_echo "$with_guile" >&6; }
10322 # Extract the first word of "pkg-config", so it can be a program name with args.
10323 set dummy pkg-config
; ac_word
=$2
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10325 $as_echo_n "checking for $ac_word... " >&6; }
10326 if test "${ac_cv_path_pkg_config_prog_path+set}" = set; then :
10327 $as_echo_n "(cached) " >&6
10329 case $pkg_config_prog_path in
10331 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
10334 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10335 for as_dir
in $PATH
10338 test -z "$as_dir" && as_dir
=.
10339 for ac_exec_ext
in '' $ac_executable_extensions; do
10340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10341 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10349 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
10353 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
10354 if test -n "$pkg_config_prog_path"; then
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
10356 $as_echo "$pkg_config_prog_path" >&6; }
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10359 $as_echo "no" >&6; }
10364 try_guile_versions
="guile-2.2 guile-2.0"
10366 case "${with_guile}" in
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
10369 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
10372 if test "${pkg_config_prog_path}" = "missing"; then
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
10374 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
10377 pkg_config
=${pkg_config_prog_path}
10378 guile_version_list
=${try_guile_versions}
10381 found_usable_guile
=checking
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
10383 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
10384 for guile_version
in ${guile_version_list}; do
10385 ${pkg_config} --exists ${guile_version} 2>/dev
/null
10386 if test $?
!= 0; then
10389 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
10390 if test $?
!= 0; then
10391 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
10393 new_LIBS
=`${pkg_config} --libs ${guile_version}`
10394 if test $?
!= 0; then
10395 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
10397 found_usable_guile
=${guile_version}
10400 if test "${found_usable_guile}" = "checking"; then
10401 if test "${flag_errors}" = "yes"; then
10402 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
10404 found_usable_guile
=no
10407 if test "${found_usable_guile}" != no
; then
10408 save_CPPFLAGS
=$CPPFLAGS
10410 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10411 LIBS
="$LIBS $new_LIBS"
10412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10413 /* end confdefs.h. */
10414 #include "libguile.h"
10423 if ac_fn_c_try_link
"$LINENO"; then :
10425 GUILE_CPPFLAGS
=$new_CPPFLAGS
10426 GUILE_LIBS
=$new_LIBS
10428 found_usable_guile
=no
10430 rm -f core conftest.err conftest.
$ac_objext \
10431 conftest
$ac_exeext conftest.
$ac_ext
10432 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
10433 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
10435 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
10440 CPPFLAGS
=$save_CPPFLAGS
10442 if test "${found_usable_guile}" = no
; then
10443 if test "${flag_errors}" = yes; then
10444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10446 as_fn_error
"linking guile version ${guile_version} test program failed
10447 See \`config.log' for more details." "$LINENO" 5; }
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
10452 $as_echo "${found_usable_guile}" >&6; }
10457 if test "${pkg_config_prog_path}" = "missing"; then
10458 as_fn_error
"pkg-config not found" "$LINENO" 5
10461 pkg_config
=${pkg_config_prog_path}
10462 guile_version_list
=${try_guile_versions}
10465 found_usable_guile
=checking
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
10467 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
10468 for guile_version
in ${guile_version_list}; do
10469 ${pkg_config} --exists ${guile_version} 2>/dev
/null
10470 if test $?
!= 0; then
10473 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
10474 if test $?
!= 0; then
10475 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
10477 new_LIBS
=`${pkg_config} --libs ${guile_version}`
10478 if test $?
!= 0; then
10479 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
10481 found_usable_guile
=${guile_version}
10484 if test "${found_usable_guile}" = "checking"; then
10485 if test "${flag_errors}" = "yes"; then
10486 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
10488 found_usable_guile
=no
10491 if test "${found_usable_guile}" != no
; then
10492 save_CPPFLAGS
=$CPPFLAGS
10494 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10495 LIBS
="$LIBS $new_LIBS"
10496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10497 /* end confdefs.h. */
10498 #include "libguile.h"
10507 if ac_fn_c_try_link
"$LINENO"; then :
10509 GUILE_CPPFLAGS
=$new_CPPFLAGS
10510 GUILE_LIBS
=$new_LIBS
10512 found_usable_guile
=no
10514 rm -f core conftest.err conftest.
$ac_objext \
10515 conftest
$ac_exeext conftest.
$ac_ext
10516 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
10517 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
10519 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
10524 CPPFLAGS
=$save_CPPFLAGS
10526 if test "${found_usable_guile}" = no
; then
10527 if test "${flag_errors}" = yes; then
10528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10530 as_fn_error
"linking guile version ${guile_version} test program failed
10531 See \`config.log' for more details." "$LINENO" 5; }
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
10536 $as_echo "${found_usable_guile}" >&6; }
10540 if test -x "${with_guile}"; then
10542 pkg_config
=${with_guile}
10543 guile_version_list
=${try_guile_versions}
10546 found_usable_guile
=checking
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
10548 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
10549 for guile_version
in ${guile_version_list}; do
10550 ${pkg_config} --exists ${guile_version} 2>/dev
/null
10551 if test $?
!= 0; then
10554 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
10555 if test $?
!= 0; then
10556 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
10558 new_LIBS
=`${pkg_config} --libs ${guile_version}`
10559 if test $?
!= 0; then
10560 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
10562 found_usable_guile
=${guile_version}
10565 if test "${found_usable_guile}" = "checking"; then
10566 if test "${flag_errors}" = "yes"; then
10567 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
10569 found_usable_guile
=no
10572 if test "${found_usable_guile}" != no
; then
10573 save_CPPFLAGS
=$CPPFLAGS
10575 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10576 LIBS
="$LIBS $new_LIBS"
10577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10578 /* end confdefs.h. */
10579 #include "libguile.h"
10588 if ac_fn_c_try_link
"$LINENO"; then :
10590 GUILE_CPPFLAGS
=$new_CPPFLAGS
10591 GUILE_LIBS
=$new_LIBS
10593 found_usable_guile
=no
10595 rm -f core conftest.err conftest.
$ac_objext \
10596 conftest
$ac_exeext conftest.
$ac_ext
10597 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
10598 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
10600 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
10605 CPPFLAGS
=$save_CPPFLAGS
10607 if test "${found_usable_guile}" = no
; then
10608 if test "${flag_errors}" = yes; then
10609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10611 as_fn_error
"linking guile version ${guile_version} test program failed
10612 See \`config.log' for more details." "$LINENO" 5; }
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
10617 $as_echo "${found_usable_guile}" >&6; }
10620 as_fn_error
"Guile config program not executable: ${with_guile}" "$LINENO" 5
10624 # Disallow --with=guile="" and --with-guile=foo/bar.
10625 as_fn_error
"invalid value for --with-guile" "$LINENO" 5
10628 # A space separate list of guile versions to try, in order.
10629 if test "${pkg_config_prog_path}" = "missing"; then
10630 as_fn_error
"pkg-config not found" "$LINENO" 5
10633 pkg_config
=${pkg_config_prog_path}
10634 guile_version_list
=${with_guile}
10637 found_usable_guile
=checking
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
10639 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
10640 for guile_version
in ${guile_version_list}; do
10641 ${pkg_config} --exists ${guile_version} 2>/dev
/null
10642 if test $?
!= 0; then
10645 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
10646 if test $?
!= 0; then
10647 as_fn_error
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
10649 new_LIBS
=`${pkg_config} --libs ${guile_version}`
10650 if test $?
!= 0; then
10651 as_fn_error
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
10653 found_usable_guile
=${guile_version}
10656 if test "${found_usable_guile}" = "checking"; then
10657 if test "${flag_errors}" = "yes"; then
10658 as_fn_error
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
10660 found_usable_guile
=no
10663 if test "${found_usable_guile}" != no
; then
10664 save_CPPFLAGS
=$CPPFLAGS
10666 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10667 LIBS
="$LIBS $new_LIBS"
10668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10669 /* end confdefs.h. */
10670 #include "libguile.h"
10679 if ac_fn_c_try_link
"$LINENO"; then :
10681 GUILE_CPPFLAGS
=$new_CPPFLAGS
10682 GUILE_LIBS
=$new_LIBS
10684 found_usable_guile
=no
10686 rm -f core conftest.err conftest.
$ac_objext \
10687 conftest
$ac_exeext conftest.
$ac_ext
10688 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
10689 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x
""yes; then :
10691 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
10696 CPPFLAGS
=$save_CPPFLAGS
10698 if test "${found_usable_guile}" = no
; then
10699 if test "${flag_errors}" = yes; then
10700 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10702 as_fn_error
"linking guile version ${guile_version} test program failed
10703 See \`config.log' for more details." "$LINENO" 5; }
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
10708 $as_echo "${found_usable_guile}" >&6; }
10713 if test "${have_libguile}" != no
; then
10714 case "${with_guile}" in
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
10718 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
10719 if test "${ac_cv_guild_program_name+set}" = set; then :
10720 $as_echo_n "(cached) " >&6
10722 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
10724 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
10725 # the 'guild' and 'bindir' variables. In that case, try to guess
10726 # what the program name is, at the risk of getting it wrong if
10727 # Guile was configured with '--program-suffix' or similar.
10728 if test "x$ac_cv_guild_program_name" = "x"; then
10729 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
10730 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
10735 $as_echo "$ac_cv_guild_program_name" >&6; }
10737 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
10738 as_fn_error
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
10741 GUILD
="$ac_cv_guild_program_name"
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
10748 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
10749 if test "${ac_cv_guild_program_name+set}" = set; then :
10750 $as_echo_n "(cached) " >&6
10752 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
10754 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
10755 # the 'guild' and 'bindir' variables. In that case, try to guess
10756 # what the program name is, at the risk of getting it wrong if
10757 # Guile was configured with '--program-suffix' or similar.
10758 if test "x$ac_cv_guild_program_name" = "x"; then
10759 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
10760 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
10765 $as_echo "$ac_cv_guild_program_name" >&6; }
10767 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
10768 as_fn_error
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
10771 GUILD
="$ac_cv_guild_program_name"
10778 if test "$cross_compiling" = no
; then
10781 GUILD_TARGET_FLAG
="--target=$host"
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
10788 $as_echo_n "checking whether guild supports this host... " >&6; }
10789 if test "${ac_cv_guild_ok+set}" = set; then :
10790 $as_echo_n "(cached) " >&6
10792 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
10793 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
10800 $as_echo "$ac_cv_guild_ok" >&6; }
10802 if test "$ac_cv_guild_ok" = no
; then
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
10805 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
10809 if test "${have_libguile}" != no
; then
10811 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
10813 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
10814 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
10815 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
10816 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
10817 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
10820 save_CPPFLAGS
="$CPPFLAGS"
10822 CPPFLAGS
="$GUILE_CPPFLAGS"
10823 for ac_func
in scm_new_smob
10825 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
10826 if test "x$ac_cv_func_scm_new_smob" = x
""yes; then :
10827 cat >>confdefs.h
<<_ACEOF
10828 #define HAVE_SCM_NEW_SMOB 1
10835 CPPFLAGS
="$save_CPPFLAGS"
10837 # Even if Guile support is not compiled in, we need to have these files
10839 CONFIG_OBS
="$CONFIG_OBS guile.o"
10840 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
10844 if test "${have_libguile}" != no
; then
10846 HAVE_GUILE_FALSE
='#'
10848 HAVE_GUILE_TRUE
='#'
10853 # --------------------- #
10854 # Check for libmcheck. #
10855 # --------------------- #
10857 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
10858 # but turn it off if Python is enabled with threads, since -lmcheck is
10859 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
10860 # and for releases.
10861 if test \
( "${have_libpython}" = "no" -o "${python_has_threads}" = "no" \
) \
10862 && $development; then
10863 libmcheck_default
=yes
10865 libmcheck_default
=no
10868 # Check whether --enable-libmcheck was given.
10869 if test "${enable_libmcheck+set}" = set; then :
10870 enableval
=$enable_libmcheck; case "${enableval}" in
10871 yes | y
) ENABLE_LIBMCHECK
="yes" ;;
10872 no | n
) ENABLE_LIBMCHECK
="no" ;;
10873 *) as_fn_error
"bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
10878 if test -z "${ENABLE_LIBMCHECK}"; then
10879 ENABLE_LIBMCHECK
=${libmcheck_default}
10882 if test "$ENABLE_LIBMCHECK" = "yes" ; then
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
10884 $as_echo_n "checking for main in -lmcheck... " >&6; }
10885 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
10886 $as_echo_n "(cached) " >&6
10888 ac_check_lib_save_LIBS
=$LIBS
10889 LIBS
="-lmcheck $LIBS"
10890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10891 /* end confdefs.h. */
10902 if ac_fn_c_try_link
"$LINENO"; then :
10903 ac_cv_lib_mcheck_main
=yes
10905 ac_cv_lib_mcheck_main
=no
10907 rm -f core conftest.err conftest.
$ac_objext \
10908 conftest
$ac_exeext conftest.
$ac_ext
10909 LIBS
=$ac_check_lib_save_LIBS
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
10912 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
10913 if test "x$ac_cv_lib_mcheck_main" = x
""yes; then :
10914 cat >>confdefs.h
<<_ACEOF
10915 #define HAVE_LIBMCHECK 1
10918 LIBS
="-lmcheck $LIBS"
10925 if test "$ENABLE_LIBMCHECK" = "yes" \
10926 -a "${have_libpython}" != "no" \
10927 -a "${python_has_threads}" = "yes" ; then
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
10929 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
10933 # Check whether --with-intel_pt was given.
10934 if test "${with_intel_pt+set}" = set; then :
10935 withval
=$with_intel_pt;
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
10941 $as_echo_n "checking whether to use intel pt... " >&6; }
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
10943 $as_echo "$with_intel_pt" >&6; }
10945 if test "${with_intel_pt}" = no
; then
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
10947 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
10950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10951 /* end confdefs.h. */
10953 #include <linux/perf_event.h>
10954 #ifndef PERF_ATTR_SIZE_VER5
10959 if ac_fn_c_try_cpp
"$LINENO"; then :
10964 rm -f conftest.err conftest.
$ac_ext
10965 if test "$perf_event" != yes; then
10966 if test "$with_intel_pt" = yes; then
10967 as_fn_error
"linux/perf_event.h missing or too old" "$LINENO" 5
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
10970 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
10984 acl_save_prefix
="$prefix"
10985 prefix
="$acl_final_prefix"
10986 acl_save_exec_prefix
="$exec_prefix"
10987 exec_prefix
="$acl_final_exec_prefix"
10989 eval additional_includedir
=\"$includedir\"
10990 eval additional_libdir
=\"$libdir\"
10992 exec_prefix
="$acl_save_exec_prefix"
10993 prefix
="$acl_save_prefix"
10996 # Check whether --with-libipt-prefix was given.
10997 if test "${with_libipt_prefix+set}" = set; then :
10998 withval
=$with_libipt_prefix;
10999 if test "X$withval" = "Xno"; then
11002 if test "X$withval" = "X"; then
11004 acl_save_prefix
="$prefix"
11005 prefix
="$acl_final_prefix"
11006 acl_save_exec_prefix
="$exec_prefix"
11007 exec_prefix
="$acl_final_exec_prefix"
11009 eval additional_includedir
=\"$includedir\"
11010 eval additional_libdir
=\"$libdir\"
11012 exec_prefix
="$acl_save_exec_prefix"
11013 prefix
="$acl_save_prefix"
11016 additional_includedir
="$withval/include"
11017 additional_libdir
="$withval/lib"
11028 names_already_handled
=
11029 names_next_round
='ipt '
11030 while test -n "$names_next_round"; do
11031 names_this_round
="$names_next_round"
11033 for name
in $names_this_round; do
11035 for n
in $names_already_handled; do
11036 if test "$n" = "$name"; then
11037 already_handled
=yes
11041 if test -z "$already_handled"; then
11042 names_already_handled
="$names_already_handled $name"
11043 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11044 eval value
=\"\
$HAVE_LIB$uppername\"
11045 if test -n "$value"; then
11046 if test "$value" = yes; then
11047 eval value
=\"\
$LIB$uppername\"
11048 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
11049 eval value
=\"\
$LTLIB$uppername\"
11050 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
11059 if test $use_additional = yes; then
11060 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11061 found_dir
="$additional_libdir"
11062 found_so
="$additional_libdir/lib$name.$shlibext"
11063 if test -f "$additional_libdir/lib$name.la"; then
11064 found_la
="$additional_libdir/lib$name.la"
11067 if test -f "$additional_libdir/lib$name.$libext"; then
11068 found_dir
="$additional_libdir"
11069 found_a
="$additional_libdir/lib$name.$libext"
11070 if test -f "$additional_libdir/lib$name.la"; then
11071 found_la
="$additional_libdir/lib$name.la"
11076 if test "X$found_dir" = "X"; then
11077 for x
in $LDFLAGS $LTLIBIPT; do
11079 acl_save_prefix
="$prefix"
11080 prefix
="$acl_final_prefix"
11081 acl_save_exec_prefix
="$exec_prefix"
11082 exec_prefix
="$acl_final_exec_prefix"
11084 exec_prefix
="$acl_save_exec_prefix"
11085 prefix
="$acl_save_prefix"
11089 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11090 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11092 found_so
="$dir/lib$name.$shlibext"
11093 if test -f "$dir/lib$name.la"; then
11094 found_la
="$dir/lib$name.la"
11097 if test -f "$dir/lib$name.$libext"; then
11099 found_a
="$dir/lib$name.$libext"
11100 if test -f "$dir/lib$name.la"; then
11101 found_la
="$dir/lib$name.la"
11107 if test "X$found_dir" != "X"; then
11112 if test "X$found_dir" != "X"; then
11113 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
11114 if test "X$found_so" != "X"; then
11115 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11116 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11119 for x
in $ltrpathdirs; do
11120 if test "X$x" = "X$found_dir"; then
11125 if test -z "$haveit"; then
11126 ltrpathdirs
="$ltrpathdirs $found_dir"
11128 if test "$hardcode_direct" = yes; then
11129 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11131 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11132 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11134 for x
in $rpathdirs; do
11135 if test "X$x" = "X$found_dir"; then
11140 if test -z "$haveit"; then
11141 rpathdirs
="$rpathdirs $found_dir"
11145 for x
in $LDFLAGS $LIBIPT; do
11147 acl_save_prefix
="$prefix"
11148 prefix
="$acl_final_prefix"
11149 acl_save_exec_prefix
="$exec_prefix"
11150 exec_prefix
="$acl_final_exec_prefix"
11152 exec_prefix
="$acl_save_exec_prefix"
11153 prefix
="$acl_save_prefix"
11155 if test "X$x" = "X-L$found_dir"; then
11160 if test -z "$haveit"; then
11161 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
11163 if test "$hardcode_minus_L" != no
; then
11164 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11166 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
11172 if test "X$found_a" != "X"; then
11173 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
11175 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
11178 additional_includedir
=
11179 case "$found_dir" in
11181 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11182 additional_includedir
="$basedir/include"
11185 if test "X$additional_includedir" != "X"; then
11186 if test "X$additional_includedir" != "X/usr/include"; then
11188 if test "X$additional_includedir" = "X/usr/local/include"; then
11189 if test -n "$GCC"; then
11191 linux
*) haveit
=yes;;
11195 if test -z "$haveit"; then
11196 for x
in $CPPFLAGS $INCIPT; do
11198 acl_save_prefix
="$prefix"
11199 prefix
="$acl_final_prefix"
11200 acl_save_exec_prefix
="$exec_prefix"
11201 exec_prefix
="$acl_final_exec_prefix"
11203 exec_prefix
="$acl_save_exec_prefix"
11204 prefix
="$acl_save_prefix"
11206 if test "X$x" = "X-I$additional_includedir"; then
11211 if test -z "$haveit"; then
11212 if test -d "$additional_includedir"; then
11213 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
11219 if test -n "$found_la"; then
11220 save_libdir
="$libdir"
11221 case "$found_la" in
11222 */* |
*\\*) .
"$found_la" ;;
11223 *) .
"./$found_la" ;;
11225 libdir
="$save_libdir"
11226 for dep
in $dependency_libs; do
11229 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11230 if test "X$additional_libdir" != "X/usr/lib"; then
11232 if test "X$additional_libdir" = "X/usr/local/lib"; then
11233 if test -n "$GCC"; then
11235 linux
*) haveit
=yes;;
11239 if test -z "$haveit"; then
11241 for x
in $LDFLAGS $LIBIPT; do
11243 acl_save_prefix
="$prefix"
11244 prefix
="$acl_final_prefix"
11245 acl_save_exec_prefix
="$exec_prefix"
11246 exec_prefix
="$acl_final_exec_prefix"
11248 exec_prefix
="$acl_save_exec_prefix"
11249 prefix
="$acl_save_prefix"
11251 if test "X$x" = "X-L$additional_libdir"; then
11256 if test -z "$haveit"; then
11257 if test -d "$additional_libdir"; then
11258 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
11262 for x
in $LDFLAGS $LTLIBIPT; do
11264 acl_save_prefix
="$prefix"
11265 prefix
="$acl_final_prefix"
11266 acl_save_exec_prefix
="$exec_prefix"
11267 exec_prefix
="$acl_final_exec_prefix"
11269 exec_prefix
="$acl_save_exec_prefix"
11270 prefix
="$acl_save_prefix"
11272 if test "X$x" = "X-L$additional_libdir"; then
11277 if test -z "$haveit"; then
11278 if test -d "$additional_libdir"; then
11279 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
11286 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11287 if test "$enable_rpath" != no
; then
11289 for x
in $rpathdirs; do
11290 if test "X$x" = "X$dir"; then
11295 if test -z "$haveit"; then
11296 rpathdirs
="$rpathdirs $dir"
11299 for x
in $ltrpathdirs; do
11300 if test "X$x" = "X$dir"; then
11305 if test -z "$haveit"; then
11306 ltrpathdirs
="$ltrpathdirs $dir"
11311 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11314 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11317 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
11318 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
11324 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
11325 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
11331 if test "X$rpathdirs" != "X"; then
11332 if test -n "$hardcode_libdir_separator"; then
11334 for found_dir
in $rpathdirs; do
11335 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11337 acl_save_libdir
="$libdir"
11339 eval flag
=\"$hardcode_libdir_flag_spec\"
11340 libdir
="$acl_save_libdir"
11341 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
11343 for found_dir
in $rpathdirs; do
11344 acl_save_libdir
="$libdir"
11345 libdir
="$found_dir"
11346 eval flag
=\"$hardcode_libdir_flag_spec\"
11347 libdir
="$acl_save_libdir"
11348 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
11352 if test "X$ltrpathdirs" != "X"; then
11353 for found_dir
in $ltrpathdirs; do
11354 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
11359 ac_save_CPPFLAGS
="$CPPFLAGS"
11361 for element
in $INCIPT; do
11363 for x
in $CPPFLAGS; do
11365 acl_save_prefix
="$prefix"
11366 prefix
="$acl_final_prefix"
11367 acl_save_exec_prefix
="$exec_prefix"
11368 exec_prefix
="$acl_final_exec_prefix"
11370 exec_prefix
="$acl_save_exec_prefix"
11371 prefix
="$acl_save_prefix"
11373 if test "X$x" = "X$element"; then
11378 if test -z "$haveit"; then
11379 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
11385 $as_echo_n "checking for libipt... " >&6; }
11386 if test "${ac_cv_libipt+set}" = set; then :
11387 $as_echo_n "(cached) " >&6
11390 ac_save_LIBS
="$LIBS"
11391 LIBS
="$LIBS $LIBIPT"
11392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11393 /* end confdefs.h. */
11394 #include "intel-pt.h"
11398 pt_insn_alloc_decoder (0);
11403 if ac_fn_c_try_link
"$LINENO"; then :
11408 rm -f core conftest.err conftest.
$ac_objext \
11409 conftest
$ac_exeext conftest.
$ac_ext
11410 LIBS
="$ac_save_LIBS"
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
11414 $as_echo "$ac_cv_libipt" >&6; }
11415 if test "$ac_cv_libipt" = yes; then
11418 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
11421 $as_echo_n "checking how to link with libipt... " >&6; }
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
11423 $as_echo "$LIBIPT" >&6; }
11426 CPPFLAGS
="$ac_save_CPPFLAGS"
11436 if test "$HAVE_LIBIPT" != yes; then
11437 if test "$with_intel_pt" = yes; then
11438 as_fn_error
"libipt is missing or unusable" "$LINENO" 5
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
11441 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
11446 # ------------------------- #
11447 # Checks for header files. #
11448 # ------------------------- #
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11451 $as_echo_n "checking for ANSI C header files... " >&6; }
11452 if test "${ac_cv_header_stdc+set}" = set; then :
11453 $as_echo_n "(cached) " >&6
11455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11456 /* end confdefs.h. */
11457 #include <stdlib.h>
11458 #include <stdarg.h>
11459 #include <string.h>
11470 if ac_fn_c_try_compile
"$LINENO"; then :
11471 ac_cv_header_stdc
=yes
11473 ac_cv_header_stdc
=no
11475 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11477 if test $ac_cv_header_stdc = yes; then
11478 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11480 /* end confdefs.h. */
11481 #include <string.h>
11484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11485 $EGREP "memchr" >/dev
/null
2>&1; then :
11488 ac_cv_header_stdc
=no
11494 if test $ac_cv_header_stdc = yes; then
11495 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11497 /* end confdefs.h. */
11498 #include <stdlib.h>
11501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11502 $EGREP "free" >/dev
/null
2>&1; then :
11505 ac_cv_header_stdc
=no
11511 if test $ac_cv_header_stdc = yes; then
11512 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11513 if test "$cross_compiling" = yes; then :
11516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11517 /* end confdefs.h. */
11519 #include <stdlib.h>
11520 #if ((' ' & 0x0FF) == 0x020)
11521 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11522 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11524 # define ISLOWER(c) \
11525 (('a' <= (c) && (c) <= 'i') \
11526 || ('j' <= (c) && (c) <= 'r') \
11527 || ('s' <= (c) && (c) <= 'z'))
11528 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11531 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11536 for (i = 0; i < 256; i++)
11537 if (XOR (islower (i), ISLOWER (i))
11538 || toupper (i) != TOUPPER (i))
11543 if ac_fn_c_try_run
"$LINENO"; then :
11546 ac_cv_header_stdc
=no
11548 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11549 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11555 $as_echo "$ac_cv_header_stdc" >&6; }
11556 if test $ac_cv_header_stdc = yes; then
11558 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11562 # elf_hp.h is for HP/UX 64-bit shared library support.
11563 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
11566 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
11567 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
11568 sys
/reg.h sys
/debugreg.h sys
/select.h sys
/syscall.h \
11569 termios.h termio.h \
11573 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11574 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11575 eval as_val
=\$
$as_ac_Header
11576 if test "x$as_val" = x
""yes; then :
11577 cat >>confdefs.h
<<_ACEOF
11578 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11585 for ac_header
in sys
/proc.h
11587 ac_fn_c_check_header_compile
"$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
11588 # include <sys/param.h>
11592 if test "x$ac_cv_header_sys_proc_h" = x
""yes; then :
11593 cat >>confdefs.h
<<_ACEOF
11594 #define HAVE_SYS_PROC_H 1
11601 for ac_header
in sys
/user.h
11603 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
11604 # include <sys/param.h>
11608 if test "x$ac_cv_header_sys_user_h" = x
""yes; then :
11609 cat >>confdefs.h
<<_ACEOF
11610 #define HAVE_SYS_USER_H 1
11618 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
11619 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
11620 # think that we don't have <curses.h> if we're using GCC.
11623 if test "$GCC" = yes; then
11625 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
11629 for ac_header
in curses.h cursesX.h ncurses.h ncurses
/ncurses.h ncurses
/term.h
11631 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11632 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11633 eval as_val
=\$
$as_ac_Header
11634 if test "x$as_val" = x
""yes; then :
11635 cat >>confdefs.h
<<_ACEOF
11636 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11643 for ac_header
in term.h
11645 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
11646 # include <curses.h>
11650 if test "x$ac_cv_header_term_h" = x
""yes; then :
11651 cat >>confdefs.h
<<_ACEOF
11652 #define HAVE_TERM_H 1
11660 # ------------------------- #
11661 # Checks for declarations. #
11662 # ------------------------- #
11665 # Check for presence and size of long long.
11666 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
11667 if test "x$ac_cv_type_long_long" = x
""yes; then :
11669 cat >>confdefs.h
<<_ACEOF
11670 #define HAVE_LONG_LONG 1
11673 # The cast to long int works around a bug in the HP C Compiler
11674 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11675 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11676 # This bug is HP SR number 8606223364.
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
11678 $as_echo_n "checking size of long long... " >&6; }
11679 if test "${ac_cv_sizeof_long_long+set}" = set; then :
11680 $as_echo_n "(cached) " >&6
11682 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
11685 if test "$ac_cv_type_long_long" = yes; then
11686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11688 { as_fn_set_status
77
11689 as_fn_error
"cannot compute sizeof (long long)
11690 See \`config.log' for more details." "$LINENO" 5; }; }
11692 ac_cv_sizeof_long_long
=0
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
11698 $as_echo "$ac_cv_sizeof_long_long" >&6; }
11702 cat >>confdefs.h
<<_ACEOF
11703 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11710 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
11711 if test "x$ac_cv_have_decl_basename_char_p_" = x
""yes; then :
11717 cat >>confdefs.h
<<_ACEOF
11718 #define HAVE_DECL_BASENAME $ac_have_decl
11720 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
11721 if test "x$ac_cv_have_decl_ffs" = x
""yes; then :
11727 cat >>confdefs.h
<<_ACEOF
11728 #define HAVE_DECL_FFS $ac_have_decl
11730 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
11731 if test "x$ac_cv_have_decl_asprintf" = x
""yes; then :
11737 cat >>confdefs.h
<<_ACEOF
11738 #define HAVE_DECL_ASPRINTF $ac_have_decl
11740 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
11741 if test "x$ac_cv_have_decl_vasprintf" = x
""yes; then :
11747 cat >>confdefs.h
<<_ACEOF
11748 #define HAVE_DECL_VASPRINTF $ac_have_decl
11750 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11751 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
11757 cat >>confdefs.h
<<_ACEOF
11758 #define HAVE_DECL_SNPRINTF $ac_have_decl
11760 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
11761 if test "x$ac_cv_have_decl_vsnprintf" = x
""yes; then :
11767 cat >>confdefs.h
<<_ACEOF
11768 #define HAVE_DECL_VSNPRINTF $ac_have_decl
11771 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
11772 if test "x$ac_cv_have_decl_strtol" = x
""yes; then :
11778 cat >>confdefs.h
<<_ACEOF
11779 #define HAVE_DECL_STRTOL $ac_have_decl
11781 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
11782 if test "x$ac_cv_have_decl_strtoul" = x
""yes; then :
11788 cat >>confdefs.h
<<_ACEOF
11789 #define HAVE_DECL_STRTOUL $ac_have_decl
11791 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
11792 if test "x$ac_cv_have_decl_strtoll" = x
""yes; then :
11798 cat >>confdefs.h
<<_ACEOF
11799 #define HAVE_DECL_STRTOLL $ac_have_decl
11801 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
11802 if test "x$ac_cv_have_decl_strtoull" = x
""yes; then :
11808 cat >>confdefs.h
<<_ACEOF
11809 #define HAVE_DECL_STRTOULL $ac_have_decl
11812 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
11813 if test "x$ac_cv_have_decl_strverscmp" = x
""yes; then :
11819 cat >>confdefs.h
<<_ACEOF
11820 #define HAVE_DECL_STRVERSCMP $ac_have_decl
11825 ac_fn_c_check_decl
"$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
11826 if test "x$ac_cv_have_decl_free" = x
""yes; then :
11832 cat >>confdefs.h
<<_ACEOF
11833 #define HAVE_DECL_FREE $ac_have_decl
11835 ac_fn_c_check_decl
"$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
11836 if test "x$ac_cv_have_decl_malloc" = x
""yes; then :
11842 cat >>confdefs.h
<<_ACEOF
11843 #define HAVE_DECL_MALLOC $ac_have_decl
11845 ac_fn_c_check_decl
"$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
11846 if test "x$ac_cv_have_decl_realloc" = x
""yes; then :
11852 cat >>confdefs.h
<<_ACEOF
11853 #define HAVE_DECL_REALLOC $ac_have_decl
11855 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11856 if test "x$ac_cv_have_decl_snprintf" = x
""yes; then :
11862 cat >>confdefs.h
<<_ACEOF
11863 #define HAVE_DECL_SNPRINTF $ac_have_decl
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11868 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11869 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
11870 $as_echo_n "(cached) " >&6
11872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11873 /* end confdefs.h. */
11874 #include <locale.h>
11883 if ac_fn_c_try_link
"$LINENO"; then :
11884 am_cv_val_LC_MESSAGES
=yes
11886 am_cv_val_LC_MESSAGES
=no
11888 rm -f core conftest.err conftest.
$ac_objext \
11889 conftest
$ac_exeext conftest.
$ac_ext
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11892 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11893 if test $am_cv_val_LC_MESSAGES = yes; then
11895 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11900 # ----------------------- #
11901 # Checks for structures. #
11902 # ----------------------- #
11904 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
11905 if test "x$ac_cv_member_struct_stat_st_blocks" = x
""yes; then :
11907 cat >>confdefs.h
<<_ACEOF
11908 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11913 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
11914 if test "x$ac_cv_member_struct_stat_st_blksize" = x
""yes; then :
11916 cat >>confdefs.h
<<_ACEOF
11917 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11924 # ------------------ #
11925 # Checks for types. #
11926 # ------------------ #
11928 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11929 #include <sys/socket.h>
11932 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
11934 cat >>confdefs.h
<<_ACEOF
11935 #define HAVE_SOCKLEN_T 1
11942 # ------------------------------------- #
11943 # Checks for compiler characteristics. #
11944 # ------------------------------------- #
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11947 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11948 if test "${ac_cv_c_const+set}" = set; then :
11949 $as_echo_n "(cached) " >&6
11951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11952 /* end confdefs.h. */
11957 /* FIXME: Include the comments suggested by Paul. */
11958 #ifndef __cplusplus
11959 /* Ultrix mips cc rejects this. */
11960 typedef int charset[2];
11962 /* SunOS 4.1.1 cc rejects this. */
11963 char const *const *pcpcc;
11965 /* NEC SVR4.0.2 mips cc rejects this. */
11966 struct point {int x, y;};
11967 static struct point const zero = {0,0};
11968 /* AIX XL C 1.02.0.0 rejects this.
11969 It does not let you subtract one const X* pointer from another in
11970 an arm of an if-expression whose if-part is not a constant
11972 const char *g = "string";
11973 pcpcc = &g + (g ? g-g : 0);
11974 /* HPUX 7.0 cc rejects these. */
11976 ppc = (char**) pcpcc;
11977 pcpcc = (char const *const *) ppc;
11978 { /* SCO 3.2v4 cc rejects this. */
11980 char const *s = 0 ? (char *) 0 : (char const *) 0;
11985 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11986 int x[] = {25, 17};
11987 const int *foo = &x[0];
11990 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11991 typedef const int *iptr;
11995 { /* AIX XL C 1.02.0.0 rejects this saying
11996 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11997 struct s { int j; const int *ap[3]; };
11998 struct s *b; b->j = 5;
12000 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12001 const int foo = 10;
12002 if (!foo) return 0;
12004 return !cs[0] && !zero.x;
12011 if ac_fn_c_try_compile
"$LINENO"; then :
12016 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12019 $as_echo "$ac_cv_c_const" >&6; }
12020 if test $ac_cv_c_const = no
; then
12022 $as_echo "#define const /**/" >>confdefs.h
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12027 $as_echo_n "checking for inline... " >&6; }
12028 if test "${ac_cv_c_inline+set}" = set; then :
12029 $as_echo_n "(cached) " >&6
12032 for ac_kw
in inline __inline__ __inline
; do
12033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12034 /* end confdefs.h. */
12035 #ifndef __cplusplus
12037 static $ac_kw foo_t static_foo () {return 0; }
12038 $ac_kw foo_t foo () {return 0; }
12042 if ac_fn_c_try_compile
"$LINENO"; then :
12043 ac_cv_c_inline
=$ac_kw
12045 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12046 test "$ac_cv_c_inline" != no
&& break
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12051 $as_echo "$ac_cv_c_inline" >&6; }
12053 case $ac_cv_c_inline in
12056 case $ac_cv_c_inline in
12058 *) ac_val
=$ac_cv_c_inline;;
12060 cat >>confdefs.h
<<_ACEOF
12061 #ifndef __cplusplus
12062 #define inline $ac_val
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12069 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12070 if test "${ac_cv_c_bigendian+set}" = set; then :
12071 $as_echo_n "(cached) " >&6
12073 ac_cv_c_bigendian
=unknown
12074 # See if we're dealing with a universal compiler.
12075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12076 /* end confdefs.h. */
12077 #ifndef __APPLE_CC__
12078 not a universal capable compiler
12083 if ac_fn_c_try_compile
"$LINENO"; then :
12085 # Check for potential -arch flags. It is not universal unless
12086 # there are at least two -arch flags with different values.
12089 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12090 if test -n "$ac_prev"; then
12092 i?
86 | x86_64 | ppc | ppc64
)
12093 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12096 ac_cv_c_bigendian
=universal
12102 elif test "x$ac_word" = "x-arch"; then
12107 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12108 if test $ac_cv_c_bigendian = unknown
; then
12109 # See if sys/param.h defines the BYTE_ORDER macro.
12110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12111 /* end confdefs.h. */
12112 #include <sys/types.h>
12113 #include <sys/param.h>
12118 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12119 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12121 bogus endian macros
12128 if ac_fn_c_try_compile
"$LINENO"; then :
12129 # It does; now see whether it defined to BIG_ENDIAN or not.
12130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12131 /* end confdefs.h. */
12132 #include <sys/types.h>
12133 #include <sys/param.h>
12138 #if BYTE_ORDER != BIG_ENDIAN
12146 if ac_fn_c_try_compile
"$LINENO"; then :
12147 ac_cv_c_bigendian
=yes
12149 ac_cv_c_bigendian
=no
12151 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12153 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12155 if test $ac_cv_c_bigendian = unknown
; then
12156 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12158 /* end confdefs.h. */
12159 #include <limits.h>
12164 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12165 bogus endian macros
12172 if ac_fn_c_try_compile
"$LINENO"; then :
12173 # It does; now see whether it defined to _BIG_ENDIAN or not.
12174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12175 /* end confdefs.h. */
12176 #include <limits.h>
12181 #ifndef _BIG_ENDIAN
12189 if ac_fn_c_try_compile
"$LINENO"; then :
12190 ac_cv_c_bigendian
=yes
12192 ac_cv_c_bigendian
=no
12194 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12196 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12198 if test $ac_cv_c_bigendian = unknown
; then
12199 # Compile a test program.
12200 if test "$cross_compiling" = yes; then :
12201 # Try to guess by grepping values from an object file.
12202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12203 /* end confdefs.h. */
12204 short int ascii_mm[] =
12205 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12206 short int ascii_ii[] =
12207 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12208 int use_ascii (int i) {
12209 return ascii_mm[i] + ascii_ii[i];
12211 short int ebcdic_ii[] =
12212 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12213 short int ebcdic_mm[] =
12214 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12215 int use_ebcdic (int i) {
12216 return ebcdic_mm[i] + ebcdic_ii[i];
12223 return use_ascii (foo) == use_ebcdic (foo);
12228 if ac_fn_c_try_compile
"$LINENO"; then :
12229 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12230 ac_cv_c_bigendian
=yes
12232 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12233 if test "$ac_cv_c_bigendian" = unknown
; then
12234 ac_cv_c_bigendian
=no
12236 # finding both strings is unlikely to happen, but who knows?
12237 ac_cv_c_bigendian
=unknown
12241 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12244 /* end confdefs.h. */
12245 $ac_includes_default
12250 /* Are we little or big endian? From Harbison&Steele. */
12254 char c[sizeof (long int)];
12257 return u.c[sizeof (long int) - 1] == 1;
12263 if ac_fn_c_try_run
"$LINENO"; then :
12264 ac_cv_c_bigendian
=no
12266 ac_cv_c_bigendian
=yes
12268 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12269 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12275 $as_echo "$ac_cv_c_bigendian" >&6; }
12276 case $ac_cv_c_bigendian in #(
12278 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12284 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12288 as_fn_error
"unknown endianness
12289 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12293 # ------------------------------ #
12294 # Checks for library functions. #
12295 # ------------------------------ #
12297 for ac_header
in stdlib.h unistd.h
12299 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12300 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12301 eval as_val
=\$
$as_ac_Header
12302 if test "x$as_val" = x
""yes; then :
12303 cat >>confdefs.h
<<_ACEOF
12304 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12311 for ac_func
in getpagesize
12313 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12314 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
12315 cat >>confdefs.h
<<_ACEOF
12316 #define HAVE_GETPAGESIZE 1
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12323 $as_echo_n "checking for working mmap... " >&6; }
12324 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12325 $as_echo_n "(cached) " >&6
12327 if test "$cross_compiling" = yes; then :
12328 ac_cv_func_mmap_fixed_mapped
=no
12330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12331 /* end confdefs.h. */
12332 $ac_includes_default
12333 /* malloc might have been renamed as rpl_malloc. */
12336 /* Thanks to Mike Haertel and Jim Avera for this test.
12337 Here is a matrix of mmap possibilities:
12338 mmap private not fixed
12339 mmap private fixed at somewhere currently unmapped
12340 mmap private fixed at somewhere already mapped
12341 mmap shared not fixed
12342 mmap shared fixed at somewhere currently unmapped
12343 mmap shared fixed at somewhere already mapped
12344 For private mappings, we should verify that changes cannot be read()
12345 back from the file, nor mmap's back from the file at a different
12346 address. (There have been systems where private was not correctly
12347 implemented like the infamous i386 svr4.0, and systems where the
12348 VM page cache was not coherent with the file system buffer cache
12349 like early versions of FreeBSD and possibly contemporary NetBSD.)
12350 For shared mappings, we should conversely verify that changes get
12351 propagated back to all the places they're supposed to be.
12353 Grep wants private fixed already mapped.
12354 The main things grep needs to know about mmap are:
12355 * does it exist and is it safe to write into the mmap'd area
12356 * how to use it (BSD variants) */
12359 #include <sys/mman.h>
12361 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12365 /* This mess was copied from the GNU getpagesize.h. */
12366 #ifndef HAVE_GETPAGESIZE
12367 /* Assume that all systems that can run configure have sys/param.h. */
12368 # ifndef HAVE_SYS_PARAM_H
12369 # define HAVE_SYS_PARAM_H 1
12372 # ifdef _SC_PAGESIZE
12373 # define getpagesize() sysconf(_SC_PAGESIZE)
12374 # else /* no _SC_PAGESIZE */
12375 # ifdef HAVE_SYS_PARAM_H
12376 # include <sys/param.h>
12377 # ifdef EXEC_PAGESIZE
12378 # define getpagesize() EXEC_PAGESIZE
12379 # else /* no EXEC_PAGESIZE */
12381 # define getpagesize() NBPG * CLSIZE
12384 # endif /* no CLSIZE */
12385 # else /* no NBPG */
12387 # define getpagesize() NBPC
12388 # else /* no NBPC */
12390 # define getpagesize() PAGESIZE
12391 # endif /* PAGESIZE */
12392 # endif /* no NBPC */
12393 # endif /* no NBPG */
12394 # endif /* no EXEC_PAGESIZE */
12395 # else /* no HAVE_SYS_PARAM_H */
12396 # define getpagesize() 8192 /* punt totally */
12397 # endif /* no HAVE_SYS_PARAM_H */
12398 # endif /* no _SC_PAGESIZE */
12400 #endif /* no HAVE_GETPAGESIZE */
12405 char *data, *data2, *data3;
12409 pagesize = getpagesize ();
12411 /* First, make a file with some known garbage in it. */
12412 data = (char *) malloc (pagesize);
12415 for (i = 0; i < pagesize; ++i)
12416 *(data + i) = rand ();
12418 fd = creat ("conftest.mmap", 0600);
12421 if (write (fd, data, pagesize) != pagesize)
12425 /* Next, try to mmap the file at a fixed address which already has
12426 something else allocated at it. If we can, also make sure that
12427 we see the same garbage. */
12428 fd = open ("conftest.mmap", O_RDWR);
12431 data2 = (char *) malloc (2 * pagesize);
12434 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12435 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12436 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12438 for (i = 0; i < pagesize; ++i)
12439 if (*(data + i) != *(data2 + i))
12442 /* Finally, make sure that changes to the mapped area do not
12443 percolate back to the file as seen by read(). (This is a bug on
12444 some variants of i386 svr4.0.) */
12445 for (i = 0; i < pagesize; ++i)
12446 *(data2 + i) = *(data2 + i) + 1;
12447 data3 = (char *) malloc (pagesize);
12450 if (read (fd, data3, pagesize) != pagesize)
12452 for (i = 0; i < pagesize; ++i)
12453 if (*(data + i) != *(data3 + i))
12459 if ac_fn_c_try_run
"$LINENO"; then :
12460 ac_cv_func_mmap_fixed_mapped
=yes
12462 ac_cv_func_mmap_fixed_mapped
=no
12464 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12465 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12470 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12471 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12473 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12476 rm -f conftest.mmap
12478 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12479 if test "x$ac_cv_type_pid_t" = x
""yes; then :
12483 cat >>confdefs.h
<<_ACEOF
12489 for ac_header
in vfork.h
12491 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12492 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
12493 cat >>confdefs.h
<<_ACEOF
12494 #define HAVE_VFORK_H 1
12501 for ac_func
in fork vfork
12503 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12504 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12505 eval as_val
=\$
$as_ac_var
12506 if test "x$as_val" = x
""yes; then :
12507 cat >>confdefs.h
<<_ACEOF
12508 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12514 if test "x$ac_cv_func_fork" = xyes
; then
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12516 $as_echo_n "checking for working fork... " >&6; }
12517 if test "${ac_cv_func_fork_works+set}" = set; then :
12518 $as_echo_n "(cached) " >&6
12520 if test "$cross_compiling" = yes; then :
12521 ac_cv_func_fork_works
=cross
12523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12524 /* end confdefs.h. */
12525 $ac_includes_default
12530 /* By Ruediger Kuhlmann. */
12531 return fork () < 0;
12537 if ac_fn_c_try_run
"$LINENO"; then :
12538 ac_cv_func_fork_works
=yes
12540 ac_cv_func_fork_works
=no
12542 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12543 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12548 $as_echo "$ac_cv_func_fork_works" >&6; }
12551 ac_cv_func_fork_works
=$ac_cv_func_fork
12553 if test "x$ac_cv_func_fork_works" = xcross
; then
12555 *-*-amigaos* |
*-*-msdosdjgpp*)
12556 # Override, as these systems have only a dummy fork() stub
12557 ac_cv_func_fork_works
=no
12560 ac_cv_func_fork_works
=yes
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12564 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12566 ac_cv_func_vfork_works
=$ac_cv_func_vfork
12567 if test "x$ac_cv_func_vfork" = xyes
; then
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12569 $as_echo_n "checking for working vfork... " >&6; }
12570 if test "${ac_cv_func_vfork_works+set}" = set; then :
12571 $as_echo_n "(cached) " >&6
12573 if test "$cross_compiling" = yes; then :
12574 ac_cv_func_vfork_works
=cross
12576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12577 /* end confdefs.h. */
12578 /* Thanks to Paul Eggert for this test. */
12579 $ac_includes_default
12580 #include <sys/wait.h>
12581 #ifdef HAVE_VFORK_H
12582 # include <vfork.h>
12584 /* On some sparc systems, changes by the child to local and incoming
12585 argument registers are propagated back to the parent. The compiler
12586 is told about this with #include <vfork.h>, but some compilers
12587 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12588 static variable whose address is put into a register that is
12589 clobbered by the vfork. */
12592 sparc_address_test (int arg)
12594 sparc_address_test (arg) int arg;
12597 static pid_t child;
12615 pid_t parent = getpid ();
12618 sparc_address_test (0);
12623 /* Here is another test for sparc vfork register problems. This
12624 test uses lots of local variables, at least as many local
12625 variables as main has allocated so far including compiler
12626 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12627 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12628 reuse the register of parent for one of the local variables,
12629 since it will think that parent can't possibly be used any more
12630 in this routine. Assigning to the local variable will thus
12631 munge parent in the parent process. */
12633 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12634 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12635 /* Convince the compiler that p..p7 are live; otherwise, it might
12636 use the same hardware register for all 8 local variables. */
12637 if (p != p1 || p != p2 || p != p3 || p != p4
12638 || p != p5 || p != p6 || p != p7)
12641 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12642 from child file descriptors. If the child closes a descriptor
12643 before it execs or exits, this munges the parent's descriptor
12644 as well. Test for this by closing stdout in the child. */
12645 _exit(close(fileno(stdout)) != 0);
12650 while (wait(&status) != child)
12653 /* Was there some problem with vforking? */
12656 /* Did the child fail? (This shouldn't happen.) */
12659 /* Did the vfork/compiler bug occur? */
12660 || parent != getpid()
12662 /* Did the file descriptor bug occur? */
12663 || fstat(fileno(stdout), &st) != 0
12668 if ac_fn_c_try_run
"$LINENO"; then :
12669 ac_cv_func_vfork_works
=yes
12671 ac_cv_func_vfork_works
=no
12673 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12674 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12679 $as_echo "$ac_cv_func_vfork_works" >&6; }
12682 if test "x$ac_cv_func_fork_works" = xcross
; then
12683 ac_cv_func_vfork_works
=$ac_cv_func_vfork
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12685 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12688 if test "x$ac_cv_func_vfork_works" = xyes
; then
12690 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12694 $as_echo "#define vfork fork" >>confdefs.h
12697 if test "x$ac_cv_func_fork_works" = xyes
; then
12699 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12703 for ac_func
in getauxval getrusage getuid getgid \
12704 pipe poll pread pread64 pwrite resize_term \
12705 sbrk setpgid setpgrp setsid \
12706 sigaction sigprocmask sigsetmask socketpair \
12707 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
12708 setrlimit getrlimit posix_madvise waitpid \
12709 ptrace64 sigaltstack mkdtemp setns
12711 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12712 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12713 eval as_val
=\$
$as_ac_var
12714 if test "x$as_val" = x
""yes; then :
12715 cat >>confdefs.h
<<_ACEOF
12716 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12724 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12725 if test "${am_cv_langinfo_codeset+set}" = set; then :
12726 $as_echo_n "(cached) " >&6
12728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12729 /* end confdefs.h. */
12730 #include <langinfo.h>
12734 char* cs = nl_langinfo(CODESET);
12739 if ac_fn_c_try_link
"$LINENO"; then :
12740 am_cv_langinfo_codeset
=yes
12742 am_cv_langinfo_codeset
=no
12744 rm -f core conftest.err conftest.
$ac_objext \
12745 conftest
$ac_exeext conftest.
$ac_ext
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12749 $as_echo "$am_cv_langinfo_codeset" >&6; }
12750 if test $am_cv_langinfo_codeset = yes; then
12752 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12758 $as_echo_n "checking for ANSI C header files... " >&6; }
12759 if test "${ac_cv_header_stdc+set}" = set; then :
12760 $as_echo_n "(cached) " >&6
12762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12763 /* end confdefs.h. */
12764 #include <stdlib.h>
12765 #include <stdarg.h>
12766 #include <string.h>
12777 if ac_fn_c_try_compile
"$LINENO"; then :
12778 ac_cv_header_stdc
=yes
12780 ac_cv_header_stdc
=no
12782 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12784 if test $ac_cv_header_stdc = yes; then
12785 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12787 /* end confdefs.h. */
12788 #include <string.h>
12791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12792 $EGREP "memchr" >/dev
/null
2>&1; then :
12795 ac_cv_header_stdc
=no
12801 if test $ac_cv_header_stdc = yes; then
12802 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12804 /* end confdefs.h. */
12805 #include <stdlib.h>
12808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12809 $EGREP "free" >/dev
/null
2>&1; then :
12812 ac_cv_header_stdc
=no
12818 if test $ac_cv_header_stdc = yes; then
12819 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12820 if test "$cross_compiling" = yes; then :
12823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12824 /* end confdefs.h. */
12826 #include <stdlib.h>
12827 #if ((' ' & 0x0FF) == 0x020)
12828 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12829 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12831 # define ISLOWER(c) \
12832 (('a' <= (c) && (c) <= 'i') \
12833 || ('j' <= (c) && (c) <= 'r') \
12834 || ('s' <= (c) && (c) <= 'z'))
12835 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12838 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12843 for (i = 0; i < 256; i++)
12844 if (XOR (islower (i), ISLOWER (i))
12845 || toupper (i) != TOUPPER (i))
12850 if ac_fn_c_try_run
"$LINENO"; then :
12853 ac_cv_header_stdc
=no
12855 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12856 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12862 $as_echo "$ac_cv_header_stdc" >&6; }
12863 if test $ac_cv_header_stdc = yes; then
12865 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12869 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12870 # for constant arguments. Useless!
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12872 $as_echo_n "checking for working alloca.h... " >&6; }
12873 if test "${ac_cv_working_alloca_h+set}" = set; then :
12874 $as_echo_n "(cached) " >&6
12876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12877 /* end confdefs.h. */
12878 #include <alloca.h>
12882 char *p = (char *) alloca (2 * sizeof (int));
12888 if ac_fn_c_try_link
"$LINENO"; then :
12889 ac_cv_working_alloca_h
=yes
12891 ac_cv_working_alloca_h
=no
12893 rm -f core conftest.err conftest.
$ac_objext \
12894 conftest
$ac_exeext conftest.
$ac_ext
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12897 $as_echo "$ac_cv_working_alloca_h" >&6; }
12898 if test $ac_cv_working_alloca_h = yes; then
12900 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12905 $as_echo_n "checking for alloca... " >&6; }
12906 if test "${ac_cv_func_alloca_works+set}" = set; then :
12907 $as_echo_n "(cached) " >&6
12909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12910 /* end confdefs.h. */
12912 # define alloca __builtin_alloca
12915 # include <malloc.h>
12916 # define alloca _alloca
12918 # ifdef HAVE_ALLOCA_H
12919 # include <alloca.h>
12924 # ifndef alloca /* predefined by HP cc +Olibcalls */
12935 char *p = (char *) alloca (1);
12941 if ac_fn_c_try_link
"$LINENO"; then :
12942 ac_cv_func_alloca_works
=yes
12944 ac_cv_func_alloca_works
=no
12946 rm -f core conftest.err conftest.
$ac_objext \
12947 conftest
$ac_exeext conftest.
$ac_ext
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12950 $as_echo "$ac_cv_func_alloca_works" >&6; }
12952 if test $ac_cv_func_alloca_works = yes; then
12954 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12957 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12958 # that cause trouble. Some versions do not even contain alloca or
12959 # contain a buggy version. If you still want to use their alloca,
12960 # use ar to extract alloca.o from them instead of compiling alloca.c.
12962 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
12964 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12968 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12969 if test "${ac_cv_os_cray+set}" = set; then :
12970 $as_echo_n "(cached) " >&6
12972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12973 /* end confdefs.h. */
12974 #if defined CRAY && ! defined CRAY2
12981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12982 $EGREP "webecray" >/dev
/null
2>&1; then :
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12991 $as_echo "$ac_cv_os_cray" >&6; }
12992 if test $ac_cv_os_cray = yes; then
12993 for ac_func
in _getb67 GETB67 getb67
; do
12994 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12995 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12996 eval as_val
=\$
$as_ac_var
12997 if test "x$as_val" = x
""yes; then :
12999 cat >>confdefs.h
<<_ACEOF
13000 #define CRAY_STACKSEG_END $ac_func
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13010 $as_echo_n "checking stack direction for C alloca... " >&6; }
13011 if test "${ac_cv_c_stack_direction+set}" = set; then :
13012 $as_echo_n "(cached) " >&6
13014 if test "$cross_compiling" = yes; then :
13015 ac_cv_c_stack_direction
=0
13017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13018 /* end confdefs.h. */
13019 $ac_includes_default
13021 find_stack_direction ()
13023 static char *addr = 0;
13028 return find_stack_direction ();
13031 return (&dummy > addr) ? 1 : -1;
13037 return find_stack_direction () < 0;
13040 if ac_fn_c_try_run
"$LINENO"; then :
13041 ac_cv_c_stack_direction
=1
13043 ac_cv_c_stack_direction
=-1
13045 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13046 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13051 $as_echo "$ac_cv_c_stack_direction" >&6; }
13052 cat >>confdefs.h
<<_ACEOF
13053 #define STACK_DIRECTION $ac_cv_c_stack_direction
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13062 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13063 if test "${am_cv_langinfo_codeset+set}" = set; then :
13064 $as_echo_n "(cached) " >&6
13066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13067 /* end confdefs.h. */
13068 #include <langinfo.h>
13072 char* cs = nl_langinfo(CODESET);
13077 if ac_fn_c_try_link
"$LINENO"; then :
13078 am_cv_langinfo_codeset
=yes
13080 am_cv_langinfo_codeset
=no
13082 rm -f core conftest.err conftest.
$ac_objext \
13083 conftest
$ac_exeext conftest.
$ac_ext
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13087 $as_echo "$am_cv_langinfo_codeset" >&6; }
13088 if test $am_cv_langinfo_codeset = yes; then
13090 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13095 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 termios.h termio.h sgtty.h
13097 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13098 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13099 eval as_val
=\$
$as_ac_Header
13100 if test "x$as_val" = x
""yes; then :
13101 cat >>confdefs.h
<<_ACEOF
13102 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13110 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair sigaction
13112 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13113 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13114 eval as_val
=\$
$as_ac_var
13115 if test "x$as_val" = x
""yes; then :
13116 cat >>confdefs.h
<<_ACEOF
13117 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13124 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
13125 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
13131 cat >>confdefs.h
<<_ACEOF
13132 #define HAVE_DECL_STRERROR $ac_have_decl
13134 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13135 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
13141 cat >>confdefs.h
<<_ACEOF
13142 #define HAVE_DECL_STRSTR $ac_have_decl
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
13147 $as_echo_n "checking for sigsetjmp... " >&6; }
13148 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
13149 $as_echo_n "(cached) " >&6
13151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13152 /* end confdefs.h. */
13154 #include <setjmp.h>
13159 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
13164 if ac_fn_c_try_compile
"$LINENO"; then :
13165 gdb_cv_func_sigsetjmp
=yes
13167 gdb_cv_func_sigsetjmp
=no
13169 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
13172 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
13173 if test $gdb_cv_func_sigsetjmp = yes; then
13175 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
13180 # Check the return and argument types of ptrace.
13183 for ac_header
in sys
/ptrace.h ptrace.h
13185 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13186 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13187 eval as_val
=\$
$as_ac_Header
13188 if test "x$as_val" = x
""yes; then :
13189 cat >>confdefs.h
<<_ACEOF
13190 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13198 gdb_ptrace_headers
='
13199 #include <sys/types.h>
13200 #if HAVE_SYS_PTRACE_H
13201 # include <sys/ptrace.h>
13204 # include <unistd.h>
13207 # There is no point in checking if we don't have a prototype.
13208 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
13210 if test "x$ac_cv_have_decl_ptrace" = x
""yes; then :
13216 cat >>confdefs.h
<<_ACEOF
13217 #define HAVE_DECL_PTRACE $ac_have_decl
13219 if test $ac_have_decl = 1; then :
13223 : ${gdb_cv_func_ptrace_ret='int'}
13224 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13228 # Check return type. Varargs (used on GNU/Linux) conflict with the
13229 # empty argument list, so check for that explicitly.
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
13231 $as_echo_n "checking return type of ptrace... " >&6; }
13232 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
13233 $as_echo_n "(cached) " >&6
13235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13236 /* end confdefs.h. */
13237 $gdb_ptrace_headers
13241 extern long ptrace (enum __ptrace_request, ...);
13246 if ac_fn_c_try_compile
"$LINENO"; then :
13247 gdb_cv_func_ptrace_ret
='long'
13249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13250 /* end confdefs.h. */
13251 $gdb_ptrace_headers
13255 extern int ptrace ();
13260 if ac_fn_c_try_compile
"$LINENO"; then :
13261 gdb_cv_func_ptrace_ret
='int'
13263 gdb_cv_func_ptrace_ret
='long'
13265 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13267 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
13270 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
13272 cat >>confdefs.h
<<_ACEOF
13273 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
13276 # Check argument types.
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
13278 $as_echo_n "checking types of arguments for ptrace... " >&6; }
13279 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
13280 $as_echo_n "(cached) " >&6
13283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13284 /* end confdefs.h. */
13285 $gdb_ptrace_headers
13289 extern long ptrace (enum __ptrace_request, ...);
13294 if ac_fn_c_try_compile
"$LINENO"; then :
13295 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
13298 for gdb_arg1
in 'int' 'long'; do
13299 for gdb_arg2
in 'pid_t' 'int' 'long'; do
13300 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
13301 for gdb_arg4
in 'int' 'long' 'void *'; do
13302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13303 /* end confdefs.h. */
13304 $gdb_ptrace_headers
13309 extern $gdb_cv_func_ptrace_ret
13310 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
13316 if ac_fn_c_try_compile
"$LINENO"; then :
13317 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
13320 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13321 for gdb_arg5
in 'int *' 'int' 'long'; do
13322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13323 /* end confdefs.h. */
13324 $gdb_ptrace_headers
13329 extern $gdb_cv_func_ptrace_ret
13330 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
13336 if ac_fn_c_try_compile
"$LINENO"; then :
13338 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
13341 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13347 # Provide a safe default value.
13348 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13351 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
13354 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
13355 ac_save_IFS
=$IFS; IFS
=','
13356 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
13360 cat >>confdefs.h
<<_ACEOF
13361 #define PTRACE_TYPE_ARG1 $1
13365 cat >>confdefs.h
<<_ACEOF
13366 #define PTRACE_TYPE_ARG3 $3
13370 cat >>confdefs.h
<<_ACEOF
13371 #define PTRACE_TYPE_ARG4 $4
13374 if test -n "$5"; then
13376 cat >>confdefs.h
<<_ACEOF
13377 #define PTRACE_TYPE_ARG5 $5
13383 if test "$cross_compiling" = no
; then
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
13385 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
13386 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
13387 $as_echo_n "(cached) " >&6
13389 if test "$cross_compiling" = yes; then :
13390 as_fn_error
"cannot check setpgrp when cross compiling" "$LINENO" 5
13392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13393 /* end confdefs.h. */
13394 $ac_includes_default
13398 /* If this system has a BSD-style setpgrp which takes arguments,
13399 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
13400 exit successfully. */
13401 return setpgrp (1,1) != -1;
13406 if ac_fn_c_try_run
"$LINENO"; then :
13407 ac_cv_func_setpgrp_void
=no
13409 ac_cv_func_setpgrp_void
=yes
13411 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13412 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
13417 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
13418 if test $ac_cv_func_setpgrp_void = yes; then
13420 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
13426 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
13427 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
13428 $as_echo_n "(cached) " >&6
13430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13431 /* end confdefs.h. */
13433 #include <unistd.h>
13439 if (setpgrp(1,1) == -1)
13448 if ac_fn_c_try_compile
"$LINENO"; then :
13449 ac_cv_func_setpgrp_void
=no
13451 ac_cv_func_setpgrp_void
=yes
13453 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
13456 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
13457 if test $ac_cv_func_setpgrp_void = yes; then
13458 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
13463 # Assume we'll default to using the included libiberty regex.
13464 gdb_use_included_regex
=yes
13466 # However, if the system regex is GNU regex, then default to *not*
13467 # using the included regex.
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
13469 $as_echo_n "checking for GNU regex... " >&6; }
13470 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
13471 $as_echo_n "(cached) " >&6
13473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13474 /* end confdefs.h. */
13475 #include <gnu-versions.h>
13479 #define REGEX_INTERFACE_VERSION 1
13480 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
13481 # error "Version mismatch"
13487 if ac_fn_c_try_compile
"$LINENO"; then :
13488 gdb_cv_have_gnu_regex
=yes
13490 gdb_cv_have_gnu_regex
=no
13492 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
13495 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
13496 if test $gdb_cv_have_gnu_regex = yes; then
13497 gdb_use_included_regex
=no
13501 # Check whether --with-included-regex was given.
13502 if test "${with_included_regex+set}" = set; then :
13503 withval
=$with_included_regex; gdb_with_regex
=$withval
13505 gdb_with_regex
=$gdb_use_included_regex
13508 if test "$gdb_with_regex" = yes; then
13510 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
13514 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
13515 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
13516 #include <sys/proc.h>
13519 if test "x$ac_cv_member_struct_thread_td_pcb" = x
""yes; then :
13521 cat >>confdefs.h
<<_ACEOF
13522 #define HAVE_STRUCT_THREAD_TD_PCB 1
13529 # See if <sys/lwp.h> defines `struct lwp`.
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
13531 $as_echo_n "checking for struct lwp... " >&6; }
13532 if test "${gdb_cv_struct_lwp+set}" = set; then :
13533 $as_echo_n "(cached) " >&6
13535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13536 /* end confdefs.h. */
13537 #include <sys/param.h>
13538 #include <sys/lwp.h>
13547 if ac_fn_c_try_compile
"$LINENO"; then :
13548 gdb_cv_struct_lwp
=yes
13550 gdb_cv_struct_lwp
=no
13552 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
13555 $as_echo "$gdb_cv_struct_lwp" >&6; }
13556 if test $gdb_cv_struct_lwp = yes; then
13558 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
13562 # See if <machine/reg.h> degines `struct reg'.
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
13564 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
13565 if test "${gdb_cv_struct_reg+set}" = set; then :
13566 $as_echo_n "(cached) " >&6
13568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13569 /* end confdefs.h. */
13570 #include <sys/types.h>
13571 #include <machine/reg.h>
13580 if ac_fn_c_try_compile
"$LINENO"; then :
13581 gdb_cv_struct_reg
=yes
13583 gdb_cv_struct_reg
=no
13585 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
13588 $as_echo "$gdb_cv_struct_reg" >&6; }
13589 if test $gdb_cv_struct_reg = yes; then
13591 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
13595 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
13596 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
13597 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
13598 #include <machine/reg.h>
13600 if test "x$ac_cv_member_struct_reg_r_fs" = x
""yes; then :
13602 cat >>confdefs.h
<<_ACEOF
13603 #define HAVE_STRUCT_REG_R_FS 1
13608 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
13609 #include <machine/reg.h>
13611 if test "x$ac_cv_member_struct_reg_r_gs" = x
""yes; then :
13613 cat >>confdefs.h
<<_ACEOF
13614 #define HAVE_STRUCT_REG_R_GS 1
13621 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
13622 # Older amd64 Linux's don't have the fs_base and gs_base members of
13623 # `struct user_regs_struct'.
13624 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>
13626 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = x
""yes; then :
13628 cat >>confdefs.h
<<_ACEOF
13629 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
13634 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>
13636 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = x
""yes; then :
13638 cat >>confdefs.h
<<_ACEOF
13639 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
13646 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
13648 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
13649 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
13650 $as_echo_n "(cached) " >&6
13652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13653 /* end confdefs.h. */
13654 #include <sys/ptrace.h>
13663 if ac_fn_c_try_compile
"$LINENO"; then :
13664 gdb_cv_have_ptrace_getregs
=yes
13666 gdb_cv_have_ptrace_getregs
=no
13668 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
13672 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
13673 if test $gdb_cv_have_ptrace_getregs = yes; then
13675 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
13679 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
13681 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
13682 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
13683 $as_echo_n "(cached) " >&6
13685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13686 /* end confdefs.h. */
13687 #include <sys/ptrace.h>
13696 if ac_fn_c_try_compile
"$LINENO"; then :
13697 gdb_cv_have_ptrace_getfpxregs
=yes
13699 gdb_cv_have_ptrace_getfpxregs
=no
13701 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
13705 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
13706 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
13708 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
13712 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
13714 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
13715 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
13716 $as_echo_n "(cached) " >&6
13718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13719 /* end confdefs.h. */
13720 #include <sys/types.h>
13721 #include <sys/ptrace.h>
13730 if ac_fn_c_try_compile
"$LINENO"; then :
13731 gdb_cv_have_pt_getdbregs
=yes
13733 gdb_cv_have_pt_getdbregs
=no
13735 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
13739 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
13740 if test $gdb_cv_have_pt_getdbregs = yes; then
13742 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
13746 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
13748 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
13749 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
13750 $as_echo_n "(cached) " >&6
13752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13753 /* end confdefs.h. */
13754 #include <sys/types.h>
13755 #include <sys/ptrace.h>
13764 if ac_fn_c_try_compile
"$LINENO"; then :
13765 gdb_cv_have_pt_getxmmregs
=yes
13767 gdb_cv_have_pt_getxmmregs
=no
13769 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
13773 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
13774 if test $gdb_cv_have_pt_getxmmregs = yes; then
13776 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
13780 # See if <sys/ptrace.h> supports LWP names on FreeBSD
13781 # Older FreeBSD versions don't have the pl_tdname member of
13782 # `struct ptrace_lwpinfo'.
13783 ac_fn_c_check_member
"$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
13785 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = x
""yes; then :
13787 cat >>confdefs.h
<<_ACEOF
13788 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
13795 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
13796 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
13798 ac_fn_c_check_member
"$LINENO" "struct ptrace_lwpinfo" "pl_syscall_code" "ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" "#include <sys/ptrace.h>
13800 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = x
""yes; then :
13802 cat >>confdefs.h
<<_ACEOF
13803 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
13810 # Detect which type of /proc is in use, such as for Solaris.
13812 if test "${target}" = "${host}"; then
13814 *-*-sysv4.2
* |
*-*-sysv5* )
13816 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13819 *-*-solaris2.
[6789] |
*-*-solaris2.1
[0-9]*)
13821 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13827 if test "$ac_cv_header_sys_procfs_h" = yes; then
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
13829 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
13830 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
13831 $as_echo_n "(cached) " >&6
13833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13834 /* end confdefs.h. */
13837 /* Needed for new procfs interface on sparc-solaris. */
13838 #define _STRUCTURED_PROC 1
13839 #include <sys/procfs.h>
13848 if ac_fn_c_try_compile
"$LINENO"; then :
13849 bfd_cv_have_sys_procfs_type_gregset_t
=yes
13851 bfd_cv_have_sys_procfs_type_gregset_t
=no
13854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13857 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
13859 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
13863 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
13866 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
13867 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
13868 $as_echo_n "(cached) " >&6
13870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13871 /* end confdefs.h. */
13874 /* Needed for new procfs interface on sparc-solaris. */
13875 #define _STRUCTURED_PROC 1
13876 #include <sys/procfs.h>
13885 if ac_fn_c_try_compile
"$LINENO"; then :
13886 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
13888 bfd_cv_have_sys_procfs_type_fpregset_t
=no
13891 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13894 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
13896 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
13900 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
13903 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
13904 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
13905 $as_echo_n "(cached) " >&6
13907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13908 /* end confdefs.h. */
13911 /* Needed for new procfs interface on sparc-solaris. */
13912 #define _STRUCTURED_PROC 1
13913 #include <sys/procfs.h>
13922 if ac_fn_c_try_compile
"$LINENO"; then :
13923 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
13925 bfd_cv_have_sys_procfs_type_prgregset_t
=no
13928 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13931 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
13933 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
13937 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
13940 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
13941 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
13942 $as_echo_n "(cached) " >&6
13944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13945 /* end confdefs.h. */
13948 /* Needed for new procfs interface on sparc-solaris. */
13949 #define _STRUCTURED_PROC 1
13950 #include <sys/procfs.h>
13959 if ac_fn_c_try_compile
"$LINENO"; then :
13960 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
13962 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
13965 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13968 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13970 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
13974 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
13977 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
13978 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
13979 $as_echo_n "(cached) " >&6
13981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13982 /* end confdefs.h. */
13985 /* Needed for new procfs interface on sparc-solaris. */
13986 #define _STRUCTURED_PROC 1
13987 #include <sys/procfs.h>
13996 if ac_fn_c_try_compile
"$LINENO"; then :
13997 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
13999 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
14002 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14005 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
14007 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
14011 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
14014 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
14015 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
14016 $as_echo_n "(cached) " >&6
14018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14019 /* end confdefs.h. */
14022 /* Needed for new procfs interface on sparc-solaris. */
14023 #define _STRUCTURED_PROC 1
14024 #include <sys/procfs.h>
14033 if ac_fn_c_try_compile
"$LINENO"; then :
14034 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
14036 bfd_cv_have_sys_procfs_type_lwpid_t
=no
14039 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14042 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
14044 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
14048 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
14051 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
14052 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
14053 $as_echo_n "(cached) " >&6
14055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14056 /* end confdefs.h. */
14059 /* Needed for new procfs interface on sparc-solaris. */
14060 #define _STRUCTURED_PROC 1
14061 #include <sys/procfs.h>
14070 if ac_fn_c_try_compile
"$LINENO"; then :
14071 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
14073 bfd_cv_have_sys_procfs_type_psaddr_t
=no
14076 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14079 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
14081 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
14085 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
14088 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
14089 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
14090 $as_echo_n "(cached) " >&6
14092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14093 /* end confdefs.h. */
14096 /* Needed for new procfs interface on sparc-solaris. */
14097 #define _STRUCTURED_PROC 1
14098 #include <sys/procfs.h>
14107 if ac_fn_c_try_compile
"$LINENO"; then :
14108 bfd_cv_have_sys_procfs_type_prsysent_t
=yes
14110 bfd_cv_have_sys_procfs_type_prsysent_t
=no
14113 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14116 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
14118 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
14122 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
14125 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
14126 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
14127 $as_echo_n "(cached) " >&6
14129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14130 /* end confdefs.h. */
14133 /* Needed for new procfs interface on sparc-solaris. */
14134 #define _STRUCTURED_PROC 1
14135 #include <sys/procfs.h>
14144 if ac_fn_c_try_compile
"$LINENO"; then :
14145 bfd_cv_have_sys_procfs_type_pr_sigset_t
=yes
14147 bfd_cv_have_sys_procfs_type_pr_sigset_t
=no
14150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14153 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
14155 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
14159 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
14162 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
14163 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
14164 $as_echo_n "(cached) " >&6
14166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14167 /* end confdefs.h. */
14170 /* Needed for new procfs interface on sparc-solaris. */
14171 #define _STRUCTURED_PROC 1
14172 #include <sys/procfs.h>
14176 pr_sigaction64_t avar
14181 if ac_fn_c_try_compile
"$LINENO"; then :
14182 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=yes
14184 bfd_cv_have_sys_procfs_type_pr_sigaction64_t
=no
14187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14190 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
14192 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
14196 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
14199 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
14200 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
14201 $as_echo_n "(cached) " >&6
14203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14204 /* end confdefs.h. */
14207 /* Needed for new procfs interface on sparc-solaris. */
14208 #define _STRUCTURED_PROC 1
14209 #include <sys/procfs.h>
14213 pr_siginfo64_t avar
14218 if ac_fn_c_try_compile
"$LINENO"; then :
14219 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=yes
14221 bfd_cv_have_sys_procfs_type_pr_siginfo64_t
=no
14224 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14227 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
14229 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
14233 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
14239 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
14241 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
14242 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
14243 $as_echo_n "(cached) " >&6
14245 if test "$cross_compiling" = yes; then :
14246 gdb_cv_prfpregset_t_broken
=yes
14248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14249 /* end confdefs.h. */
14250 #include <sys/procfs.h>
14253 if (sizeof (prfpregset_t) == sizeof (void *))
14258 if ac_fn_c_try_run
"$LINENO"; then :
14259 gdb_cv_prfpregset_t_broken
=no
14261 gdb_cv_prfpregset_t_broken
=yes
14263 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14264 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
14270 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
14271 if test $gdb_cv_prfpregset_t_broken = yes; then
14273 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
14279 # Check if the compiler supports the `long long' type.
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
14282 $as_echo_n "checking for long long support in compiler... " >&6; }
14283 if test "${gdb_cv_c_long_long+set}" = set; then :
14284 $as_echo_n "(cached) " >&6
14286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14287 /* end confdefs.h. */
14288 extern long long foo;
14292 switch (foo & 2) { case 0: return 1; }
14297 if ac_fn_c_try_compile
"$LINENO"; then :
14298 gdb_cv_c_long_long
=yes
14300 gdb_cv_c_long_long
=no
14302 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
14305 $as_echo "$gdb_cv_c_long_long" >&6; }
14306 if test $gdb_cv_c_long_long != yes; then
14307 # libdecnumber requires long long.
14308 as_fn_error
"Compiler must support long long for GDB." "$LINENO" 5
14311 # Check if the compiler and runtime support printing long longs.
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
14314 $as_echo_n "checking for long long support in printf... " >&6; }
14315 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
14316 $as_echo_n "(cached) " >&6
14318 if test "$cross_compiling" = yes; then :
14319 gdb_cv_printf_has_long_long
=no
14321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14322 /* end confdefs.h. */
14323 $ac_includes_default
14329 l = (l << 16) + 0x0123;
14330 l = (l << 16) + 0x4567;
14331 l = (l << 16) + 0x89ab;
14332 l = (l << 16) + 0xcdef;
14333 sprintf (buf, "0x%016llx", l);
14334 return (strcmp ("0x0123456789abcdef", buf));
14339 if ac_fn_c_try_run
"$LINENO"; then :
14340 gdb_cv_printf_has_long_long
=yes
14342 gdb_cv_printf_has_long_long
=no
14344 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14345 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
14350 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
14351 if test $gdb_cv_printf_has_long_long = yes; then
14353 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
14357 # Check if the compiler and runtime support printing decfloats.
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
14360 $as_echo_n "checking for decfloat support in printf... " >&6; }
14361 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
14362 $as_echo_n "(cached) " >&6
14364 if test "$cross_compiling" = yes; then :
14365 gdb_cv_printf_has_decfloat
=no
14367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14368 /* end confdefs.h. */
14369 $ac_includes_default
14374 _Decimal32 d32 = 1.2345df;
14375 _Decimal64 d64 = 1.2345dd;
14376 _Decimal128 d128 = 1.2345dl;
14377 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
14378 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
14383 if ac_fn_c_try_run
"$LINENO"; then :
14384 gdb_cv_printf_has_decfloat
=yes
14386 gdb_cv_printf_has_decfloat
=no
14388 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14389 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
14394 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
14395 if test $gdb_cv_printf_has_decfloat = yes; then
14397 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
14401 # Check if the compiler supports the `long double' type. We can't use
14402 # AC_C_LONG_DOUBLE because that one does additional checks on the
14403 # constants defined in <float.h> that fail on some systems,
14404 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
14407 $as_echo_n "checking for long double support in compiler... " >&6; }
14408 if test "${gdb_cv_c_long_double+set}" = set; then :
14409 $as_echo_n "(cached) " >&6
14411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14412 /* end confdefs.h. */
14415 if ac_fn_c_try_compile
"$LINENO"; then :
14416 gdb_cv_c_long_double
=yes
14418 gdb_cv_c_long_double
=no
14420 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
14423 $as_echo "$gdb_cv_c_long_double" >&6; }
14424 if test $gdb_cv_c_long_double = yes; then
14426 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14430 # Check if the compiler and runtime support printing long doubles.
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
14433 $as_echo_n "checking for long double support in printf... " >&6; }
14434 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
14435 $as_echo_n "(cached) " >&6
14437 if test "$cross_compiling" = yes; then :
14438 gdb_cv_printf_has_long_double
=no
14440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14441 /* end confdefs.h. */
14442 $ac_includes_default
14447 long double f = 3.141592653;
14448 sprintf (buf, "%Lg", f);
14449 return (strncmp ("3.14159", buf, 7));
14454 if ac_fn_c_try_run
"$LINENO"; then :
14455 gdb_cv_printf_has_long_double
=yes
14457 gdb_cv_printf_has_long_double
=no
14459 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14460 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
14465 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
14466 if test $gdb_cv_printf_has_long_double = yes; then
14468 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
14472 # Check if the compiler and runtime support scanning long doubles.
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
14475 $as_echo_n "checking for long double support in scanf... " >&6; }
14476 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
14477 $as_echo_n "(cached) " >&6
14479 if test "$cross_compiling" = yes; then :
14480 gdb_cv_scanf_has_long_double
=no
14482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14483 /* end confdefs.h. */
14488 char *buf = "3.141592653";
14490 sscanf (buf, "%Lg", &f);
14491 return !(f > 3.14159 && f < 3.14160);
14496 if ac_fn_c_try_run
"$LINENO"; then :
14497 gdb_cv_scanf_has_long_double
=yes
14499 gdb_cv_scanf_has_long_double
=no
14501 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14502 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
14507 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
14508 if test $gdb_cv_scanf_has_long_double = yes; then
14510 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
14517 $as_echo_n "checking for -bbigtoc option... " >&6; }
14518 if test "${gdb_cv_bigtoc+set}" = set; then :
14519 $as_echo_n "(cached) " >&6
14522 SAVE_LDFLAGS
=$LDFLAGS
14525 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
14526 *) gdb_cv_bigtoc
=-bbigtoc ;;
14529 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
14530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14531 /* end confdefs.h. */
14541 if ac_fn_c_try_link
"$LINENO"; then :
14546 rm -f core conftest.err conftest.
$ac_objext \
14547 conftest
$ac_exeext conftest.
$ac_ext
14548 LDFLAGS
="${SAVE_LDFLAGS}"
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
14552 $as_echo "$gdb_cv_bigtoc" >&6; }
14553 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
14558 $as_echo_n "checking for the dynamic export flag... " >&6; }
14560 if test "${gdb_native}" = yes; then
14561 # The dynamically loaded libthread_db needs access to symbols in the gdb
14562 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
14563 # may not be supported there.
14564 old_LDFLAGS
="$LDFLAGS"
14565 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
14566 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
14567 LDFLAGS
="$LDFLAGS $RDYNAMIC"
14568 if test "${have_libpython}" = no
; then
14569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14570 /* end confdefs.h. */
14580 if ac_fn_c_try_link
"$LINENO"; then :
14583 rm -f core conftest.err conftest.
$ac_objext \
14584 conftest
$ac_exeext conftest.
$ac_ext
14586 # Workaround http://bugs.python.org/issue4434 where static
14587 # libpythonX.Y.a would get its symbols required for
14588 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
14589 # Problem does not happen for the recommended libpythonX.Y.so linkage.
14591 # Note the workaround for Python
14592 # http://bugs.python.org/issue10112 earlier has removed
14593 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
14594 # here too, as otherwise it'd make this -Wl,--dynamic-list test
14596 old_CFLAGS
="$CFLAGS"
14597 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
14599 LIBS
="$LIBS $PYTHON_LIBS"
14600 old_CPPFLAGS
="$CPPFLAGS"
14601 CPPFLAGS
="$CPPFLAGS $PYTHON_CPPFLAGS"
14602 if test "$cross_compiling" = yes; then :
14605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14606 /* end confdefs.h. */
14607 #include "Python.h"
14613 err = PyRun_SimpleString ("import itertools\n");
14615 return err == 0 ? 0 : 1;
14620 if ac_fn_c_try_run
"$LINENO"; then :
14623 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14624 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14628 CFLAGS
="$old_CFLAGS"
14629 CPPFLAGS
="$old_CPPFLAGS"
14631 LDFLAGS
="$old_LDFLAGS"
14633 if $dynamic_list; then
14634 found
="-Wl,--dynamic-list"
14635 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
14638 RDYNAMIC
="-rdynamic"
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
14642 $as_echo "$found" >&6; }
14645 if test ${build} = ${host} -a ${host} = ${target} ; then
14648 # See if thread_db library is around for Solaris thread debugging.
14649 # Note that we must explicitly test for version 1 of the library
14650 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
14653 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
14654 if test -f /usr
/lib
/libthread_db.so
.1 ; then
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14656 $as_echo "yes" >&6; }
14658 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
14660 CONFIG_OBS
="${CONFIG_OBS} sol-thread.o"
14661 CONFIG_SRCS
="${CONFIG_SRCS} sol-thread.c"
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14663 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14664 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14665 $as_echo_n "(cached) " >&6
14667 ac_check_lib_save_LIBS
=$LIBS
14669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14670 /* end confdefs.h. */
14672 /* Override any GCC internal prototype to avoid an error.
14673 Use char because int might match the return type of a GCC
14674 builtin and then its argument prototype would still apply. */
14687 if ac_fn_c_try_link
"$LINENO"; then :
14688 ac_cv_lib_dl_dlopen
=yes
14690 ac_cv_lib_dl_dlopen
=no
14692 rm -f core conftest.err conftest.
$ac_objext \
14693 conftest
$ac_exeext conftest.
$ac_ext
14694 LIBS
=$ac_check_lib_save_LIBS
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14697 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14698 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
14699 cat >>confdefs.h
<<_ACEOF
14700 #define HAVE_LIBDL 1
14707 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} $RDYNAMIC"
14708 # Sun randomly tweaked the prototypes in <proc_service.h>
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
14711 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
14712 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
14713 $as_echo_n "(cached) " >&6
14716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14717 /* end confdefs.h. */
14719 #include <proc_service.h>
14720 ps_err_e ps_pdwrite
14721 (struct ps_prochandle*, psaddr_t, const void*, size_t);
14731 if ac_fn_c_try_compile
"$LINENO"; then :
14732 gdb_cv_proc_service_is_old
=no
14734 gdb_cv_proc_service_is_old
=yes
14736 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
14741 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
14742 if test $gdb_cv_proc_service_is_old = yes; then
14744 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14749 $as_echo "no" >&6; }
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
14754 $as_echo_n "checking for AiX thread debugging library... " >&6; }
14755 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
14756 $as_echo_n "(cached) " >&6
14758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14759 /* end confdefs.h. */
14760 #include <sys/pthdebug.h>
14764 #ifndef PTHDB_VERSION_3
14771 if ac_fn_c_try_compile
"$LINENO"; then :
14772 gdb_cv_have_aix_thread_debug
=yes
14774 gdb_cv_have_aix_thread_debug
=no
14776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
14780 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
14781 if test $gdb_cv_have_aix_thread_debug = yes; then
14782 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
14783 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
14784 LIBS
="$LIBS -lpthdebug"
14786 # Older versions of AIX do not provide the declaration for
14787 # the getthrds function (it appears that it was introduced
14789 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
14791 if test "x$ac_cv_have_decl_getthrds" = x
""yes; then :
14797 cat >>confdefs.h
<<_ACEOF
14798 #define HAVE_DECL_GETTHRDS $ac_have_decl
14807 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
14809 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
14810 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
14811 $as_echo_n "(cached) " >&6
14813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14814 /* end confdefs.h. */
14815 #include <thread_db.h>
14819 int i = TD_NOTALLOC;
14824 if ac_fn_c_try_compile
"$LINENO"; then :
14825 gdb_cv_thread_db_h_has_td_notalloc
=yes
14827 gdb_cv_thread_db_h_has_td_notalloc
=no
14830 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
14834 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
14836 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
14837 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
14838 $as_echo_n "(cached) " >&6
14840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14841 /* end confdefs.h. */
14842 #include <thread_db.h>
14846 int i = TD_VERSION;
14851 if ac_fn_c_try_compile
"$LINENO"; then :
14852 gdb_cv_thread_db_h_has_td_version
=yes
14854 gdb_cv_thread_db_h_has_td_version
=no
14857 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
14861 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
14863 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
14864 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
14865 $as_echo_n "(cached) " >&6
14867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14868 /* end confdefs.h. */
14869 #include <thread_db.h>
14878 if ac_fn_c_try_compile
"$LINENO"; then :
14879 gdb_cv_thread_db_h_has_td_notls
=yes
14881 gdb_cv_thread_db_h_has_td_notls
=no
14884 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
14888 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
14890 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
14892 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
14895 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
14897 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
14900 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
14902 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
14906 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
14908 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
14914 cat >>confdefs.h
<<_ACEOF
14915 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
14919 if test "$cross_compiling" = yes; then :
14920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14921 /* end confdefs.h. */
14922 #include <sys/personality.h>
14927 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14928 # define ADDR_NO_RANDOMIZE 0x0040000
14930 /* Test the flag could be set and stays set. */
14931 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14932 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14938 if ac_fn_c_try_link
"$LINENO"; then :
14939 have_personality
=true
14941 have_personality
=false
14943 rm -f core conftest.err conftest.
$ac_objext \
14944 conftest
$ac_exeext conftest.
$ac_ext
14946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14947 /* end confdefs.h. */
14948 #include <sys/personality.h>
14953 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14954 # define ADDR_NO_RANDOMIZE 0x0040000
14956 /* Test the flag could be set and stays set. */
14957 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14958 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14964 if ac_fn_c_try_run
"$LINENO"; then :
14965 have_personality
=true
14967 have_personality
=false
14969 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14970 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14973 if $have_personality
14976 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
14989 cat >>confdefs.h
<<_ACEOF
14990 #define GDBINIT "$gdbinit"
14995 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
14996 # except that the argument to --with-sysroot is optional.
14997 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
14998 if test "x$with_sysroot" = xyes
; then
14999 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
15002 # Check whether --with-sysroot was given.
15003 if test "${with_sysroot+set}" = set; then :
15004 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
15006 TARGET_SYSTEM_ROOT
=
15010 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
15011 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15012 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
15013 ac_define_dir
=`eval echo $ac_define_dir`
15015 cat >>confdefs.h
<<_ACEOF
15016 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
15022 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
15023 if test "x$prefix" = xNONE
; then
15024 test_prefix
=/usr
/local
15026 test_prefix
=$prefix
15029 test_prefix
=$exec_prefix
15032 case ${ac_define_dir} in
15033 "${test_prefix}"|
"${test_prefix}/"*|\
15034 '${exec_prefix}'|
'${exec_prefix}/'*)
15039 cat >>confdefs.h
<<_ACEOF
15040 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
15047 # Check whether --with-system-gdbinit was given.
15048 if test "${with_system_gdbinit+set}" = set; then :
15049 withval
=$with_system_gdbinit;
15050 SYSTEM_GDBINIT
=$withval
15056 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
15057 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15058 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
15059 ac_define_dir
=`eval echo $ac_define_dir`
15061 cat >>confdefs.h
<<_ACEOF
15062 #define SYSTEM_GDBINIT "$ac_define_dir"
15068 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
15069 if test "x$prefix" = xNONE
; then
15070 test_prefix
=/usr
/local
15072 test_prefix
=$prefix
15075 test_prefix
=$exec_prefix
15078 case ${ac_define_dir} in
15079 "${test_prefix}"|
"${test_prefix}/"*|\
15080 '${exec_prefix}'|
'${exec_prefix}/'*)
15085 cat >>confdefs.h
<<_ACEOF
15086 #define SYSTEM_GDBINIT_RELOCATABLE $value
15093 # Check whether --enable-werror was given.
15094 if test "${enable_werror+set}" = set; then :
15095 enableval
=$enable_werror; case "${enableval}" in
15096 yes | y
) ERROR_ON_WARNING
="yes" ;;
15097 no | n
) ERROR_ON_WARNING
="no" ;;
15098 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15103 # Enable -Werror by default when using gcc. Turn it off for releases.
15104 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
15105 ERROR_ON_WARNING
=yes
15109 if test "${ERROR_ON_WARNING}" = yes ; then
15110 WERROR_CFLAGS
="-Werror"
15113 # The options we'll try to enable.
15114 build_warnings
="-Wall -Wpointer-arith \
15115 -Wno-unused -Wunused-value -Wunused-function \
15116 -Wno-switch -Wno-char-subscripts \
15117 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
15118 -Wno-sign-compare -Wno-narrowing -Wno-error=maybe-uninitialized"
15120 # Enable -Wno-format by default when using gcc on mingw since many
15121 # GCC versions complain about %I64.
15123 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
15124 *) build_warnings
="$build_warnings -Wformat-nonliteral" ;;
15127 # Check whether --enable-build-warnings was given.
15128 if test "${enable_build_warnings+set}" = set; then :
15129 enableval
=$enable_build_warnings; case "${enableval}" in
15131 no
) build_warnings
="-w";;
15132 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15133 build_warnings
="${build_warnings} ${t}";;
15134 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15135 build_warnings
="${t} ${build_warnings}";;
15136 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15138 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
15139 echo "Setting compiler warning flags = $build_warnings" 6>&1
15142 # Check whether --enable-gdb-build-warnings was given.
15143 if test "${enable_gdb_build_warnings+set}" = set; then :
15144 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
15146 no
) build_warnings
="-w";;
15147 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15148 build_warnings
="${build_warnings} ${t}";;
15149 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15150 build_warnings
="${t} ${build_warnings}";;
15151 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15153 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
15154 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
15158 # The set of warnings supported by a C++ compiler is not the same as
15159 # of the C compiler.
15161 ac_cpp
='$CXXCPP $CPPFLAGS'
15162 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15163 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15164 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
15168 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
15171 $as_echo_n "checking compiler warning flags... " >&6; }
15172 # Separate out the -Werror flag as some files just cannot be
15173 # compiled with it enabled.
15174 for w
in ${build_warnings}; do
15175 # GCC does not complain about -Wno-unknown-warning. Invert
15176 # and test -Wunknown-warning instead.
15179 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
15185 -Werr*) WERROR_CFLAGS
=-Werror ;;
15187 # Check whether GCC accepts it.
15188 saved_CFLAGS
="$CFLAGS"
15189 CFLAGS
="$CFLAGS $wtest"
15190 saved_CXXFLAGS
="$CXXFLAGS"
15191 CXXFLAGS
="$CXXFLAGS $wtest"
15192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15193 /* end confdefs.h. */
15203 if ac_fn_cxx_try_compile
"$LINENO"; then :
15204 WARN_CFLAGS
="${WARN_CFLAGS} $w"
15206 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15207 CFLAGS
="$saved_CFLAGS"
15208 CXXFLAGS
="$saved_CXXFLAGS"
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
15212 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
15218 ac_cpp='$CPP $CPPFLAGS'
15219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15225 # In the Cygwin environment, we need some additional flags.
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
15227 $as_echo_n "checking
for cygwin...
" >&6; }
15228 if test "${gdb_cv_os_cygwin+set}" = set; then :
15229 $as_echo_n "(cached
) " >&6
15231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15232 /* end confdefs.h. */
15234 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
15238 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15239 $EGREP "^lose$
" >/dev/null 2>&1; then :
15240 gdb_cv_os_cygwin=yes
15242 gdb_cv_os_cygwin=no
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
15248 $as_echo "$gdb_cv_os_cygwin" >&6; }
15251 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
15253 *go32* ) SER_HARDWIRE=ser-go32.o ;;
15254 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
15255 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
15259 # libreadline needs libuser32.a in a cygwin environment
15261 if test x$gdb_cv_os_cygwin = xyes; then
15262 WIN32LIBS="-luser32"
15263 case "${target}" in
15264 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
15269 # The ser-tcp.c module requires sockets.
15273 $as_echo "#define USE_WIN32API 1" >>confdefs.h
15275 WIN32LIBS
="$WIN32LIBS -lws2_32"
15280 # Add ELF support to GDB, but only if BFD includes ELF support.
15283 OLD_LDFLAGS
=$LDFLAGS
15285 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
15286 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
15287 # always want our bfd.
15288 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
15289 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
15290 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
15291 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15292 LIBS
="-lbfd -liberty -lz $intl $LIBS"
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
15294 $as_echo_n "checking for ELF support in BFD... " >&6; }
15295 if test "${gdb_cv_var_elf+set}" = set; then :
15296 $as_echo_n "(cached) " >&6
15298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15299 /* end confdefs.h. */
15300 #include <stdlib.h>
15302 #include "elf-bfd.h"
15307 return bfd_get_elf_phdr_upper_bound (NULL);
15312 if ac_fn_c_try_link
"$LINENO"; then :
15317 rm -f core conftest.err conftest.
$ac_objext \
15318 conftest
$ac_exeext conftest.
$ac_ext
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
15321 $as_echo "$gdb_cv_var_elf" >&6; }
15323 LDFLAGS
=$OLD_LDFLAGS
15325 if test $gdb_cv_var_elf = yes; then
15326 CONFIG_OBS
="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o"
15328 $as_echo "#define HAVE_ELF 1" >>confdefs.h
15330 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
15331 if test "$plugins" = "yes"; then
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15333 $as_echo_n "checking for library containing dlopen... " >&6; }
15334 if test "${ac_cv_search_dlopen+set}" = set; then :
15335 $as_echo_n "(cached) " >&6
15337 ac_func_search_save_LIBS
=$LIBS
15338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15339 /* end confdefs.h. */
15341 /* Override any GCC internal prototype to avoid an error.
15342 Use char because int might match the return type of a GCC
15343 builtin and then its argument prototype would still apply. */
15356 for ac_lib
in '' dl
; do
15357 if test -z "$ac_lib"; then
15358 ac_res
="none required"
15361 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15363 if ac_fn_c_try_link
"$LINENO"; then :
15364 ac_cv_search_dlopen
=$ac_res
15366 rm -f core conftest.err conftest.
$ac_objext \
15368 if test "${ac_cv_search_dlopen+set}" = set; then :
15372 if test "${ac_cv_search_dlopen+set}" = set; then :
15375 ac_cv_search_dlopen
=no
15377 rm conftest.
$ac_ext
15378 LIBS
=$ac_func_search_save_LIBS
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15381 $as_echo "$ac_cv_search_dlopen" >&6; }
15382 ac_res
=$ac_cv_search_dlopen
15383 if test "$ac_res" != no
; then :
15384 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15391 # Add macho support to GDB, but only if BFD includes it.
15394 OLD_LDFLAGS
=$LDFLAGS
15396 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
15397 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
15398 # always want our bfd.
15399 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
15400 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
15401 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
15402 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15403 LIBS
="-lbfd -liberty -lz $intl $LIBS"
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
15405 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
15406 if test "${gdb_cv_var_macho+set}" = set; then :
15407 $as_echo_n "(cached) " >&6
15409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15410 /* end confdefs.h. */
15411 #include <stdlib.h>
15413 #include "mach-o.h"
15418 return bfd_mach_o_lookup_command (NULL, 0, NULL);
15423 if ac_fn_c_try_link
"$LINENO"; then :
15424 gdb_cv_var_macho
=yes
15426 gdb_cv_var_macho
=no
15428 rm -f core conftest.err conftest.
$ac_objext \
15429 conftest
$ac_exeext conftest.
$ac_ext
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
15432 $as_echo "$gdb_cv_var_macho" >&6; }
15434 LDFLAGS
=$OLD_LDFLAGS
15436 if test $gdb_cv_var_macho = yes; then
15437 CONFIG_OBS
="$CONFIG_OBS machoread.o"
15440 # Add any host-specific objects to GDB.
15441 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
15443 # If building on ELF, look for lzma support for embedded compressed debug info.
15444 if test $gdb_cv_var_elf = yes; then
15446 # Check whether --with-lzma was given.
15447 if test "${with_lzma+set}" = set; then :
15448 withval
=$with_lzma;
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
15454 $as_echo_n "checking whether to use lzma... " >&6; }
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
15456 $as_echo "$with_lzma" >&6; }
15458 if test "${with_lzma}" != no
; then
15469 acl_save_prefix
="$prefix"
15470 prefix
="$acl_final_prefix"
15471 acl_save_exec_prefix
="$exec_prefix"
15472 exec_prefix
="$acl_final_exec_prefix"
15474 eval additional_includedir
=\"$includedir\"
15475 eval additional_libdir
=\"$libdir\"
15477 exec_prefix
="$acl_save_exec_prefix"
15478 prefix
="$acl_save_prefix"
15481 # Check whether --with-liblzma-prefix was given.
15482 if test "${with_liblzma_prefix+set}" = set; then :
15483 withval
=$with_liblzma_prefix;
15484 if test "X$withval" = "Xno"; then
15487 if test "X$withval" = "X"; then
15489 acl_save_prefix
="$prefix"
15490 prefix
="$acl_final_prefix"
15491 acl_save_exec_prefix
="$exec_prefix"
15492 exec_prefix
="$acl_final_exec_prefix"
15494 eval additional_includedir
=\"$includedir\"
15495 eval additional_libdir
=\"$libdir\"
15497 exec_prefix
="$acl_save_exec_prefix"
15498 prefix
="$acl_save_prefix"
15501 additional_includedir
="$withval/include"
15502 additional_libdir
="$withval/lib"
15513 names_already_handled
=
15514 names_next_round
='lzma '
15515 while test -n "$names_next_round"; do
15516 names_this_round
="$names_next_round"
15518 for name
in $names_this_round; do
15520 for n
in $names_already_handled; do
15521 if test "$n" = "$name"; then
15522 already_handled
=yes
15526 if test -z "$already_handled"; then
15527 names_already_handled
="$names_already_handled $name"
15528 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15529 eval value
=\"\
$HAVE_LIB$uppername\"
15530 if test -n "$value"; then
15531 if test "$value" = yes; then
15532 eval value
=\"\
$LIB$uppername\"
15533 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
15534 eval value
=\"\
$LTLIB$uppername\"
15535 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
15544 if test $use_additional = yes; then
15545 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15546 found_dir
="$additional_libdir"
15547 found_so
="$additional_libdir/lib$name.$shlibext"
15548 if test -f "$additional_libdir/lib$name.la"; then
15549 found_la
="$additional_libdir/lib$name.la"
15552 if test -f "$additional_libdir/lib$name.$libext"; then
15553 found_dir
="$additional_libdir"
15554 found_a
="$additional_libdir/lib$name.$libext"
15555 if test -f "$additional_libdir/lib$name.la"; then
15556 found_la
="$additional_libdir/lib$name.la"
15561 if test "X$found_dir" = "X"; then
15562 for x
in $LDFLAGS $LTLIBLZMA; do
15564 acl_save_prefix
="$prefix"
15565 prefix
="$acl_final_prefix"
15566 acl_save_exec_prefix
="$exec_prefix"
15567 exec_prefix
="$acl_final_exec_prefix"
15569 exec_prefix
="$acl_save_exec_prefix"
15570 prefix
="$acl_save_prefix"
15574 dir
=`echo "X$x" | sed -e 's/^X-L//'`
15575 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15577 found_so
="$dir/lib$name.$shlibext"
15578 if test -f "$dir/lib$name.la"; then
15579 found_la
="$dir/lib$name.la"
15582 if test -f "$dir/lib$name.$libext"; then
15584 found_a
="$dir/lib$name.$libext"
15585 if test -f "$dir/lib$name.la"; then
15586 found_la
="$dir/lib$name.la"
15592 if test "X$found_dir" != "X"; then
15597 if test "X$found_dir" != "X"; then
15598 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
15599 if test "X$found_so" != "X"; then
15600 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
15601 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
15604 for x
in $ltrpathdirs; do
15605 if test "X$x" = "X$found_dir"; then
15610 if test -z "$haveit"; then
15611 ltrpathdirs
="$ltrpathdirs $found_dir"
15613 if test "$hardcode_direct" = yes; then
15614 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
15616 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
15617 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
15619 for x
in $rpathdirs; do
15620 if test "X$x" = "X$found_dir"; then
15625 if test -z "$haveit"; then
15626 rpathdirs
="$rpathdirs $found_dir"
15630 for x
in $LDFLAGS $LIBLZMA; do
15632 acl_save_prefix
="$prefix"
15633 prefix
="$acl_final_prefix"
15634 acl_save_exec_prefix
="$exec_prefix"
15635 exec_prefix
="$acl_final_exec_prefix"
15637 exec_prefix
="$acl_save_exec_prefix"
15638 prefix
="$acl_save_prefix"
15640 if test "X$x" = "X-L$found_dir"; then
15645 if test -z "$haveit"; then
15646 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
15648 if test "$hardcode_minus_L" != no
; then
15649 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
15651 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
15657 if test "X$found_a" != "X"; then
15658 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
15660 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
15663 additional_includedir
=
15664 case "$found_dir" in
15666 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15667 additional_includedir
="$basedir/include"
15670 if test "X$additional_includedir" != "X"; then
15671 if test "X$additional_includedir" != "X/usr/include"; then
15673 if test "X$additional_includedir" = "X/usr/local/include"; then
15674 if test -n "$GCC"; then
15676 linux
*) haveit
=yes;;
15680 if test -z "$haveit"; then
15681 for x
in $CPPFLAGS $INCLZMA; do
15683 acl_save_prefix
="$prefix"
15684 prefix
="$acl_final_prefix"
15685 acl_save_exec_prefix
="$exec_prefix"
15686 exec_prefix
="$acl_final_exec_prefix"
15688 exec_prefix
="$acl_save_exec_prefix"
15689 prefix
="$acl_save_prefix"
15691 if test "X$x" = "X-I$additional_includedir"; then
15696 if test -z "$haveit"; then
15697 if test -d "$additional_includedir"; then
15698 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
15704 if test -n "$found_la"; then
15705 save_libdir
="$libdir"
15706 case "$found_la" in
15707 */* |
*\\*) .
"$found_la" ;;
15708 *) .
"./$found_la" ;;
15710 libdir
="$save_libdir"
15711 for dep
in $dependency_libs; do
15714 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
15715 if test "X$additional_libdir" != "X/usr/lib"; then
15717 if test "X$additional_libdir" = "X/usr/local/lib"; then
15718 if test -n "$GCC"; then
15720 linux
*) haveit
=yes;;
15724 if test -z "$haveit"; then
15726 for x
in $LDFLAGS $LIBLZMA; do
15728 acl_save_prefix
="$prefix"
15729 prefix
="$acl_final_prefix"
15730 acl_save_exec_prefix
="$exec_prefix"
15731 exec_prefix
="$acl_final_exec_prefix"
15733 exec_prefix
="$acl_save_exec_prefix"
15734 prefix
="$acl_save_prefix"
15736 if test "X$x" = "X-L$additional_libdir"; then
15741 if test -z "$haveit"; then
15742 if test -d "$additional_libdir"; then
15743 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
15747 for x
in $LDFLAGS $LTLIBLZMA; do
15749 acl_save_prefix
="$prefix"
15750 prefix
="$acl_final_prefix"
15751 acl_save_exec_prefix
="$exec_prefix"
15752 exec_prefix
="$acl_final_exec_prefix"
15754 exec_prefix
="$acl_save_exec_prefix"
15755 prefix
="$acl_save_prefix"
15757 if test "X$x" = "X-L$additional_libdir"; then
15762 if test -z "$haveit"; then
15763 if test -d "$additional_libdir"; then
15764 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
15771 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
15772 if test "$enable_rpath" != no
; then
15774 for x
in $rpathdirs; do
15775 if test "X$x" = "X$dir"; then
15780 if test -z "$haveit"; then
15781 rpathdirs
="$rpathdirs $dir"
15784 for x
in $ltrpathdirs; do
15785 if test "X$x" = "X$dir"; then
15790 if test -z "$haveit"; then
15791 ltrpathdirs
="$ltrpathdirs $dir"
15796 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15799 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15802 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
15803 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
15809 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
15810 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
15816 if test "X$rpathdirs" != "X"; then
15817 if test -n "$hardcode_libdir_separator"; then
15819 for found_dir
in $rpathdirs; do
15820 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15822 acl_save_libdir
="$libdir"
15824 eval flag
=\"$hardcode_libdir_flag_spec\"
15825 libdir
="$acl_save_libdir"
15826 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
15828 for found_dir
in $rpathdirs; do
15829 acl_save_libdir
="$libdir"
15830 libdir
="$found_dir"
15831 eval flag
=\"$hardcode_libdir_flag_spec\"
15832 libdir
="$acl_save_libdir"
15833 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
15837 if test "X$ltrpathdirs" != "X"; then
15838 for found_dir
in $ltrpathdirs; do
15839 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
15844 ac_save_CPPFLAGS
="$CPPFLAGS"
15846 for element
in $INCLZMA; do
15848 for x
in $CPPFLAGS; do
15850 acl_save_prefix
="$prefix"
15851 prefix
="$acl_final_prefix"
15852 acl_save_exec_prefix
="$exec_prefix"
15853 exec_prefix
="$acl_final_exec_prefix"
15855 exec_prefix
="$acl_save_exec_prefix"
15856 prefix
="$acl_save_prefix"
15858 if test "X$x" = "X$element"; then
15863 if test -z "$haveit"; then
15864 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
15870 $as_echo_n "checking for liblzma... " >&6; }
15871 if test "${ac_cv_liblzma+set}" = set; then :
15872 $as_echo_n "(cached) " >&6
15875 ac_save_LIBS
="$LIBS"
15876 LIBS
="$LIBS $LIBLZMA"
15877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15878 /* end confdefs.h. */
15883 lzma_index_iter iter;
15884 lzma_index_iter_init (&iter, 0);
15885 lzma_mf_is_supported (LZMA_MF_HC3);
15890 if ac_fn_c_try_link
"$LINENO"; then :
15895 rm -f core conftest.err conftest.
$ac_objext \
15896 conftest
$ac_exeext conftest.
$ac_ext
15897 LIBS
="$ac_save_LIBS"
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
15901 $as_echo "$ac_cv_liblzma" >&6; }
15902 if test "$ac_cv_liblzma" = yes; then
15905 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
15908 $as_echo_n "checking how to link with liblzma... " >&6; }
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
15910 $as_echo "$LIBLZMA" >&6; }
15913 CPPFLAGS
="$ac_save_CPPFLAGS"
15923 if test "$HAVE_LIBLZMA" != yes; then
15924 if test "$with_lzma" = yes; then
15925 as_fn_error
"missing liblzma for --with-lzma" "$LINENO" 5
15931 LIBGUI
="../libgui/src/libgui.a"
15932 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
15941 *-*-cygwin* |
*-*-mingw* )
15950 if test "${enable_gdbtk}" = "yes"; then
15952 # Gdbtk must have an absolute path to srcdir in order to run
15953 # properly when not installed.
15956 GDBTK_SRC_DIR
=`pwd`
15961 # Ok, lets find the tcl configuration
15962 # First, look for one uninstalled.
15963 # the alternative search directory is invoked by --with-tcl
15966 if test x
"${no_tcl}" = x
; then
15967 # we reset no_tcl in case something fails here
15970 # Check whether --with-tcl was given.
15971 if test "${with_tcl+set}" = set; then :
15972 withval
=$with_tcl; with_tclconfig
=${withval}
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
15976 $as_echo_n "checking for Tcl configuration... " >&6; }
15977 if test "${ac_cv_c_tclconfig+set}" = set; then :
15978 $as_echo_n "(cached) " >&6
15982 # First check to see if --with-tcl was specified.
15984 *-*-cygwin*) platDir
="win" ;;
15985 *) platDir
="unix" ;;
15987 if test x
"${with_tclconfig}" != x
; then
15988 if test -f "${with_tclconfig}/tclConfig.sh" ; then
15989 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
15991 as_fn_error
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
15995 # then check for a private Tcl installation
15996 if test x
"${ac_cv_c_tclconfig}" = x
; then
15999 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16000 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
16001 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
16003 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16004 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
16005 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
16007 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16008 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
16009 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
16010 if test -f "$i/$platDir/tclConfig.sh" ; then
16011 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
16017 # on Darwin, check in Framework installation locations
16018 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
16019 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
16020 `ls -d /Library/Frameworks 2>/dev/null` \
16021 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16022 `ls -d /System/Library/Frameworks 2>/dev/null` \
16024 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
16025 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
16031 # check in a few common install locations
16032 if test x
"${ac_cv_c_tclconfig}" = x
; then
16033 for i
in `ls -d ${libdir} 2>/dev/null` \
16034 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16035 `ls -d ${prefix}/lib 2>/dev/null` \
16036 `ls -d /usr/local/lib 2>/dev/null` \
16037 `ls -d /usr/contrib/lib 2>/dev/null` \
16038 `ls -d /usr/lib 2>/dev/null` \
16040 if test -f "$i/tclConfig.sh" ; then
16041 ac_cv_c_tclconfig
=`(cd $i; pwd)`
16047 # check in a few other private locations
16048 if test x
"${ac_cv_c_tclconfig}" = x
; then
16051 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16052 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
16053 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
16054 if test -f "$i/$platDir/tclConfig.sh" ; then
16055 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
16064 if test x
"${ac_cv_c_tclconfig}" = x
; then
16065 TCL_BIN_DIR
="# no Tcl configs found"
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
16067 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
16070 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
16072 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
16077 # If $no_tk is nonempty, then we can't do Tk, and there is no
16078 # point to doing Tcl.
16081 # Ok, lets find the tk configuration
16082 # First, look for one uninstalled.
16083 # the alternative search directory is invoked by --with-tk
16086 if test x
"${no_tk}" = x
; then
16087 # we reset no_tk in case something fails here
16090 # Check whether --with-tk was given.
16091 if test "${with_tk+set}" = set; then :
16092 withval
=$with_tk; with_tkconfig
=${withval}
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
16096 $as_echo_n "checking for Tk configuration... " >&6; }
16097 if test "${ac_cv_c_tkconfig+set}" = set; then :
16098 $as_echo_n "(cached) " >&6
16102 # First check to see if --with-tkconfig was specified.
16103 if test x
"${with_tkconfig}" != x
; then
16104 if test -f "${with_tkconfig}/tkConfig.sh" ; then
16105 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
16107 as_fn_error
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
16111 # then check for a private Tk library
16113 *-*-cygwin*) platDir
="win" ;;
16114 *) platDir
="unix" ;;
16116 if test x
"${ac_cv_c_tkconfig}" = x
; then
16119 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16120 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
16121 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
16123 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16124 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
16125 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
16127 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16128 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
16129 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
16130 if test -f "$i/$platDir/tkConfig.sh" ; then
16131 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
16137 # on Darwin, check in Framework installation locations
16138 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
16139 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
16140 `ls -d /Library/Frameworks 2>/dev/null` \
16141 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16142 `ls -d /System/Library/Frameworks 2>/dev/null` \
16144 if test -f "$i/Tk.framework/tkConfig.sh" ; then
16145 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
16151 # check in a few common install locations
16152 if test x
"${ac_cv_c_tkconfig}" = x
; then
16153 for i
in `ls -d ${libdir} 2>/dev/null` \
16154 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16155 `ls -d ${prefix}/lib 2>/dev/null` \
16156 `ls -d /usr/local/lib 2>/dev/null` \
16157 `ls -d /usr/contrib/lib 2>/dev/null` \
16158 `ls -d /usr/lib 2>/dev/null` \
16160 if test -f "$i/tkConfig.sh" ; then
16161 ac_cv_c_tkconfig
=`(cd $i; pwd)`
16166 # check in a few other private locations
16167 if test x
"${ac_cv_c_tkconfig}" = x
; then
16170 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16171 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
16172 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
16173 if test -f "$i/$platDir/tkConfig.sh" ; then
16174 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
16183 if test x
"${ac_cv_c_tkconfig}" = x
; then
16184 TK_BIN_DIR
="# no Tk configs found"
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
16186 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
16189 TK_BIN_DIR
=${ac_cv_c_tkconfig}
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
16191 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
16196 if test -z "${no_tcl}" -a -z "${no_tk}"; then
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
16199 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
16201 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
16203 $as_echo "loading" >&6; }
16204 .
${TCL_BIN_DIR}/tclConfig.sh
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
16207 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
16210 # eval is required to do the TCL_DBGX substitution
16211 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
16212 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
16214 # If the TCL_BIN_DIR is the build directory (not the install directory),
16215 # then set the common variable name to the value of the build variables.
16216 # For example, the variable TCL_LIB_SPEC will be set to the value
16217 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
16218 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
16219 # installed and uninstalled version of Tcl.
16220 if test -f "${TCL_BIN_DIR}/Makefile" ; then
16221 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
16222 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
16223 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
16224 elif test "`uname -s`" = "Darwin"; then
16225 # If Tcl was built as a framework, attempt to use the libraries
16226 # from the framework at the given location so that linking works
16227 # against Tcl.framework installed in an arbitrary location.
16228 case ${TCL_DEFS} in
16230 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
16231 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
16232 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
16233 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
16234 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
16239 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
16240 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
16241 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
16247 # eval is required to do the TCL_DBGX substitution
16248 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
16249 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
16250 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
16251 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
16267 # Check for in-tree tcl
16274 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
16278 # Find Tcl private headers
16279 if test x
"${intree}" = xno
; then
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
16282 $as_echo_n "checking for Tcl private headers... " >&6; }
16284 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
16285 if test -f ${dir}/tclInt.h
; then
16289 if test x
"${private_dir}" = x
; then
16290 as_fn_error
"could not find private Tcl headers" "$LINENO" 5
16292 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
16293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
16294 $as_echo "${private_dir}" >&6; }
16297 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
16298 TCL_LIBRARY
="${TCL_LIB_SPEC}"
16301 # If building tcl in the same src tree, private headers
16302 # are not needed, but we need to be sure to use the right
16304 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
16305 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
16306 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
16314 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
16316 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
16318 $as_echo "loading" >&6; }
16319 .
${TK_BIN_DIR}/tkConfig.sh
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
16322 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
16325 # eval is required to do the TK_DBGX substitution
16326 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
16327 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
16329 # If the TK_BIN_DIR is the build directory (not the install directory),
16330 # then set the common variable name to the value of the build variables.
16331 # For example, the variable TK_LIB_SPEC will be set to the value
16332 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
16333 # instead of TK_BUILD_LIB_SPEC since it will work with both an
16334 # installed and uninstalled version of Tcl.
16335 if test -f "${TK_BIN_DIR}/Makefile" ; then
16336 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
16337 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
16338 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
16339 elif test "`uname -s`" = "Darwin"; then
16340 # If Tk was built as a framework, attempt to use the libraries
16341 # from the framework at the given location so that linking works
16342 # against Tk.framework installed in an arbitrary location.
16345 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
16346 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
16347 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
16348 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
16349 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
16354 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
16355 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
16356 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
16362 # eval is required to do the TK_DBGX substitution
16363 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
16364 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
16365 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
16366 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
16381 # Check for in-tree Tk
16383 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
16387 # Find Tk private headers
16388 if test x
"${intree}" = xno
; then
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
16391 $as_echo_n "checking for Tk private headers... " >&6; }
16393 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
16394 if test -f ${dir}/tkInt.h
; then
16398 if test x
"${private_dir}" = x
; then
16399 as_fn_error
"could not find Tk private headers" "$LINENO" 5
16401 TK_PRIVATE_INCLUDE
="-I${private_dir}"
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
16403 $as_echo "${private_dir}" >&6; }
16406 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
16407 TK_LIBRARY
=${TK_LIB_SPEC}
16410 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
16411 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
16412 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
16419 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
16421 # Include some libraries that Tcl and Tk want.
16422 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
16423 # Yes, the ordering seems wrong here. But it isn't.
16424 # TK_LIBS is the list of libraries that need to be linked
16425 # after Tcl/Tk. Note that this isn't put into LIBS. If it
16426 # were in LIBS then any link tests after this point would
16427 # try to include things like `$(LIBGUI)', which wouldn't work.
16428 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
16430 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
16431 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
16432 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
16433 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
16434 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
16435 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
16436 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
16438 if test x
$gdb_cv_os_cygwin = xyes
; then
16439 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
16440 WIN32LDAPP
="-Wl,--subsystem,console"
16441 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
16444 subdirs
="$subdirs gdbtk"
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
16457 $as_echo_n "checking for X... " >&6; }
16460 # Check whether --with-x was given.
16461 if test "${with_x+set}" = set; then :
16465 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
16466 if test "x$with_x" = xno
; then
16467 # The user explicitly disabled X.
16470 case $x_includes,$x_libraries in #(
16471 *\'*) as_fn_error
"cannot use X directory names containing '" "$LINENO" 5;; #(
16472 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then :
16473 $as_echo_n "(cached) " >&6
16475 # One or both of the vars are not set, and there is no cached value.
16476 ac_x_includes
=no ac_x_libraries
=no
16477 rm -f -r conftest.dir
16478 if mkdir conftest.dir
; then
16480 cat >Imakefile
<<'_ACEOF'
16482 @echo incroot='${INCROOT}'
16484 @echo usrlibdir='${USRLIBDIR}'
16486 @echo libdir='${LIBDIR}'
16488 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
16489 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16490 for ac_var
in incroot usrlibdir libdir
; do
16491 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
16493 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
16494 for ac_extension
in a so sl dylib la dll
; do
16495 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
16496 test -f "$ac_im_libdir/libX11.$ac_extension"; then
16497 ac_im_usrlibdir
=$ac_im_libdir; break
16500 # Screen out bogus values from the imake configuration. They are
16501 # bogus both because they are the default anyway, and because
16502 # using them would break gcc on systems where it needs fixed includes.
16503 case $ac_im_incroot in
16504 /usr
/include
) ac_x_includes
= ;;
16505 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
16507 case $ac_im_usrlibdir in
16508 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
16509 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
16513 rm -f -r conftest.dir
16516 # Standard set of common directories for X headers.
16517 # Check X11 before X11Rn because it is often a symlink to the current release.
16531 /usr/local/X11/include
16532 /usr/local/X11R7/include
16533 /usr/local/X11R6/include
16534 /usr/local/X11R5/include
16535 /usr/local/X11R4/include
16537 /usr/local/include/X11
16538 /usr/local/include/X11R7
16539 /usr/local/include/X11R6
16540 /usr/local/include/X11R5
16541 /usr/local/include/X11R4
16545 /usr/XFree86/include/X11
16549 /usr/unsupported/include
16550 /usr/athena/include
16551 /usr/local/x11r5/include
16552 /usr/lpp/Xamples/include
16554 /usr/openwin/include
16555 /usr/openwin/share/include'
16557 if test "$ac_x_includes" = no
; then
16558 # Guess where to find include files, by looking for Xlib.h.
16559 # First, try using that file with no special directory specified.
16560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16561 /* end confdefs.h. */
16562 #include <X11/Xlib.h>
16564 if ac_fn_c_try_cpp
"$LINENO"; then :
16565 # We can compile using X headers with no special include directory.
16568 for ac_dir
in $ac_x_header_dirs; do
16569 if test -r "$ac_dir/X11/Xlib.h"; then
16570 ac_x_includes
=$ac_dir
16575 rm -f conftest.err conftest.
$ac_ext
16576 fi # $ac_x_includes = no
16578 if test "$ac_x_libraries" = no
; then
16579 # Check for the libraries.
16580 # See if we find them without any special options.
16581 # Don't add to $LIBS permanently.
16584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16585 /* end confdefs.h. */
16586 #include <X11/Xlib.h>
16595 if ac_fn_c_try_link
"$LINENO"; then :
16597 # We can link X programs with no special library path.
16601 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
16603 # Don't even attempt the hair of trying to link an X program!
16604 for ac_extension
in a so sl dylib la dll
; do
16605 if test -r "$ac_dir/libX11.$ac_extension"; then
16606 ac_x_libraries
=$ac_dir
16612 rm -f core conftest.err conftest.
$ac_objext \
16613 conftest
$ac_exeext conftest.
$ac_ext
16614 fi # $ac_x_libraries = no
16616 case $ac_x_includes,$ac_x_libraries in #(
16617 no
,* |
*,no |
*\'*)
16618 # Didn't find X, or a directory has "'" in its name.
16619 ac_cv_have_x
="have_x=no";; #(
16621 # Record where we found X for the cache.
16622 ac_cv_have_x
="have_x=yes\
16623 ac_x_includes='$ac_x_includes'\
16624 ac_x_libraries='$ac_x_libraries'"
16630 eval "$ac_cv_have_x"
16633 if test "$have_x" != yes; then
16634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
16635 $as_echo "$have_x" >&6; }
16638 # If each of the values was on the command line, it overrides each guess.
16639 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
16640 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
16641 # Update the cache value to reflect the command line values.
16642 ac_cv_have_x
="have_x=yes\
16643 ac_x_includes='$x_includes'\
16644 ac_x_libraries='$x_libraries'"
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
16646 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
16650 # Unlike the sim directory, whether a simulator is linked is controlled by
16651 # presence of a gdb_sim definition in the target configure.tgt entry.
16652 # This code just checks for a few cases where we'd like to ignore those
16653 # definitions, even when they're present in the '.mt' file. These cases
16654 # are when --disable-sim is specified, or if the simulator directory is
16655 # not part of the source tree.
16657 # Check whether --enable-sim was given.
16658 if test "${enable_sim+set}" = set; then :
16659 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
16660 echo "enableval = ${enableval}";
16661 case "${enableval}" in
16662 yes) ignore_sim
=false
;;
16663 no
) ignore_sim
=true
;;
16664 *) ignore_sim
=false
;;
16671 if test ! -d "${srcdir}/../sim"; then
16677 if test "${ignore_sim}" = "false"; then
16678 if test x
"${gdb_sim}" != x
; then
16680 SIM_OBS
="remote-sim.o"
16682 $as_echo "#define WITH_SIM 1" >>confdefs.h
16685 # Some tdep code should only be compiled in when the ppc sim is
16686 # built. PR sim/13418.
16690 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
16710 # List of host floatformats.
16712 cat >>confdefs.h
<<_ACEOF
16713 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
16717 cat >>confdefs.h
<<_ACEOF
16718 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
16722 cat >>confdefs.h
<<_ACEOF
16723 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
16727 # target_subdir is used by the testsuite to find the target libraries.
16729 if test "${host}" != "${target}"; then
16730 target_subdir
="${target_alias}/"
16734 # Import nat definitions.
16735 nat_extra_makefile_frag
=/dev
/null
16736 if test "${gdb_native}" = "yes"; then
16737 .
${srcdir}/configure.nat
16738 nativefile
=$NAT_FILE
16751 if test x
"${gdb_osabi}" != x
; then
16753 cat >>confdefs.h
<<_ACEOF
16754 #define GDB_OSABI_DEFAULT $gdb_osabi
16759 # Enable multi-ice-gdb-server.
16760 # Check whether --enable-multi-ice was given.
16761 if test "${enable_multi_ice+set}" = set; then :
16762 enableval
=$enable_multi_ice; case $enableval in
16765 *) as_fn_error
"bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
16769 if test "x$enable_multi_ice" = xyes
; then
16770 subdirs
="$subdirs multi-ice"
16774 # Check whether --enable-gdbserver was given.
16775 if test "${enable_gdbserver+set}" = set; then :
16776 enableval
=$enable_gdbserver; case "${enableval}" in
16778 *) as_fn_error
"bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
16781 enable_gdbserver
=auto
16785 # We only build gdbserver automatically in a native configuration, and
16786 # only if the user did not explicitly disable its build.
16787 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
16789 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
16790 if test "x$build_gdbserver" = xyes
; then
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16792 $as_echo "yes" >&6; }
16793 subdirs
="$subdirs gdbserver"
16795 gdbserver_build_enabled
=yes
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16798 $as_echo "no" >&6; }
16802 # If the user explicitly request the gdbserver to be built, verify that
16803 # we were in fact able to enable it.
16804 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
16805 as_fn_error
"Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
16808 # Check for babeltrace and babeltrace-ctf
16810 # Check whether --with-babeltrace was given.
16811 if test "${with_babeltrace+set}" = set; then :
16812 withval
=$with_babeltrace;
16814 with_babeltrace
=auto
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
16818 $as_echo_n "checking whether to use babeltrace... " >&6; }
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
16820 $as_echo "$with_babeltrace" >&6; }
16822 if test "x$with_babeltrace" = "xno"; then
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
16824 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
16826 # Append -Werror to CFLAGS so that configure can catch the warning
16827 # "assignment from incompatible pointer type", which is related to
16828 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
16829 # in GDB, while babeltrace 1.0.3 is broken.
16830 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
16831 # safe to save and restore CFLAGS here.
16832 saved_CFLAGS
=$CFLAGS
16833 CFLAGS
="$CFLAGS -Werror"
16844 acl_save_prefix
="$prefix"
16845 prefix
="$acl_final_prefix"
16846 acl_save_exec_prefix
="$exec_prefix"
16847 exec_prefix
="$acl_final_exec_prefix"
16849 eval additional_includedir
=\"$includedir\"
16850 eval additional_libdir
=\"$libdir\"
16852 exec_prefix
="$acl_save_exec_prefix"
16853 prefix
="$acl_save_prefix"
16856 # Check whether --with-libbabeltrace-prefix was given.
16857 if test "${with_libbabeltrace_prefix+set}" = set; then :
16858 withval
=$with_libbabeltrace_prefix;
16859 if test "X$withval" = "Xno"; then
16862 if test "X$withval" = "X"; then
16864 acl_save_prefix
="$prefix"
16865 prefix
="$acl_final_prefix"
16866 acl_save_exec_prefix
="$exec_prefix"
16867 exec_prefix
="$acl_final_exec_prefix"
16869 eval additional_includedir
=\"$includedir\"
16870 eval additional_libdir
=\"$libdir\"
16872 exec_prefix
="$acl_save_exec_prefix"
16873 prefix
="$acl_save_prefix"
16876 additional_includedir
="$withval/include"
16877 additional_libdir
="$withval/lib"
16888 names_already_handled
=
16889 names_next_round
='babeltrace babeltrace-ctf'
16890 while test -n "$names_next_round"; do
16891 names_this_round
="$names_next_round"
16893 for name
in $names_this_round; do
16895 for n
in $names_already_handled; do
16896 if test "$n" = "$name"; then
16897 already_handled
=yes
16901 if test -z "$already_handled"; then
16902 names_already_handled
="$names_already_handled $name"
16903 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16904 eval value
=\"\
$HAVE_LIB$uppername\"
16905 if test -n "$value"; then
16906 if test "$value" = yes; then
16907 eval value
=\"\
$LIB$uppername\"
16908 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
16909 eval value
=\"\
$LTLIB$uppername\"
16910 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
16919 if test $use_additional = yes; then
16920 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16921 found_dir
="$additional_libdir"
16922 found_so
="$additional_libdir/lib$name.$shlibext"
16923 if test -f "$additional_libdir/lib$name.la"; then
16924 found_la
="$additional_libdir/lib$name.la"
16927 if test -f "$additional_libdir/lib$name.$libext"; then
16928 found_dir
="$additional_libdir"
16929 found_a
="$additional_libdir/lib$name.$libext"
16930 if test -f "$additional_libdir/lib$name.la"; then
16931 found_la
="$additional_libdir/lib$name.la"
16936 if test "X$found_dir" = "X"; then
16937 for x
in $LDFLAGS $LTLIBBABELTRACE; do
16939 acl_save_prefix
="$prefix"
16940 prefix
="$acl_final_prefix"
16941 acl_save_exec_prefix
="$exec_prefix"
16942 exec_prefix
="$acl_final_exec_prefix"
16944 exec_prefix
="$acl_save_exec_prefix"
16945 prefix
="$acl_save_prefix"
16949 dir
=`echo "X$x" | sed -e 's/^X-L//'`
16950 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16952 found_so
="$dir/lib$name.$shlibext"
16953 if test -f "$dir/lib$name.la"; then
16954 found_la
="$dir/lib$name.la"
16957 if test -f "$dir/lib$name.$libext"; then
16959 found_a
="$dir/lib$name.$libext"
16960 if test -f "$dir/lib$name.la"; then
16961 found_la
="$dir/lib$name.la"
16967 if test "X$found_dir" != "X"; then
16972 if test "X$found_dir" != "X"; then
16973 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
16974 if test "X$found_so" != "X"; then
16975 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
16976 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
16979 for x
in $ltrpathdirs; do
16980 if test "X$x" = "X$found_dir"; then
16985 if test -z "$haveit"; then
16986 ltrpathdirs
="$ltrpathdirs $found_dir"
16988 if test "$hardcode_direct" = yes; then
16989 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
16991 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
16992 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
16994 for x
in $rpathdirs; do
16995 if test "X$x" = "X$found_dir"; then
17000 if test -z "$haveit"; then
17001 rpathdirs
="$rpathdirs $found_dir"
17005 for x
in $LDFLAGS $LIBBABELTRACE; do
17007 acl_save_prefix
="$prefix"
17008 prefix
="$acl_final_prefix"
17009 acl_save_exec_prefix
="$exec_prefix"
17010 exec_prefix
="$acl_final_exec_prefix"
17012 exec_prefix
="$acl_save_exec_prefix"
17013 prefix
="$acl_save_prefix"
17015 if test "X$x" = "X-L$found_dir"; then
17020 if test -z "$haveit"; then
17021 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
17023 if test "$hardcode_minus_L" != no
; then
17024 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17026 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
17032 if test "X$found_a" != "X"; then
17033 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
17035 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
17038 additional_includedir
=
17039 case "$found_dir" in
17041 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17042 additional_includedir
="$basedir/include"
17045 if test "X$additional_includedir" != "X"; then
17046 if test "X$additional_includedir" != "X/usr/include"; then
17048 if test "X$additional_includedir" = "X/usr/local/include"; then
17049 if test -n "$GCC"; then
17051 linux
*) haveit
=yes;;
17055 if test -z "$haveit"; then
17056 for x
in $CPPFLAGS $INCBABELTRACE; do
17058 acl_save_prefix
="$prefix"
17059 prefix
="$acl_final_prefix"
17060 acl_save_exec_prefix
="$exec_prefix"
17061 exec_prefix
="$acl_final_exec_prefix"
17063 exec_prefix
="$acl_save_exec_prefix"
17064 prefix
="$acl_save_prefix"
17066 if test "X$x" = "X-I$additional_includedir"; then
17071 if test -z "$haveit"; then
17072 if test -d "$additional_includedir"; then
17073 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
17079 if test -n "$found_la"; then
17080 save_libdir
="$libdir"
17081 case "$found_la" in
17082 */* |
*\\*) .
"$found_la" ;;
17083 *) .
"./$found_la" ;;
17085 libdir
="$save_libdir"
17086 for dep
in $dependency_libs; do
17089 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
17090 if test "X$additional_libdir" != "X/usr/lib"; then
17092 if test "X$additional_libdir" = "X/usr/local/lib"; then
17093 if test -n "$GCC"; then
17095 linux
*) haveit
=yes;;
17099 if test -z "$haveit"; then
17101 for x
in $LDFLAGS $LIBBABELTRACE; do
17103 acl_save_prefix
="$prefix"
17104 prefix
="$acl_final_prefix"
17105 acl_save_exec_prefix
="$exec_prefix"
17106 exec_prefix
="$acl_final_exec_prefix"
17108 exec_prefix
="$acl_save_exec_prefix"
17109 prefix
="$acl_save_prefix"
17111 if test "X$x" = "X-L$additional_libdir"; then
17116 if test -z "$haveit"; then
17117 if test -d "$additional_libdir"; then
17118 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
17122 for x
in $LDFLAGS $LTLIBBABELTRACE; do
17124 acl_save_prefix
="$prefix"
17125 prefix
="$acl_final_prefix"
17126 acl_save_exec_prefix
="$exec_prefix"
17127 exec_prefix
="$acl_final_exec_prefix"
17129 exec_prefix
="$acl_save_exec_prefix"
17130 prefix
="$acl_save_prefix"
17132 if test "X$x" = "X-L$additional_libdir"; then
17137 if test -z "$haveit"; then
17138 if test -d "$additional_libdir"; then
17139 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
17146 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
17147 if test "$enable_rpath" != no
; then
17149 for x
in $rpathdirs; do
17150 if test "X$x" = "X$dir"; then
17155 if test -z "$haveit"; then
17156 rpathdirs
="$rpathdirs $dir"
17159 for x
in $ltrpathdirs; do
17160 if test "X$x" = "X$dir"; then
17165 if test -z "$haveit"; then
17166 ltrpathdirs
="$ltrpathdirs $dir"
17171 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17174 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17177 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
17178 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
17184 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
17185 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
17191 if test "X$rpathdirs" != "X"; then
17192 if test -n "$hardcode_libdir_separator"; then
17194 for found_dir
in $rpathdirs; do
17195 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17197 acl_save_libdir
="$libdir"
17199 eval flag
=\"$hardcode_libdir_flag_spec\"
17200 libdir
="$acl_save_libdir"
17201 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
17203 for found_dir
in $rpathdirs; do
17204 acl_save_libdir
="$libdir"
17205 libdir
="$found_dir"
17206 eval flag
=\"$hardcode_libdir_flag_spec\"
17207 libdir
="$acl_save_libdir"
17208 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
17212 if test "X$ltrpathdirs" != "X"; then
17213 for found_dir
in $ltrpathdirs; do
17214 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
17219 ac_save_CPPFLAGS
="$CPPFLAGS"
17221 for element
in $INCBABELTRACE; do
17223 for x
in $CPPFLAGS; do
17225 acl_save_prefix
="$prefix"
17226 prefix
="$acl_final_prefix"
17227 acl_save_exec_prefix
="$exec_prefix"
17228 exec_prefix
="$acl_final_exec_prefix"
17230 exec_prefix
="$acl_save_exec_prefix"
17231 prefix
="$acl_save_prefix"
17233 if test "X$x" = "X$element"; then
17238 if test -z "$haveit"; then
17239 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
17244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
17245 $as_echo_n "checking for libbabeltrace... " >&6; }
17246 if test "${ac_cv_libbabeltrace+set}" = set; then :
17247 $as_echo_n "(cached) " >&6
17250 ac_save_LIBS
="$LIBS"
17251 LIBS
="$LIBS $LIBBABELTRACE"
17252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17253 /* end confdefs.h. */
17254 #include <babeltrace/babeltrace.h>
17255 #include <babeltrace/ctf/events.h>
17256 #include <babeltrace/ctf/iterator.h>
17260 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
17261 struct bt_ctf_event *event = NULL;
17262 const struct bt_definition *scope;
17264 pos->type = BT_SEEK_BEGIN;
17265 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
17266 scope = bt_ctf_get_top_level_scope (event,
17267 BT_STREAM_EVENT_HEADER);
17268 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
17274 if ac_fn_c_try_link
"$LINENO"; then :
17275 ac_cv_libbabeltrace
=yes
17277 ac_cv_libbabeltrace
=no
17279 rm -f core conftest.err conftest.
$ac_objext \
17280 conftest
$ac_exeext conftest.
$ac_ext
17281 LIBS
="$ac_save_LIBS"
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
17285 $as_echo "$ac_cv_libbabeltrace" >&6; }
17286 if test "$ac_cv_libbabeltrace" = yes; then
17287 HAVE_LIBBABELTRACE
=yes
17289 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
17292 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
17293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
17294 $as_echo "$LIBBABELTRACE" >&6; }
17296 HAVE_LIBBABELTRACE
=no
17297 CPPFLAGS
="$ac_save_CPPFLAGS"
17307 CFLAGS
=$saved_CFLAGS
17309 if test "$HAVE_LIBBABELTRACE" != yes; then
17310 if test "$with_babeltrace" = yes; then
17311 as_fn_error
"babeltrace is missing or unusable" "$LINENO" 5
17313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
17314 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
17319 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
17326 if test "${nativefile}" != ""; then
17327 case "${nativefile}" in
17328 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
17329 * ) GDB_NM_FILE
="${nativefile}"
17331 files
="${files} ${GDB_NM_FILE}"
17332 links
="${links} nm.h"
17334 cat >>confdefs.h
<<_ACEOF
17335 #define GDB_NM_FILE "${GDB_NM_FILE}"
17341 for ac_prog
in xsltproc
17343 # Extract the first word of "$ac_prog", so it can be a program name with args.
17344 set dummy
$ac_prog; ac_word
=$2
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17346 $as_echo_n "checking for $ac_word... " >&6; }
17347 if test "${ac_cv_path_XSLTPROC+set}" = set; then :
17348 $as_echo_n "(cached) " >&6
17352 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
17355 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17356 for as_dir
in $PATH
17359 test -z "$as_dir" && as_dir
=.
17360 for ac_exec_ext
in '' $ac_executable_extensions; do
17361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17362 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
17363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17373 XSLTPROC
=$ac_cv_path_XSLTPROC
17374 if test -n "$XSLTPROC"; then
17375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
17376 $as_echo "$XSLTPROC" >&6; }
17378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17379 $as_echo "no" >&6; }
17383 test -n "$XSLTPROC" && break
17385 test -n "$XSLTPROC" || XSLTPROC
="missing"
17387 if test "x$USE_MAINTAINER_MODE" = xyes
; then
17388 if test "${XSLTPROC}" = missing
; then
17389 as_fn_error
"unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
17394 ac_sources
="$files"
17396 while test -n "$ac_sources"; do
17397 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
17398 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
17399 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
17401 ac_config_links
="$ac_config_links $ac_config_links_1"
17407 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
17410 if $development; then
17412 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
17414 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_UNITTESTS_OBS)"
17415 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_UNITTESTS_SRCS)"
17419 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
17420 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
17421 if test "x$GDB_TRANSFORM_NAME" = x
; then
17422 GDB_TRANSFORM_NAME
=gdb
17427 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
17428 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
17429 if test "x$GCORE_TRANSFORM_NAME" = x
; then
17430 GCORE_TRANSFORM_NAME
=gcore
17434 ac_config_files
="$ac_config_files gcore"
17436 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"
17439 cat >confcache
<<\_ACEOF
17440 # This file is a shell script that caches the results of configure
17441 # tests run on this system so they can be shared between configure
17442 # scripts and configure runs, see configure's option --config-cache.
17443 # It is not useful on other systems. If it contains results you don't
17444 # want to keep, you may remove or edit it.
17446 # config.status only pays attention to the cache file if you give it
17447 # the --recheck option to rerun configure.
17449 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17450 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17451 # following values.
17455 # The following way of writing the cache mishandles newlines in values,
17456 # but we know of no workaround that is simple, portable, and efficient.
17457 # So, we kill variables containing newlines.
17458 # Ultrix sh set writes to stderr and can't be redirected directly,
17459 # and sets the high bit in the cache file unless we assign to the vars.
17461 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17462 eval ac_val
=\$
$ac_var
17466 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17467 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17470 _ | IFS | as_nl
) ;; #(
17471 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
17472 *) { eval $ac_var=; unset $ac_var;} ;;
17478 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17479 *${as_nl}ac_space
=\
*)
17480 # `set' does not quote correctly, so add quotes: double-quote
17481 # substitution turns \\\\ into \\, and sed turns \\ into \.
17484 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17487 # `set' quotes correctly as required by POSIX, so do not add quotes.
17488 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17497 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17499 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17501 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17502 if test -w "$cache_file"; then
17503 test "x$cache_file" != "x/dev/null" &&
17504 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17505 $as_echo "$as_me: updating cache $cache_file" >&6;}
17506 cat confcache
>$cache_file
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17509 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17514 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17515 # Let make expand exec_prefix.
17516 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17518 DEFS
=-DHAVE_CONFIG_H
17522 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17523 # 1. Remove the extension, and $U if already installed.
17524 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
17525 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
17526 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17527 # will be set to the directory where LIBOBJS objects are built.
17528 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17529 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
17531 LIBOBJS
=$ac_libobjs
17533 LTLIBOBJS
=$ac_ltlibobjs
17536 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17537 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
17538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17540 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
17541 as_fn_error
"conditional \"HAVE_PYTHON\" was never defined.
17542 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17544 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
17545 as_fn_error
"conditional \"HAVE_GUILE\" was never defined.
17546 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17550 : ${CONFIG_STATUS=./config.status}
17552 ac_clean_files_save
=$ac_clean_files
17553 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17555 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17557 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17559 # Generated by $as_me.
17560 # Run this file to recreate the current configuration.
17561 # Compiler output produced by configure, useful for debugging
17562 # configure, is in config.log if it exists.
17565 ac_cs_recheck=false
17568 SHELL=\${CONFIG_SHELL-$SHELL}
17571 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
17572 ## -------------------- ##
17573 ## M4sh Initialization. ##
17574 ## -------------------- ##
17576 # Be more Bourne compatible
17577 DUALCASE
=1; export DUALCASE
# for MKS sh
17578 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
17581 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17582 # is contrary to our usage. Disable this feature.
17583 alias -g '${1+"$@"}'='"$@"'
17584 setopt NO_GLOB_SUBST
17586 case `(set -o) 2>/dev/null` in #(
17598 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17599 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17600 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17601 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17602 # Prefer a ksh shell builtin over an external printf program on Solaris,
17603 # but without wasting forks for bash or zsh.
17604 if test -z "$BASH_VERSION$ZSH_VERSION" \
17605 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17606 as_echo='print
-r --'
17607 as_echo_n='print
-rn --'
17608 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17609 as_echo='printf %s
\n'
17610 as_echo_n='printf %s
'
17612 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17613 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17614 as_echo_n='/usr
/ucb
/echo -n'
17616 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17617 as_echo_n_body='eval
17621 expr "X$arg" : "X\\(.*\\)$as_nl";
17622 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17624 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17626 export as_echo_n_body
17627 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17629 export as_echo_body
17630 as_echo='sh
-c $as_echo_body as_echo
'
17633 # The user is always right.
17634 if test "${PATH_SEPARATOR+set}" != set; then
17636 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17637 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17644 # We need space, tab and new line, in precisely that order. Quoting is
17645 # there to prevent editors from complaining about space-tab.
17646 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17647 # splitting by setting IFS to empty value.)
17650 # Find who we are. Look in the path if we contain no directory separator.
17652 *[\\/]* ) as_myself=$0 ;;
17653 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17654 for as_dir in $PATH
17657 test -z "$as_dir" && as_dir=.
17658 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17664 # We did not find ourselves, most probably we were run as `sh COMMAND'
17665 # in which case we are not to be found in the path.
17666 if test "x$as_myself" = x
; then
17669 if test ! -f "$as_myself"; then
17670 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17674 # Unset variables that we do not need and which cause bugs (e.g. in
17675 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17676 # suppresses any "Segmentation fault" message there. '((' could
17677 # trigger a bug in pdksh 5.2.14.
17678 for as_var
in BASH_ENV ENV MAIL MAILPATH
17679 do eval test x\
${$as_var+set} = xset \
17680 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
17693 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
17696 # as_fn_error ERROR [LINENO LOG_FD]
17697 # ---------------------------------
17698 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17699 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17700 # script with status $?, using 1 if that was 0.
17703 as_status
=$?
; test $as_status -eq 0 && as_status
=1
17705 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
17706 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17708 $as_echo "$as_me: error: $1" >&2
17709 as_fn_exit
$as_status
17713 # as_fn_set_status STATUS
17714 # -----------------------
17715 # Set $? to STATUS, without forking.
17716 as_fn_set_status
()
17719 } # as_fn_set_status
17721 # as_fn_exit STATUS
17722 # -----------------
17723 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17727 as_fn_set_status
$1
17733 # Portably unset VAR.
17736 { eval $1=; unset $1;}
17738 as_unset
=as_fn_unset
17739 # as_fn_append VAR VALUE
17740 # ----------------------
17741 # Append the text in VALUE to the end of the definition contained in VAR. Take
17742 # advantage of any shell optimizations that allow amortized linear growth over
17743 # repeated appends, instead of the typical quadratic growth present in naive
17745 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
17746 eval 'as_fn_append ()
17757 # as_fn_arith ARG...
17758 # ------------------
17759 # Perform arithmetic evaluation on the ARGs, and store the result in the
17760 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17761 # must be portable across $(()) and expr.
17762 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
17763 eval 'as_fn_arith ()
17770 as_val
=`expr "$@" || test $? -eq 1`
17775 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17776 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17782 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17783 as_basename
=basename
17788 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17794 as_me
=`$as_basename -- "$0" ||
17795 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17796 X"$0" : 'X\(//\)$' \| \
17797 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17799 sed '/^.*\/\([^/][^/]*\)\/*$/{
17813 # Avoid depending upon Character Ranges.
17814 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17815 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17816 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17817 as_cr_digits
='0123456789'
17818 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17820 ECHO_C
= ECHO_N
= ECHO_T
=
17821 case `echo -n x` in #(((((
17823 case `echo 'xy\c'` in
17824 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17826 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
17833 rm -f conf$$ conf$$.exe conf$$.
file
17834 if test -d conf$$.dir
; then
17835 rm -f conf$$.dir
/conf$$.
file
17838 mkdir conf$$.dir
2>/dev
/null
17840 if (echo >conf$$.
file) 2>/dev
/null
; then
17841 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17843 # ... but there are two gotchas:
17844 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17845 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17846 # In both cases, we have to default to `cp -p'.
17847 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17849 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17857 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17858 rmdir conf$$.dir
2>/dev
/null
17863 # Create "$as_dir" as a directory, including parents if necessary.
17868 -*) as_dir
=.
/$as_dir;;
17870 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
17874 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17875 *) as_qdir
=$as_dir;;
17877 as_dirs
="'$as_qdir' $as_dirs"
17878 as_dir
=`$as_dirname -- "$as_dir" ||
17879 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17880 X"$as_dir" : 'X\(//\)[^/]' \| \
17881 X"$as_dir" : 'X\(//\)$' \| \
17882 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17883 $as_echo X"$as_dir" |
17884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17888 /^X\(\/\/\)[^/].*/{
17901 test -d "$as_dir" && break
17903 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
17904 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
17908 if mkdir
-p .
2>/dev
/null
; then
17909 as_mkdir_p
='mkdir -p "$as_dir"'
17911 test -d .
/-p && rmdir .
/-p
17915 if test -x / >/dev
/null
2>&1; then
17916 as_test_x
='test -x'
17918 if ls -dL / >/dev
/null
2>&1; then
17925 if test -d "$1"; then
17931 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17932 ???[sx]*):;;*)false;;esac;fi
17936 as_executable_p
=$as_test_x
17938 # Sed expression to map a string onto a valid CPP name.
17939 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17941 # Sed expression to map a string onto a valid variable name.
17942 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17946 ## ----------------------------------- ##
17947 ## Main body of $CONFIG_STATUS script. ##
17948 ## ----------------------------------- ##
17950 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
17952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17953 # Save the log message, to keep $0 and so on meaningful, and to
17954 # report actual input values of CONFIG_FILES etc. instead of their
17955 # values after options handling.
17957 This file was extended by $as_me, which was
17958 generated by GNU Autoconf 2.64. Invocation command line was
17960 CONFIG_FILES = $CONFIG_FILES
17961 CONFIG_HEADERS = $CONFIG_HEADERS
17962 CONFIG_LINKS = $CONFIG_LINKS
17963 CONFIG_COMMANDS = $CONFIG_COMMANDS
17966 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17971 case $ac_config_files in *"
17972 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
17975 case $ac_config_headers in *"
17976 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
17980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17981 # Files that config.status was made for.
17982 config_files="$ac_config_files"
17983 config_headers="$ac_config_headers"
17984 config_links="$ac_config_links"
17985 config_commands="$ac_config_commands"
17989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17991 \`$as_me' instantiates files and other configuration actions
17992 from templates according to the current configuration. Unless the files
17993 and actions are specified as TAGs, all are instantiated by default.
17995 Usage: $0 [OPTION]... [TAG]...
17997 -h, --help print this help, then exit
17998 -V, --version print version number and configuration settings, then exit
17999 -q, --quiet, --silent
18000 do not print progress messages
18001 -d, --debug don't remove temporary files
18002 --recheck update $as_me by reconfiguring in the same conditions
18003 --file=FILE[:TEMPLATE]
18004 instantiate the configuration file FILE
18005 --header=FILE[:TEMPLATE]
18006 instantiate the configuration header FILE
18008 Configuration files:
18011 Configuration headers:
18014 Configuration links:
18017 Configuration commands:
18020 Report bugs to the package provider."
18023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18026 configured by $0, generated by GNU Autoconf 2.64,
18027 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18029 Copyright (C) 2009 Free Software Foundation, Inc.
18030 This config.status script is free software; the Free Software Foundation
18031 gives unlimited permission to copy, distribute and modify it."
18037 test -n "\$AWK" || AWK=awk
18040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18041 # The default lists apply if the user does not specify any file.
18047 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18048 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
18059 # Handling of the options.
18060 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18062 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
18063 $as_echo "$ac_cs_version"; exit ;;
18064 --debug |
--debu |
--deb |
--de |
--d |
-d )
18066 --file |
--fil |
--fi |
--f )
18069 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18071 as_fn_append CONFIG_FILES
" '$ac_optarg'"
18072 ac_need_defaults
=false
;;
18073 --header |
--heade |
--head |
--hea )
18076 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18078 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
18079 ac_need_defaults
=false
;;
18081 # Conflict between --help and --header
18082 as_fn_error
"ambiguous option: \`$1'
18083 Try \`$0 --help' for more information.";;
18084 --help |
--hel |
-h )
18085 $as_echo "$ac_cs_usage"; exit ;;
18086 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18087 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18090 # This is an error.
18091 -*) as_fn_error
"unrecognized option: \`$1'
18092 Try \`$0 --help' for more information." ;;
18094 *) as_fn_append ac_config_targets
" $1"
18095 ac_need_defaults
=false
;;
18101 ac_configure_extra_args
=
18103 if $ac_cs_silent; then
18105 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18110 if \$ac_cs_recheck; then
18111 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18113 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18114 CONFIG_SHELL='$SHELL'
18115 export CONFIG_SHELL
18120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18124 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18125 ## Running $as_me. ##
18131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18135 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
18139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18141 # Handling of arguments.
18142 for ac_config_target
in $ac_config_targets
18144 case $ac_config_target in
18145 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
18146 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
18147 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
18148 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
18149 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
18150 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18151 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
18152 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
18153 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
18155 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18160 # If the user did not use the arguments to specify the items to instantiate,
18161 # then the envvar interface is used. Set only those that are not.
18162 # We use the long form for the default assignment because of an extremely
18163 # bizarre bug on SunOS 4.1.3.
18164 if $ac_need_defaults; then
18165 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18166 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18167 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
18168 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18171 # Have a temporary directory for convenience. Make it in the build tree
18172 # simply because there is no reason against having it here, and in addition,
18173 # creating and moving files from /tmp can sometimes cause problems.
18174 # Hook for its removal unless debugging.
18175 # Note that there is a small window in which the directory will not be cleaned:
18176 # after its creation but before its name has been assigned to `$tmp'.
18180 trap 'exit_status=$?
18181 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18183 trap 'as_fn_exit 1' 1 2 13 15
18185 # Create a (secure) tmp directory for tmp files.
18188 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18189 test -n "$tmp" && test -d "$tmp"
18192 tmp
=.
/conf$$
-$RANDOM
18193 (umask 077 && mkdir
"$tmp")
18194 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
18196 # Set up the scripts for CONFIG_FILES section.
18197 # No need to generate them if there are no CONFIG_FILES.
18198 # This happens for instance with `./config.status config.h'.
18199 if test -n "$CONFIG_FILES"; then
18201 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
18202 ac_cs_awk_getline
=:
18203 ac_cs_awk_pipe_init
=
18204 ac_cs_awk_read_file
='
18205 while ((getline aline < (F[key])) > 0)
18208 ac_cs_awk_pipe_fini
=
18210 ac_cs_awk_getline
=false
18211 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
18212 ac_cs_awk_read_file
='
18214 print "cat " F[key] " &&"
18215 '$ac_cs_awk_pipe_init
18216 # The final `:' finishes the AND list.
18217 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
18219 ac_cr
=`echo X | tr X '\015'`
18220 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18221 # But we know of no other shell where ac_cr would be empty at this
18222 # point, so we can use a bashism as a fallback.
18223 if test "x$ac_cr" = x
; then
18224 eval ac_cr
=\$
\'\\r
\'
18226 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18227 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18230 ac_cs_awk_cr
=$ac_cr
18233 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18236 # Create commands to substitute file output variables.
18238 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18239 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
18240 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
18243 } >conf$
$files.sh
&&
18244 . .
/conf$
$files.sh ||
18245 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
18246 rm -f conf$
$files.sh
18249 echo "cat >conf$$subs.awk <<_ACEOF" &&
18250 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18252 } >conf$$subs.sh ||
18253 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
18254 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18256 for ac_last_try in false false false false false :; do
18257 . ./conf$$subs.sh ||
18258 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
18260 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18261 if test $ac_delim_n = $ac_delim_num; then
18263 elif $ac_last_try; then
18264 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
18266 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18269 rm -f conf$$subs.sh
18271 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18272 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
18276 s/^/S["/; s
/!.
*/"]=/
18286 s/\(.\{148\}\).*/\1/
18288 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18293 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18300 s/\(.\{148\}\).*/\1/
18302 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18306 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18311 ' <conf$$subs.awk | sed '
18316 ' >>$CONFIG_STATUS || ac_write_fail=1
18317 rm -f conf$$subs.awk
18318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18320 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
18321 for (key in S) S_is_set[key] = 1
18323 \$ac_cs_awk_pipe_init
18327 nfields = split(line, field, "@
")
18329 len = length(field[1])
18330 for (i = 2; i < nfields; i++) {
18332 keylen = length(key)
18333 if (S_is_set[key]) {
18335 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18336 len += length(value) + length(field[++i])
18341 if (nfields == 3 && !substed) {
18343 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18344 \$ac_cs_awk_read_file
18350 \$ac_cs_awk_pipe_fini
18353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18354 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18355 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18358 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
18359 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
18362 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18363 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
18364 # trailing colons and then remove the whole line if VPATH becomes empty
18365 # (actually we leave an empty line to preserve line numbers).
18366 if test "x
$srcdir" = x.; then
18367 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18368 s/:*\$(srcdir):*/:/
18369 s/:*\${srcdir}:*/:/
18371 s/^\([^=]*=[ ]*\):*/\1/
18377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18378 fi # test -n "$CONFIG_FILES"
18380 # Set up the scripts for CONFIG_HEADERS section.
18381 # No need to generate them if there are no CONFIG_HEADERS.
18382 # This happens for instance with `./config.status Makefile'.
18383 if test -n "$CONFIG_HEADERS"; then
18384 cat >"$tmp/defines.
awk" <<\_ACAWK ||
18388 # Transform confdefs.h into an awk script `defines.awk', embedded as
18389 # here-document in config.status, that substitutes the proper values into
18390 # config.h.in to produce config.h.
18392 # Create a delimiter string that does not exist in confdefs.h, to ease
18393 # handling of long lines.
18395 for ac_last_try in false false :; do
18396 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
18397 if test -z "$ac_t"; then
18399 elif $ac_last_try; then
18400 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
18402 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18406 # For the awk script, D is an array of macro values keyed by name,
18407 # likewise P contains macro parameters if any. Preserve backslash
18408 # newline sequences.
18410 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18412 s/.\{148\}/&'"$ac_delim"'/g
18415 s/^[ ]*#[ ]*define[ ][ ]*/ /
18422 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18424 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18428 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18429 D["\
1"]=" \
3\\\\\\n
"\\/p
18431 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18436 s/.\{148\}/&'"$ac_delim"'/g
18441 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18444 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18446 ' <confdefs.h | sed '
18447 s/'"$ac_delim"'/"\\\
18448 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18451 for (key in D) D_is_set[key] = 1
18454 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18456 split(line, arg, " ")
18457 if (arg[1] == "#") {
18461 defundef
= substr
(arg
[1], 2)
18464 split(mac1
, mac2
, "(") #)
18466 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18467 if (D_is_set
[macro
]) {
18468 # Preserve the white space surrounding the "#".
18469 print prefix
"define", macro P
[macro
] D
[macro
]
18472 # Replace #undef with comments. This is necessary, for example,
18473 # in the case of _POSIX_SOURCE, which is predefined and required
18474 # on some systems where configure will not decide to define it.
18475 if (defundef
== "undef") {
18476 print
"/*", prefix defundef
, macro
, "*/"
18484 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18485 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
18486 fi # test -n "$CONFIG_HEADERS"
18489 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18494 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18496 case $ac_mode$ac_tag in
18498 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
18499 :[FH
]-) ac_tag
=-:-;;
18500 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18517 -) ac_f
="$tmp/stdin";;
18518 *) # Look for the file first in the build tree, then in the source tree
18519 # (if the path is not absolute). The absolute path cannot be DOS-style,
18520 # because $ac_f cannot contain `:'.
18524 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18526 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
18528 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18529 as_fn_append ac_file_inputs
" '$ac_f'"
18532 # Let's still pretend it is `configure' which instantiates (i.e., don't
18533 # use $as_me), people would be surprised to read:
18534 # /* config.h. Generated by config.status. */
18535 configure_input
='Generated from '`
18536 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18538 if test x
"$ac_file" != x-
; then
18539 configure_input
="$ac_file. $configure_input"
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18541 $as_echo "$as_me: creating $ac_file" >&6;}
18543 # Neutralize special characters interpreted by sed in replacement strings.
18544 case $configure_input in #(
18545 *\
&* |
*\|
* |
*\\* )
18546 ac_sed_conf_input
=`$as_echo "$configure_input" |
18547 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18548 *) ac_sed_conf_input
=$configure_input;;
18552 *:-:* |
*:-) cat >"$tmp/stdin" \
18553 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
18558 ac_dir
=`$as_dirname -- "$ac_file" ||
18559 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18560 X"$ac_file" : 'X\(//\)[^/]' \| \
18561 X"$ac_file" : 'X\(//\)$' \| \
18562 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18563 $as_echo X"$ac_file" |
18564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18568 /^X\(\/\/\)[^/].*/{
18581 as_dir
="$ac_dir"; as_fn_mkdir_p
18585 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18587 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18588 # A ".." for each directory in $ac_dir_suffix.
18589 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18590 case $ac_top_builddir_sub in
18591 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18592 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18595 ac_abs_top_builddir
=$ac_pwd
18596 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18597 # for backward compatibility:
18598 ac_top_builddir
=$ac_top_build_prefix
18601 .
) # We are building in place.
18603 ac_top_srcdir
=$ac_top_builddir_sub
18604 ac_abs_top_srcdir
=$ac_pwd ;;
18605 [\\/]* | ?
:[\\/]* ) # Absolute name.
18606 ac_srcdir
=$srcdir$ac_dir_suffix;
18607 ac_top_srcdir
=$srcdir
18608 ac_abs_top_srcdir
=$srcdir ;;
18609 *) # Relative name.
18610 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18611 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18612 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18614 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18624 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18625 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
18629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18630 # If the template does not know about datarootdir, expand it.
18631 # FIXME: This hack should be removed a few years after 2.60.
18632 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18643 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18644 *datarootdir
*) ac_datarootdir_seen
=yes;;
18645 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18647 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18650 ac_datarootdir_hack='
18651 s&@datadir@&$datadir&g
18652 s&@docdir@&$docdir&g
18653 s&@infodir@&$infodir&g
18654 s&@localedir@&$localedir&g
18655 s&@mandir@&$mandir&g
18656 s&\\\${datarootdir}&$datarootdir&g' ;;
18660 # Neutralize VPATH when `$srcdir' = `.'.
18661 # Shell code in configure.ac might set extrasub.
18662 # FIXME: do we really want to maintain this feature?
18663 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18664 ac_sed_extra="$ac_vpsub
18667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18669 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18670 s|@configure_input@|
$ac_sed_conf_input|
;t t
18671 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18672 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18673 s
&@srcdir@
&$ac_srcdir&;t t
18674 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18675 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18676 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18677 s
&@builddir@
&$ac_builddir&;t t
18678 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18679 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18680 s
&@INSTALL@
&$ac_INSTALL&;t t
18681 $ac_datarootdir_hack
18683 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18684 if $ac_cs_awk_getline; then
18685 $AWK -f "$tmp/subs.
awk"
18687 $AWK -f "$tmp/subs.
awk" | $SHELL
18689 || as_fn_error "could not create
$ac_file" "$LINENO" 5
18691 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18692 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
18693 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18695 which seems to be undefined. Please make sure it is defined." >&5
18696 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18697 which seems to be undefined. Please make sure it is defined." >&2;}
18701 -) cat "$tmp/out" && rm -f "$tmp/out";;
18702 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18704 || as_fn_error "could not create $ac_file" "$LINENO" 5
18710 if test x"$ac_file" != x-; then
18712 $as_echo "/* $configure_input */" \
18713 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18714 } >"$tmp/config.h" \
18715 || as_fn_error "could not create $ac_file" "$LINENO" 5
18716 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18718 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18721 mv "$tmp/config.h" "$ac_file" \
18722 || as_fn_error "could not create $ac_file" "$LINENO" 5
18725 $as_echo "/* $configure_input */" \
18726 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18727 || as_fn_error "could not create -" "$LINENO" 5
18735 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
18738 # Prefer the file from the source tree if names are identical.
18739 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
18740 ac_source=$srcdir/$ac_source
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18744 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18746 if test ! -r "$ac_source"; then
18747 as_fn_error "$ac_source: file not found" "$LINENO" 5
18751 # Try a relative symlink, then a hard link, then a copy.
18753 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
18754 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
18756 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
18757 ln "$ac_source" "$ac_file" 2>/dev/null ||
18758 cp -p "$ac_source" "$ac_file" ||
18759 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18762 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18763 $as_echo "$as_me: executing $ac_file commands" >&6;}
18768 case $ac_file$ac_mode in
18769 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
18770 "gcore":F) chmod +x gcore ;;
18772 case x$CONFIG_HEADERS in
18773 xconfig.h:config.in)
18778 case x$CONFIG_HEADERS in
18779 xconfig.h:config.in)
18784 case x$CONFIG_HEADERS in
18785 xconfig.h:config.in)
18789 "data-directory/Makefile":F)
18790 case x$CONFIG_HEADERS in
18791 xconfig.h:config.in)
18802 ac_clean_files=$ac_clean_files_save
18804 test $ac_write_fail = 0 ||
18805 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18808 # configure is writing to config.log, and then calls config.status.
18809 # config.status does its own redirection, appending to config.log.
18810 # Unfortunately, on DOS this fails, as config.log is still kept open
18811 # by configure, so config.status won't be able to
write to it
; its
18812 # output is simply discarded. So we exec the FD to /dev/null,
18813 # effectively closing config.log, so it can be properly (re)opened and
18814 # appended to by config.status. When coming back to configure, we
18815 # need to make the FD available again.
18816 if test "$no_create" != yes; then
18818 ac_config_status_args
=
18819 test "$silent" = yes &&
18820 ac_config_status_args
="$ac_config_status_args --quiet"
18822 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18824 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18825 # would make configure fail if this is the last instruction.
18826 $ac_cs_success || as_fn_exit $?
18830 # CONFIG_SUBDIRS section.
18832 if test "$no_recursion" != yes; then
18834 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
18835 # so they do not pile up.
18836 ac_sub_configure_args
=
18838 eval "set x $ac_configure_args"
18842 if test -n "$ac_prev"; then
18847 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
18848 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
18849 ac_prev
=cache_file
;;
18850 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
18851 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
18854 --config-cache |
-C)
18856 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
18858 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
18860 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
18862 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
18864 --disable-option-checking)
18868 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18870 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
18874 # Always prepend --prefix to ensure using the same prefix
18875 # in subdir configurations.
18876 ac_arg
="--prefix=$prefix"
18878 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18880 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
18883 if test "$silent" = yes; then
18884 ac_sub_configure_args
="--silent $ac_sub_configure_args"
18887 # Always prepend --disable-option-checking to silence warnings, since
18888 # different subdirs can have different --enable and --with options.
18889 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
18892 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
18894 # Do not complain, so a configure script can configure whichever
18895 # parts of a large source tree are present.
18896 test -d "$srcdir/$ac_dir" ||
continue
18898 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
18899 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
18900 $as_echo "$ac_msg" >&6
18901 as_dir
="$ac_dir"; as_fn_mkdir_p
18905 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18907 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18908 # A ".." for each directory in $ac_dir_suffix.
18909 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18910 case $ac_top_builddir_sub in
18911 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18912 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18915 ac_abs_top_builddir
=$ac_pwd
18916 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18917 # for backward compatibility:
18918 ac_top_builddir
=$ac_top_build_prefix
18921 .
) # We are building in place.
18923 ac_top_srcdir
=$ac_top_builddir_sub
18924 ac_abs_top_srcdir
=$ac_pwd ;;
18925 [\\/]* | ?
:[\\/]* ) # Absolute name.
18926 ac_srcdir
=$srcdir$ac_dir_suffix;
18927 ac_top_srcdir
=$srcdir
18928 ac_abs_top_srcdir
=$srcdir ;;
18929 *) # Relative name.
18930 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18931 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18932 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18934 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18939 # Check for guested configure; otherwise get Cygnus style configure.
18940 if test -f "$ac_srcdir/configure.gnu"; then
18941 ac_sub_configure
=$ac_srcdir/configure.gnu
18942 elif test -f "$ac_srcdir/configure"; then
18943 ac_sub_configure
=$ac_srcdir/configure
18944 elif test -f "$ac_srcdir/configure.in"; then
18945 # This should be Cygnus configure.
18946 ac_sub_configure
=$ac_aux_dir/configure
18948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
18949 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18953 # The recursion is here.
18954 if test -n "$ac_sub_configure"; then
18955 # Make the cache file name correct relative to the subdirectory.
18956 case $cache_file in
18957 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
18958 *) # Relative name.
18959 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
18962 { $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
18963 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18964 # The eval makes quoting arguments work.
18965 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
18966 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
18967 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
18973 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
18974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18975 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}